!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery"),require("jsbarcode"),require("socket.io-client"),require("jspdf"),require("html2canvas"),require("canvg")):"function"==typeof define&&define.amd?define("vue-plugin-hiprint",["jquery","jsbarcode","socket.io-client","jspdf","html2canvas","canvg"],e):"object"==typeof exports?exports["vue-plugin-hiprint"]=e(require("jquery"),require("jsbarcode"),require("socket.io-client"),require("jspdf"),require("html2canvas"),require("canvg")):t["vue-plugin-hiprint"]=e(t.jQuery,t.JsBarcode,t.io,t.jspdf,t.html2canvas,t.canvg)}(window,function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__12__){return function(i){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=i,o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/dist/",o(o.s=14)}([function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,__webpack_exports__,__webpack_require__){"use strict";!function(jQuery){__webpack_require__.d(__webpack_exports__,"b",function(){return hiprint}),__webpack_require__.d(__webpack_exports__,"a",function(){return defaultElementTypeProvider});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15),_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_1__),jsbarcode__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),jsbarcode__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(jsbarcode__WEBPACK_IMPORTED_MODULE_2__),_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(16),_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_3__),_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),socket_io_client__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7),socket_io_client__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(socket_io_client__WEBPACK_IMPORTED_MODULE_5__),_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8),_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_6__),_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9),_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_7__),jspdf__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),jspdf__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(jspdf__WEBPACK_IMPORTED_MODULE_8__),html2canvas__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(11),html2canvas__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(html2canvas__WEBPACK_IMPORTED_MODULE_9__),nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(2),nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_10__),canvg__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(12),canvg__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(canvg__WEBPACK_IMPORTED_MODULE_11__),_etypes_default_etyps_provider__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(13);function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}window.$=window.jQuery=jquery__WEBPACK_IMPORTED_MODULE_0___default.a,window.autoConnect=!0,window.io=socket_io_client__WEBPACK_IMPORTED_MODULE_5__.io;var hiprint=function(i){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=i,o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==_typeof(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=21)}([function(t,e,i){var r;i.d(e,"a",function(){return hinnn}),window.hinnn={},hinnn.event=(r={},{on:function(t,e){r[t]||(r[t]=[]),r[t].push(e)},id:0,off:function(t,e){var i=r[t];if(i){for(var n=-1,o=0;o>12&15))+String.fromCharCode(128|e>>6&63):i+=String.fromCharCode(192|e>>6&31),i+=String.fromCharCode(128|e>>0&63));return i},hinnn.groupBy=function(t,n,o){var r={};return t.forEach(function(e){var i=JSON.stringify(o(e));r[i]||(r[i]={rows:[]},n.forEach(function(t){r[i][t]=e[t]})),r[i].rows.push(e)}),Object.keys(r).map(function(t){return r[t]})},hinnn.orderBy=function(t,e){if(t.length<=1)return t;var i=Math.floor(t.length/2),n=t.splice(i,1)[0],o=[],r=[],a=!0,i=!1,l=void 0;try{for(var s,p=t[Symbol.iterator]();!(a=(s=p.next()).done);a=!0){var I=s.value;(e(I)e.length?i.options.testData=n.split(":")[1]:(i.options.title=n,i.options.testData=""):i.options.title=n,t||_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger(i.getPrintElementSelectEventKey(),{printElement:i}),i.updateDesignViewFromOptions(),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.event.trigger("hiprintTemplateDataChanged_"+i.templateId,"编辑修改"),i._editing=!1,e=null==i.options.draggable||1==i.options.draggable,i.designTarget.hidraggable("update",{draggable:e}))},BasePrintElement.prototype.getPrintElementSelectEventKey=function(){return"PrintElementSelectEventKey_"+this.templateId},BasePrintElement.prototype.design=function(t,s){var p=this;this.designTarget.hidraggable({draggable:p.options.draggable,axis:p.options.axis||void 0,designTarget:p,onDrag:function(t,e,i){var n,o,r=p.panel.printElements.filter(function(t){return"block"==t.designTarget.children().last().css("display")&&t.designTarget.children().last().hasClass("selected")&&!t.printElementType.type.includes("table")}),a=1a&&"none"!=t.panelPageRule&&(o.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),r=t.paperHeader,a=t.getPaperFooter(++n))),this.getData(e)),l=this.createTarget(this.getTitle(),n);return"none"==t.panelPageRule&&r+this.options.getHeight()>a&&this.updatePanelHeight(r+this.options.getHeight(),t),this.updateTargetSize(l),this.css(l,n),l.css("position","absolute"),l.css("left",this.options.displayLeft()),l.css("top",r+"pt"),o.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:l,printLine:r+this.options.getHeight(),referenceElement:new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:t.index,bottomInLastPaper:r+this.options.getHeight(),printTopInPaper:r})})),e&&this.options.pageBreak&&(o[0].target.css("top",t.paperHeader+"pt"),o[0].referenceElement.top=this.options.getTop()-this.options.getHeight()-t.paperHeader,o[0].printLine=t.paperHeader,o[0].referenceElement.bottomInLastPaper=0,o[0].referenceElement.printTopInPaper=t.paperHeader,o.unshift(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:l,printLine:t.height,referenceElement:new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__.a({top:0,left:0,height:0,width:0,beginPrintPaperIndex:t.index,bottomInLastPaper:t.height,printTopInPaper:t.paperHeader})}))),o},BasePrintElement.prototype.updatePanelHeight=function(t,e){var i;"none"==this.panel.panelPageRule&&(i=_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__.a.pt.toMm(t),e.paperFooter=t,e.target.css("height",i+"mm"),e.target.attr("original-height",i))},BasePrintElement.prototype.getBeginPrintTopInPaperByReferenceElement=function(t){var e=this.options.getTop();return this.isHeaderOrFooter()||this.isFixed()?e:t.referenceElement.isPositionLeftOrRight(e)?t.referenceElement.printTopInPaper+(e-t.referenceElement.top):t.referenceElement.bottomInLastPaper+(e-(t.referenceElement.top+t.referenceElement.height))},BasePrintElement.prototype.css=function(i,t){var e,n=this,o=[],r=this.getConfigOptions();r&&(r.tabs&&r.tabs.length?(e=[],r.tabs.forEach(function(t){e=e.concat(t.options)})):e=r.supportOptions,e&&e.forEach(function(t){var e=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(t.name);e&&e.css&&((e=e.css(i,n.options.getValueFromOptionsOrDefault(t.name)))&&o.push(e))})),this.stylerCss(i,t)},BasePrintElement.prototype.stylerCss=function(e,t){var i,n=this.getStyler();n&&(i=n(t,this.options,e,this._currenttemplateData))&&Object.keys(i).forEach(function(t){e.css(t,i[t])})},BasePrintElement.prototype.getData=function(i){var t=this.getField();return i?t&&t.split(".").reduce((t,e)=>t?t[e]:i?i[e]:"",!1)||"":this.printElementType.getData()},BasePrintElement.prototype.copyFromType=function(){var e=this.options,i=this.printElementType,t=this.getConfigOptions(),n=[];return t&&t.tabs&&t.tabs.length?t.tabs.forEach(function(t){t.options.forEach(function(t){n.push(t.name)})}):n=t.supportOptions.map(function(t){return t.name}),Object.keys(i).forEach(function(t){i[t]&&"columns"!=t&&-1'))},BasePrintElement.prototype.removeTempContainer=function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hiprint_temp_Container").remove()},BasePrintElement.prototype.getTempContainer=function(){return jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hiprint_temp_Container")},BasePrintElement.prototype.isHeaderOrFooter=function(){return this.options.getTopInDesign()=this.panel.paperFooter},BasePrintElement.prototype.delete=function(){this.designTarget&&this.designTarget.remove()},BasePrintElement.prototype.setCurrenttemplateData=function(t){this._currenttemplateData=t},BasePrintElement.prototype.isFixed=function(){return this.options.fixed},BasePrintElement.prototype.onRendered=function(t,e){this.printElementType&&this.printElementType.onRendered&&this.printElementType.onRendered(e,this.options,t.getTarget())},BasePrintElement.prototype.createLineOfPosition=function(t){var e=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".toplineOfPosition.id"+this.id),i=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".topPosition.id"+this.id),n=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".leftlineOfPosition.id"+this.id),o=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".leftPosition.id"+this.id),r=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".rightlineOfPosition.id"+this.id),a=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".bottomlineOfPosition.id"+this.id),l=_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance;e.length?e.css("top",this.options.displayTop(!0)):((e=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
')).css("top",this.options.displayTop(!0)),e.css("width",t.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(e)),l.showPosition&&(i.length?(i.toggleClass("topPosition-lineMode",l.positionLineMode),i.text(this.options.posTop()+(l.positionUnit?"pt":"")),i.css("top",this.options.posTop()-i.height()+"pt"),l.positionLineMode?i.css("left",this.options.posLeft()-i.width()/2+"pt"):i.css("left",this.options.posLeft()+2+"pt"),this.designTarget.find(".size-box")&&this.designTarget.find(".size-box").toggleClass("hide",!0)):((i=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
')).toggleClass("topPosition-lineMode",l.positionLineMode),i.text(this.options.posTop()+(l.positionUnit?"pt":"")),l.positionLineMode?i.css("left",this.options.posLeft()-i.width()/2+"pt"):i.css("left",this.options.posLeft()+2+"pt"),this.designTarget.find(".size-box")&&this.designTarget.find(".size-box").toggleClass("hide",!0),this.designTarget.parents(".hiprint-printPaper-content").append(i),i.css("top",this.options.posTop()-i.height()+"pt"))),n.length?n.css("left",this.options.displayLeft(!0)):((e=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
')).css("left",this.options.displayLeft(!0)),e.css("height",t.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(e)),l.showPosition&&(o.length?(o.text(this.options.posLeft()+(l.positionUnit?"pt":"")),o.toggleClass("leftPosition-lineMode",l.positionLineMode),o.css("left",this.options.posLeft()-o.width()+"pt"),l.positionLineMode?o.css("top",this.options.posTop()-o.height()/3+"pt"):o.css("top",this.options.posTop()+2+"pt")):((o=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
')).text(this.options.posLeft()+(l.positionUnit?"pt":"")),o.toggleClass("leftPosition-lineMode",l.positionLineMode),l.positionLineMode?o.css("top",this.options.posTop()-o.height()/3+"pt"):o.css("top",this.options.posTop()+2+"pt"),this.designTarget.parents(".hiprint-printPaper-content").append(o),o.css("left",this.options.posLeft()-o.width()+"pt"))),r.length?r.css("left",this.options.getLeft()+this.options.getWidth()+"pt"):((i=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
')).css("left",this.options.getLeft()+this.options.getWidth()+"pt"),i.css("height",t.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(i)),a.length?a.css("top",this.options.getTop()+this.options.getHeight()+"pt"):((n=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
')).css("top",this.options.getTop()+this.options.getHeight()+"pt"),n.css("width",t.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(n))},BasePrintElement.prototype.removeLineOfPosition=function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(".toplineOfPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".topPosition.id"+this.id).remove(),this.designTarget.find(".size-box")&&this.designTarget.find(".size-box").toggleClass("hide",!1),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".leftlineOfPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".leftPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".rightlineOfPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".bottomlineOfPosition.id"+this.id).remove()},BasePrintElement.prototype.getFontList=function(){var t=this.options.fontList;return t||_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFontList()},BasePrintElement.prototype.getFields=function(){return"table"==this.printElementType.type?this.options.tableFields:this.options.fields||_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getFields()},BasePrintElement.prototype.getOnImageChooseClick=function(){var t=this.options.onImageChooseClick;return t||_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId).getOnImageChooseClick()},BasePrintElement.prototype.bingCopyEvent=function(t){var e=this;t.keydown(function(t){e._editing&&!t.altKey&&13==t.keyCode?e.updateByContent():(t.ctrlKey||t.metaKey)&&67==t.keyCode&&(e.copyJson(),t.preventDefault())})},BasePrintElement.prototype.copyJson=function(){try{var t=this,e=jquery__WEBPACK_IMPORTED_MODULE_0___default()("#copyArea"),i=(e.length||(e=jquery__WEBPACK_IMPORTED_MODULE_0___default()('')),jquery__WEBPACK_IMPORTED_MODULE_0___default()("body").append(e),JSON.stringify({options:t.options,printElementType:t.printElementType,id:t.id,templateId:t.templateId})),n=(e.text(i),e.css("visibility","visible"),e.focus(),e.setSelectionRange?e.setSelectionRange(0,e.value.length):e.select(),!1),n=document.execCommand("copy");e.css("visibility","hidden"),t.designTarget.focus()}catch(t){n=!1}return n},BasePrintElement.prototype.clone=function(t){var e=this;let i=e.printElementType.createPrintElement();return Object.keys(e.options).forEach(function(t){i.options[t]=e.options[t]}),i},BasePrintElement.prototype.getFormatter=function(){var formatter=void 0;if(this.printElementType.formatter&&(formatter=this.printElementType.formatter),this.options.formatter)try{var s="formatter="+this.options.formatter;eval(s)}catch(t){}return formatter},BasePrintElement.prototype.getStyler=function(){var fnstyler=void 0;if(this.printElementType.styler&&(fnstyler=this.printElementType.styler),this.options.styler)try{var s="fnstyler="+this.options.styler;eval(s)}catch(t){}return fnstyler},BasePrintElement.prototype.bingKeyboardMoveEvent=function(o,t){var r=this,a=void 0,l=void 0;o.attr("tabindex","1"),o.keydown(function(t){if("INPUT"!=t.target.tagName&&(!r._editing||t.altKey)&&!1!==r.options.draggable){var e=r.panel.printElements.filter(function(t){return"block"==t.designTarget.children().last().css("display")&&!t.printElementType.type.includes("table")}),i=1'),t.getTarget().append(this.target),this.target.focus()},y.prototype.getValue=function(){return this.target.val()},y.prototype.setValue=function(t){this.target.val(t)},y.prototype.destroy=function(){this.target.remove()};var n=y,o=(Object.defineProperty(M,"Instance",{get:function(){return M._instance=M._instance?M._instance:new M},enumerable:!0,configurable:!0}),M),r=(f.prototype.init=function(t,i){var n='",this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(n),i.getTarget().append(this.target),this.target.focus()},f.prototype.getValue=function(){var t=this.target.val();return this.target.find('option[value="'+t+'"]').text()+"#"+t},f.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},f.prototype.destroy=function(){this.target.remove()},f),a=(Object.defineProperty(b,"Instance",{get:function(){return b._instance=b._instance?b._instance:new b},enumerable:!0,configurable:!0}),b),l=(Object.defineProperty(m,"Instance",{get:function(){return m._instance=o._instance?m._instance:new m},enumerable:!0,configurable:!0}),m.prototype.createEditor=function(t){return jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},o.Instance[t])},m.prototype.createSelect=function(t){return jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},a.Instance[t])},m),s=i(10),p=i(14),I=i(11),c=(h.prototype.init=function(t,e){var i=this;this.tableOptions=e,this.title=t.title,this.field=t.field,t.getTarget().unbind("dblclick.hitable").bind("dblclick.hitable",function(){t.isEditing=!0,i.beginEdit(t)})},h.prototype.getDisplayHtml=function(){return this.title},h.prototype.beginEdit=function(e){var i=this;i.tableOptions.options.fields&&i.tableOptions.options.fields.length?(this.editor=l.Instance.createSelect("select"),e.getTarget().html(""),this.editor.init(i.tableOptions.options.fields,e),this.editor.setValue(this.field||""),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.editor.target).keydown(function(t){13==t.keyCode&&i.endEdit(e)}),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.editor.target).change(function(t){i.endEdit(e)}),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.editor.target).blur(function(t){i.endEdit(e)})):(this.editor=l.Instance.createEditor("text"),e.getTarget().html(""),this.editor.init(e),(this.title||this.field)&&(this.tableOptions.options.isEnableEditField?this.editor.setValue((this.title||"")+"#"+(this.field||"")):this.editor.setValue(this.title||"")),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.editor.target).keydown(function(t){13==t.keyCode&&i.endEdit(e)}),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.editor.target).blur(function(t){i.endEdit(e)}),this.tableOptions.editingCell&&this.tableOptions.editingCell.id!=e.id&&this.tableOptions.editingCell.innerElement.endEdit(this.tableOptions.editingCell),this.tableOptions.editingCell=e)},h.prototype.endEdit=function(t){t.isEditing=0;var e,i=this.editor.getValue();i?this.tableOptions.options.isEnableEditField||this.tableOptions.options.fields?(e=i.split("#"),t.title=this.title=e[0],0e.x&&e.x+e.width>t.x&&t.y+t.height>e.y&&e.y+e.height>t.y},g.prototype.isInRect=function(t){var e=t.rect,i=this.getTableRect();return i.x>=e.x&&i.x+i.width<=e.x+e.width&&i.y>=e.y&&i.y+i.height<=e.y+e.height&&(i=p.a.mergeRect(e,i),JSON.stringify(e)==JSON.stringify(i)||(t.changed=!0,t.rect=i,!0))},g.prototype.isSelected=function(){return this.target.hasClass("selected")},g.prototype.select=function(){this.target.addClass("selected")},g.prototype.isHeader=function(){return!1},g.prototype.setAlign=function(t){(this.align=t)?this.target.css("text-align",t):this.target[0].style.textAlign=""},g.prototype.setVAlign=function(t){(this.vAlign=t)?this.target.css("vertical-align",t):this.target[0].style.verticalAlign=""},g.prototype.getEntity=function(){return new u(this)},g);function g(){this.id=I.a.createId()}function h(){}function m(){}function b(){this.select=new r}function f(){}function M(){this.text=new n}function y(){}i.d(e,"a",function(){return j});(function(t,e){(Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)})(v=T,i=P=d),v.prototype=null===i?Object.create(i):(x.prototype=i.prototype,new x),T.prototype.css=function(t){};var P,v,j=T;function T(t){var e=this;return t=t||{},(e=P.call(this)||this).width=t.width?parseFloat(t.width.toString()):100,e.title=t.title,e.descTitle=t.descTitle,e.field=t.field,e.fixed=t.fixed,e.rowspan=t.rowspan?parseInt(t.rowspan):1,e.colspan=t.colspan?parseInt(t.colspan):1,e.align=t.align,e.halign=t.halign,e.vAlign=t.vAlign,e.formatter=t.formatter,e.styler=t.styler,e.renderFormatter=t.renderFormatter,e.formatter2=t.formatter2,e.styler2=t.styler2,e.stylerHeader=t.stylerHeader,e.checkbox=t.checkbox,e.checked=0!=t.checked,e.columnId=t.columnId||t.field,e.tableColumnHeight=t.tableColumnHeight,e.tableTextType=t.tableTextType,e.tableBarcodeMode=t.tableBarcodeMode,e.tableQRCodeLevel=t.tableQRCodeLevel,e.tableSummaryTitle=t.tableSummaryTitle,e.tableSummaryText=t.tableSummaryText,e.tableSummaryColspan=t.tableSummaryColspan,e.tableSummary=t.tableSummary,e.tableSummaryAlign=t.tableSummaryAlign,e.tableSummaryNumFormat=t.tableSummaryNumFormat,e.upperCase=t.upperCase,e}function x(){this.constructor=v}},function(t,e,i){i.d(e,"a",function(){return n});var n=function(t){this.printLine=t.printLine,this.target=t.target,this.referenceElement=t.referenceElement}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return TableExcelHelper});var _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(19),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),TableExcelHelper=function(){function TableExcelHelper(){}return TableExcelHelper.createTableHead=function(t,e){for(var i=TableExcelHelper.reconsitutionTableColumnTree(t),n=jquery__WEBPACK_IMPORTED_MODULE_0___default()(""),r=TableExcelHelper.getColumnsWidth(i,e),o=0;o");i[t].filter(function(t){return t.checked}).forEach(function(t){var e,i=jquery__WEBPACK_IMPORTED_MODULE_0___default()(""),n=(t.id&&i.attr("id",t.id),t.columnId&&i.attr("column-id",t.columnId),(t.align||t.halign)&&i.css("text-align",t.halign||t.align),t.vAlign&&i.css("vertical-align",t.vAlign),1"),n=this.getFooterFormatter(i,n),d=this.tableSummaryTitle;let g="last"==i.tableFooterRepeat?e:o;var h,a=i.columns.length-1,a=this.rowColumns||i.columns[a].columns;return"no"!=i.tableFooterRepeat&&a.some(function(t){return t.tableSummary})&&(h=jquery__WEBPACK_IMPORTED_MODULE_0___default()(""),a.filter(function(t){return t.checked}).forEach(function(e){var t=g.filter(function(t){return t&&t[e.field]}).map(function(t){return new RegExp("^-?(0|[1-9]\\d*)(\\.\\d+)?").test(t[e.field])?Number(t[e.field]):0}),i=e.tableSummaryText,n=e.tableSummaryNumFormat||2,o="text-align: "+(e.tableSummaryAlign||"center"),r=null==e.tableSummaryColspan?1:e.tableSummaryColspan,a=e.upperCase;let{toUpperCase:l,numFormat:s}=_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a;switch(e.tableSummary){case"count":var p=d(e,i||"计数:",u),I=l(a,g.length||0);h.append(`${p}${I}`);break;case"sum":var c=parseFloat(Number(t.reduce(function(t,e){return t+e},0))),p=(c=l(a,s(c,n)),d(e,i||"合计:",u));h.append(`${p}${c}`);break;case"avg":c=parseFloat(Number(t.reduce(function(t,e){return t+e},0))),I=parseFloat(Number(c/(t.length||1))),I=l(a,s(I,n)),p=d(e,i||"平均值:",u);h.append(`${p}${I}`);break;case"min":c=Math.min(...t)||0,p=(c==1/0&&(c=0),c=l(a,s(c,n)),d(e,i||"最小值:",u));h.append(`${p}${c||0}`);break;case"max":I=Math.max(...t),p=(I==-1/0&&(I=0),I=l(a,s(I,n)),d(e,i||"最大值:",u));h.append(`${p}${I||0}`);break;case"text":h.append(`${i||""}`);break;default:1<=r&&h.append(`${i||""}`)}}),r.append(h)),n&&r.append(n(i,e,u,o)),r},TableExcelHelper.tableSummaryTitle=function(t,e,i){return null==t.tableSummaryTitle||1==t.tableSummaryTitle?""+e:i?"":`${e}`},TableExcelHelper.createTableRow=function(t,i,o,r,a){var l=this,s=TableExcelHelper.reconsitutionTableColumnTree(t),p=jquery__WEBPACK_IMPORTED_MODULE_0___default()(""),t=l.getGroupFieldsFormatter(r,a),n=t?r.groupFields=t(a,r,i):a.groupFields||[];return i=i||[],n.length?_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a.groupBy(i,n,function(e){var i={};return n.forEach(function(t){return i[t]=e[t]}),i}).forEach(function(t){var e,i=l.getGroupFormatter(r,a),i=(i&&((e=jquery__WEBPACK_IMPORTED_MODULE_0___default()("")).find("td").append(i(t,r)),p.append(e)),l.getGroupFooterFormatter(r,a)),n=t;n.rows.forEach(function(t,e){t=TableExcelHelper.createRowTarget(s,t,r,a,e,n.rows,o);p.append(t)}),i&&((e=jquery__WEBPACK_IMPORTED_MODULE_0___default()("")).find("td").append(i(t,r)),p.append(e))}):i.forEach(function(t,e){t=TableExcelHelper.createRowTarget(s,t,r,a,e,i,o);p.append(t)}),p},TableExcelHelper.createRowTarget=function(t,e,n,i,rowIndex,tableData,printData){var o=jquery__WEBPACK_IMPORTED_MODULE_0___default()(""),columns=t.rowColumns.filter(function(t){return t.checked}),r=(o.data("rowData",e),t.rowColumns.filter(function(t){return t.checked}).forEach(function(t,i){if(t.checked){var rowsColumnsMerge="",rowsColumnsArr,r,r,width,a=(r=n.rowsColumnsMerge?(eval("rowsColumnsMerge="+n.rowsColumnsMerge),rowsColumnsArr=rowsColumnsMerge(e,t,i,rowIndex,tableData,printData)||[1,1],jquery__WEBPACK_IMPORTED_MODULE_0___default()(``)):jquery__WEBPACK_IMPORTED_MODULE_0___default()(""),e&&0{i<=e&&e
');try{p?(jsbarcode__WEBPACK_IMPORTED_MODULE_2___default()(r.find(".hibarcode_imgcode")[0],p,{format:t.tableBarcodeMode||"CODE128A",width:1,textMargin:-1,lineColor:"#000000",margin:0,height:parseInt(10),displayValue:!1}),r.find(".hibarcode_imgcode").attr("height",t.tableColumnHeight||"30pt"),r.find(".hibarcode_imgcode").css("margin","5pt 10pt"),r.find(".hibarcode_imgcode").attr("width","calc(100% - 20pt)")):r.html("")}catch(t){r.html("此格式不支持该文本")}}if("image"==t.tableTextType&&(r.html(""),p&&(imagebox=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
'),imagebox.find("img").attr("src",p),r.html(imagebox))),"qrcode"==t.tableTextType){r.html("");try{var qrcodebox=jquery__WEBPACK_IMPORTED_MODULE_0___default()("
"),l,u;p&&(l=parseInt(t.width||t.targetWidth||20),u=parseInt(t.tableColumnHeight||20),qrcodebox.css("height",(u");return t.rowColumns.filter(function(t){return t.checked}).forEach(function(t,e){var i=jquery__WEBPACK_IMPORTED_MODULE_0___default()("");t.field&&i.attr("field",t.field),t.align&&i.css("text-align",t.align),t.vAlign&&i.css("vertical-align",t.vAlign),n.append(i)}),e&&e.options.tableBodyRowHeight&&n.find("td:not([rowspan])").css("height",e.options.tableBodyRowHeight+"pt"),n},TableExcelHelper.getColumnsWidth=function(t,i){var n={},o=TableExcelHelper.allAutoWidth(t),r=TableExcelHelper.allFixedWidth(t);return t.rowColumns.filter(function(t){return t.checked}).forEach(function(t){var e;t.fixed?n[t.id]=t.width:(e=t.width/o*(0<(e=i-r)?e:0),n[t.id]=e)}),n},TableExcelHelper.resizeTableCellWidth=function(t,e,i){var e=TableExcelHelper.reconsitutionTableColumnTree(e),n=TableExcelHelper.getColumnsWidth(e,i);t.find("thead tr td[haswidth]").map(function(t,e){var i=jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr("id"),i=n[i];jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).css("width",i+"pt")})},TableExcelHelper.allAutoWidth=function(t){var e=0,i={};return t.rowColumns.filter(function(t){return t.checked}).forEach(function(t){i[t.id]?i[t.id]=0:i[t.id]=t.width,e+=t.fixed?0:i[t.id]}),e},TableExcelHelper.allFixedWidth=function(t){var e=0,i={};return t.rowColumns.filter(function(t){return t.checked}).forEach(function(t){i[t.id]?i[t.id]=0:i[t.id]=t.width,e+=t.fixed?i[t.id]:0}),e},TableExcelHelper.reconsitutionTableColumnTree=function(t,e,i){for(var n=e||new _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__.a,o=n.colspan=0;o{o[i].push(...new Array(t.colspan).fill({...t,colspan:1}))});for(let n=0;n{for(let t=1;t=t.totalLayer-1?o[i].forEach((t,e)=>{t.field||(t.field=n[e])}):o[i].forEach((t,e)=>{0==i?n.push(t.field||""):t.field&&(n[e]=t.field)});return this.rowColumns=o[t.totalLayer-1],o[t.totalLayer-1]},TableExcelHelper}()},function(t,e,i){i.d(e,"a",function(){return n});o.prototype.isPositionLeftOrRight=function(t){return this.top<=t&&this.top+this.height>t};var n=o;function o(t){this.top=t.top,this.left=t.left,this.height=t.height,this.width=t.width,this.bottomInLastPaper=t.bottomInLastPaper,this.beginPrintPaperIndex=t.beginPrintPaperIndex,this.printTopInPaper=t.printTopInPaper,this.endPrintPaperIndex=t.endPrintPaperIndex}},function(U,W,L){nn.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("line-height",e+"pt"),"line-height:"+e+"pt";t[0].style.lineHeight=""}return null},nn.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 字体行高\n
\n
\n \n
\n
'),this.target},nn.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},nn.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},nn.prototype.destroy=function(){this.target.remove()};var z=nn,Z=(en.prototype.createTarget=function(t){var i,e=void 0;return(e=t?t.getFontList():e)?(i='
\n
\n 字体\n
\n
\n \n
\n
",this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(i)):this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 字体\n
\n
\n \n
\n
'),this.target},en.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("font-family",e),"font-family:"+e;t[0].style.fontFamily="inherit"}return null},en.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},en.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},en.prototype.destroy=function(){this.target.remove()},en),G=(tn.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("font-size",e+"pt"),"font-size:"+e+"pt";t[0].style.fontSize=""}return null},tn.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 字体大小\n
\n
\n \n
\n
'),this.target},tn.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},tn.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},tn.prototype.destroy=function(){this.target.remove()},tn),O=($i.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("font-weight",e),"font-weight:"+e;t[0].style.fontWeight=""}return null},$i.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 字体粗细\n
\n
\n \n
\n
'),this.target},$i.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},$i.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},$i.prototype.destroy=function(){this.target.remove()},$i),R=(qi.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("letter-spacing",e+"pt"),"letter-spacing:"+e+"pt";t[0].style.letterSpacing=""}return null},qi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 字间距\n
\n
\n \n
\n
'),this.target},qi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},qi.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},qi.prototype.destroy=function(){this.target.remove()},qi),k=(Qi.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("text-align",e),"justify"==e?(t.css("text-align-last","justify"),t.css("text-justify","distribute-all-lines")):(t[0].style.textAlignLast="",t[0].style.textJustify=""),"text-align:"+e;t[0].style.textAlign="",t[0].style.textAlignLast="",t[0].style.textJustify=""}return null},Qi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 左右对齐\n
\n
\n \n
\n
'),this.target},Qi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Qi.prototype.setValue=function(t){this.target.find("select").val(t)},Qi.prototype.destroy=function(){this.target.remove()},Qi),Y=(Xi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 标题显示隐藏\n
\n
\n \n
\n
'),this.target},Xi.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},Xi.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},Xi.prototype.destroy=function(){this.target.remove()},Xi),J=(Ki.prototype.css=function(t,e){if(t.find("table").length){if("border"==e||null==e)return t.find("table").css("border","1px solid"),"border:1px solid";"noBorder"==e?t.find("table").css("border","0px solid"):t.find("table")[0].style.border=""}return null},Ki.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表格边框\n
\n
\n \n
\n
'),this.target},Ki.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Ki.prototype.setValue=function(t){this.target.find("select").val(t)},Ki.prototype.destroy=function(){this.target.remove()},Ki),F=(Vi.prototype.css=function(t,e){if(t.find("thead tr").length){if("border"==e||null==e)return t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-all");"noBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-none"):"leftBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-left"):"rightBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-right"):"leftRightBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-lr"):"topBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-top"):"bottomBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-bottom"):"topBottomBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-tb"):t.find("thead tr").removeClass()}return null},Vi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表头边框\n
\n
\n \n
\n
'),this.target},Vi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Vi.prototype.setValue=function(t){this.target.find("select").val(t)},Vi.prototype.destroy=function(){this.target.remove()},Vi),V=(Fi.prototype.css=function(t,e){if(t.find("thead tr").length){if("border"==e||null==e)return t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-td-all");"noBorder"==e?t.find("thead tr").addClass("hiprint-printElement-tableTarget-border-td-none"):t.find("thead tr").removeClass()}return null},Fi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表头单元格边框\n
\n
\n \n
\n
'),this.target},Fi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Fi.prototype.setValue=function(t){this.target.find("select").val(t)},Fi.prototype.destroy=function(){this.target.remove()},Fi),K=(Ji.prototype.css=function(t,e){if(t.find("tfoot tr").length){if("border"==e||null==e)return t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-all");"noBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-none"):"leftBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-left"):"rightBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-right"):"leftRightBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-lr"):"topBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-top"):"bottomBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-bottom"):"topBottomBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-tb"):t.find("tfoot tr").removeClass()}return null},Ji.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表尾边框\n
\n
\n \n
\n
'),this.target},Ji.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Ji.prototype.setValue=function(t){this.target.find("select").val(t)},Ji.prototype.destroy=function(){this.target.remove()},Ji),X=(Yi.prototype.css=function(t,e){if(t.find("tfoot tr").length){if("border"==e||null==e)return t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-td-all");"noBorder"==e?t.find("tfoot tr").addClass("hiprint-printElement-tableTarget-border-td-none"):t.find("tfoot tr").removeClass()}return null},Yi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表尾单元格边框\n
\n
\n \n
\n
'),this.target},Yi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Yi.prototype.setValue=function(t){this.target.find("select").val(t)},Yi.prototype.destroy=function(){this.target.remove()},Yi),Q=(ki.prototype.css=function(t,e){if(t.find("thead tr td").length){if(e)return t.find("thead tr td:not([rowspan])").css("height",e+"pt"),"height:"+e+"pt";t.find("thead tr td").map(function(t,e){e.style.height=""})}return null},ki.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表头行高\n
\n
\n \n
\n
'),this.target},ki.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},ki.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},ki.prototype.destroy=function(){this.target.remove()},ki),q=(Ri.prototype.css=function(t,e){if(t.find("thead").length){if(e)return t.find("thead").css("font-size",e+"pt"),"font-size:"+e+"pt";t.find("thead").map(function(t,e){e.style.fontSize=""})}return null},Ri.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表头字体大小\n
\n
\n \n
\n
'),this.target},Ri.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},Ri.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},Ri.prototype.destroy=function(){this.target.remove()},Ri),$=(B.prototype.css=function(t,e){if(t.find("thead").length){if(e)return t.find("thead tr td").css("font-weight",e),"font-weight:"+e;t.find("thead tr td").map(function(t,e){e.style.fontWeight=""})}return null},B.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表头字体粗细\n
\n
\n \n
\n
'),this.target},B.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},B.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},B.prototype.destroy=function(){this.target.remove()},B),tt=(H.prototype.css=function(t,e){if(t.find("tbody tr").length){if("border"==e||null==e)return t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-td-all");"noBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-td-none"):t.find("tbody tr").removeClass()}return null},H.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表体单元格边框\n
\n
\n \n
\n
'),this.target},H.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},H.prototype.setValue=function(t){this.target.find("select").val(t)},H.prototype.destroy=function(){this.target.remove()},H),et=(A.prototype.css=function(t,e){if(t.find("tbody tr td").length){if(e)return t.find("tbody tr td").css("height",e+"pt"),"height:"+e+"pt";t.find("tbody tr td").map(function(t,e){e.style.height=""})}return null},A.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表体行高\n
\n
\n \n
\n
'),this.target},A.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},A.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},A.prototype.destroy=function(){this.target.remove()},A),it=(D.prototype.css=function(t,e){if(t.find("thead").length){if(e)return t.find("thead").css("background",e),"background:"+e;t.find("thead").map(function(t,e){e.style.background=""})}return null},D.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表头背景\n
\n
\n \n
\n
'),this.target},D.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},D.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},D.prototype.destroy=function(){this.target.remove()},D),nt=(C.prototype.createTarget=function(t){t=["hline","vline","rect","oval"].includes(t.printElementType.type)?"线宽":"边框大小";return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n '+t+'\n
\n
\n \n
\n
'),this.target},C.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("border-width",e+"pt"),"border-width:"+e+"pt";t[0].style.borderWidth=""}return null},C.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},C.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},C.prototype.destroy=function(){this.target.remove()},C),ot=(Oi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 条形码格式\n
\n
\n \n
\n
'),this.target},Oi.prototype.getValue=function(){return this.target.find("select").val()||void 0},Oi.prototype.setValue=function(t){this.target.find("select").val(t)},Oi.prototype.destroy=function(){this.target.remove()},Oi),rt=(Gi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 二维码容错率\n
\n
\n \n
\n
'),this.target},Gi.prototype.getValue=function(){var t=this.target.find("select").val();return parseInt(t||0)},Gi.prototype.setValue=function(t){this.target.find("select").val(t)},Gi.prototype.destroy=function(){this.target.remove()},Gi),at=(S.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("color",e),"color:"+e;t[0].style.color=""}return null},S.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 字体颜色\n
\n
\n \n
\n
'),this.target},S.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},S.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},S.prototype.destroy=function(){this.target.remove()},S),lt=(_.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 文本修饰\n
\n
\n \n
\n
'),this.target},_.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("text-decoration",e),"text-decoration:"+e;t[0].style.textDecoration=""}return null},_.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},_.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},_.prototype.destroy=function(){this.target.remove()},_),st=(Zi.prototype.createTarget=function(t){var i,e=void 0;return(e=t?t.getFields():e)?(this.isSelect=!0,i='
\n
\n 字段名\n
\n
\n \n
\n
",this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(i)):(this.isSelect=!1,this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 字段名\n
\n
\n \n
\n
')),this.target},Zi.prototype.getValue=function(){return(this.isSelect?this.target.find("select"):this.target.find("input")).val()||void 0},Zi.prototype.setValue=function(t){this.isSelect?t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('"),this.target.find("select").val(t)):this.target.find("input").val(t)},Zi.prototype.destroy=function(){this.target.remove()},Zi),pt=(zi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 标题\n
\n
\n \n
\n
'),this.target},zi.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},zi.prototype.setValue=function(t){this.target.find("textarea").val(t)},zi.prototype.destroy=function(){this.target.remove()},zi),It=(Li.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 测试数据\n
\n
\n \n
\n
'),this.target},Li.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},Li.prototype.setValue=function(t){this.target.find("input").val(t)},Li.prototype.destroy=function(){this.target.remove()},Li),ct=(w.prototype.createTarget=function(t,e){var i=this;return i.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n 位置坐标\n
\n \n \n
\n
'),i.syncLock=e.coordinateSync||!1,i.createSyncLock(i.syncLock),i.target},w.prototype.createSyncLock=function(t){var e=this;return e.lockTarget=e.syncLock?jquery__WEBPACK_IMPORTED_MODULE_0___default()(''):jquery__WEBPACK_IMPORTED_MODULE_0___default()(''),e.lockTarget.click(function(){e.syncLock?e.lockTarget.text("🔓").attr("title","不同步"):e.lockTarget.text("🔗").attr("title","同步"),e.syncLock=!e.syncLock}),e.target.find("input:first").after(e.lockTarget),e.target.find("input:first").change(function(){e.syncLock&&e.target.find("input:last").val(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val())}),e.target.find("input:last").change(function(){e.syncLock&&e.target.find("input:first").val(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val())}),e.lockTarget},w.prototype.css=function(t){var e;if(t&&t.length&&this.target&&(("block"==t.find(".resize-panel").css("display")||t[0].className.includes("table"))&&this.el==t))return e=this.getValue(),t.css("left",e.left+"pt").css("top",e.top+"pt");return null},w.prototype.getValue=function(){var t={coordinateSync:this.syncLock,left:0,top:0};return t.left=parseFloat(this.target.find("input:first").val()||0),t.top=parseFloat(this.target.find("input:last").val()||0),t},w.prototype.setValue=function(t,e){this.el=e.designTarget||e,this.target.find("input:first").val(t.left),this.target.find("input:last").val(t.top)},w.prototype.destroy=function(){this.target.remove()},w),ut=(E.prototype.createTarget=function(t,e){var i=this;return i.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n 宽高大小\n
\n \n \n
\n
'),i.syncLock=e.widthHeightSync||!1,i.createSyncLock(i.syncLock),i.target},E.prototype.createSyncLock=function(t){var e=this;return e.lockTarget=e.syncLock?jquery__WEBPACK_IMPORTED_MODULE_0___default()(''):jquery__WEBPACK_IMPORTED_MODULE_0___default()(''),e.lockTarget.click(function(){e.syncLock?e.lockTarget.text("🔓").attr("title","不同步"):e.lockTarget.text("🔗").attr("title","同步"),e.syncLock=!e.syncLock}),e.target.find("input:first").after(e.lockTarget),e.target.find("input:first").change(function(){e.syncLock&&e.target.find("input:last").val(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val())}),e.target.find("input:last").change(function(){e.syncLock&&e.target.find("input:first").val(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val())}),e.lockTarget},E.prototype.css=function(t){var e;if(t&&t.length&&this.target&&(("block"==t.find(".resize-panel").css("display")||t[0].className.includes("table"))&&this.el==t))return e=this.getValue(),t.css("width",e.width+"pt").css("height",e.height+"pt");return null},E.prototype.getValue=function(){var t={widthHeightSync:this.syncLock,width:0,height:0};return t.width=parseFloat(this.target.find("input:first").val()||0),t.height=parseFloat(this.target.find("input:last").val()||0),t},E.prototype.setValue=function(t,e){this.el=e.designTarget||e,this.target.find("input:first").val(t.width),this.target.find("input:last").val(t.height)},E.prototype.destroy=function(){this.target.remove()},E),dt=(x.prototype.createTarget=function(t){this.el=t;var e=void 0,i=this;return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 图片地址\n
\n
\n \n
\n
'),(e=t?t.getOnImageChooseClick():e)&&this.target.find("button").click(function(){e&&e(i)}),this.target},x.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},x.prototype.setValue=function(t){this.target.find("input").val(t)},x.prototype.refresh=function(t,e,i){var n,o=this;this.setValue(t),this.target.find("input").change(),this.el&&e&&((n=new Image).src=t,n.complete?o.updateEl(n.width,n.height,e,i):n.onload=function(){o.updateEl(n.width,n.height,e,i)})},x.prototype.updateEl=function(t,e,i,n){var o,r,a;i?((i||i.auto)&&(e<=t?i.width=!0:i.height=!0),i.width?(o=e/t,r=this.el.options.width,a=Math.floor(r*o*10)/10,this.el.options.height=a,this.el.designTarget.css("height",a+"pt")):i.height?(o=t/e,a=this.el.options.height,r=Math.floor(a*o*10)/10,this.el.options.width=r,this.el.designTarget.css("width",r+"pt")):i.real&&(r=hinnn.px.toPt(t),a=hinnn.px.toPt(e),this.el.options.width=r,this.el.options.height=a,this.el.designTarget.css("width",r+"pt"),this.el.designTarget.css("height",a+"pt")),this.el.designTarget.children(".resize-panel").trigger(jquery__WEBPACK_IMPORTED_MODULE_0___default.a.Event("click"))):n&&n(this.el,t,e)},x.prototype.destroy=function(){this.target.remove()},x),gt=(T.prototype.css=function(t,e){if(t&&t.length){if(e)return t.find("img").css("object-fit",e),"object-fit:"+e;t.find("img")[0].style["object-fit"]=""}return null},T.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 图片缩放\n
\n
\n \n
\n
'),this.target,this.target},T.prototype.getValue=function(){return this.target.find("select").val()},T.prototype.setValue=function(t){this.target.find("select").val(t)},T.prototype.destroy=function(){this.target.remove()},T),ht=(j.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("border-color",e),"border-color:"+e;t[0].style.borderColor=""}return null},j.prototype.createTarget=function(t){t=["hline","vline","rect","oval"].includes(t.printElementType.type)?"颜色":"边框颜色";return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n '+t+'\n
\n
\n \n
\n
'),this.target},j.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},j.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},j.prototype.destroy=function(){this.target.remove()},j),mt=(Wi.prototype.createTarget=function(){this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
水印功能
'),this.content=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
水印内容:
'),this.fillStyle=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
字体颜色:
'),this.fontSize=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
字体大小:
'),this.rotate=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
旋转角度:
'),this.width=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
水平密度:
'),this.height=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
垂直密度:
'),this.timestamp=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
水印时间:
');let e='\n ';return["YYYY-MM-DD HH:mm:ss","YYYY-MM-DD HH:mm","YYYY-MM-DD HH","YYYY-MM-DD","YYYY-MMMM","YYYY-MM","YYYY"].forEach(function(t){e+='\n "}),this.format=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
时间格式:
'),this.format.find(".auto-submit").append(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e)),this.target.append(this.content),this.target.append(this.fillStyle),this.target.append(this.fontSize),this.target.append(this.rotate),this.target.append(this.width),this.target.append(this.height),this.target.append(this.timestamp),this.target.append(this.format),this.target},Wi.prototype.getValue=function(){var t={content:this.content.find("input").val(),fillStyle:this.fillStyle.find("input").val()||"rgba(184, 184, 184, 0.3)",fontSize:parseInt(this.fontSize.find("input").val()||"14")+"px",rotate:parseInt(this.rotate.find("input").val()||"25"),width:parseInt(this.width.find("input").val()||"200"),height:parseInt(this.height.find("input").val()||"200"),timestamp:this.timestamp.find("input").is(":checked"),format:""==this.format.find("select").val()?"YYYY-MM-DD HH:mm":this.format.find("select").val()};return Object.assign({},this.options,t)},Wi.prototype.setValue=function(t){this.options=t,this.content.find("input").val(t.content||""),this.fillStyle.find("input").val(t.fillStyle||"rgba(184, 184, 184, 0.3)"),this.fillStyle.find("input").minicolors({format:"rgb",opacity:!0,theme:"bootstrap"});var e=parseInt(t.fontSize||"14");this.fontSize.find("input").val(e),this.rotate.find("input").val(t.rotate||25),this.width.find("input").val(t.width||200),this.height.find("input").val(t.height||200),this.timestamp.find("input").attr("checked",null!=t.timestamp&&t.timestamp),this.format.find("select").val(t.format||"YYYY-MM-DD HH:mm")},Wi.prototype.destroy=function(){this.target.remove()},Wi),bt=(Ui.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 页码格式\n
\n
\n \n
\n
'),this.target},Ui.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},Ui.prototype.setValue=function(t){this.target.find("input").val(t)},Ui.prototype.destroy=function(){this.target.remove()},Ui),ft=(Ni.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 显示页码\n
\n
\n \n
\n
'),this.target},Ni.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},Ni.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},Ni.prototype.destroy=function(){this.target.remove()},Ni),Mt=(Bi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 页码续排\n
\n
\n \n
\n
'),this.target},Bi.prototype.getValue=function(){return"true"==this.target.find("select").val()},Bi.prototype.setValue=function(t){this.target.find("select").val((null==t||t?"true":"reset").toString())},Bi.prototype.destroy=function(){this.target.remove()},Bi),yt=(v.prototype.css=function(t,e){return null},v.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 每行缩进\n
\n
\n \n
\n
'),this.target},v.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},v.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},v.prototype.destroy=function(){this.target.remove()},v),Pt=(P.prototype.css=function(t,e){if(t&&t.length){if(e&&"none"==e)return t.addClass("alwaysHide");t.removeClass("alwaysHide")}return null},P.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 显示规则\n
\n
\n \n
\n
'),this.target},P.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},P.prototype.setValue=function(t){this.target.find("select").val(t)},P.prototype.destroy=function(){this.target.remove()},P),vt=(y.prototype.css=function(t,e){if(t&&t.length){if(e&&"none"==e)return t.addClass("alwaysHide");t.removeClass("alwaysHide")}return null},y.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 强制分页\n
\n
\n \n
\n
'),this.target},y.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},y.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},y.prototype.destroy=function(){this.target.remove()},y),jt=(Hi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 打印规则\n
\n
\n \n
\n
'),this.target},Hi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Hi.prototype.setValue=function(t){this.target.find("select").val(t)},Hi.prototype.destroy=function(){this.target.remove()},Hi),Tt=(Ai.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 分页规则\n
\n
\n \n
\n
'),this.target},Ai.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Ai.prototype.setValue=function(t){this.target.find("select").val(t)},Ai.prototype.destroy=function(){this.target.remove()},Ai),xt=(Di.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 移除段落左侧空白\n
\n
\n \n
\n
'),this.target},Di.prototype.getValue=function(){if("false"==this.target.find("select").val())return!1},Di.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},Di.prototype.destroy=function(){this.target.remove()},Di),Et=(Ci.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 首页页尾\n
\n
\n \n
\n
'),this.target},Ci.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},Ci.prototype.setValue=function(t){this.target.find("input").val(t)},Ci.prototype.destroy=function(){this.target.remove()},Ci),wt=(Si.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 尾页页尾\n
\n
\n \n
\n
'),this.target},Si.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},Si.prototype.setValue=function(t){this.target.find("input").val(t)},Si.prototype.destroy=function(){this.target.remove()},Si),_t=(_i.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 偶数页页尾\n
\n
\n \n
\n
'),this.target},_i.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},_i.prototype.setValue=function(t){this.target.find("input").val(t)},_i.prototype.destroy=function(){this.target.remove()},_i),St=(wi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 奇数页页尾\n
\n
\n \n
\n
'),this.target},wi.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},wi.prototype.setValue=function(t){this.target.find("input").val(t)},wi.prototype.destroy=function(){this.target.remove()},wi),Ct=(Ei.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 位置固定\n
\n
\n \n
\n
'),this.target},Ei.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},Ei.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},Ei.prototype.destroy=function(){this.target.remove()},Ei),Dt=(xi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 拖动方向\n
\n
\n \n
\n
'),this.target},xi.prototype.getValue=function(){return this.target.find("select").val()||void 0},xi.prototype.setValue=function(t){this.target.find("select").val(t)},xi.prototype.destroy=function(){this.target.remove()},xi),At=(Ti.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 左偏移\n
\n
\n \n
\n
'),this.target},Ti.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},Ti.prototype.setValue=function(t){this.target.find("input").val(t)},Ti.prototype.destroy=function(){this.target.remove()},Ti),Ht=(ji.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 最低高度\n
\n
\n \n
\n
'),this.target},ji.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},ji.prototype.setValue=function(t){this.target.find("input").val(t)},ji.prototype.destroy=function(){this.target.remove()},ji),Bt=(vi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 隐藏规则\n
\n
\n \n
\n
'),this.target},vi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},vi.prototype.setValue=function(t){this.target.find("select").val(t)},vi.prototype.destroy=function(){this.target.remove()},vi),Nt=(M.prototype.css=function(t,e){if(t.find("tbody tr").length){if("border"==e||null==e)return t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-all");"noBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-none"):"leftBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-left"):"rightBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-right"):"leftRightBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-lr"):"topBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-top"):"bottomBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-bottom"):"topBottomBorder"==e?t.find("tbody tr").addClass("hiprint-printElement-tableTarget-border-tb"):t.find("tbody tr").removeClass()}return null},M.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 表体行边框\n
\n
\n \n
\n
'),this.target},M.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},M.prototype.setValue=function(t){this.target.find("select").val(t)},M.prototype.destroy=function(){this.target.remove()},M),Ut=(f.prototype.css=function(t,e){if(t&&t.length){var i=t.find(".hiprint-printElement-content").parent(".hiprint-printElement");if(i.length||(i=t),e)return i.css("transform","rotate("+e+"deg)"),i.css("-ms-transform","rotate("+e+"deg)"),i.css("-moz-transform","rotate("+e+"deg)"),i.css("-webkit-transform","rotate("+e+"deg)"),i.css("-o-transform","rotate("+e+"deg)"),"transform:rotate("+e+"deg)";i.length&&(i[0].style.transform="")}return null},f.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 旋转角度\n
\n
\n \n
\n
'),this.target},f.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},f.prototype.setValue=function(t){this.target.find("input").val(t)},f.prototype.destroy=function(){this.target.remove()},f),Wt=(b.prototype.css=function(t,e){return t&&t.length&&e?t.css("z-index",e):null},b.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 元素层级\n
\n
\n \n
\n
'),this.target},b.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseInt(t.toString())},b.prototype.setValue=function(t){this.target.find("input").val(t)},b.prototype.destroy=function(){this.target.remove()},b),Lt=(Pi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 边框设置\n
\n \n
'),this.target},Pi.prototype.getValue=function(){},Pi.prototype.setValue=function(t){},Pi.prototype.destroy=function(){this.target.remove()},Pi),zt=(m.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("border-top-style",e),"border-top:1px";t[0].style.borderTopStyle="",t[0].style.borderTopWidth=""}return null},m.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 上边框\n
\n
\n \n
\n
'),this.target},m.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},m.prototype.setValue=function(t){this.target.find("select").val(t)},m.prototype.destroy=function(){this.target.remove()},m),Zt=(h.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("border-left-style",e),"border-left:1px";t[0].style.borderLeftStyle="",t[0].style.borderLeftWidth=""}return null},h.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 左边框\n
\n
\n \n
\n
'),this.target},h.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},h.prototype.setValue=function(t){this.target.find("select").val(t)},h.prototype.destroy=function(){this.target.remove()},h),Gt=(g.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("border-right-style",e),"border-right:1px";t[0].style.borderRightStyle="",t[0].style.borderRightWidth=""}return null},g.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 右边框\n
\n
\n \n
\n
'),this.target},g.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},g.prototype.setValue=function(t){this.target.find("select").val(t)},g.prototype.destroy=function(){this.target.remove()},g),Ot=(d.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("border-bottom-style",e),"border-bottom-style:1px solid";t[0].style.borderBottomStyle="",t[0].style.borderBottomWidth=""}return null},d.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 下边框\n
\n
\n \n
\n
'),this.target},d.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},d.prototype.setValue=function(t){this.target.find("select").val(t)},d.prototype.destroy=function(){this.target.remove()},d),Rt=(u.prototype.css=function(t,e){t=t.find(".hiprint-printElement-content");if(t&&t.length){if(e)return t.css("padding-left",e+"pt"),"padding-left";t[0].style.paddingLeft=""}return null},u.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 左内边距\n
\n
\n \n
\n
'),this.target},u.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},u.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},u.prototype.destroy=function(){this.target.remove()},u),kt=(c.prototype.css=function(t,e){t=t.find(".hiprint-printElement-content");if(t&&t.length){if(e)return t.css("padding-top",e+"pt"),"padding-top";t[0].style.paddingTop=""}return null},c.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 上内边距\n
\n
\n \n
\n
'),this.target},c.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},c.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},c.prototype.destroy=function(){this.target.remove()},c),Yt=(I.prototype.css=function(t,e){t=t.find(".hiprint-printElement-content");if(t&&t.length){if(e)return t.css("padding-right",e+"pt"),"padding-right";t[0].style.paddingRight=""}return null},I.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 右内边距\n
\n
\n \n
\n
'),this.target},I.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},I.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},I.prototype.destroy=function(){this.target.remove()},I),Jt=(p.prototype.css=function(t,e){t=t.find(".hiprint-printElement-content");if(t&&t.length){if(e)return t.css("padding-bottom",e+"pt"),"padding-bottom";t[0].style.paddingBottom=""}return null},p.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 下内边距\n
\n
\n \n
\n
'),this.target},p.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},p.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},p.prototype.destroy=function(){this.target.remove()},p),Ft=(s.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("border-style",e),"border-style:1px";t[0].style.borderStyle=""}return null},s.prototype.createTarget=function(t){t=["hline","vline","rect","oval"].includes(t.printElementType.type)?"样式":"边框样式";return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n '+t+'\n
\n
\n \n
\n
'),this.target},s.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},s.prototype.setValue=function(t){this.target.find("select").val(t)},s.prototype.destroy=function(){this.target.remove()},s),Vt=(l.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("background-color",e),"background-color:"+e;t[0].style.backgroundColor=""}return null},l.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 背景颜色\n
\n
\n \n
\n
'),this.target},l.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},l.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},l.prototype.destroy=function(){this.target.remove()},l),Kt=(yi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 纸张方向(仅自定义纸质有效)\n
\n
\n \n
\n
'),this.target},yi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},yi.prototype.setValue=function(t){this.target.find("select").val(t)},yi.prototype.destroy=function(){this.target.remove()},yi),Xt=(a.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 上下对齐\n
\n
\n \n
\n
'),this.target},a.prototype.css=function(t,e){return t&&t.length&&(t.removeClass("hiprint-text-content-middle"),t.removeClass("hiprint-text-content-bottom"),e)?("middle"===e&&t.addClass("hiprint-text-content-middle"),"bottom"===e&&t.addClass("hiprint-text-content-bottom"),""):null},a.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},a.prototype.setValue=function(t){this.target.find("select").val(t)},a.prototype.destroy=function(){this.target.remove()},a),Qt=(r.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n 文本换行\n
\n
\n \n
\n
'),this.target},r.prototype.css=function(t,e){return t&&t.length&&(t.removeClass("hiprint-text-content-wrap"),t.find(".hiprint-printElement-text-content").removeClass("hiprint-text-content-wrap-nowrap"),t.find(".hiprint-printElement-text-content").removeClass("hiprint-text-content-wrap-clip"),t.find(".hiprint-printElement-text-content").removeClass("hiprint-text-content-wrap-ellipsis"),e)?(t.addClass("hiprint-text-content-wrap"),t.find(".hiprint-printElement-text-content").addClass("hiprint-text-content-wrap-"+e),""):null},r.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},r.prototype.setValue=function(t){this.target.find("select").val(t)},r.prototype.destroy=function(){this.target.remove()},r),qt=L(5),$t=(o.prototype.createTarget=function(){return jquery__WEBPACK_IMPORTED_MODULE_0___default()('
').appendTo("body"),this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
\n
\n
\n
\n
'),this.target},o.prototype.getValue=function(){return this.buildData()},o.prototype.setValue=function(t,e,i){var n=this,o=this,e=(this.value=t,this.options=e,(this.printElementType=i).columns[0].filter(function(e){return 0==t[0].columns.filter(function(t){return e.columnId==t.columnId}).length}).map(function(t){t=new qt.a(t);return t.checked=!1,t}));this.allColumns=t[0].columns.concat(e),t&&1==t.length&&(this.target.find("ul").html(this.allColumns.map(function(t,e){return'
  • \n '+(t.checked?'':'')+'\n
    \n \n
    \n
    '+(t.title||t.descTitle||"")+"
  • "}).join("")),this.target.find("input").change(function(t){var e=t.target.checked,i=t.target.attributes["column-id"].nodeValue||"",t=n.allColumns.findIndex(function(t){return t.field==i||t.id==i});0<=t&&(n.allColumns[t].checked=e),n.submit()}),this.printElementType.columnDisplayIndexEditable&&this.target.find("li").hidraggable({revert:!0,handle:".column-title",moveUnit:"pt",deltaX:0,deltaY:0}).hidroppable({onDragOver:function(t,e){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).css("border-top-color","red")},onDragLeave:function(t,e){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).css("border-top-color","")},onDrop:function(t,e){jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).insertBefore(this),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).css("border-top-color",""),o.submit()}}))},o.prototype.buildData=function(){var n=this,o=[];return 1\n
    \n 打印类型\n
    \n
    \n \n
    \n '),this.target},Mi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},Mi.prototype.setValue=function(t){this.target.find("select").val(t)},Mi.prototype.destroy=function(){this.target.remove()},Mi),ee=(fi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 字段类型\n
    \n
    \n \n
    \n
    '),this.target},fi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},fi.prototype.setValue=function(t){this.target.find("select").val(t)},fi.prototype.destroy=function(){this.target.remove()},fi),ie=(bi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 条形码格式\n
    \n
    \n \n
    \n
    '),this.target},bi.prototype.getValue=function(){return this.target.find("select").val()||void 0},bi.prototype.setValue=function(t){this.target.find("select").val(t)},bi.prototype.destroy=function(){this.target.remove()},bi),ne=(mi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 二维码容错率\n
    \n
    \n \n
    \n
    '),this.target},mi.prototype.getValue=function(){var t=this.target.find("select").val();return parseInt(t||0)},mi.prototype.setValue=function(t){this.target.find("select").val(t)},mi.prototype.destroy=function(){this.target.remove()},mi),oe=(hi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 单元格高度\n
    \n
    \n \n
    \n
    '),this.target},hi.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},hi.prototype.setValue=function(t){this.target.find("input").val(t)},hi.prototype.destroy=function(){this.target.remove()},hi),re=(gi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    底部聚合标题
    '),this.target},gi.prototype.getValue=function(){return!("false"==this.target.find("select").val())},gi.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},gi.prototype.destroy=function(){this.target.remove()},gi),ae=(di.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 底部聚合文本\n
    \n
    \n \n
    \n
    '),this.target},di.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},di.prototype.setValue=function(t){this.target.find("input").val(t)},di.prototype.destroy=function(){this.target.remove()},di),le=(ui.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 底部聚合合并列数\n
    \n
    \n \n
    \n
    '),this.target},ui.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},ui.prototype.setValue=function(t){this.target.find("input").val(t)},ui.prototype.destroy=function(){this.target.remove()},ui),se=(ci.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 底部聚合类型左右对齐\n
    \n
    \n \n
    \n
    '),this.target},ci.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},ci.prototype.setValue=function(t){this.target.find("select").val(t)},ci.prototype.destroy=function(){this.target.remove()},ci),pe=(Ii.prototype.createTarget=function(){var e=[{t:"整数",v:"0"}],i=([1,2,3,4,5,6].forEach(function(t){e.push({t:"保留"+t+"位",v:""+t})}),'\n ');return e.forEach(function(t){i+='\n "}),this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 底部聚合小数\n
    \n
    \n \n
    \n
    '),this.target.find(".auto-submit").append(jquery__WEBPACK_IMPORTED_MODULE_0___default()(i)),this.target},Ii.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Ii.prototype.setValue=function(t){this.target.find("select").val(t)},Ii.prototype.destroy=function(){this.target.remove()},Ii),Ie=(pi.prototype.createTarget=function(){var e='\n';return[{t:"「小写」十点八",v:"0"},{t:"「小写」一十点八",v:"1"},{t:"「大写」拾点捌",v:"2"},{t:"「大写」壹拾点捌",v:"3"},{t:"「金额」人民币拾元捌角",v:"4"},{t:"「金额」人民币壹拾元捌角",v:"5"},{t:"「金额」人民币壹拾元捌角零分",v:"6"},{t:"「金额」壹拾元捌角零分",v:"7"}].forEach(t=>{e+=` `}),this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n转大小写\n
    \n
    \n\n
    \n
    '),this.target.find(".auto-submit").append(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e)),this.target},pi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},pi.prototype.setValue=function(t){this.target.find("select").val(t)},pi.prototype.destroy=function(){this.target.remove()},pi),ce=(si.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    底部聚合类型
    '),this.target},si.prototype.getValue=function(){return this.target.find("select").val()},si.prototype.setValue=function(t){this.target.find("select").val(t)},si.prototype.destroy=function(){this.target.remove()},si),ue=(li.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 顶部偏移\n
    \n
    \n \n
    \n
    '),this.target},li.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},li.prototype.setValue=function(t){this.target.find("input").val(t)},li.prototype.destroy=function(){this.target.remove()},li),de=(ai.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 一行多组\n
    \n
    \n \n
    \n
    '),this.target},ai.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},ai.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},ai.prototype.destroy=function(){this.target.remove()},ai),ge=(n.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 一行多组间隔\n
    \n
    \n \n
    \n
    '),this.target},n.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},n.prototype.css=function(t,e){if(t&&t.length){if(e)return t.find(".table-grid-row").css("margin-left","-"+e+"pt").css("margin-right","-"+e+"pt"),t.find(".tableGridColumnsGutterRow").css("padding-left",e+"pt").css("padding-right",e+"pt"),null;t.find(".table-grid-row").map(function(t,e){e.style.marginLeft="",e.style.marginRight=""}),t.find(".tableGridColumnsGutterRow").map(function(t,e){e.style.paddingLeft="",e.style.paddingRight=""})}return null},n.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},n.prototype.destroy=function(){this.target.remove()},n),he=(ri.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 表格头显示\n
    \n
    \n \n
    \n
    '),this.target},ri.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},ri.prototype.setValue=function(t){this.target.find("select").val(t)},ri.prototype.destroy=function(){this.target.remove()},ri),me=(i.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("padding-left",e+"pt"),"padding-left";t[0].style.paddingLeft=""}return null},i.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 左内边距\n
    \n
    \n \n
    \n
    '),this.target},i.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},i.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},i.prototype.destroy=function(){this.target.remove()},i),be=(e.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("padding-right",e+"pt"),"padding-right";t[0].style.paddingRight=""}return null},e.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 右内边距\n
    \n
    \n \n
    \n
    '),this.target},e.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},e.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('"),this.target.find("select").val(t)},e.prototype.destroy=function(){this.target.remove()},e),fe=(t.prototype.createTarget=function(){var e=this;return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('\n
    \n
    \n
    \n 数据类型\n
    \n
    \n \n
    \n
    \n
    \n
    \n 格式\n
    \n
    \n \n \n
    \n
    \n
    \n '),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.target.find(".hiprint-option-item-datatype")).change(function(){var t=jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target.find(".hiprint-option-item-datatype")).val();e.loadFormatSelectByDataType(t),e.submit(e.getValue())}),this.target},t.prototype.getValue=function(){var t=this.target.find(".hiprint-option-item-datatype").val();return t?{dataType:t,format:this.target.find(".hiprint-option-item-datatype-format").val()||void 0}:{dataType:void 0,format:void 0}},t.prototype.setValue=function(t,e){this.target.find(".hiprint-option-item-datatype").val(e.dataType||""),this.loadFormatSelectByDataType(e.dataType),this.target.find(".hiprint-option-item-datatype-format").val(e.format||"")},t.prototype.destroy=function(){this.target.remove()},t.prototype.loadFormatSelectByDataType=function(t){"boolean"===t?(this.target.find(".hiprint-option-item-datatype-select-format").removeClass("hiprint-option-item-datatype-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-input-format").addClass("hiprint-option-item-datatype-format").show()):"datetime"===t?(this.target.find(".hiprint-option-item-datatype-select-format").addClass("hiprint-option-item-datatype-format").show(),this.target.find(".hiprint-option-item-datatype-input-format").removeClass("hiprint-option-item-datatype-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-select-format").html('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')):(this.target.find(".hiprint-option-item-datatype-select-format").show(),this.target.find(".hiprint-option-item-datatype-input-format").hide().val(""),this.target.find(".hiprint-option-item-datatype-format").html('\n \n '))},t),Me=(oi.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 格式化函数\n
    \n
    \n \n
    \n
    '),this.target},oi.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},oi.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},oi.prototype.destroy=function(){this.target.remove()},oi),ye=(ni.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 样式函数\n
    \n
    \n \n
    \n
    '),this.target},ni.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},ni.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},ni.prototype.destroy=function(){this.target.remove()},ni),Pe=(ii.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 行/列合并函数\n
    \n
    \n \n
    \n
    '),this.target},ii.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},ii.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},ii.prototype.destroy=function(){this.target.remove()},ii),ve=(ei.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 跨页合并是否清除\n
    \n
    \n \n
    \n
    '),this.target},ei.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},ei.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},ei.prototype.destroy=function(){this.target.remove()},ei),je=(ti.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 表格脚函数\n
    \n
    \n \n
    \n
    '),this.target},ti.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},ti.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},ti.prototype.destroy=function(){this.target.remove()},ti),Te=($e.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 分组字段函数\n
    \n
    \n \n
    \n
    '),this.target},$e.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},$e.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},$e.prototype.destroy=function(){this.target.remove()},$e),xe=(qe.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 分组头格式化函数\n
    \n
    \n \n
    \n
    '),this.target},qe.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},qe.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},qe.prototype.destroy=function(){this.target.remove()},qe),Ee=(Qe.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 分组脚格式化函数\n
    \n
    \n \n
    \n
    '),this.target},Qe.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},Qe.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},Qe.prototype.destroy=function(){this.target.remove()},Qe),we=(Xe.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 多组表格脚函数\n
    \n
    \n \n
    \n
    '),this.target},Xe.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},Xe.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},Xe.prototype.destroy=function(){this.target.remove()},Xe),_e=(Ke.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 行样式函数\n
    \n
    \n \n
    \n
    '),this.target},Ke.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},Ke.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},Ke.prototype.destroy=function(){this.target.remove()},Ke),Se=(Ve.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 单元格左右对齐\n
    \n
    \n \n
    \n
    '),this.target},Ve.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Ve.prototype.setValue=function(t){this.target.find("select").val(t)},Ve.prototype.destroy=function(){this.target.remove()},Ve),Ce=(Fe.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 单元格上下对齐\n
    \n
    \n \n
    \n
    '),this.target},Fe.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Fe.prototype.setValue=function(t){this.target.find("select").val(t)},Fe.prototype.destroy=function(){this.target.remove()},Fe),De=(Je.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 表格头单元格左右对齐\n
    \n
    \n \n
    \n
    '),this.target},Je.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},Je.prototype.setValue=function(t){this.target.find("select").val(t)},Je.prototype.destroy=function(){this.target.remove()},Je),Ae=(Ye.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 单元格样式函数\n
    \n
    \n \n
    \n
    '),this.target},Ye.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},Ye.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},Ye.prototype.destroy=function(){this.target.remove()},Ye),He=(ke.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 表格头样式函数\n
    \n
    \n \n
    \n
    '),this.target},ke.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},ke.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},ke.prototype.destroy=function(){this.target.remove()},ke),Be=(Re.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 单元格格式化函数\n
    \n
    \n \n
    \n
    '),this.target},Re.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},Re.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},Re.prototype.destroy=function(){this.target.remove()},Re),Ne=(Oe.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 单元格渲染函数\n
    \n
    \n \n
    \n
    '),this.target},Oe.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},Oe.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},Oe.prototype.destroy=function(){this.target.remove()},Oe),Ue=(Ge.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 自动补全\n
    \n
    \n \n
    \n
    '),this.target},Ge.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},Ge.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},Ge.prototype.destroy=function(){this.target.remove()},Ge),We=(Ze.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 每页最大行数\n
    \n
    \n \n
    \n
    '),this.target},Ze.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseInt(t.toString())},Ze.prototype.setValue=function(t){this.target.find("input").val(t)},Ze.prototype.destroy=function(){this.target.remove()},Ze),Le=(ze.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    \n
    \n 表格脚显示\n
    \n
    \n \n
    \n
    '),this.target},ze.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},ze.prototype.setValue=function(t){this.target.find("select").val(t)},ze.prototype.destroy=function(){this.target.remove()},ze);function ze(){this.name="tableFooterRepeat"}function Ze(){this.name="maxRows"}function Ge(){this.name="autoCompletion"}function Oe(){this.name="renderFormatter"}function Re(){this.name="formatter2"}function ke(){this.name="stylerHeader"}function Ye(){this.name="styler2"}function Je(){this.name="halign"}function Fe(){this.name="vAlign"}function Ve(){this.name="align"}function Ke(){this.name="rowStyler"}function Xe(){this.name="gridColumnsFooterFormatter"}function Qe(){this.name="groupFooterFormatter"}function qe(){this.name="groupFormatter"}function $e(){this.name="groupFieldsFormatter"}function ti(){this.name="footerFormatter"}function ei(){this.name="rowsColumnsMergeClean"}function ii(){this.name="rowsColumnsMerge"}function ni(){this.name="styler"}function oi(){this.name="formatter"}function t(){this.name="dataType"}function e(){this.name="paddingRight"}function i(){this.name="paddingLeft"}function ri(){this.name="tableHeaderRepeat"}function n(){this.name="gridColumnsGutter"}function ai(){this.name="gridColumns"}function li(){this.name="topOffset"}function si(){this.name="tableSummary"}function pi(){this.name="upperCase"}function Ii(){this.name="tableSummaryNumFormat"}function ci(){this.name="tableSummaryAlign"}function ui(){this.name="tableSummaryColspan"}function di(){this.name="tableSummaryText"}function gi(){this.name="tableSummaryTitle"}function hi(){this.name="tableColumnHeight"}function mi(){this.name="tableQRCodeLevel"}function bi(){this.name="tableBarcodeMode"}function fi(){this.name="tableTextType"}function Mi(){this.name="textType"}function o(){this.name="columns"}function r(){this.name="textContentWrap"}function a(){this.name="textContentVerticalAlign"}function yi(){this.name="orient"}function l(){this.name="backgroundColor"}function s(){this.name="borderStyle"}function p(){this.name="contentPaddingBottom"}function I(){this.name="contentPaddingRight"}function c(){this.name="contentPaddingTop"}function u(){this.name="contentPaddingLeft"}function d(){this.name="borderBottom"}function g(){this.name="borderRight"}function h(){this.name="borderLeft"}function m(){this.name="borderTop"}function Pi(){this.name="optionsGroup"}function b(){this.name="zIndex"}function f(){this.name="transform"}function M(){this.name="tableBodyRowBorder"}function vi(){this.name="unShowInPage"}function ji(){this.name="lHeight"}function Ti(){this.name="leftOffset"}function xi(){this.name="axis"}function Ei(){this.name="fixed"}function wi(){this.name="oddPaperFooter"}function _i(){this.name="evenPaperFooter"}function Si(){this.name="lastPaperFooter"}function Ci(){this.name="firstPaperFooter"}function Di(){this.name="leftSpaceRemoved"}function Ai(){this.name="panelPageRule"}function Hi(){this.name="panelPaperRule"}function y(){this.name="pageBreak"}function P(){this.name="showInPage"}function v(){this.name="longTextIndent"}function Bi(){this.name="paperNumberContinue"}function Ni(){this.name="paperNumberDisabled"}function Ui(){this.name="paperNumberFormat"}function Wi(){this.name="watermarkOptions"}function j(){this.name="borderColor"}function T(){this.name="fit"}function x(){this.name="src"}function E(){this.name="widthHeight"}function w(){this.name="coordinate"}function Li(){this.name="testData"}function zi(){this.name="title"}function Zi(){this.name="field"}function _(){this.name="textDecoration"}function S(){this.name="color"}function Gi(){this.name="qrCodeLevel"}function Oi(){this.name="barcodeMode"}function C(){this.name="borderWidth"}function D(){this.name="tableHeaderBackground"}function A(){this.name="tableBodyRowHeight"}function H(){this.name="tableBodyCellBorder"}function B(){this.name="tableHeaderFontWeight"}function Ri(){this.name="tableHeaderFontSize"}function ki(){this.name="tableHeaderRowHeight"}function Yi(){this.name="tableFooterCellBorder"}function Ji(){this.name="tableFooterBorder"}function Fi(){this.name="tableHeaderCellBorder"}function Vi(){this.name="tableHeaderBorder"}function Ki(){this.name="tableBorder"}function Xi(){this.name="hideTitle"}function Qi(){this.name="textAlign"}function qi(){this.name="letterSpacing"}function $i(){this.name="fontWeight"}function tn(){this.name="fontSize"}function en(){this.name="fontFamily"}function nn(){this.name="lineHeight"}L.d(W,"a",function(){return on});N.init=function(){N.printElementOptionItems||(N.printElementOptionItems={},N._printElementOptionItems.forEach(function(t){N.printElementOptionItems[t.name]=t}))},N.registerItem=function(t){if(!t.name)throw new Error("styleItem must have name");N.init(),N.printElementOptionItems[t.name]=t},N.getItem=function(t){return N.init(),N.printElementOptionItems[t]},N._printElementOptionItems=[new Z,new G,new O,new R,new z,new k,new Y,new te,new J,new F,new V,new Q,new q,new $,new tt,new K,new X,new et,new it,new nt,new ot,new rt,new at,new lt,new st,new pt,new It,new ct,new ut,new dt,new gt,new ht,new bt,new ft,new Mt,new mt,new yt,new Pt,new vt,new jt,new Tt,new xt,new Et,new wt,new _t,new St,new Ct,new Dt,new ue,new At,new Ht,new Bt,new Nt,new Ut,new Wt,new Lt,new zt,new Zt,new Gt,new Ot,new kt,new Rt,new Yt,new Jt,new Ft,new Vt,new Kt,new Xt,new Qt,new $t,new de,new ge,new he,new me,new be,new fe,new Me,new ye,new je,new Pe,new ve,new Te,new xe,new Ee,new we,new _e,new Se,new De,new Ce,new Ae,new He,new Ne,new Be,new Ue,new We,new Le,new oe,new ie,new ne,new ee,new re,new ae,new le,new ce,new se,new pe,new Ie];var on=N;function N(){}},function(t,e,i){i.d(e,"a",function(){return o}),i.d(e,"b",function(){return r});var n=i(14),o=(s.prototype.clear=function(){this.tableTatget.find("td").removeClass("selected")},s.prototype.setSingleSelect=function(t){this.startCell=t,this.selectedCells=[]},s.prototype.getSingleSelect=function(){if(this.selectedCells.length){if(1==this.selectedCells.length)return 1==this.selectedCells[0].length?this.selectedCells[0][0]:void 0;if(1"),this.tableOptions=t,this.allColumns=this.columns||[],this.initCells((this.columns||[]).filter(function(t){return t.checked}))},a.prototype.getTarget=function(){return this.target},a.prototype.initCells=function(t){var n=this;t?(this.columns=t).forEach(function(t,e){t.init(n.target.find("td:eq("+e+")"),n.tableOptions,n.id,n.isHead)}):(this.columns=[],this.target.find("td").map(function(t,e){var i=new o.a;i.init(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e),n.tableOptions,n.id,n.isHead),n.columns.push(i)}))},a.prototype.removeCell=function(t){t=this.columns.indexOf(t);this.columns[t].getTarget().remove(),this.columns.splice(t,1)},a.prototype.createTableCell=function(t,e){var i=new o.a;return i.init(jquery__WEBPACK_IMPORTED_MODULE_0___default()(""),this.tableOptions,this.id,this.isHead),1
    '),o=this.createGridColumnsStructure(i),r=0;r'),i=0;i');e.append(n)}var o,r=this.getGridColumnsFooterFormatter();return r&&((o=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    ')).append(r(this.options,this.getData(t),t,[])),e.append(o)),new _table_GridColumnsStructure__WEBPACK_IMPORTED_MODULE_8__.a(this.options.getGridColumns(),e)},TablePrintElement.prototype.createtempEmptyRowsTargetStructure=function(t){if(this.getField())return this.createTarget(this.printElementType.title,[]);var e=this.createTarget(this.printElementType.title,[]).clone();return e.find(".hiprint-printElement-tableTarget tbody tr").remove(),e},TablePrintElement.prototype.getTableHtml=function(t,e){var i;if(!this.getField()&&this.options.content)return(n=jquery__WEBPACK_IMPORTED_MODULE_0___default()("
    ")).append(this.options.content),(i=n.find("table")).addClass("hiprint-printElement-tableTarget"),i;if(this.printElementType.formatter)return(n=jquery__WEBPACK_IMPORTED_MODULE_0___default()("
    ")).append(this.printElementType.formatter(t)),(i=n.find("table")).addClass("hiprint-printElement-tableTarget"),i;var n=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    ');return n.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableHead(this.getColumns(),this.options.getWidth()/this.options.getGridColumns())),n.append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableRow(this.getColumns(),t,e,this.options,this.printElementType)),"no"!=this.options.tableFooterRepeat&&_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,t,this.options,this.printElementType,e,t).insertBefore(n.find("tbody")),n},TablePrintElement.prototype.getEmptyRowTarget=function(){return _table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createEmptyRowTarget(this.getColumns(),this)},TablePrintElement.prototype.getHtml=function(t,e){this.createTempContainer();t=this.getPaperHtmlResult(t,e);return this.removeTempContainer(),t},TablePrintElement.prototype.getPaperHtmlResult=function(t,e){var i=[],n=this.getData(e),o=this.getTableHtml(n,e),r=this.createtempEmptyRowsTargetStructure(e),a=(e?this.updateTargetWidth(r):this.updateTargetSize(r),this.css(r,n),this.css(o,n),this.getTempContainer().html(""),this.getTempContainer().append(r),r.find("tfoot").outerHeight()||0);r.find("tfoot").remove();for(var l,s=this.getBeginPrintTopInPaperByReferenceElement(t),p=0,I=!1;!I;){var c=0,u=t.getPaperFooter(p),d=(0==p&&u没有足够空间进行表格分页,请调整页眉/页脚线'),i[0].printLine=s,i[0].referenceElement=new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_4__.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:t.index,bottomInLastPaper:s+this.options.lHeight,printTopInPaper:s}),i[0].target.css("top",s+"pt"),i[0].target.css("left",this.options.displayLeft());break}d=void 0;u.target&&(u.target.css("left",this.options.displayLeft()),u.target[0].height=""),d=0==p||0this.options.lHeight?u.height:this.options.lHeight):s+u.height):(u.target&&(l=t.paperHeader,u.target.css("top",t.paperHeader+"pt")),t.paperHeader+u.height),i.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({target:u.target,printLine:d,referenceElement:new _PrintReferenceElement__WEBPACK_IMPORTED_MODULE_4__.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:t.index,bottomInLastPaper:d,printTopInPaper:l})})),p++,e&&this.updatePanelHeight(d+this.options.getHeight(),t)}return i},TablePrintElement.prototype.getRowsInSpecificHeight=function(t,e,i,n,o,r,a){var l,s=n.find("tbody"),p=_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.pt.toPx(e),I=(i.find(".hiprint-printElement-tableTarget tbody").html(""),"last"!=this.options.tableFooterRepeat&&i.find(".hiprint-printElement-tableTarget tfoot").remove(),"first"==this.options.tableHeaderRepeat&&0p||this.options.maxRows&&y.length>+this.options.maxRows)&&(s.prepend(m),d.pop(),y.pop(),c=f.outerHeight(),M={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(c),isEnd:!1}))),M){if("last"==this.options.tableFooterRepeat&&!M.isEnd)break;"no"!==this.options.tableFooterRepeat&&(I?f.find("tbody").append(_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,this.getData(t),this.options,this.printElementType,t,y).children()):_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableFooter(this.printElementType.columns,this.getData(t),this.options,this.printElementType,t,y).insertBefore(f.find("tbody")),this.css(f,t));break}var e=i.find(".hiprint-printElement-tableTarget tbody tr").length,n=this.getGridColumnsFooterFormatter();n&&i.find(this.gridColumnsFooterCss).html(n(this.options,this.getData(t),t,d)),c=i.outerHeight();let P=s.find("tr:lt(1)");return 0==e&&P.length&&b==P.data("rowData")?(f.find("tbody").append(P),n=f.find("tbody tr").outerHeight(),s.prepend(P),{target:jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    没有足够空间,显示下方内容, 可分页高度: '+p+"px < 当前需要高度: "+n+"px
    ").append(P.css("background","blue")),length:e,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(c),isEnd:!1}):0==s.find("tr").length?0==e&&r?{target:void 0,length:0,height:0,isEnd:!0}:{target:i.clone(),length:e,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(c),isEnd:!0}:{target:i.clone(),length:e,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(c),isEnd:!1}},TablePrintElement.prototype.fixMergeSpan=function(t,e){var i=this;let n=1,o=!1,r=1,a=!1;return t.nextAll().each(function(t){0this.options.maxRows)););n&&n.remove()},TablePrintElement.prototype.getData=function(i){if(!i)return[{}];var t=this.getField(),t=t&&t.split(".").reduce((t,e)=>t?t[e]:i?i[e]:"",!1)||"";return t?JSON.parse(JSON.stringify(t)):[]},TablePrintElement.prototype.onResize=function(t,e,i,n,o){_super.prototype.updateSizeAndPositionOptions.call(this,o,n,i,e),_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.resizeTableCellWidth(this.designTarget,this.getColumns(),this.options.getWidth())},TablePrintElement.prototype.getReizeableShowPoints=function(){return["s","e"]},TablePrintElement.prototype.design=function(t,r){var a=this;this.designTarget.hidraggable({handle:this.designTarget.find(".hiprint-printElement-table-handle"),axis:a.options.axis||void 0,designTarget:a,onDrag:function(t,e,i){a.updateSizeAndPositionOptions(e,i),a.createLineOfPosition(r),_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed=!0},moveUnit:"pt",minMove:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,onBeforeDrag:function(t){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!0,a.createLineOfPosition(r)},getScale:function(){return a.designPaper.scale||1},onStopDrag:function(t){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed&&_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_"+a.templateId,"移动"),_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed=!1,a.removeLineOfPosition()}}),this.printElementType.editable&&this.setHitable(),this.setColumnsOptions(),this.designTarget.hireizeable({showPoints:a.getReizeableShowPoints(),showSizeBox:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.showSizeBox,noContainer:!0,onBeforeResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!0},getScale:function(){return a.designPaper.scale||1},onResize:function(t,e,i,n,o){a.onResize(t,e,i,n,o),a.hitable&&a.hitable.updateColumnGrips(),a.createLineOfPosition(r)},onStopResize:function(t){_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_"+a.templateId,t?"旋转":"大小"),_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,a.removeLineOfPosition()}}),this.bingKeyboardMoveEvent(this.designTarget,r)},TablePrintElement.prototype.setHitable=function(){var t=this;this.hitable=new _hitable_HiTale__WEBPACK_IMPORTED_MODULE_7__.a({templateId:t.templateId,table:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)"),rows:this.getColumns(),resizeRow:!1,resizeColumn:!0,fields:this.options.fields,trs:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("tbody tr"),handle:this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead"),isEnableEdit:this.printElementType.editable||!0,columnDisplayEditable:null==this.printElementType.columnDisplayEditable||this.printElementType.columnDisplayEditable,columnDisplayIndexEditable:null==this.printElementType.columnDisplayIndexEditable||this.printElementType.columnDisplayIndexEditable,columnResizable:null==this.printElementType.columnResizable||this.printElementType.columnResizable,columnAlignEditable:null==this.printElementType.columnAlignEditable||this.printElementType.columnAlignEditable,isEnableEditText:null==this.printElementType.columnTitleEditable||this.printElementType.columnTitleEditable,isEnableEditField:null==this.printElementType.isEnableEditField||this.printElementType.isEnableEditField,isEnableContextMenu:null==this.printElementType.isEnableContextMenu||this.printElementType.isEnableContextMenu,isEnableInsertRow:null==this.printElementType.isEnableInsertRow||this.printElementType.isEnableInsertRow,isEnableDeleteRow:null==this.printElementType.isEnableDeleteRow||this.printElementType.isEnableDeleteRow,isEnableInsertColumn:null==this.printElementType.isEnableInsertColumn||this.printElementType.isEnableInsertColumn,isEnableDeleteColumn:null==this.printElementType.isEnableDeleteColumn||this.printElementType.isEnableDeleteColumn,isEnableMergeCell:null==this.printElementType.isEnableMergeCell||this.printElementType.isEnableMergeCell}),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.on("updateTable"+this.hitable.id,function(){t.updateDesignViewFromOptions(),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_"+t.templateId,"调整表头")})},TablePrintElement.prototype.setColumnsOptions=function(){var i=this;this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead td").bind("click.hiprint",function(t){var e,t=jquery__WEBPACK_IMPORTED_MODULE_0___default()(t.target).attr("id")||jquery__WEBPACK_IMPORTED_MODULE_0___default()(t.target).attr("column-id"),n=i.getColumnByColumnId(t);n?(e=i.getPrintElementOptionItemsByName("tableColumn"),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(i.getPrintElementSelectEventKey(),{printElement:i,customOptionsInput:[{title:(n.title||n.id+"(id)")+"-列属性",optionItems:e,options:n,callback:function(t){e.forEach(function(t){var e,i=t.getValue();if("title"==t.name&&i&&!i.trim().endsWith("#")&&!i.trim().startsWith("#"))return e=i?i.split("#"):"",n.title=e[0],1');l.width(this.target.width()),this.rows.forEach(function(t){(t.columns||[]).filter(function(t){return t.checked}).forEach(function(t,e){var i,n;t.getTarget().attr("haswidth")&&(i=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    '),l.append(i),n=new u(i),0');this.rows.forEach(function(t,i){var e=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
    '),n=(l.append(e),new u(e));a.push(n),0"),t.v.css("height",o+"pt"),t.v.css("left",t[i]+"pt"),r.append(t.v)):t.v&&t.v.remove()}function g(t){t&&t.v&&t.v.remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".verLine").remove()}function h(t,e,i,n,o,r){Math.abs(t[i]-e[n])<=HIPRINT_CONFIG.adsorbLineMin?t.h.length?t.h.css("top",t[i]+"pt"):(t.h=jquery__WEBPACK_IMPORTED_MODULE_0___default()("
    "),t.h.css("width",o+"pt"),t.h.css("top",t[i]+"pt"),r.append(t.h)):t.h&&t.h.remove()}function m(t){t&&t.h&&t.h.remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".horLine").remove()}function p(i){var e=b.data(i.data.target,"hidraggable");if(c(i),!i.ctrlKey&&!i.metaKey&&(i.data.target.className.startsWith("resize-panel")||"2"==i.data.target.style.zIndex||i.data.target.className.startsWith("hiprint-printElement"))){var t=i.data;if(0==b(".mouseRect").length&&e.options.designTarget&&e.options.designTarget.panel.printElements.filter(function(t){return"block"==t.designTarget.children().last().css("display")&&!t.printElementType.type.includes("table")}).length<=1){var n=window.hinnn.px.toPt(t.left),o=window.hinnn.px.toPt(t.top);let u=e.options.designTarget.options;u.left=n,u.top=o,u.right=n+u.width,u.bottom=o+u.height,u.vCenter=n+u.width/2,u.hCenter=o+u.height/2;{let i=e.options.designTarget.panel.printElements.filter(t=>t.id!=e.options.designTarget.id).map(t=>{var{left:e,top:i,width:n,height:o}=t.options,r=e+n,a=e+n/2,l=i+o/2,s=u.left+u.width/2,p=u.top+u.height/2,I=u.left+u.width,c=Math.sqrt(Math.pow(e-u.left,2)+Math.pow(l-p,2)),s=Math.sqrt(Math.pow(a-s,2)+Math.pow(l-p,2)),r=Math.sqrt(Math.pow(r-I,2)+Math.pow(l-p,2)),I=Math.min(c,s,r);return{...t.options,distance:I,h:jquery__WEBPACK_IMPORTED_MODULE_0___default()(".horLine.id-"+t.id),v:jquery__WEBPACK_IMPORTED_MODULE_0___default()(".verLine.id-"+t.id),bottom:i+o,right:e+n,vCenter:a,hCenter:l}}).sort((t,e)=>t.distance-e.distance).slice(0,1),t=e.options.designTarget.designPaper,n=t.target.find(".hiprint-printPaper-content"),o=t.width,r=t.height,a=HIPRINT_CONFIG.showAdsorbLine,l=HIPRINT_CONFIG.adsorbMin,s=HIPRINT_CONFIG.adsorbLineMin;i.forEach((t,e)=>{Math.abs(i[e].left-u.left)<=l?(u.left=i[e].left,g(i[e])):Math.abs(i[e].vCenter-u.left)<=l?(u.left=i[e].vCenter,g(i[e])):Math.abs(i[e].right-u.left)<=l&&(u.left=i[e].right,g(i[e])),Math.abs(i[e].left-u.vCenter)<=l?(u.left=i[e].left-u.width/2,g(i[e])):Math.abs(i[e].vCenter-u.vCenter)<=l?(u.left=i[e].vCenter-u.width/2,g(i[e])):Math.abs(i[e].right-u.vCenter)<=l&&(u.left=i[e].right-u.width/2,g(i[e])),Math.abs(i[e].left-u.right)<=l?(u.left=i[e].left-u.width,g(i[e])):Math.abs(i[e].vCenter-u.right)<=l?(u.left=i[e].vCenter-u.width,g(i[e])):Math.abs(i[e].right-u.right)<=l&&(u.left=i[e].right-u.width,g(i[e])),Math.abs(i[e].top-u.top)<=l?(u.top=i[e].top,m(i[e])):Math.abs(i[e].hCenter-u.top)<=l?(u.top=i[e].hCenter,m(i[e])):Math.abs(i[e].bottom-u.top)<=l&&(u.top=i[e].bottom,m(i[e])),Math.abs(i[e].top-u.hCenter)<=l?(u.top=i[e].top-u.height/2,m(i[e])):Math.abs(i[e].hCenter-u.hCenter)<=l?(u.top=i[e].hCenter-u.height/2,m(i[e])):Math.abs(i[e].bottom-u.hCenter)<=l&&(u.top=i[e].bottom-u.height/2,m(i[e])),Math.abs(i[e].top-u.bottom)<=l?(u.top=i[e].top-u.height,m(i[e])):Math.abs(i[e].hCenter-u.bottom)<=l?(u.top=i[e].hCenter-u.height,m(i[e])):Math.abs(i[e].bottom-u.bottom)<=l&&(u.top=i[e].bottom-u.height,m(i[e])),a&&(Math.abs(i[e].left-u.left)>l&&Math.abs(i[e].left-u.left)<=s?d(i[e],u,"left","left",r,n):Math.abs(i[e].vCenter-u.left)>l&&Math.abs(i[e].vCenter-u.left)<=s?d(i[e],u,"vCenter","left",r,n):Math.abs(i[e].right-u.left)>l&&Math.abs(i[e].right-u.left)<=s?d(i[e],u,"right","left",r,n):Math.abs(i[e].left-u.vCenter)>l&&Math.abs(i[e].left-u.vCenter)<=s?d(i[e],u,"left","vCenter",r,n):Math.abs(i[e].vCenter-u.vCenter)>l&&Math.abs(i[e].vCenter-u.vCenter)<=s?d(i[e],u,"vCenter","vCenter",r,n):Math.abs(i[e].right-u.vCenter)>l&&Math.abs(i[e].right-u.vCenter)<=s?d(i[e],u,"right","vCenter",r,n):Math.abs(i[e].left-u.right)>l&&Math.abs(i[e].left-u.right)<=s?d(i[e],u,"left","right",r,n):Math.abs(i[e].vCenter-u.right)>l&&Math.abs(i[e].vCenter-u.right)<=s?d(i[e],u,"vCenter","right",r,n):Math.abs(i[e].right-u.right)>l&&Math.abs(i[e].right-u.right)<=s?d(i[e],u,"right","right",r,n):Math.abs(i[e].top-u.top)>l&&Math.abs(i[e].top-u.top)<=s?h(i[e],u,"top","top",o,n):Math.abs(i[e].hCenter-u.top)>l&&Math.abs(i[e].hCenter-u.top)<=s?h(i[e],u,"hCenter","top",o,n):Math.abs(i[e].bottom-u.top)>l&&Math.abs(i[e].bottom-u.top)<=s?h(i[e],u,"bottom","top",o,n):Math.abs(i[e].top-u.hCenter)>l&&Math.abs(i[e].top-u.hCenter)<=s?h(i[e],u,"top","hCenter",o,n):Math.abs(i[e].hCenter-u.hCenter)>l&&Math.abs(i[e].hCenter-u.hCenter)<=s?h(i[e],u,"hCenter","hCenter",o,n):Math.abs(i[e].bottom-u.hCenter)>l&&Math.abs(i[e].bottom-u.hCenter)<=s?h(i[e],u,"bottom","hCenter",o,n):Math.abs(i[e].top-u.bottom)>l&&Math.abs(i[e].top-u.bottom)<=s?h(i[e],u,"top","bottom",o,n):Math.abs(i[e].hCenter-u.bottom)>l&&Math.abs(i[e].hCenter-u.bottom)<=s?h(i[e],u,"hCenter","bottom",o,n):Math.abs(i[e].bottom-u.bottom)>l&&Math.abs(i[e].bottom-u.bottom)<=s?h(i[e],u,"bottom","bottom",o,n):(g(i[e]),m(i[e])))})}i.data.left=window.hinnn.pt.toPx(u.left),i.data.top=window.hinnn.pt.toPx(u.top)}var r,n=t.parent.className.endsWith("design")?t.parent:t.parent.offsetParent,o=n.clientWidth,n=n.clientHeight,a=t.target.clientWidth,l=t.target.clientHeight,s=0,p=0;e.options.designTarget&&e.options.designTarget.options.transform&&(r=e.options.designTarget.options.getRectInfo(),s=window.hinnn.pt.toPx(r.diffW),p=window.hinnn.pt.toPx(r.diffH)),t.left<0-s?t.left=0-s:t.left>=o-a+s&&(t.left=o-a+s),t.top<0-p?t.top=0-p:t.top>=n-l+p&&(t.top=n-l+p),i.data=t}0!=e.options.onDrag.call(i.data.target,i,b.fn.dragLengthCNum(i.data.left,e.options),b.fn.dragLengthCNum(i.data.top,e.options))&&u(i);var I=i.data.target;return e.hidroppables.each(function(){var t,e=b(this);e.hidroppable("options").disabled||(t=e.offset(),i.pageX>t.left&&i.pageXt.top&&i.pageYt.left&&o.pageXt.top&&o.pageYe.options.edge}b.data(this,"hidraggable",{options:t,handle:e}),t.disabled?b(this).css("cursor",""):e.unbind(".hidraggable").bind("mousemove.hidraggable",{target:this},function(t){var e;b.fn.hidraggable.isDragging||(e=b.data(t.data.target,"hidraggable").options,l(t)?b(this).css("cursor",e.cursor):b(this).css("cursor",""))}).bind("mouseleave.hidraggable",{target:this},function(t){b(this).css("cursor","")}).bind("mousedown.hidraggable",{target:this},function(t){var e,i,n,o,r,a;0!=l(t)&&(b(this).css("cursor",""),e=b(t.data.target).position(),o=b(t.data.target).offset(),!(e={startPosition:b(t.data.target).css("position"),startLeft:e.left,startTop:e.top,left:e.left,top:e.top,startX:t.pageX,startY:t.pageY,offsetWidth:t.pageX-o.left,offsetHeight:t.pageY-o.top,target:t.data.target,parent:b(t.data.target).parent()[0]})!==(o=b.data(t.data.target,"hidraggable")).options.draggable&&"r resizebtn"!=t.target.className&&((o=o.options.getScale())&&(e.left/=o,e.top/=o,e.startLeft/=o,e.startTop/=o),(o=e.target.style.transform&&parseInt(e.target.style.transform.slice(7,-1)))&&(o=o*Math.PI/180,a=b(t.data.target).outerWidth(),i=b(t.data.target).outerHeight(),n=Math.sin(o),o=Math.cos(o),r=(Math.abs(a*o)+Math.abs(i*n)-a)/2,a=(Math.abs(a*n)+Math.abs(i*o)-i)/2,e.left+=r,e.top+=a,e.startLeft+=r,e.startTop+=a),b.extend(t.data,e),0!=b.data(t.data.target,"hidraggable").options.onBeforeDrag.call(t.data.target,t)&&(b(document).bind("mousedown.hidraggable",t.data,s),b(document).bind("mousemove.hidraggable",t.data,p),b(document).bind("mouseup.hidraggable",t.data,I))))})})},b.fn.hidraggable.methods={options:function(t){return b.data(t[0],"hidraggable").options},update:function(e,i){i&&"object"==typeof i&&b.data(e[0],"hidraggable")&&Object.keys(i).forEach(function(t){b.data(e[0],"hidraggable").options[t]=i[t]})},proxy:function(t){return b.data(t[0],"hidraggable").proxy},enable:function(t){return t.each(function(){b(this).hidraggable({disabled:!1})})},disable:function(t){return t.each(function(){b(this).hidraggable({disabled:!0})})}},b.fn.hidraggable.parseOptions=function(t){var e=b(t);return b.extend({},b.hiprintparser.parseOptions(t,["cursor","handle","axis",{revert:"boolean",deltaX:"number",deltaY:"number",edge:"number"}]),{disabled:!!e.attr("disabled")||void 0})},b.fn.hidraggable.defaults={proxy:null,revert:!1,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:!1,edge:0,axis:null,getScale:function(t){},onBeforeDrag:function(t){},onStartDrag:function(t){},onDrag:function(t){},onStopDrag:function(t){}},b.fn.hidraggable.isDragging=!1},function(t,e){var n;(n=jQuery).fn.hidroppable=function(e,t){return"string"==typeof e?n.fn.hidroppable.methods[e](this,t):(e=e||{},this.each(function(){var i,t=n.data(this,"hidroppable");t?n.extend(t.options,e):(n(i=this).addClass("hidroppable"),n(i).bind("_dragenter",function(t,e){n.data(i,"hidroppable").options.onDragEnter.apply(i,[t,e])}),n(i).bind("_dragleave",function(t,e){n.data(i,"hidroppable").options.onDragLeave.apply(i,[t,e])}),n(i).bind("_dragover",function(t,e){n.data(i,"hidroppable").options.onDragOver.apply(i,[t,e])}),n(i).bind("_drop",function(t,e){n.data(i,"hidroppable").options.onDrop.apply(i,[t,e])}),n.data(this,"hidroppable",{options:n.extend({},n.fn.hidroppable.defaults,n.fn.hidroppable.parseOptions(this),e)}))}))},n.fn.hidroppable.methods={options:function(t){return n.data(t[0],"hidroppable").options},enable:function(t){return t.each(function(){n(this).hidroppable({disabled:!1})})},disable:function(t){return t.each(function(){n(this).hidroppable({disabled:!0})})}},n.fn.hidroppable.parseOptions=function(t){var e=n(t);return n.extend({},n.hiprintparser.parseOptions(t,["accept"]),{disabled:!!e.attr("disabled")||void 0})},n.fn.hidroppable.defaults={accept:null,disabled:!1,onDragEnter:function(t,e){},onDragOver:function(t,e){},onDragLeave:function(t,e){},onDrop:function(t,e){}}},function(t,e){var I;(I=jQuery).hiprintparser={parseOptions:function(t,e){var i=I(t),n={},o=I.trim(i.attr("data-options"));if(o&&("{"!=o.substring(0,1)&&(o="{"+o+"}"),n=new Function("return "+o)()),e){for(var r={},a=0;a')).css({width:"100%",height:"100%",top:0,left:0,position:"absolute","background-color":"rgba(0,0,0,0.5)",cursor:"move",display:"none"}),g.appendHandler(e,T(this));var e,o={name:"n",target:T('
    ')},r={name:"s",target:T('
    ')},a={name:"w",target:T('
    ')},l={name:"e",target:T('
    ')},s={name:"ne",target:T('
    ')},p={name:"nw",target:T('
    ')},I={name:"se",target:T('
    ')},c={name:"sw",target:T('
    ')},o={name:"r",target:T('
    ')},i=T('
    '),n=T('
    ✕
    '),u=(g.refreshSizeBox(void 0,i,e),0!=g.options.draggable&&(e.append(n),e.on("mousedown",".del-btn",()=>{var t=new KeyboardEvent("keydown",{bubbles:!0,keyCode:46});d.dispatchEvent(t)})),g.addHandlerCss(t()),g.appendHandler(t(),e),g.bindResizeEvent(e,T(this)),T(this));T(e).on("mousedown",".resizebtn",function(){u.addClass("resizeing")}),T(".easyui-droppable").on("mouseup",function(){u.removeClass("resizeing")}),g.bindTrigger(T(this))}),g.bindHidePanel()},addHandlerCss:function(t){for(var e=0;e.hicontextmenuitem:hover,\r\n.hicontextmenuroot .hicontextmenuitem > a:hover {\r\n\tbackground-color: #f3f3f3;\r\n}\r\n\r\n.hicontextmenuroot .hicontextmenuitem>a {\r\n\ttext-decoration: none;\r\n\tcolor: #363636;\r\n\tline-height: 22px;\r\n\r\n}\r\n\r\n.hicontextmenuroot .hicontextsubmenu>ul {\r\n\tdisplay: none;\r\n\tposition: absolute;\r\n\r\n}\r\n\r\n.hicontextmenuroot .hicontextsubmenu:hover>ul {\r\n\tdisplay: block;\r\n\tleft: 100%;\r\n\ttop: -1px;\r\n\tmargin-left: 0px;\r\n}\r\n\r\n.hicontextmenuroot .borderBottom {\r\n\tborder-bottom: 1px solid #efe6e6;\r\n}\r\n\r\n.hicontextmenuroot .disable> a {\r\n \r\n color: #ccc;\r\n \r\n}\r\n.hicontextmenuroot>.disable:hover,\r\n.hicontextmenuroot .disable> a:hover {\r\n\tbackground-color:#fff;\r\n}",""])},function(t,e,i){t.exports=function(r){var a=[];return a.toString=function(){return this.map(function(t){i=t[1]||"";var e,i,n,o=(n=t[3])?r&&"function"==typeof btoa?(e="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */",o=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}),[i].concat(o).concat([e]).join("\n")):[i].join("\n"):i;return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},a.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;n'),i||(i=o).addClass("hicontextmenuroot"),jquery__WEBPACK_IMPORTED_MODULE_0___default.a.each(t,function(t,e){var i=!!e.disable&&e.disable(),n=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
  • '+(e.text||"")+"
  • ");i&&n.addClass("disable"),e.borderBottom&&n.addClass("borderBottom"),e.menus&&(n.addClass("hicontextsubmenu"),r.renderMenu(e.menus,n)),e.callback&&n.click(function(t){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).hasClass("disable")||(jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hicontextmenuroot").remove(),e.callback()),t.stopPropagation()}),o.append(n)}),e&&e.append(o)),e||jquery__WEBPACK_IMPORTED_MODULE_0___default()("body").append(i).find(".hicontextmenuroot").hide()},setPosition:function(t){jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hicontextmenuroot").css({left:t.pageX+2,top:t.pageY+2}).show()},eventBind:function(){var e=this;this.ele.on("contextmenu",function(t){jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hicontextmenuroot").remove(),t.preventDefault(),e.renderMenu(e.opts.menus),e.setPosition(t),e.opts.target&&"function"==typeof e.opts.target&&e.opts.target(i(this))}),i("body").on("click",function(){i(".hicontextmenuroot").remove()})}},i.fn.hicontextMenu=function(t){return new n(this,t),this}},function(t,e,n){n.r(e),n(22),n(23),n(24),n(25);var i,o=n(0);n(26),window.hiLocalStorage=(i=window.localStorage||null,{saveLocalData:function(t,e){return!(!i||!e||(i.setItem(t,e),0))},getLocalData:function(t){return i?i.getItem(t):null},removeItem:function(t){i&&i.removeItem(t)}}),n(27),n(32);var _r,a=function(){function t(){this.allElementTypes=[]}return Object.defineProperty(t,"instance",{get:function(){return t._instance=t._instance?t._instance:new t},enumerable:!0,configurable:!0}),t.prototype.addPrintElementTypes=function(t,e){var i=this;this[t]?this[t]=this[t].concat(e):this[t]=e,e.forEach(function(t){i.allElementTypes=i.allElementTypes.concat(t.printElementTypes)})},t.prototype.removePrintElementTypes=function(e){delete this[e],this.allElementTypes=this.allElementTypes.filter(function(t){return!t.tid.startsWith(e)})},t.prototype.getElementTypeGroups=function(t){return this[this.formatterModule(t)]||[]},t.prototype.getElementType=function(e){var t=this.allElementTypes.filter(function(t){return t.tid==e});if(0');return e.forEach(function(t){var e=jquery__WEBPACK_IMPORTED_MODULE_0___default()("
  • "),i=(e.append(''+t.name+""),jquery__WEBPACK_IMPORTED_MODULE_0___default()("
      "));e.append(i),t.printElementTypes.forEach(function(t){i.append('
    • '+t.getText()+"
    • ")}),n.append(e)}),jquery__WEBPACK_IMPORTED_MODULE_0___default()(t).append(n),n.find(".ep-draggable-item")},t}(),u=n(5),d=n(15),c=function(t){this.title=t.title,this.type=t.type},ctable=function(t){this.title=t.title,this.type=t.type,this.editable=t.editable,this.columnDisplayEditable=t.columnDisplayEditable,this.columnDisplayIndexEditable=t.columnDisplayIndexEditable,this.columnTitleEditable=t.columnTitleEditable,this.columnResizable=t.columnResizable,this.columnAlignEditable=t.columnAlignEditable,this.isEnableEditField=t.isEnableEditField,this.isEnableContextMenu=t.isEnableContextMenu,this.isEnableInsertRow=t.isEnableInsertRow,this.isEnableDeleteRow=t.isEnableDeleteRow,this.isEnableInsertColumn=t.isEnableInsertColumn,this.isEnableDeleteColumn=t.isEnableDeleteColumn,this.isEnableMergeCell=t.isEnableMergeCell},h=function(){function t(t){var i=this;this.text=t.text,this.field=t.field,this.fields=t.fields,this.title=t.title,this.tid=t.tid,this.data=t.data,this.styler=t.styler,this.formatter=t.formatter,this.type=t.type,this.options=t.options,this.editable=null==t.editable||t.editable,this.columnDisplayEditable=null==t.columnDisplayEditable||t.columnDisplayEditable,this.columnDisplayIndexEditable=null==t.columnDisplayIndexEditable||t.columnDisplayIndexEditable,this.columnTitleEditable=null==t.columnTitleEditable||t.columnTitleEditable,this.columnResizable=null==t.columnResizable||t.columnResizable,this.columnAlignEditable=null==t.columnAlignEditable||t.columnAlignEditable,this.columns=[],(t.columns||[]).forEach(function(t,e){i.columns.push(i.createTableColumnArray(t))}),this.rowStyler=t.rowStyler,this.striped=t.striped,this.groupFields=t.groupFields||[],this.groupFormatter=t.groupFormatter,this.groupFooterFormatter=t.groupFooterFormatter,this.footerFormatter=t.footerFormatter,this.rowsColumnsMerge=t.rowsColumnsMerge,this.rowsColumnsMergeClean=t.rowsColumnsMergeClean,this.gridColumnsFooterFormatter=t.gridColumnsFooterFormatter,this.isEnableEditField=null==t.isEnableEditField||t.isEnableEditField,this.isEnableContextMenu=null==t.isEnableContextMenu||t.isEnableContextMenu,this.isEnableInsertRow=null==t.isEnableInsertRow||t.isEnableInsertRow,this.isEnableDeleteRow=null==t.isEnableDeleteRow||t.isEnableDeleteRow,this.isEnableInsertColumn=null==t.isEnableInsertColumn||t.isEnableInsertColumn,this.isEnableDeleteColumn=null==t.isEnableDeleteColumn||t.isEnableDeleteColumn,this.isEnableMergeCell=null==t.isEnableMergeCell||t.isEnableMergeCell,this.columnObj=this.makeColumnObj()}return t.prototype.getText=function(){return this.text||this.title||""},t.prototype.createPrintElement=function(t){var i=this;return this.columns&&0==this.columns.length&&(t.columns||[]).forEach(function(t,e){i.columns.push(i.createTableColumnArray(t))}),new d.a(this,t)},t.prototype.getData=function(){return[{}]},t.prototype.createTableColumnArray=function(t){var i=[];return t.forEach(function(t,e){i.push(new u.a(t))}),i},t.prototype.getPrintElementTypeEntity=function(){return"table"==this.type?new ctable({title:this.title,type:this.type,editable:this.editable,columnDisplayEditable:this.columnDisplayEditable,columnDisplayIndexEditable:this.columnDisplayIndexEditable,columnResizable:this.columnResizable,columnAlignEditable:this.columnAlignEditable,columnTitleEditable:this.columnTitleEditable,isEnableEditField:this.isEnableEditField,isEnableContextMenu:this.isEnableContextMenu,isEnableInsertRow:this.isEnableInsertRow,isEnableDeleteRow:this.isEnableDeleteRow,isEnableInsertColumn:this.isEnableInsertColumn,isEnableDeleteColumn:this.isEnableDeleteColumn,isEnableMergeCell:this.isEnableMergeCell}):new c({title:this.title,type:this.type})},t.prototype.getFields=function(){return this.fields},t.prototype.getOptions=function(){return this.options||{}},t.prototype.getColumnByColumnId=function(t){return this.columnObj[t]},t.prototype.makeColumnObj=function(t){var e={};return t?t.forEach(function(t){(t.id||t.columnId)&&(e[t.id||t.columnId]=t)}):this.columns&&this.columns.forEach(function(t){t.forEach(function(t){(t.id||t.columnId)&&(e[t.id||t.columnId]=t)})}),this.columnObj=e},t}(),f=n(4),g=n(3),m=(_r=function(t,e){return(_r=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}_r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),v=function(i){function t(t,e){t=i.call(this,t)||this;return t.options=new g.a(e),t.options.setDefault(new g.a(p.a.instance.image.default).getPrintElementOptionEntity()),t}return m(t,i),t.prototype.getReizeableShowPoints=function(){return["se","r"]},t.prototype.getData=function(i){var t="",e=this.getField(),t=i&&e?e.split(".").reduce((t,e)=>(t||i)[e],!1)||"":this.options.src||this.printElementType.getData(),e=this.getFormatter();return(t=e?e(t,this.options,this._currenttemplateData):t)||""},t.prototype.createTarget=function(t,e){var i=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      ');return this.updateTargetImage(i,t,e),i},t.prototype.initSizeByHtml=function(t){i.prototype.initSizeByHtml.call(this,t),this.css(t,this.getData())},t.prototype.getConfigOptions=function(){return p.a.instance.image},t.prototype.updateDesignViewFromOptions=function(){this.designTarget&&(this.css(this.designTarget,this.getData()),this.updateTargetImage(this.designTarget,this.getTitle(),this.getData()))},t.prototype.updateTargetImage=function(t,e,i){t=t.find(".hiprint-printElement-image-content");t.find("img").length?t.find("img").attr("src",i):t.html(''),i.length?t.find("img").css("cssText",`width:100%;height:100%;content:url("${i}")!important`):t.find("img").css("cssText","width:100%;height:100%;"),this.options.fit&&t.find("img").css("object-fit",this.options.fit)},t.prototype.getHtml=function(t,e,i){return this.getHtml2(t,e,i)},t}(f.a),y=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),b=function(i){function t(t){var e=this;return(e=i.call(this,t=t||{})||this).leftSpaceRemoved=t.leftSpaceRemoved,e}return y(t,i),t.prototype.getHideTitle=function(){return(null==this.hideTitle?this.defaultOptions:this).hideTitle},t}(g.a),E=n(8),T=function(){function t(t,e,i,n,r,a,l,s,p,I,c,u,d,g,h,m){this.panelPageRule=n,this.scale=r,this.watermarkOptions=i,this.defaultPaperNumberFormat="${paperNo}-${paperCount}",this.printLine=0,this.templateId=t,this.panelIdx=e,this.width=o.a.mm.toPt(a),this.height=o.a.mm.toPt(l),this.mmwidth=a,this.mmheight=l,this.paperHeader=0<=s?s:0,this.paperFooter=p,this.contentHeight=p-s,this.createTarget(),this.index=h,this.paperNumberLeft=I||parseInt((this.width-30).toString()),this.paperNumberTop=c||parseInt((this.height-22).toString()),this.paperNumberDisabled=u,this.paperNumberContinue=d,this.paperNumberFormat=g,this.referenceElement=m?jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},m):new E.a({top:0,left:0,height:0,width:0,bottomInLastPaper:0,beginPrintPaperIndex:0,printTopInPaper:0,endPrintPaperIndex:0})}return t.prototype.subscribePaperBaseInfoChanged=function(t){this.onPaperBaseInfoChanged=t},t.prototype.triggerOnPaperBaseInfoChanged=function(t){this.onPaperBaseInfoChanged&&this.onPaperBaseInfoChanged({panelPageRule:this.panelPageRule,scale:this.scale,paperHeader:this.paperHeader,paperFooter:this.paperFooter,paperNumberLeft:this.paperNumberLeft,paperNumberTop:this.paperNumberTop,paperNumberDisabled:this.paperNumberDisabled,paperNumberContinue:this.paperNumberContinue,paperNumberFormat:this.paperNumberFormat}),o.a.event.trigger("hiprintTemplateDataChanged_"+this.templateId,t||"模板调整")},t.prototype.setFooter=function(t,e,i,n){this.firstPaperFooter=t,this.evenPaperFooter=e,this.oddPaperFooter=i,this.lastPaperFooter=n},t.prototype.setOffset=function(t,e){this.setLeftOffset(t),this.setTopOffset(e)},t.prototype.setLeftOffset=function(t){t?this.paperContentTarget.css("left",t+"pt"):this.paperContentTarget[0].style.left=""},t.prototype.setTopOffset=function(t){t?this.paperContentTarget.css("top",t+"pt"):this.paperContentTarget[0].style.top=""},t.prototype.createTarget=function(){this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      '),this.paperContentTarget=this.target.find(".hiprint-printPaper-content"),this.target.css("width",this.mmwidth+"mm"),this.target.css("height",this.mmheight-p.a.instance.paperHeightTrim+"mm"),this.target.attr("original-height",this.mmheight),this.zoom(this.scale)},t.prototype.createHeaderLine=function(){var i=this;this.headerLinetarget=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      '),this.headerLinetarget.css("top",(this.paperHeader||-1)+"pt"),0==this.paperHeader&&this.headerLinetarget.addClass("hideheaderLinetarget"),this.paperContentTarget.append(this.headerLinetarget),this.dragHeadLineOrFootLine(this.headerLinetarget,function(t,e){e>=i.paperFooter&&(e=i.paperFooter-10),i.paperHeader=0<=e?e:0,i.triggerOnPaperBaseInfoChanged()})},t.prototype.createFooterLine=function(){var i=this;this.footerLinetarget=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      '),this.footerLinetarget.css("top",parseInt(this.paperFooter.toString())+"pt"),this.paperFooter==this.height&&(this.footerLinetarget.css("top",this.mmheight-p.a.instance.paperHeightTrim+"mm"),this.footerLinetarget.addClass("hidefooterLinetarget")),this.paperContentTarget.append(this.footerLinetarget),this.dragHeadLineOrFootLine(this.footerLinetarget,function(t,e){e<=i.paperHeader&&(e=i.paperHeader+10),i.paperFooter=e,i.triggerOnPaperBaseInfoChanged()})},t.prototype.createPaperNumber=function(t,e){var i=this,n=this.target.find(".hiprint-paperNumber");if(n.length)return n.html(t),n;n=jquery__WEBPACK_IMPORTED_MODULE_0___default()(''+t+"");return n.css("top",this.paperNumberTop+"pt"),n.css("left",this.paperNumberLeft+"pt"),this.paperContentTarget.append(n),e&&this.dragHeadLineOrFootLine(n,function(t,e){i.paperNumberTop=e,i.paperNumberLeft=t,i.triggerOnPaperBaseInfoChanged()},!0),n},t.prototype.getTarget=function(){return this.target},t.prototype.append=function(t){this.paperContentTarget.append(t)},t.prototype.updateReferenceElement=function(t){t&&(this.referenceElement=t)},t.prototype.updatePrintLine=function(t){t>=this.printLine&&(this.printLine=t)},t.prototype.design=function(t){var e=this;this.createHeaderLine(),this.createFooterLine(),this.target.addClass("design"),t&&t.grid&&this.target.addClass("grid"),this.paperNumberTarget=this.createPaperNumber(this.formatPaperNumber(1,1),!0),this.createRuler(),this.createWaterMark(!0,this.panelIdx,this.watermarkOptions),this.resetPaperNumber(this.paperNumberTarget),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.paperNumberTarget).bind("dblclick.hiprint",function(){null==e.paperNumberDisabled&&(e.paperNumberDisabled=!1),e.paperNumberDisabled=!e.paperNumberDisabled,e.resetPaperNumber(e.paperNumberTarget),e.triggerOnPaperBaseInfoChanged("初始")}),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.paperNumberTarget).bind("click.hiprint",function(){o.a.event.trigger("BuildCustomOptionSettingEventKey_"+e.templateId,{options:{paperNumberFormat:e.paperNumberFormat,paperNumberDisabled:e.paperNumberDisabled,paperNumberContinue:e.paperNumberContinue},callback:function(t){e.paperNumberDisabled=!!t.paperNumberDisabled||void 0,e.paperNumberContinue=t.paperNumberContinue,e.paperNumberFormat=t.paperNumberFormat||void 0,e.createPaperNumber(e.formatPaperNumber(1,1),!0),e.resetPaperNumber(e.paperNumberTarget),e.triggerOnPaperBaseInfoChanged()}})})},t.prototype.resetPaperNumber=function(t){this.paperNumberDisabled?t.addClass("hiprint-paperNumber-disabled"):t.removeClass("hiprint-paperNumber-disabled")},t.prototype.updatePaperNumber=function(t,e,i){t=this.createPaperNumber(this.formatPaperNumber(t,e));this.paperNumberDisabled?t.hide():i&&this.index%2==1&&(t[0].style.left="",t.css("right",this.paperNumberLeft+"pt"))},t.prototype.formatPaperNumber=function(t,e){return this.createWaterMark(!1,t,this.watermarkOptions),eval("`"+(this.paperNumberFormat||this.defaultPaperNumberFormat).replace("paperNo",t).replace("paperCount",e)+"`")},t.prototype.dragHeadLineOrFootLine=function(t,n,e){var i=this;t.hidraggable({axis:e?void 0:"v",onDrag:function(t,e,i){n(e,i)},moveUnit:"pt",minMove:p.a.instance.movingDistance,onBeforeDrag:function(t){s.a.instance.draging=!0},getScale:function(){return i.scale||1},onStopDrag:function(t){i.headerLinetarget.css("top",i.paperHeader+"pt"),i.footerLinetarget.css("top",i.paperFooter+"pt"),s.a.instance.draging=!1,i.footerLinetarget.removeClass("hidefooterLinetarget"),i.headerLinetarget.removeClass("hideheaderLinetarget")}})},t.prototype.resize=function(t,e){var i=this.paperFooter/this.height,t=(this.width=o.a.mm.toPt(t),this.height=o.a.mm.toPt(e),this.mmwidth=t,this.mmheight=e,this.target.css("width",t+"mm"),this.target.css("height",e-p.a.instance.paperHeightTrim+"mm"),this.target.attr("original-height",this.mmheight),this.height*i);this.paperFooter=t||this.height,this.footerLinetarget.css("top",t+"pt"),this.contentHeight=this.paperFooter-this.paperHeader,this.paperNumberLeft=this.paperNumberLeft>this.width?parseInt((this.width-30).toString()):this.paperNumberLeft,this.paperNumberTop=this.paperNumberTop>this.height?this.paperNumberTop=parseInt((this.height-22).toString()):this.paperNumberTop,this.paperNumberTarget.css("top",this.paperNumberTop+"pt"),this.paperNumberTarget.css("left",this.paperNumberLeft+"pt"),this.triggerOnPaperBaseInfoChanged("调整大小")},t.prototype.zoom=function(t){t&&(this.scale=t,this.target.css("transform","scale("+t+")"),1\n \n \n ')},t.prototype.createWaterMark=function(t,e,i){var n=this,i=Object.assign({},i||{},{id:`${n.templateId}_${n.panelIdx}_${e||1}_`+(t?"design":n.index),watch:t,container:n.target[0]});i.container&&(i.content?(t&&_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_4__.a.destroyWatermark(Object.assign({},i,{id:`${n.templateId}_${n.panelIdx}_${e||1}_`+n.index})),_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_4__.a.createWatermark(i)):_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_4__.a.destroyWatermark(i))},t.prototype.displayHeight=function(){return this.mmheight-p.a.instance.paperHeightTrim+"mm"},t.prototype.displayWidth=function(){return this.mmwidth+"mm"},t.prototype.getPanelTarget=function(){return this.target.parent(".hiprint-printPanel ")},t}(),P=n(6),_=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),w=function(i){function t(t,e){t=i.call(this,t)||this;return t.options=new b(e),t.options.setDefault(new b(p.a.instance.longText.default).getPrintElementOptionEntity()),t}return _(t,i),t.prototype.getDesignTarget=function(t){t=i.prototype.getDesignTarget.call(this,t);return t.find(".hiprint-printElement-longText-content").css("border","1px dashed #cebcbc"),t},t.prototype.getProxyTarget=function(t){t&&this.SetProxyTargetOption(t);var t=this.getData(),e=this.createTarget(this.printElementType.getText(!0),t);return this.updateTargetSize(e),this.css(e,t),e},t.prototype.updateDesignViewFromOptions=function(){var t,e;this.designTarget&&(t=this.getData(),e=this.getHtml(this.designPaper)[0].target,this.designTarget.find(".hiprint-printElement-longText-content").html(e.find(".hiprint-printElement-longText-content").html()),this.css(this.designTarget,t))},t.prototype.getConfigOptions=function(){return p.a.instance.longText},t.prototype.getTitle=function(){return this.options.title||this.printElementType.title},t.prototype.getData=function(i){var t=this.getField(),t=t&&t.split(".").reduce((t,e)=>t?t[e]:i?i[e]:"",!1)||"";return i?t||"":this.options.testData||this.printElementType.getData()||""},t.prototype.updateTargetText=function(t,e,i){t=t.find(".hiprint-printElement-longText-content"),e=this.getText(e,i);t.html(e)},t.prototype.createTarget=function(t,e){var i=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      ');return this.updateTargetText(i,t,e),i},t.prototype.getText=function(t,e){var i=this.getFormatter();return e=e&&(0!=this.options.leftSpaceRemoved?e.toString().replace(/^\s*/,""):e),(this.getField()?(!this.options.getHideTitle()&&t?t+":":"")+(i?i(t,e,this.options,this._currenttemplateData):e):i?i(t,t,this.options,this._currenttemplateData):t||"")||""},t.prototype.getHtml=function(t,e){this.setCurrenttemplateData(e),this.createTempContainer();t=this.getPaperHtmlResult(t,e);return this.removeTempContainer(),t},t.prototype.getHeightByData=function(t){this.createTempContainer();t=this.getPaperHtmlResult(new T("","",void 0,1e3,1e3,0,25e3,0,0,!0,!0,void 0,0,void 0),{},t);return this.removeTempContainer(),t[0].referenceElement.bottomInLastPaper-t[0].referenceElement.printTopInPaper},t.prototype.getLongTextIndent=function(){return this.options.longTextIndent?'':''},t.prototype.getPaperHtmlResult=function(t,e,i){var n=this,o=[],r=0,i=i||this.getData(e),a=this.getText(this.getTitle(),i),l=this.createTarget(this.getTitle(),this.options.testData||""),s=(this.css(l,i),e?this.updateTargetWidth(l):this.updateTargetSize(l),this.getTempContainer().html(""),this.getTempContainer().append(l),[this.getLongTextIndent()]),p=a.split(new RegExp("\r|\n","g"));if(p.forEach(function(t,e){t=0!=n.options.leftSpaceRemoved?(t||"").toString().replace(/^\s*/,""):t;s=s.concat(t.split("")),e"+n.getLongTextIndent())}),0==s.length&&(s=[""]),this.isHeaderOrFooter()||this.isFixed()||!e)return(d=this.getStringBySpecificHeight(s,25e3,l)).target.css("left",this.options.displayLeft()),d.target.css("top",this.options.displayTop()),d.target[0].height="",o.push(new P.a({target:d.target,printLine:this.options.displayTop()+d.height,referenceElement:new E.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:t.index,bottomInLastPaper:this.options.getTop()+d.height,printTopInPaper:this.options.getTop()})})),o;for(var I=this.getBeginPrintTopInPaperByReferenceElement(t);0this.options.lHeight?d.height:this.options.lHeight):I+d.height):(g=t.paperHeader,d.target.css("top",g+"pt"),g+d.height),o.push(new P.a({target:d.target,printLine:u,referenceElement:new E.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:t.index,bottomInLastPaper:u,printTopInPaper:g})})),r++,e&&this.updatePanelHeight(u+this.options.getHeight(),t)}return o},t.prototype.getStringBySpecificHeight=function(t,e,i){var e=o.a.pt.toPx(e),n=void 0;return(n="none"==this.panel.panelPageRule?this.IsPaginationIndex(t,t.length,-1,i):this.IsPaginationIndex(t,t.length-1,e,i)).IsPagination?n:this.BinarySearch(t,0,t.length-1,e,i)},t.prototype.BinarySearch=function(t,e,i,n,o){var r=Math.floor((e+i)/2);if(i=t.length-1&&at?t[e]:i?i[e]:"",!1)||"":this.options.testData||this.printElementType.getData()||"";if(this.options.format){if("datetime"==this.options.dataType)return o.a.dateFormat(t,this.options.format);if("boolean"==this.options.dataType){var e=this.options.format.split(":");if(0
      ');try{i?(jsbarcode__WEBPACK_IMPORTED_MODULE_2___default()(I.find(".hibarcode_imgcode")[0],i,{format:this.options.getbarcodeMode(),width:1,textMargin:-1,lineColor:this.options.color||"#000000",margin:0,height:parseInt(o.a.pt.toPx(this.options.getHeight()||10).toString()),displayValue:!1}),I.find(".hibarcode_imgcode").attr("height","100%"),I.find(".hibarcode_imgcode").attr("width","100%"),this.options.hideTitle||I.find(".hibarcode_displayValue").html(i)):I.html("")}catch(t){I.html("此格式不支持该文本")}}if("qrcode"==e){I.html("");try{i&&(t.css("line-height",0),I.css("text-align","center"),a=this.options.getWidth()||20,l=this.options.getHeight()||20,s=jquery__WEBPACK_IMPORTED_MODULE_0___default()("
      ").css({width:(l
      ');return this.updateTargetText(n,t,e,i),n},t.prototype.getHtml=function(t,e,i){return this.getHtml2(t,e,i)},t}(f.a),I=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),R=function(e){function t(t){return e.call(this,t)||this}return I(t,e),t}(g.a),M=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),S=function(i){function t(t,e){t=i.call(this,t)||this;return t.options=new R(e),t.options.setDefault(new R(p.a.instance.html.default).getPrintElementOptionEntity()),t}return M(t,i),t.prototype.updateDesignViewFromOptions=function(){var t;this.designTarget&&(t=this.getData(),this.css(this.designTarget,t),this.updateTargetHtml())},t.prototype.updateTargetHtml=function(){var t=this.getFormatter();t&&(t=t(this.getData(),this.options,this._currenttemplateData),this.designTarget.find(".hiprint-printElement-html-content").html(t))},t.prototype.getConfigOptions=function(){return p.a.instance.html},t.prototype.createTarget=function(t,e){var i=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      '),n=this.getFormatter();return n?(n=n(this.getData(),this.options,this._currenttemplateData),i.find(".hiprint-printElement-html-content").append(n)):this.options.content&&i.find(".hiprint-printElement-html-content").append(this.options.content),i},t.prototype.getHtml=function(t,e,i){return this.getHtml2(t,e,i)},t}(f.a),B=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),F=function(i){function t(t,e){t=i.call(this,t)||this;return t.options=new g.a(e),t.options.setDefault(new g.a(p.a.instance.vline.default).getPrintElementOptionEntity()),t}return B(t,i),t.prototype.updateDesignViewFromOptions=function(){var t;this.designTarget&&(t=this.getData(),this.css(this.designTarget,t))},t.prototype.getConfigOptions=function(){return p.a.instance.vline},t.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      ')},t.prototype.getReizeableShowPoints=function(){return["s","r"]},t.prototype.getHtml=function(t,e,i){return this.getHtml2(t,e,i)},t}(f.a),L=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),A=function(i){function t(t,e){t=i.call(this,t)||this;return t.options=new g.a(e),t.options.setDefault(new g.a(p.a.instance.hline.default).getPrintElementOptionEntity()),t}return L(t,i),t.prototype.updateDesignViewFromOptions=function(){var t;this.designTarget&&(t=this.getData(),this.css(this.designTarget,t))},t.prototype.getConfigOptions=function(){return p.a.instance.hline},t.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      ')},t.prototype.getReizeableShowPoints=function(){return["e","r"]},t}(f.a),z=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),k=function(i){function t(t,e){t=i.call(this,t)||this;return t.options=new g.a(e),t.options.setDefault(new g.a(p.a.instance.rect.default).getPrintElementOptionEntity()),t}return z(t,i),t.prototype.updateDesignViewFromOptions=function(){var t;this.designTarget&&(t=this.getData(),this.css(this.designTarget,t))},t.prototype.getConfigOptions=function(){return p.a.instance.rect},t.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      ')},t.prototype.getHtml=function(t,e,i){return this.getHtml2(t,e,i)},t}(f.a),N=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),V=function(i){function t(t,e){t=i.call(this,t)||this;return t.options=new g.a(e),t.options.setDefault(new g.a(p.a.instance.oval.default).getPrintElementOptionEntity()),t}return N(t,i),t.prototype.updateDesignViewFromOptions=function(){var t;this.designTarget&&(t=this.getData(),this.css(this.designTarget,t))},t.prototype.getConfigOptions=function(){return p.a.instance.oval},t.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      ')},t.prototype.getHtml=function(t,e,i){return this.getHtml2(t,e,i)},t}(f.a),W=function(){function t(){}return t.createPrintElement=function(t,e){return"text"==t.type?new D(t,e):"image"==t.type?new v(t,e):"longText"==t.type?new w(t,e):"table"==t.type?new d.a(t,e):"html"==t.type?new S(t,e):"vline"==t.type?new F(t,e):"hline"==t.type?new A(t,e):"rect"==t.type?new k(t,e):"oval"==t.type?new V(t,e):void 0},t}(),j=function(){function t(t){this.field=t.field,this.fields=t.fields,this.title=t.title,this.text=t.text,this.tid=t.tid,this.data=t.data,this.styler=t.styler,this.formatter=t.formatter,this.type=t.type,this.onRendered=t.onRendered,this.options=t.options}return t.prototype.getText=function(t){return t?this.title||this.text||"":this.text||this.title||""},t.prototype.getData=function(){return this.data},t.prototype.createPrintElement=function(t){var e={};return jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend(e,t||{}),W.createPrintElement(this,e)},t.prototype.getPrintElementTypeEntity=function(){return new c({title:this.title,type:this.type})},t.prototype.getFields=function(){return this.fields},t.prototype.getOptions=function(){return this.options||{}},t}(),U=n(16),K=n(12),G=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),q=function(i){function t(t){var e=i.call(this,t)||this;return(t=t||{}).columns?(e.columns=[],t.columns.forEach(function(t){e.columns.push(new K.a(t))})):e.columns=[new K.a({columns:[new u.a({width:100}),new u.a({width:100})]})],e.lHeight=t.lHeight,e.autoCompletion=t.autoCompletion,e.tableFooterRepeat=t.tableFooterRepeat,e}return G(t,i),t.prototype.getPrintElementOptionEntity=function(){var e=i.prototype.getPrintElementOptionEntity.call(this);return e.fields=this.fields,e.columns=[],this.columns.forEach(function(t){e.columns.push(t.getPrintElementOptionEntity())}),e},t}(g.a),Q=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),tt=function(){var n=function(t,e){return(n=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),et=function(e){function t(t){return e.call(this,t)||this}return tt(t,e),t.prototype.createPrintElement=function(t){var e={};return jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend(e,t||{}),W.createPrintElement(this,e)},t.prototype.getPrintElementTypeEntity=function(){return new c({title:this.title,type:this.type})},t}(j),nt=function(){function t(){}return t.createPrintElementType=function(t){return t.type=t.type||"text",new("text"==t.type?et:"table"==t.type?h:j)(t)},t}(),it=function(){function i(){}return i.getElementTypeGroups=function(t){t=i.formatterModule(t);return a.instance[t]||[]},i.getElementType=function(t,e){if(t)return a.instance.getElementType(t);nt.createPrintElementType({type:e})},i.build=function(t,e){e=i.formatterModule(e),t=(new l).createPrintElementTypeHtml(t,this.getElementTypeGroups(e));this.enableDrag(t)},i.buildByHtml=function(t){this.enableDrag(t)},i.enableDrag=function(t){t.hidraggable({revert:!0,proxy:function(t){var e=s.a.instance.getDragingPrintElement(),e=e.printElement.getProxyTarget(e.printElement.printElementType.getOptions());return e.appendTo("body"),e.css("z-index","9999"),e},moveUnit:"pt",minMove:4,onBeforeDrag:function(t){s.a.instance.draging=!0;var e=jquery__WEBPACK_IMPORTED_MODULE_0___default()(t.data.target).attr("tid"),t=i.getElementType(e,jquery__WEBPACK_IMPORTED_MODULE_0___default()(t.data.target).attr("ptype"));if(!t)throw new Error(`请检查 hiprint.init 的 provider 是否配置了 [${e}]`);e=t.createPrintElement();if(e||"tableCustom"!=t.type)return s.a.instance.setDragingPrintElement(e),!0;throw new Error('已移除"tableCustom",请替换使用"table".详情见更新记录')},onDrag:function(t,e,i){s.a.instance.getDragingPrintElement().updatePosition(e,i)},onStopDrag:function(t){s.a.instance.draging=!1}})},i.formatterModule=function(t){return t||"_default"},i}(),ot=function(t,e){var i=this;this.name=t,this.printElementTypes=[],e.forEach(function(t){i.printElementTypes.push(nt.createPrintElementType(t))})},rt=function(t){var e;this.index=t.index,this.name=t.name,this.paperType=t.paperType,this.paperType?(e=s.a.instance[this.paperType],t.height?(this.height=t.height,this.width=t.width):(this.height=e.height,this.width=e.width)):(this.height=t.height,this.width=t.width),this.paperHeader=t.paperHeader||0,this.paperFooter=t.paperFooter||o.a.mm.toPt(this.height),this.printElements=t.printElements||[],this.paperNumberLeft=t.paperNumberLeft,this.paperNumberTop=t.paperNumberTop,this.paperNumberDisabled=t.paperNumberDisabled,this.paperNumberContinue=t.paperNumberContinue,this.paperNumberFormat=t.paperNumberFormat,this.panelPaperRule=t.panelPaperRule,this.panelPageRule=t.panelPageRule,this.rotate=t.rotate||void 0,this.firstPaperFooter=t.firstPaperFooter,this.evenPaperFooter=t.evenPaperFooter,this.oddPaperFooter=t.oddPaperFooter,this.lastPaperFooter=t.lastPaperFooter,this.topOffset=t.topOffset,this.fontFamily=t.fontFamily,this.leftOffset=t.leftOffset,this.orient=t.orient,this.scale=t.scale,this.watermarkOptions=t.watermarkOptions},at=function(){function t(t,e,i,n){this.bx=t,this.by=e,this.ex=t,this.ey=e,this.startX=this.minX=t,this.startY=this.minY=e,this.maxX=t,this.maxY=e,this.lastLeft=i,this.lastTop=n}return t.prototype.updateRect=function(t,e){this.ex=t,this.ey=e,this.minX=this.startXthis.lastPaperFooter&&(I=p.createNewPage(s.length,I.referenceElement),s.push(I),r.append(I.getTarget())),this.panelPaperRule&&("odd"==this.panelPaperRule&&s.length%2==0&&(I=p.createNewPage(s.length,I.referenceElement),s.push(I),r.append(I.getTarget())),"even"==this.panelPaperRule&&s.length%2==1&&(I=p.createNewPage(s.length,I.referenceElement),s.push(I),r.append(I.getTarget()))),s.forEach(function(t){t.updatePaperNumber(t.index+1,s.length,i.paperNumberToggleInEven),a.fillPaperHeaderAndFooter(t,e,s.length),i&&(null!=i.leftOffset&&t.setLeftOffset(i.leftOffset),null!=i.topOffset&&t.setTopOffset(i.topOffset))}),r.prepend(this.getPrintStyle()),l.paperNumberContinue&&hinnn._paperList.forEach(function(t,e){t.updatePaperNumber(e+1,hinnn._paperList.length)})),r},t.prototype.resize=function(t,e,i,n){this.width=e,this.height=i,this.paperType=t,this.rotate=n,this.designPaper.resize(e,i)},t.prototype.rotatePaper=function(){null==this.rotate&&(this.rotate=!1),this.rotate=!this.rotate,this.resize(this.paperType,this.height,this.width,this.rotate)},t.prototype.zoom=function(t,e){this.scale=e?t:void 0,this.designPaper.zoom(t)},t.prototype.getTarget=function(){return this.target},t.prototype.enable=function(){this.target.removeClass("hipanel-disable")},t.prototype.disable=function(){this.target.addClass("hipanel-disable")},t.prototype.getPanelEntity=function(e){var i=[];return this.printElements.forEach(function(t){i.push(t.getPrintElementEntity(e))}),new rt({index:this.index,name:this.name||this.index+1,width:this.width,height:this.height,paperType:this.paperType,paperHeader:this.paperHeader,paperFooter:this.paperFooter,paperNumberDisabled:!!this.paperNumberDisabled||void 0,paperNumberContinue:null==this.paperNumberContinue||this.paperNumberContinue,paperNumberFormat:this.paperNumberFormat||void 0,panelPaperRule:this.panelPaperRule||void 0,panelPageRule:this.panelPageRule||void 0,paperNumberLeft:this.paperNumberLeft,paperNumberTop:this.paperNumberTop,printElements:i,rotate:this.rotate,firstPaperFooter:this.firstPaperFooter,evenPaperFooter:this.evenPaperFooter,oddPaperFooter:this.oddPaperFooter,lastPaperFooter:this.lastPaperFooter,topOffset:this.topOffset,fontFamily:this.fontFamily,orient:this.orient,scale:this.scale,watermarkOptions:this.watermarkOptions||void 0,leftOffset:this.leftOffset})},t.prototype.createTarget=function(){var t=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      ');return this.css(t),t},t.prototype.droppablePaper=function(l){var p=this;l.getTarget().hidroppable({accept:".ep-draggable-item",onDrop:function(t,e){var i=s.a.instance.getDragingPrintElement(),n=i.printElement,r=p.designPaper.scale||1,a=(i.left-o.a.px.toPt(p.target.children(".hiprint-printPaper").offset().left))/r,i=(i.top-o.a.px.toPt(p.target.children(".hiprint-printPaper").offset().top))/r;n.updateSizeAndPositionOptions(p.mathroundToporleft(a),p.mathroundToporleft(i)),n.setTemplateId(p.templateId),n.setPanel(p),p.appendDesignPrintElement(p.designPaper,n,!0),p.printElements.push(n),n.design(void 0,l),o.a.event.trigger("hiprintTemplateDataChanged_"+p.templateId,"新增")}})},t.prototype.initPrintElements=function(t){var i=this;this.printElements=[],t&&t.forEach(function(t){var e;(e=t.printElementType?nt.createPrintElementType(t.printElementType):a.instance.getElementType(t.tid))&&((e=e.createPrintElement(t.options)).setTemplateId(i.templateId),e.setPanel(i),i.printElements.push(e))})},t.prototype.mathroundToporleft=function(t){var e=p.a.instance.movingDistance;return Math.round(t/e)*e},t.prototype.appendDesignPrintElement=function(t,e,i){e.setCurrenttemplateData(void 0);var n=e.getDesignTarget(t);n.addClass("design"),i&&e.initSizeByHtml(n),t.append(n)},t.prototype.createNewPage=function(t,e){t=new T(this.templateId,this.index,this.watermarkOptions,this.panelPageRule,this.scale,this.width,this.height,this.paperHeader,this.paperFooter,this.paperNumberLeft,this.paperNumberTop,this.paperNumberDisabled,this.paperNumberContinue,this.paperNumberFormat,t,e);return t.setFooter(this.firstPaperFooter,this.evenPaperFooter,this.oddPaperFooter,this.lastPaperFooter),t.setOffset(this.leftOffset,this.topOffset),t},t.prototype.orderPrintElements=function(){this.printElements=o.a.orderBy(this.printElements,function(t){return t.options.getLeft()}),this.printElements=o.a.orderBy(this.printElements,function(t){return t.options.getTop()})},t.prototype.fillPaperHeaderAndFooter=function(e,i,n){this.printElements.filter(function(t){return t.isFixed()||t.isHeaderOrFooter()}).forEach(function(t){t.isFixed(),t.showInPage(e.index,n)&&(t=t.getHtml(e,i)).length&&e.append(t[0].target)})},t.prototype.clear=function(){this.printElements.forEach(function(t){t.designTarget&&t.designTarget.length&&t.designTarget.remove()}),this.printElements=[],o.a.event.trigger("hiprintTemplateDataChanged_"+this.templateId,"清空")},t.prototype.insertPrintElementToPanel=function(t){var e=this.getPrintElementTypeByEntity(t);e&&((e=e.createPrintElement(t.options)).setTemplateId(this.templateId),e.setPanel(this),this.printElements.push(e))},t.prototype.addPrintText=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="text",this.insertPrintElementToPanel(t)},t.prototype.addPrintHtml=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="html",this.insertPrintElementToPanel(t)},t.prototype.addPrintTable=function(t){var e;t.printElementType=t.printElementType||{},t.printElementType.type="table",t.options&&t.options.columns&&(e=jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({},t.options.columns),t.printElementType.columns=e.columns,e.columns=void 0),this.insertPrintElementToPanel(t)},t.prototype.addPrintImage=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="image",this.insertPrintElementToPanel(t)},t.prototype.addPrintLongText=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="longText",this.insertPrintElementToPanel(t)},t.prototype.addPrintVline=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="vline",this.insertPrintElementToPanel(t)},t.prototype.addPrintHline=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="hline",this.insertPrintElementToPanel(t)},t.prototype.addPrintRect=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="rect",this.insertPrintElementToPanel(t)},t.prototype.addPrintOval=function(t){t.printElementType=t.printElementType||{},t.printElementType.type="oval",this.insertPrintElementToPanel(t)},t.prototype.getPrintElementTypeByEntity=function(t){return t.tid?a.instance.getElementType(t.tid):nt.createPrintElementType(t.printElementType)},t.prototype.getPrintStyle=function(){return" \n"},t.prototype.getPrintSizeStyle=function(){return this.paperType?"size:"+this.paperType+" "+(this.height>this.width?"portrait":"landscape")+";":"size: "+this.width+"mm "+this.height+"mm "+(this.orient?1==this.orient?"portrait":"landscape":"")+";"},t.prototype.deletePrintElement=function(i){var n=this;this.printElements.filter(function(t,e){t.id==i.id&&(i.delete(),n.printElements.splice(e,1))})},t.prototype.getElementByTid=function(e){return this.printElements.filter(function(t){return t.printElementType.tid===e}).map(function(t,e){return t})},t.prototype.getElementByName=function(e){return this.printElements.filter(function(t){return t.options.name===e}).map(function(t,e){return t})},t.prototype.getElementById=function(e){return this.printElements.find(function(t){return t.id===e})},t.prototype.getFieldsInPanel=function(){var e=[];return this.printElements.forEach(function(t){t.options&&t.options.field?e.push(t.options.field):t.printElementType.field&&e.push(t.printElementType.field)}),e},t.prototype.getTestData=function(){var e={};return this.printElements.forEach(function(t){"table"!=t.printElementType.type&&(t.options&&t.options.field?e[t.options.field]=t.options.testData:t.printElementType.field&&(e[t.printElementType.field]=t.printElementType.data||t.options.testData))}),e},t.prototype.bindBatchMoveElement=function(){var e=this;this.designPaper.getTarget().on("mousemove",function(t){t.target.className&&"string"==_typeof(t.target.className)&&t.target.className.includes("editing")||(t.currentTarget.className==e.designPaper.target[0].className?(e.mouseOffsetX=t.offsetX,e.mouseOffsetY=t.offsetY):e.mouseOffsetX=e.mouseOffsetY=void 0,s.a.instance.draging||1===t.buttons&&s.a.instance.rectDraging&&e.mouseRect&&(e.mouseRect.updateRect(t.pageX,t.pageY),e.updateRectPanel(e.mouseRect)))}).on("mousedown",function(t){s.a.instance.rectDraging=!0,t.target.className&&"string"==_typeof(t.target.className)&&t.target.className.includes("editing")||s.a.instance.draging||(e.mouseRect&&e.mouseRect.target&&e.mouseRect.target.remove(),1===t.buttons&&"string"==_typeof(t.target.className)&&t.target.className.includes("hiprint-printPaper hidroppable design")&&(e.mouseRect=new at(t.pageX,t.pageY,s.a.instance.dragLengthCNum(t.pageX-e.designPaper.getTarget().offset().left,p.a.instance.movingDistance),s.a.instance.dragLengthCNum(t.pageY-e.designPaper.getTarget().offset().top,p.a.instance.movingDistance))))}).on("mouseup",function(t){s.a.instance.rectDraging=!1})},t.prototype.getElementInRect=function(e){var i=[];return this.printElements.filter(function(t){return!1!==t.options.draggable}).forEach(function(t){t.inRect(e)&&i.push(t)}),i},t.prototype.updateRectPanel=function(t){var e,i,n=this,r=this.designPaper.getTarget(),a=this.designPaper.scale||1;this.mouseRect.target||(this.mouseRect.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      '),r.find(".hiprint-printPaper-content").append(this.mouseRect.target),this.bingKeyboardMoveEvent(this.mouseRect.target),this.mouseRect.target.hidraggable({onDrag:function(t,e,i){n.mouseRect.lastLeft=n.mouseRect.lastLeft?o.a.px.toPt(n.mouseRect.target[0].offsetLeft):e/a,n.mouseRect.lastTop=n.mouseRect.lastTop?o.a.px.toPt(n.mouseRect.target[0].offsetTop):i/a,(n.mouseRect.mouseRectSelectedElement||[]).forEach(function(t){t.updatePositionByMultipleSelect(e-n.mouseRect.lastLeft,i-n.mouseRect.lastTop)}),n.mouseRect.lastLeft=e/a,n.mouseRect.lastTop=i/a,s.a.instance.changed=!0},moveUnit:"pt",minMove:p.a.instance.movingDistance,onBeforeDrag:function(t){n.mouseRect.target.focus(),s.a.instance.draging=!0,n.mouseRect.mouseRectSelectedElement||(n.mouseRect.mouseRectSelectedElement=n.getElementInRect(n.mouseRect)),n.mouseRect.target.css({transform:"unset"})},getScale:function(){return n.designPaper.scale||1},onStopDrag:function(t){s.a.instance.changed&&o.a.event.trigger("hiprintTemplateDataChanged_"+r.templateId,"框选移动"),s.a.instance.draging=!1,s.a.instance.changed=!1}})),t.ex>=t.bx&&t.ey>=t.by?this.mouseRect.target.css({height:t.maxY-t.minY+"px",width:t.maxX-t.minX+"px",left:t.lastLeft/a+"pt",top:t.lastTop/a+"pt",transform:"unset"}):t.ex=t.by?(i="scaleX(-1)","left"):"center top":t.startY!=t.minY&&t.startY!=t.maxY||(e=t.ex>=t.bx?"right":"left"),this.mouseRect.target.css({height:t.maxY-t.minY+"px",width:t.maxX-t.minX+"px",left:t.lastLeft/a+"pt",top:t.lastTop/a+"pt",transform:i,"transform-origin":e})),t.target.focus()},t.prototype.bingKeyboardMoveEvent=function(t){var i=this;t.attr("tabindex","1"),t.keydown(function(t){i.mouseRect.mouseRectSelectedElement||(i.mouseRect.mouseRectSelectedElement=i.getElementInRect(i.mouseRect));var e=i.mouseRect.mouseRectSelectedElement||[];switch(t.keyCode){case 37:i.mouseRect.updatePositionByMultipleSelect(0-p.a.instance.movingDistance,0),e.forEach(function(t){t.updatePositionByMultipleSelect(0-p.a.instance.movingDistance,0)}),t.preventDefault();break;case 38:i.mouseRect.updatePositionByMultipleSelect(0,0-p.a.instance.movingDistance),e.forEach(function(t){t.updatePositionByMultipleSelect(0,0-p.a.instance.movingDistance)}),t.preventDefault();break;case 39:i.mouseRect.updatePositionByMultipleSelect(p.a.instance.movingDistance,0),e.forEach(function(t){t.updatePositionByMultipleSelect(p.a.instance.movingDistance,0)}),t.preventDefault();break;case 40:i.mouseRect.updatePositionByMultipleSelect(0,p.a.instance.movingDistance),e.forEach(function(t){t.updatePositionByMultipleSelect(0,p.a.instance.movingDistance)}),t.preventDefault()}[37,38,39,40].includes(t.keyCode)&&o.a.event.trigger("hiprintTemplateDataChanged_"+i.templateId,"框选移动")})},t}(),st=function(t){if(t)if(t.panels){this.panels=[];for(var e=0;e
        '),t.forEach(function(t){var e=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
      • '+t.name+"
      • "),o=(i.find(".prop-tab-items").append(e),jquery__WEBPACK_IMPORTED_MODULE_0___default()('
        '));t.list.forEach(function(t){t.submit=function(t){a.submitOption()};var e=t.createTarget(a,a.options,a.printElementType);n.printElementOptionSettingPanel[t.name]=e,o.append(e),["columns","dataType"].includes(t.name)?t.setValue(a.options[t.name],a.options,a.printElementType):["coordinate","widthHeight"].includes(t.name)?t.setValue(a.options,a):t.setValue(a.options[t.name]||a.printElementType[t.name]),e.find("textarea").bind("dblclick.textarea",function(t){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val()||(t=t.target.placeholder||"",jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val(t))})}),0==t.list.length&&l&&l.length&&l.forEach(function(e){var i=e.callback,n=(e.callback=function(t){i&&i(t)},e.optionItems);e.title&&o.append('
        \n
        \n '+e.title+"\n
        \n
        "),n.forEach(function(t){t.submit=function(t){e.callback(r.getValueByOptionItems(n))},o.append(t.createTarget(r.printTemplate,e.options,void 0)),t.setValue(e.options[t.name],e.options,void 0)}),o.find(".auto-submit").change(function(){e.callback(r.getValueByOptionItems(n))}),o.find(".auto-submit:input").bind("keydown.submitOption",function(t){13===t.keyCode&&e.callback(r.getValueByOptionItems(n))}),o.find("textarea").bind("dblclick.textarea",function(t){jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val()||(t=t.target.placeholder||"",jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val(t))})}),i.append(o)})):(i=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
        '),a.getPrintElementOptionItems().forEach(function(t){t.submit=function(t){a.submitOption()};var e=t.createTarget(a,a.options,a.printElementType);n.printElementOptionSettingPanel[t.name]=e,i.append(e),["columns","dataType"].includes(t.name)?t.setValue(a.options[t.name],a.options,a.printElementType):["coordinate","widthHeight"].includes(t.name)?t.setValue(a.options,a):t.setValue(a.options[t.name]||a.printElementType[t.name])})),jquery__WEBPACK_IMPORTED_MODULE_0___default()('')),s=jquery__WEBPACK_IMPORTED_MODULE_0___default()('');i.append(o),0!=a.options.draggable&&i.append(s),t.length&&(i.on("click",".prop-tab-item",function(){var t=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this),e=t.index(),t=(n.settingContainer.data("last-index",e),t.addClass("active"),t.siblings().removeClass("active"),i.find(".hiprint-option-items:eq("+e+")"));t.addClass("active"),t.siblings().removeClass("active")}),(e=+(n.settingContainer.data("last-index")||0))>=t.length&&(e=0),i.find(".prop-tab-item:eq("+e+")").click()),o.bind("click.submitOption",function(){a.submitOption()}),s.bind("click.deleteBtn",function(){r.printTemplate.deletePrintElement(a),n.clearSettingContainer()}),i.find(".auto-submit").change(function(t){a.submitOption()}),i.find(".auto-submit:input").bind("keydown.submitOption",function(t){13==t.keyCode&&a.submitOption()}),this.settingContainer.append(i),t.length<1&&l&&l.forEach(function(t){var e=t.callback;t.callback=function(t){e&&(e(t),a.submitOption())},n.buildSettingByCustomOptions(t,n.settingContainer)}),this.lastPrintElement=a},t.prototype.buildSettingByCustomOptions=function(e,t){var i=this,n=(this.clearLastPrintElement(),t||this.settingContainer),o=(t||this.settingContainer.html(""),[]),r=p.a.instance.panel.supportOptions.filter(function(t){return!t.hidden}).map(function(t){return t.name}),a=(e.optionItems?o=e.optionItems:Object.keys(e.options).filter(function(t){return r.includes(t)}).forEach(function(t){t=lt.a.getItem(t);t&&o.push(t)}),jquery__WEBPACK_IMPORTED_MODULE_0___default()('
        ')),t=(e.title&&a.append('
        \n
        \n '+e.title+"\n
        \n
        "),o.forEach(function(t){t.submit=function(t){e.callback(i.getValueByOptionItems(o))},a.append(t.createTarget(i.printTemplate,e.options,void 0)),t.setValue(e.options[t.name],e.options,void 0)}),jquery__WEBPACK_IMPORTED_MODULE_0___default()(''));a.append(t),t.bind("click.submitOption",function(){e.callback(i.getValueByOptionItems(o))}),a.find(".auto-submit").change(function(t){e.callback(i.getValueByOptionItems(o))}),a.find(".auto-submit:input").bind("keydown.submitOption",function(t){13==t.keyCode&&e.callback(i.getValueByOptionItems(o))}),n.append(a)},t.prototype.getValueByOptionItems=function(t){var e={};return t.forEach(function(t){e[t.name]=t.getValue()}),e},t}(),dt=function(){function t(t,e){this.paginationContainer=t,this.jqPaginationContainer=jquery__WEBPACK_IMPORTED_MODULE_0___default()(this.paginationContainer),this.template=e}return t.prototype.buildPagination=function(t){var e=this.template.getPaneltotal(),n=this;this.jqPaginationContainer.html("");for(var o=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
          '),r=0;r"+e+'x');i.find("span").click(function(){n.template.selectPanel(t),i.siblings().removeClass("selected"),jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).parent("li").addClass("selected")}),i.find("a").click(function(){n.template.deletePanel(t),n.buildPagination()}),o.append(i)}();var i=jquery__WEBPACK_IMPORTED_MODULE_0___default()("
        • +
        • ");o.append(i),this.jqPaginationContainer.append(o),i.click(function(){function t(t){n.template.addPrintPanel(t||void 0,!0),n.buildPagination(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hiprint-pagination li").removeClass("selected"),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hiprint-pagination li:nth-last-child(2)").addClass("selected")}var e;n.template.onPanelAddClick?(e={index:n.template.printPanels.length,paperType:"A4"},n.template.onPanelAddClick(e,t)):t()})},t.prototype.selectPanel=function(t){var t=t||this.template.editingPanel.index,e=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hiprint-pagination li:nth("+t+")");e.length&&(e.siblings().removeClass("selected"),e.addClass("selected")),hinnn.event.trigger("onSelectPanel",this.template.editingPanel,t,e)},t}(),ct=function(){function t(t){var e=this,t=(this.tempimageBase64={},this.id=s.a.instance.guid(),s.a.instance.setPrintTemplateById(this.id,this),t||{}),i=(this.printPanels=[],this.dataMode=t.dataMode||1,this.history=null==t.history||t.history,this.onDataChanged=t.onDataChanged,this.onUpdateError=t.onUpdateError,this.lastJson=t.template||{},this.historyList=[{id:s.a.instance.guid(),type:"初始",json:this.lastJson}],this.historyPos=0,this.defaultPanelName=t.defaultPanelName,this.designOptions={},new st(t.template||[]));t.template&&i.panels.forEach(function(t){e.printPanels.push(new pt(t,e.id))}),t.fontList&&(this.fontList=t.fontList),t.fields&&(this.fields=t.fields),t.onImageChooseClick&&(this.onImageChooseClick=t.onImageChooseClick),t.onPanelAddClick&&(this.onPanelAddClick=t.onPanelAddClick),t.settingContainer&&new ut(this,t.settingContainer),t.paginationContainer&&(this.printPaginationCreator=new dt(t.paginationContainer,this),this.printPaginationCreator.buildPagination()),this.initAutoSave()}return t.prototype.design=function(t,i){var e,n=this;if(i=i||{},0==this.printPanels.length&&(e=this.createDefaultPanel(),this.printPanels.push(e)),!t)throw new Error("options.container can not be empty");n.designOptions=i,this.createContainer(t),this.printPanels.forEach(function(t,e){n.container.append(t.getTarget()),0'));return o&&o.constructor===Array?o.forEach(function(i,n){i&&a.printPanels.forEach(function(t,e){l.append(t.getHtml(i,r)),n==o.length-1&&delete hinnn._paperList})}):this.printPanels.forEach(function(t,e){l.append(t.getHtml(o,r)),e==a.printPanels.length-1&&delete hinnn._paperList}),r&&r.imgToBase64&&this.transformImg(l.find("img")),l},t.prototype.getHtml=function(t,e){return this.getSimpleHtml(t=t||{},e)},t.prototype.getJointHtml=function(i,n,o){var r=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
          '),a=[];return this.printPanels.forEach(function(t,e){r.append(t.getHtml(i,n,a,void 0,o))}),r},t.prototype.setPaper=function(t,e){if(/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/.test(t))this.editingPanel.resize(void 0,parseFloat(t),parseFloat(e),!1);else{e=s.a.instance[t];if(!e)throw new Error("not found pagetype:"+(t||""));this.editingPanel.resize(t,e.width,e.height,!1)}},t.prototype.rotatePaper=function(){this.editingPanel.rotatePaper()},t.prototype.zoom=function(t,e){this.editingPanel.zoom(t,e)},t.prototype.addPrintPanel=function(t,e){var i=t?new pt(new rt(t),this.id):this.createDefaultPanel();return t&&(t.index=this.printPanels.length),e&&(this.container.append(i.getTarget()),i.design(this.designOptions)),this.printPanels.push(i),e&&this.selectPanel(i.index),i},t.prototype.selectPanel=function(i){var n=this;i>n.printPanels.length-1&&(i=n.printPanels.length-1),this.printPanels.forEach(function(t,e){i==e?(t.enable(),n.editingPanel=t,n.printPaginationCreator&&n.printPaginationCreator.selectPanel(i)):t.disable()})},t.prototype.deletePanel=function(t){this.printPanels[t].clear(),this.printPanels[t].getTarget().remove(),this.printPanels.splice(t,1)},t.prototype.getPaneltotal=function(){return this.printPanels.length},t.prototype.createDefaultPanel=function(){return new pt(new rt({index:this.printPanels.length,name:this.defaultPanelName,paperType:"A4"}),this.id)},t.prototype.createContainer=function(t){t?(this.container=jquery__WEBPACK_IMPORTED_MODULE_0___default()(t),this.container.addClass("hiprint-printTemplate")):this.container=jquery__WEBPACK_IMPORTED_MODULE_0___default()('
          ')},t.prototype.getJsonTid=function(){var e=[];return this.printPanels.forEach(function(t){t.getPanelEntity().printElements.length&&e.push(t.getPanelEntity())}),new st({panels:e})},t.prototype.getJson=function(){var e=[];return this.printPanels.forEach(function(t){e.push(t.getPanelEntity(!0))}),new st({panels:e})},t.prototype.undo=function(t){o.a.event.trigger("hiprintTemplateDataShortcutKey_"+this.id,"undo")},t.prototype.redo=function(t){o.a.event.trigger("hiprintTemplateDataShortcutKey_"+this.id,"redo")},t.prototype.getPrintElementSelectEventKey=function(){return"PrintElementSelectEventKey_"+this.id},t.prototype.getBuildCustomOptionSettingEventKey=function(){return"BuildCustomOptionSettingEventKey_"+this.id},t.prototype.clear=function(){this.printPanels.forEach(function(t){t.clear(),0this.printPanels[t].width?1:2},t.prototype.getPrintStyle=function(t){return this.printPanels[t].getPrintStyle()},t.prototype.print=function(t,e,i){this.getHtml(t=t||{},e).hiwprint(i)},t.prototype.print2=function(o,r){if(o=o||{},r=r||{},this.clientIsOpened()){var a=this,l=0,s={},p=jquery__WEBPACK_IMPORTED_MODULE_0___default()('link[media=print][href*="print-lock.css"]'),I="";if(r.styleHandler&&(I+=r.styleHandler()),p.length<=0)throw new Error('请在 入口文件(index.html) 中引入 print-lock.css. 注意: link[media="print"]');p.each(function(i,t){var n=new XMLHttpRequest;n.open("GET",jquery__WEBPACK_IMPORTED_MODULE_0___default()(t).attr("href")),n.onreadystatechange=function(){if(4===n.readyState&&200===n.status&&(s[i+""]='",++l==p.length)){for(var t="",e=0;e'+r.responseText+"",++I==u.length)){for(var t="",e=0;e'))},t.prototype.removeTempContainer=function(){jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hiprint_temp_Container").remove()},t.prototype.getTempContainer=function(){return jquery__WEBPACK_IMPORTED_MODULE_0___default()(".hiprint_temp_Container")},t.prototype.svg2canvas=function(t){var a=this;t.find("svg").each(function(t,e){var i=e.parentNode,n=a.parentWidthHeight(i),o=document.createElement("canvas"),n=(o.width=n.width,o.height=n.height,o.getContext("2d")),r=(new XMLSerializer).serializeToString(e);canvg__WEBPACK_IMPORTED_MODULE_11___default.a.fromString(n,r).render(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).before(o),i.removeChild(e)})},t.prototype.parentWidthHeight=function(t){return t.style.width.endsWith("%")||t.style.height.endsWith("%")?"hiprint-printPaper-content"!=t.className?this.parentWidthHeight(t.parentNode):{width:10,height:10}:{width:o.a.pt.toPx(parseFloat(t.style.width)),height:o.a.pt.toPx(parseFloat(t.style.height))}},t.prototype.on=function(t,e){o.a.event.clear(t+"_"+this.id),o.a.event.on(t+"_"+this.id,e)},t.prototype.clientIsOpened=function(){return hiwebSocket.opened},t.prototype.getPrinterList=function(){return hiwebSocket.getPrinterList()||[]},t.prototype.getElementByTid=function(t,e){return this.printPanels[e=null==e?0:e].getElementByTid(t)},t.prototype.getElementByName=function(t,e){return this.printPanels[e=null==e?0:e].getElementByName(t)},t.prototype.getPanel=function(t){return this.printPanels[t=null==t?0:t]},t.prototype.loadAllImages=function(t,e,i){var n=this;null==i&&(i=0);for(var o=t[0].getElementsByTagName("img"),r=!0,a=0;a1?arguments[1]:g.tenMin,a=e.length;if(1==a)return h.charAt(+e);if(a<=4)for(var l=0,s=a;s--;){var p=+e.charAt(l);o+=r&&2==a&&0==l&&1==p?"":h.charAt(p),o+=p&&s?m.charAt(s):"",l++}else{for(var I=e.length/4>>0,c=e.length%4;0==c||!m.charAt(3+I);)c+=4,I--;var u=e.substr(0,c),d=e.substr(c);o=t(u,r)+m.charAt(3+I)+("0"==d.charAt(0)?b:"")+t(d,d.length>4&&r)}return o=y.clearZero(o,b)};if(r){r=y.clearZero(r,"0","$");for(var c=0;c5){var u=m.charAt(4),d=m.charAt(5),f=l.lastIndexOf(d);~f&&(l=l.substring(0,f).replace(new RegExp(d,"g"),u+u)+l.substring(f))}return p+l+s}function e(t){t=t.toString();var e=t.split(this.ch_d),i=e[0].replace(this.ch_f,""),n=e[1],o=!!~e[0].indexOf(this.ch_f),r=this.ch_u.charAt(1),a=this.ch_u.charAt(4),l=this.ch_u.charAt(5);i=i.replace(new RegExp(a+"{2}","g"),l);for(var s=i.split(""),p=0,I=0,c=[],u=[],d=[],g=0;g0&&d.unshift(m);else if(~(b=this.ch_u.indexOf(h))){var f=y.getDigit(b);p>b?(y.unshiftZero(d,f),y.centerArray(u,d)):b>=I?(0==g&&(d=[1]),y.centerArray(c,u,d),c.length>0&&y.unshiftZero(c,f),I=b):(0==d.length&&r==h&&(d=[1]),y.centerArray(u,d),y.unshiftZero(u,y.getDigit(b)),p=b)}}y.centerArray(c,u,d).reverse(),0==c.length&&c.push(0);var M=0;if(n){c.push("."),M="0.";for(var g=0;g0){var r=n.substr(0,o);r=r.length2){var n=[].slice.call(arguments,2);n.unshift(e),t.apply(null,n)}return e};var a=e.hasAttr=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};e.extend=function(t){for(var e,i=arguments[0]||{},n=Array.prototype.slice.call(arguments,1),o=0;o=5?4*(t-4)+4:t},e.unshiftZero=function(t,e){if(null==e&&(e=1),!(e<=0))for(;e--;)t.unshift(0)},e.clearZero=function(t,e,i){if(null==t)return"";var n=~"*.?+$^[](){}|\\/".indexOf(e)?"\\"+e:e,o=new RegExp("^"+n+"+"),r=new RegExp(n+"+$"),a=new RegExp(n+"{2}","g");return t=t.toString(),"^"==i&&(t=t.replace(o,"")),i&&"$"!=i||(t=t.replace(r,"")),i&&"nto1"!=i||(t=t.replace(a,e)),t}}),o=(y.e2ten,y.getNumbResult,y.centerArray,y.hasAttr,y.extend,y.getDigit,y.unshiftZero,y.clearZero,{CL:u,unCL:e,toMoney:i}),r=n,a,l,s,p,I={s:{ch:"零一二三四五六七八九",ch_u:"个十百千万亿",ch_f:"负",ch_d:"点"},b:{ch:"零壹贰叁肆伍陆柒捌玖",ch_u:"个拾佰仟万亿",ch_f:"负",ch_d:"点",m_t:"人民币",m_z:"整",m_u:"元角分"},hk_s:{ch:"零一二三四五六七八九",ch_u:"個十百千萬億",ch_f:"負",ch_d:"點"},hk_b:{ch:"零壹貳參肆伍陸柒捌玖",ch_u:"個拾佰仟萬億",ch_f:"負",ch_d:"點",m_t:"$",m_z:"整",m_u:"圓角分"}},c=function(t){this.lang=t,this.encode=function(){return o.CL.apply(t,arguments)},this.decode=function(){return o.unCL.apply(t,arguments)},this.toMoney=function(){return o.toMoney.apply(t,arguments)}},d;return c.langs=I,c.cn=r(I.s,I.b),c.hk=r(I.hk_s,I.hk_b),c}()},function(t,e,i){"use strict";const n={id:"watermark",watch:!1,content:"vue-plugin-hiprint",container:".hiprint-printPaper",width:200,height:200,textAlign:"center",textBaseline:"middle",fontSize:"14px",fontFamily:"Microsoft Yahei",fillStyle:"rgba(184, 184, 184, 0.3)",rotate:25,timestamp:!1,format:"YYYY-MM-DD HH:mm",zIndex:0};let j={};function T(e){const{id:i,watch:t,content:n,container:o,width:r,height:a,textAlign:l,textBaseline:s,fontSize:p,fontFamily:I,fillStyle:c,rotate:u,timestamp:d,format:g,zIndex:h}=e,m=(j[i]={wmMo:null,wmTimer:null},document.createElement("canvas"));m.setAttribute("width",r+"px"),m.setAttribute("height",a+"px");let b="string"==typeof o?document.querySelector(o):o;const f=m.getContext("2d");f.textAlign=l,f.textBaseline=s,f.font=p+" "+I,f.fillStyle=c,f.translate(r/2,a/2),f.rotate(-Math.PI/180*u),f.fillText(""+n,0,0),d&&f.fillText(""+function(t,e="YYYY-MM-DD"){if(!t)return null;var i=(t="number"==typeof t?new Date(t):t).getFullYear(),n=t.getMonth(),o=t.getDate(),r=t.getHours(),a=r%12==0?12:r%12,l=t.getMinutes(),t=t.getSeconds(),s=t=>("0"+t).slice(-2);const p={YYYY:i,MM:s(n+1),MMMM:n+1+"月",M:n+1,DD:s(o),D:o,HH:s(r),H:r,hh:s(a),h:a,mm:s(l),m:l,ss:s(t),s:t};return e.replace(/Y+|M+|D+|H+|h+|m+|s+|S+|Q/g,t=>String(p[t]))}(new Date,g),0,parseInt(p)+5);let M=b.querySelector(".__vm__"+i);const y=M||document.createElement("div");const P=`position:absolute;user-select:none;top:0;left:0;${b.getAttribute("style")};z-index:${h};pointer-events:none !important;background-repeat:repeat;background-image:url('${m.toDataURL()}')`;if(y.setAttribute("style",P),y.classList.add("__vm__"+i),M||b.insertBefore(y,b.firstChild),t){const v=window.MutationObserver||window.WebKitMutationObserver;v&&(j[i].wmMo=new v(t=>{t=t.some(t=>t.target.className==b.className&&"attributes"==t.type);((M=b.querySelector(".__vm__"+i))&&M.getAttribute("style")!==P||!M||t)&&(j[i].wmMo.disconnect(),j[i].wmMo=null,delete j[i].wmMo,T(e))}),j[i].wmMo.observe(b,{attributes:!0,subtree:!0,childList:!0}))}if(g){let t=864e5;g.includes("s")?t=1e3:g.includes("m")?t=6e4:(g.includes("h")||g.includes("H"))&&(t=36e5),j[i].wmTimer=window.setTimeout(()=>{y.style.bottom="0"},t)}}function o(e){var{id:e,watch:t,container:i}=e;if(t){let t="string"==typeof i?document.querySelector(i):i;j[e]&&(j[e].wmMo&&j[e].wmMo.disconnect(),j[e].wmMo=null,j[e].wmTimer&&window.clearTimeout(j[e].wmTimer),j[e].wmTimer=null,delete j[e]);const n=t.querySelector(".__vm__"+e);n&&n.parentNode.removeChild(n)}}e.a={createWatermark:function(t){t=Object.assign({},n,t);o(t),T(t)},destroyWatermark:o}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(t,e,i){"use strict";t.exports=function(i){var s=[];return s.toString=function(){return this.map(function(t){var e=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa)return t=function(t){t=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(t," */")}(n),e=n.sources.map(function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}),[i].concat(e).concat([t]).join("\n");return[i].join("\n")}(t,i);return t[2]?"@media ".concat(t[2]," {").concat(e,"}"):e}).join("")},s.i=function(t,e,i){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var o=0;oi.parts.length&&(n.parts.length=i.parts.length)}else{for(var r=[],o=0;o'},type:"html"},{tid:"defaultModule.customText",title:"自定义文本",customText:"自定义文本",custom:!0,type:"text"}]),new e.PrintElementTypeGroup("辅助",[{tid:"defaultModule.hline",title:"横线",type:"hline"},{tid:"defaultModule.vline",title:"竖线",type:"vline"},{tid:"defaultModule.rect",title:"矩形",type:"rect"},{tid:"defaultModule.oval",title:"椭圆",type:"oval"}])])}}}}},function(t,e,i){"use strict";i.r(e),i.d(e,"autoConnect",function(){return n}),i.d(e,"disAutoConnect",function(){return r}),i.d(e,"hiPrintPlugin",function(){return a});var o=i(1);i.d(e,"hiprint",function(){return o.b}),i.d(e,"defaultElementTypeProvider",function(){return o.a}),i(17),i(18),i(19),i(23);let n=function(t){window.autoConnect=!0,window.hiwebSocket&&window.hiwebSocket.hasIo()&&window.hiwebSocket.start(t)},r=function(){window.autoConnect=!1,window.hiwebSocket&&window.hiwebSocket.hasIo()&&window.hiwebSocket.stop()},a={disAutoConnect:r,install:function(t,e="$hiPrint",i=!0){i||r();let n=t.prototype||t.config.globalProperties;n[e]=o.b,n.$print=function(t=o.a,e,...i){o.b.init({providers:[new t]});t=new o.b.PrintTemplate({template:e});return t.print(...i),t},n.$print2=function(t=o.a,e,...i){o.b.init({providers:[new t]});t=new o.b.PrintTemplate({template:e});return t.print2(...i),t}}};window.hiprint=o.b},function(t,e,i){var n;i=[i(0)],void 0!==(e="function"==typeof(n=function(P){"use strict";function i(t){var e=t.parent();t.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),e.before(t).remove()}function n(t){var e=t.parent(),i=e.find(".minicolors-panel"),n=t.data("minicolors-settings");!t.data("minicolors-initialized")||t.prop("disabled")||e.hasClass("minicolors-inline")||e.hasClass("minicolors-focus")||(o(),e.addClass("minicolors-focus"),i.animate?i.stop(!0,!0).fadeIn(n.showSpeed,function(){n.show&&n.show.call(t.get(0))}):(i.show(),n.show&&n.show.call(t.get(0))))}function o(){P(".minicolors-focus").each(function(){var t=P(this),e=t.find(".minicolors-input"),i=t.find(".minicolors-panel"),n=e.data("minicolors-settings");i.animate?i.fadeOut(n.hideSpeed,function(){n.hide&&n.hide.call(e.get(0)),t.removeClass("minicolors-focus")}):(i.hide(),n.hide&&n.hide.call(e.get(0)),t.removeClass("minicolors-focus"))})}function r(t,e,i){var n,o,r,a,l,s=t.parents(".minicolors").find(".minicolors-input"),p=s.data("minicolors-settings"),I=t.find("[class$=-picker]"),c=t.offset().left,u=t.offset().top,d=Math.round(e.pageX-c),g=Math.round(e.pageY-u),h=i?p.animationSpeed:0;e.originalEvent.changedTouches&&(d=e.originalEvent.changedTouches[0].pageX-c,g=e.originalEvent.changedTouches[0].pageY-u),d<0&&(d=0),g<0&&(g=0),d>t.width()&&(d=t.width()),g>t.height()&&(g=t.height()),t.parent().is(".minicolors-slider-wheel")&&I.parent().is(".minicolors-grid")&&(n=75-d,o=75-g,r=Math.sqrt(n*n+o*o),(a=Math.atan2(o,n))<0&&(a+=2*Math.PI),75>16,g:(65280&t)>>8,b:255&t}}P.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom",show:null,showSpeed:100,theme:"default",swatches:[]}},P.extend(P.fn,{minicolors:function(t,e){switch(t){case"destroy":return P(this).each(function(){i(P(this))}),P(this);case"hide":return o(),P(this);case"opacity":return void 0===e?P(this).attr("data-opacity"):(P(this).each(function(){c(P(this).attr("data-opacity",e))}),P(this));case"rgbObject":return function(t){var e,i=P(t).attr("data-opacity");{var n;e=S(P(t).val())?E(P(t).val(),!0):(n=j(P(t).val(),!0),H(n))}if(!e)return null;void 0!==i&&P.extend(e,{a:parseFloat(i)});return e}(P(this));case"rgbString":case"rgbaString":return function(t,e){var i,n=P(t).attr("data-opacity");{var o;i=S(P(t).val())?E(P(t).val(),!0):(o=j(P(t).val(),!0),H(o))}if(!i)return null;void 0===n&&(n=1);return e?"rgba("+i.r+", "+i.g+", "+i.b+", "+parseFloat(n)+")":"rgb("+i.r+", "+i.g+", "+i.b+")"}(P(this),"rgbaString"===t);case"settings":return void 0===e?P(this).data("minicolors-settings"):(P(this).each(function(){var t=P(this).data("minicolors-settings")||{};i(P(this)),P(this).minicolors(P.extend(!0,t,e))}),P(this));case"show":return n(P(this).eq(0)),P(this);case"value":return void 0===e?P(this).val():(P(this).each(function(){"object"==typeof e&&null!==e?(void 0!==e.opacity&&P(this).attr("data-opacity",_(e.opacity,0,1)),e.color&&P(this).val(e.color)):P(this).val(e),c(P(this))}),P(this));default:return"create"!==t&&(e=t),P(this).each(function(){!function(e,t){var i,n,o,r,a,l,s,p=P('
          '),I=P.minicolors.defaults;if(e.data("minicolors-initialized"))return;t=P.extend(!0,{},I,t),p.addClass("minicolors-theme-"+t.theme).toggleClass("minicolors-with-opacity",t.opacity),void 0!==t.position&&P.each(t.position.split(" "),function(){p.addClass("minicolors-position-"+this)});n="rgb"===t.format?t.opacity?"25":"20":t.keywords?"11":"7";e.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",t).prop("size",n).wrap(p).after('
          '),t.inline||(e.after(''),e.next(".minicolors-input-swatch").on("click",function(t){t.preventDefault(),e.trigger("focus")}));if((l=e.parent().find(".minicolors-panel")).on("selectstart",function(){return!1}).end(),t.swatches&&0!==t.swatches.length)for(l.addClass("minicolors-with-swatches"),o=P('
            ').appendTo(l),s=0;s').attr("title",i).appendTo(o).data("swatch-color",a).find(".minicolors-swatch-color").css({backgroundColor:"transparent"!==a?u(r):"transparent",opacity:String(r.a)}),t.swatches[s]=r;t.inline&&e.parent().addClass("minicolors-inline");c(e,!1),e.data("minicolors-initialized",!0)}(P(this),e)}),P(this)}}}),P([document]).on("mousedown.minicolors touchstart.minicolors",function(t){P(t.target).parents().add(t.target).hasClass("minicolors")||o()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var e=P(this);t.preventDefault(),P(t.delegateTarget).data("minicolors-target",e),r(e,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var e=P(t.delegateTarget).data("minicolors-target");e&&r(e,t)}).on("mouseup.minicolors touchend.minicolors",function(){P(this).removeData("minicolors-target")}).on("click.minicolors",".minicolors-swatches li",function(t){t.preventDefault();var e=P(this),i=e.parents(".minicolors").find(".minicolors-input"),n=e.data("swatch-color");T(i,n,C(n)),c(i)}).on("mousedown.minicolors touchstart.minicolors",".minicolors-input-swatch",function(t){var e=P(this).parent().find(".minicolors-input");t.preventDefault(),n(e)}).on("focus.minicolors",".minicolors-input",function(){var t=P(this);t.data("minicolors-initialized")&&n(t)}).on("blur.minicolors",".minicolors-input",function(){var t,e,i,n,o,r=P(this),a=r.data("minicolors-settings");r.data("minicolors-initialized")&&(t=a.keywords?P.map(a.keywords.split(","),function(t){return t.toLowerCase().trim()}):[],o=""!==r.val()&&-1 span").css("opacity",String(n)),r.val(o),""===r.val()&&r.val(w(a.defaultValue,!0)),r.val(v(r.val(),a.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(t){var e=P(this);if(e.data("minicolors-initialized"))switch(t.which){case 9:o();break;case 13:case 27:o(),e.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=P(this);t.data("minicolors-initialized")&&c(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=P(this);t.data("minicolors-initialized")&&setTimeout(function(){c(t,!0)},1)})})?n.apply(e,i):n)&&(t.exports=e)},function(t,e){window.QRCode,function(){function e(t){this.mode=r.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,i=this.data.length;e>>18,n[1]=128|(258048&o)>>>12,n[2]=128|(4032&o)>>>6,n[3]=128|63&o):2048>>12,n[1]=128|(4032&o)>>>6,n[2]=128|63&o):128>>6,n[1]=128|63&o):n[0]=o,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function s(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}e.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,i=this.parsedData.length;e>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=n}for(i=0;i<18;i++){n=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=n}},setupTypeInfo:function(t,e){for(var e=this.errorCorrectLevel<<3|e,i=m.getBCHTypeInfo(e),n=0;n<15;n++){var o=!t&&1==(i>>n&1);n<6?this.modules[n][8]=o:n<8?this.modules[n+1][8]=o:this.modules[this.moduleCount-15+n][8]=o}for(n=0;n<15;n++){o=!t&&1==(i>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=o:n<9?this.modules[8][15-n-1+1]=o:this.modules[8][15-n-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var i=-1,n=this.moduleCount-1,o=7,r=0,a=this.moduleCount-1;0>>o&1)),s=m.getMask(e,n,a-p),this.modules[n][a-p]=l=s?!l:l,-1==--o&&(r++,o=7));if((n+=i)<0||this.moduleCount<=n){n-=i,i=-i;break}}}},s.PAD0=236,s.PAD1=17,s.createData=function(t,e,i){for(var n=h.getRSBlocks(t,e),o=new f,r=0;r8*l)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*l+")");for(o.getLengthInBits()+4<=8*l&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;;){if(o.getLengthInBits()>=8*l)break;if(o.put(s.PAD0,8),o.getLengthInBits()>=8*l)break;o.put(s.PAD1,8)}return s.createBytes(o,n)},s.createBytes=function(t,e){for(var i=0,n=0,o=0,r=new Array(e.length),a=new Array(e.length),l=0;l>>=1;return e},getPatternPosition:function(t){return m.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case n:return(e+i)%2==0;case o:return e%2==0;case a:return i%3==0;case l:return(e+i)%3==0;case I:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case c:return e*i%2+e*i%3==0;case u:return(e*i%2+e*i%3)%2==0;case d:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new b([1],0),i=0;i>>7-t%8&1)},put:function(t,e){for(var i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var M=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function y(){var t=!1,e=navigator.userAgent;return/android/i.test(e)&&(t=!0,(e=e.toString().match(/android ([0-9]\.[0-9])/i))&&e[1]&&(t=parseFloat(e[1]))),t}window,i.prototype.draw=function(t){var e=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(e.width/n),Math.floor(e.height/n);function o(t,e){var i,n=document.createElementNS("http://www.w3.org/2000/svg",t);for(i in e)e.hasOwnProperty(i)&&n.setAttribute(i,e[i]);return n}this.clear();var r=o("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:e.colorLight});r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(r),r.appendChild(o("rect",{fill:e.colorLight,width:"100%",height:"100%"})),r.appendChild(o("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a'],l=0;l");for(var s=0;s');a.push("")}a.push(""),i.innerHTML=a.join("");var i=i.childNodes[0],p=(e.width-i.offsetWidth)/2,I=(e.height-i.offsetHeight)/2;0