diff --git a/index.html b/index.html index 32fb35c6..9e57b719 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -vue-plugin-hiprint
初次加载较慢,请耐心等待...
查 看 源 代 码
\ No newline at end of file +vue-plugin-hiprint
初次加载较慢,请耐心等待...
查 看 源 代 码
\ No newline at end of file diff --git a/static/js/app.1ff7c767.js b/static/js/app.059f160e.js similarity index 85% rename from static/js/app.1ff7c767.js rename to static/js/app.059f160e.js index 3f7e3e88..4886510e 100644 --- a/static/js/app.1ff7c767.js +++ b/static/js/app.059f160e.js @@ -1 +1 @@ -(function(t){function e(e){for(var i,r,s=e[0],l=e[1],p=e[2],d=0,u=[];dthis.scaleMax&&(e=5)):(e-=.1,e2&&void 0!==arguments[2]?arguments[2]:"210";this.visible=!0,this.spinning=!0,this.width=e.editingPanel?e.editingPanel.width:o,this.hiprintTemplate=e,this.printData=n,setTimeout((function(){t("#preview_content_custom").html(e.getHtml(n)),i.spinning=!1}),500)},print:function(){var t=this;this.waitShowPrinter=!0,this.hiprintTemplate.print(this.printData,{},{callback:function(){t.waitShowPrinter=!1}})},toPdf:function(){this.hiprintTemplate.toPdf(this.printData,"打印预览pdf")}}}}).call(this,n("1157"))},1045:function(t,e,n){var i={"./panel-0.0.55-beta3.js":"1cb9","./panel.js":"8616"};function o(t){var e=a(t);return n(e)}function a(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="1045"},1264:function(t,e,n){"use strict";e["a"]={name:"黄磊",logoTest:"https://portrait.gitee.com/uploads/avatars/user/1800/5400665_CcSimple_1591166830.png!avatar60",password:"12346",longText:"浙江在线3月29日讯最近,\n一篇小学五年级学生写的作文引起了钱报记者的关注这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文",barcode:"123456",qrcode:"https://hi.printjs.cn",table:[{id:"1",name:"王小可",gender:"男",count:"120",amount:"9089元"},{id:"2",name:"梦之遥",gender:"女",count:"20",amount:"89元"},{id:"3",name:"梦之遥",gender:"女",count:"720",amount:"29089元"},{id:"4",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"5",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"6",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"7",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"8",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"9",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"10",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"11",name:"王小可",gender:"男",count:"120",amount:"9089元"},{id:"12",name:"梦之遥",gender:"女",count:"20",amount:"89元"},{id:"13",name:"梦之遥",gender:"女",count:"720",amount:"29089元"},{id:"14",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"15",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"16",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"17",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"18",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"19",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"20",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"21",name:"王小可",gender:"男",count:"120",amount:"9089元"},{id:"22",name:"梦之遥",gender:"女",count:"20",amount:"89元"},{id:"23",name:"梦之遥",gender:"女",count:"720",amount:"29089元"},{id:"24",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"25",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"26",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"27",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"28",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"29",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"21",name:"王小可",gender:"男",count:"120",amount:"9089元"},{id:"22",name:"梦之遥",gender:"女",count:"20",amount:"89元"},{id:"23",name:"梦之遥",gender:"女",count:"720",amount:"29089元"},{id:"24",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"25",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"26",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"27",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"28",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"29",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"21",name:"王小可",gender:"男",count:"120",amount:"9089元"},{id:"22",name:"梦之遥",gender:"女",count:"20",amount:"89元"},{id:"23",name:"梦之遥",gender:"女",count:"720",amount:"29089元"},{id:"29",name:"黄小菊",gender:"女",count:"420",amount:"19089元"},{id:"30",name:"黄小菊",gender:"女",count:"420",amount:"19089元"}]}},"16d4":function(t,e,n){"use strict";n.r(e),n.d(e,"name",(function(){return i})),n.d(e,"desc",(function(){return o})),n.d(e,"author",(function(){return a})),n.d(e,"link",(function(){return r})),n.d(e,"preview",(function(){return s})),n.d(e,"printData",(function(){return p})),n.d(e,"json",(function(){return d}));n("a630"),n("3ca3");var i="Echarts实现",o="通过HTML元素实现Echarts-svg",a="54xavier",r="https://ccsimple.gitee.io/vue-plugin-hiprint/",s="/static/template6.png";function l(t){var e=t.min,n=void 0===e?10:e,i=t.max,o=void 0===i?200:i;return Math.floor(Math.random()*(o-n+1))+n}var p={lineData:Array.from(new Array(7),(function(){return l({})})),barData:Array.from(new Array(7),(function(){return l({})})),pieData:Array.from(new Array(5),(function(t,e){return{value:l({}),name:"系列".concat(e)}}))},d={panels:[{index:0,name:1,height:297,width:210,paperHeader:0,paperFooter:842,printElements:[{options:{left:0,top:0,height:1,width:1,formatter:'function(t, e, printData) {\n var script = document.createElement("script");\n script.setAttribute("type", "text/javascript");\n script.setAttribute("src", "https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/echarts.min.js");\n return script;\n }'},printElementType:{title:"Echarts依赖",type:"html"}},{options:{left:12,top:12,height:200,width:200,formatter:"function(t, e, printData) {\n if (window.echarts) {\n var echartDom = document.createElement(\"div\");\n echartDom.style.width = \"267px\";\n echartDom.style.height = \"267px\";\n var echartInstance = echarts.init(echartDom,null,{renderer: \"svg\"})\n echartInstance.setOption({\n animation: false,\n grid: {\n top: 10,\n right: 20,\n bottom: 30,\n left: 36,\n },\n xAxis: {\n type: 'category',\n data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n },\n yAxis: {\n type: 'value'\n },\n series: [\n {\n data: printData?.lineData || [150, 230, 224, 218, 135, 147, 260],\n type: 'line'\n }\n ]\n })\n return echartDom;\n } else {\n return '
点击打印预览查看
'\n }\n }"},printElementType:{title:"html",type:"html"}},{options:{left:230,top:12,height:200,width:200,formatter:"function(t, e, printData) {\n if (window.echarts) {\n var echartDom = document.createElement(\"div\");\n echartDom.style.width = \"267px\";\n echartDom.style.height = \"267px\";\n var echartInstance = echarts.init(echartDom,null,{renderer: \"svg\"})\n echartInstance.setOption({\n animation: false,\n grid: {\n top: 10,\n right: 20,\n bottom: 30,\n left: 36,\n },\n xAxis: {\n type: 'category',\n data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n },\n yAxis: {\n type: 'value'\n },\n series: [\n {\n data: printData?.barData || [150, 230, 224, 218, 135, 147, 260],\n type: 'bar'\n }\n ]\n })\n return echartDom;\n } else {\n return '
点击打印预览查看
'\n }\n }"},printElementType:{title:"html",type:"html"}},{options:{left:12,top:230,height:200,width:200,formatter:"function(t, e, printData) {\n if (window.echarts) {\n var echartDom = document.createElement(\"div\");\n echartDom.style.width = \"267px\";\n echartDom.style.height = \"267px\";\n var echartInstance = echarts.init(echartDom,null,{renderer: \"svg\"})\n echartInstance.setOption({\n animation: false,\n series: [\n {\n name: 'Access From',\n type: 'pie',\n radius: ['40%', '70%'],\n avoidLabelOverlap: false,\n itemStyle: {\n borderRadius: 10,\n borderColor: '#fff',\n borderWidth: 2\n },\n label: {\n show: false,\n position: 'center'\n },\n emphasis: {\n label: {\n show: true,\n fontSize: 40,\n fontWeight: 'bold'\n }\n },\n labelLine: {\n show: false\n },\n data: printData?.pieData || [\n { value: 1048, name: 'Search Engine' },\n { value: 735, name: 'Direct' },\n { value: 580, name: 'Email' },\n { value: 484, name: 'Union Ads' },\n { value: 300, name: 'Video Ads' }\n ]\n }\n ]\n })\n return echartDom;\n } else {\n return '
点击打印预览查看
'\n }\n }"},printElementType:{title:"html",type:"html"}},{options:{left:12,top:460,height:45,width:418,title:"说明:此处模版以一个不可见 html 元素加载 echarts ,故第一次打开无法显示预览,但后续的 print api 能够正常显示,你可以在你的项目中全局加载 echarts 依赖,保证设计、预览时能加载到 echarts 依赖,即可删除用于引入依赖的html元素。使用 print2 需要在 electron-hiprint 项目渲染层中添加该依赖,否则客户端首次打印都无法正常渲染 echarts"},printElementType:{title:"说明",type:"longText"}},{options:{left:12,top:505,height:24,width:418,color:"#FF0000",title:"注意:Echarts 默认开启 动画,请在 option 中配置 animation 为 false,否则打印时因为动画会导致只显示动画第一帧"},printElementType:{title:"注意",type:"longText"}}],paperNumberLeft:565.5,paperNumberTop:819,paperNumberContinue:!0,watermarkOptions:{}}]};e["default"]={preview:s,name:i,desc:o,author:a,link:r,printData:p,json:d}},"19d0":function(t){t.exports=JSON.parse('{"请选择字段":"フィールドを選択してください","计数":"カウント","合计":"合計","平均值":"平均","最小值":"最小値","最大值":"最大値","此格式不支持该文本":"このフォーマットはこのテキストをサポートしていません","二维码生成失败":"QRコードの生成に失敗しました","字体行高":"フォントの行の高さ","默认":"デフォルト","字体":"フォント","宋体":"明朝","微软雅黑":"Yu Gothic","字体大小":"フォントサイズ","字体粗细":"フォントの太さ","更细":"より細い","粗体":"太字","粗体+":"より太字","字间距":"文字間隔","左右对齐":"両端揃え","居左":"左寄せ","居中":"中央寄せ","居右":"右寄せ","两端对齐":"両端揃え","标题显示隐藏":"タイトルの表示/非表示","显示":"表示","隐藏":"非表示","表格边框":"表の罫線","有边框":"罫線あり","无边框":"罫線なし","表头边框":"ヘッダーの罫線","左边框":"左罫線","右边框":"右罫線","左右边框":"左右罫線","上边框":"上罫線","下边框":"下罫線","上下边框":"上下罫線","表头单元格边框":"ヘッダーのセル罫線","表尾边框":"フッターの罫線","表尾单元格边框":"フッターのセル罫線","表头行高":"ヘッダーの行の高さ","表头字体大小":"ヘッダーのフォントサイズ","表头字体粗细":"ヘッダーのフォントの太さ","表体单元格边框":"本体のセル罫線","表体行高":"本体の行の高さ","表头背景":"ヘッダーの背景","线宽":"線の太さ","边框大小":"罫線の太さ","条形码格式":"バーコードの形式","商品条码":"商品バーコード","条形码":"バーコード","物流":"物流","邮政和快递编码":"郵便および宅配便番号","医疗产品编码":"医療用品コード","不常用编码":"あまり使われないコード","附加组件":"付属品","实验编码":"実験的コード","条码类型":"バーコードのタイプ","二维码类型":"QRコードのタイプ","二维码容错率":"QRコードの誤り訂正レベル","字体颜色":"文字色","文本修饰":"テキストの装飾","下划线":"下線","上划线":"上線","穿梭线":"取り消し線","字段名":"フィールド名","请输入字段名":"フィールド名を入力してください","标题":"タイトル","请输入标题":"タイトルを入力してください","测试数据":"テストデータ","仅字段名称存在时有效":"フィールド名があるときのみ有効","位置坐标":"位置座標","X位置(左)":"X位置(左)","Y位置(上)":"Y位置(上)","同步":"同期","不同步":"非同期","宽高大小":"幅と高さ","宽":"幅","高":"高さ","图片地址":"画像のURL","请输入图片地址":"画像のURLを入力してください","选择":"選択","图片缩放":"画像の拡大/縮小","等比":"等倍","裁切":"切り抜き","填充":"埋め込み","原始尺寸":"オリジナルサイズ","颜色":"色","边框颜色":"罫線の色","水印功能":"透かし","水印内容":"透かしの内容","旋转角度":"回転角度","水平密度":"水平方向の密度","垂直密度":"垂直方向の密度","水印时间":"透かしの時刻","时间格式":"時刻のフォーマット","页码格式":"ページ番号のフォーマット","显示页码":"ページ番号を表示","页码续排":"ページ番号の続き","续排":"続き","重排":"リセット","每行缩进":"行頭字下げ","显示规则":"表示ルール","始终隐藏":"常に非表示","首页":"最初のページ","奇数页":"奇数ページ","偶数页":"偶数ページ","尾页":"最終ページ","强制分页":"改ページを強制","是":"はい","否":"いいえ","打印规则":"印刷ルール","保持奇数":"奇数ページを維持","保持偶数":"偶数ページを維持","分页规则":"改ページルール","不分页":"改ページなし","移除段落左侧空白":"段落左側の空白を削除","移除":"削除する","不移除":"削除しない","首页页尾":"最初のページのフッター","尾页页尾":"最終ページのフッター","偶数页页尾":"偶数ページのフッター","奇数页页尾":"奇数ページのフッター","位置固定":"固定位置","拖动方向":"ドラッグ方向","横向":"横方向","竖向":"縦方向","左偏移":"左端からのオフセット","偏移量":"オフセット量","最低高度":"最小の高さ","文本过短或为空时的高度":"テキストが短すぎるか空のときの高さ","隐藏规则":"非表示ルール","表体行边框":"本体の行の罫線","元素层级":"Zインデックス","边框设置":"枠線の設定","实线":"実線","虚线":"点線","左内边距":"左のパディング","上内边距":"上のパディング","右内边距":"右のパディング","下内边距":"下のパディング","样式":"スタイル","边框样式":"枠線のスタイル","长虚线":"長点線","短虚线":"短点線","背景颜色":"背景色","纸张方向(仅自定义纸质有效)":"用紙の向き(カスタム用紙のみ有効)","纵向":"縦方向","上下对齐":"上下の配置","垂直居中":"垂直中央揃え","底部":"下揃え","文本换行":"テキストの折り返し","不换行":"折り返さない","不换行&隐藏":"折り返さず非表示","不换行&省略":"折り返さず省略記号","打印类型":"印刷タイプ","文本":"テキスト","二维码":"QRコード","字段类型":"フィールドタイプ","默认(文本)":"デフォルト(テキスト)","序号":"インデックス","图片":"画像","单元格高度":"セルの高さ","条形码、二维码以及图片有效":"バーコード、QRコード、画像有効","底部聚合标题":"集計タイトル","底部聚合文本":"集計テキスト","聚合类型":"集計のタイプ","底部聚合合并列数":"集計の結合列数","合并列数":"結合列数","底部聚合类型左右对齐":"集計の左右揃え","整数":"整数","保留%s位":"%s桁を保持","底部聚合小数":"集計の小数点以下桁数","转大小写":"大文字小文字の変換","底部聚合类型":"集計のタイプ","不聚合":"集計しない","仅文本":"テキストのみ","顶部偏移":"上部のオフセット","一行多组":"1行複数グループ","一行二列":"1行2列","一行三列":"1行3列","一行四列":"1行4列","一行多组间隔":"1行複数グループの間隔","表格头显示":"表ヘッダーの表示","每页显示":"1ページごとに表示","首页显示":"最初のページに表示","不显示":"表示しない","数据类型":"データ型","日期时间":"日時","布尔":"ブール","格式":"フォーマット","格式化函数":"書式設定関数","样式函数":"スタイル関数","行/列合并函数":"行/列のマージ関数","跨页合并是否清除":"改ページでのマージをクリアするか","表格脚函数":"表のフッター関数","分组字段函数":"グループフィールド関数","分组头格式化函数":"グループヘッダーの書式設定関数","分组头信息":"グループヘッダー情報","分组脚格式化函数":"グループフッターの書式設定関数","分组脚信息":"グループフッター情報","多组表格脚函数":"複数グループ表のフッター関数","行样式函数":"行のスタイル関数","单元格左右对齐":"セルの左右揃え","单元格上下对齐":"セルの上下揃え","上":"上","中":"中央","表格头单元格左右对齐":"ヘッダーセルの左右揃え","单元格样式函数":"セルのスタイル関数","表格头样式函数":"ヘッダーのスタイル関数","单元格格式化函数":"セルの書式設定関数","单元格渲染函数":"セルのレンダリング関数","自动补全":"オートコンプリート","每页最大行数":"1ページ最大行数","表格脚显示":"表のフッターの表示","最后显示":"最終ページで表示","没有足够空间进行表格分页,请调整页眉/页脚线":"表のページ分割のための十分なスペースがありません。ヘッダー/フッターの線を調整してください","没有足够空间,显示下方内容, 可分页高度":"スペースが十分ではありません。下のコンテンツを表示し、高さはページ分割できます:","列属性":"列のプロパティ","在上方插入行":"上に行を挿入","在下方插入行":"下に行を挿入","向左方插入列":"左に列を挿入","向右方插入列":"右に列を挿入 ","删除行":"行を削除","删除列":"列を削除","对齐":"配置","左":"左","左右居中":"中央","右":"右","下":"下","合并单元格":"セルをマージ","解开单元格":"マージを解除","条形码生成失败":"バーコードの生成に失敗しました","请检查 hiprint.init 的 provider 是否配置了":"hiprint.init のプロバイダが設定されていることを確認してください","已移除\'tableCustom\',请替换使用\'table\'详情见更新记录":"\'tableCustom\'は削除されました。\'table\'に置き換えてください。詳細は更新ログを参照してください。","确定":"確定","删除":"削除","连接客户端失败":"クライアントへの接続に失敗しました","基础":"基本","边框":"枠線","列":"列","高级":"高度","面板排列":"パネル配置","排列方式":"配列方法","垂直间距%s":"垂直間隔 %s","水平间距%s":"水平間隔 %s","边框圆角":"ボーダーラジウス","显示码值":"表示コード値"}')},"1c54":function(t,e,n){},"1cb9":function(t,e,n){"use strict";n.r(e),e["default"]={panels:[{index:0,height:297,width:210,paperHeader:49.5,paperFooter:780,watermarkOptions:{content:"vue-plugin-hiprint",rotate:25,timestamp:!0,format:"YYYY-MM-DD HH:mm"},printElements:[{options:{left:175.5,top:10.5,height:27,width:259,title:"HiPrint自定义模块打印插件",fontSize:19,fontWeight:"600",textAlign:"center",lineHeight:26,coordinateSync:!0,widthHeightSync:!0,draggable:!1},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:27,height:13,width:52,title:"页眉线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:25.5,top:57,height:705,width:9,fixed:!0,borderStyle:"dotted"},printElementType:{type:"vline"}},{options:{left:60,top:61.5,height:48,width:87,src:"",fit:"contain"},printElementType:{title:"图片",type:"image"}},{options:{left:153,top:64.5,height:39,width:276,title:"二维码以及条形码均采用svg格式打印。不同打印机打印不会造成失真。图片打印:不同DPI打印可能会导致失真,",fontFamily:"微软雅黑",textAlign:"center",lineHeight:18},printElementType:{title:"自定义文本",type:"text"}},{options:{left:457.5,top:79.5,height:13,width:120,title:"姓名",field:"name",testData:"古力娜扎",color:"#f00808",textDecoration:"underline",textAlign:"center",fields:[{text:"id",field:"id"},{text:"姓名",field:"name"},{text:"性别",field:"gender"},{text:"数量",field:"count"}]},printElementType:{title:"文本",type:"text"}},{options:{left:483,top:115,height:60,width:60,title:"123456789",textAlign:"center",textType:"qrcode"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:285,top:125,height:40,width:175,title:"123456789",fontFamily:"微软雅黑",textAlign:"center",textType:"barcode"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:110,height:19,width:213,title:"所有打印元素都可已拖拽的方式来改变元素大小",fontFamily:"微软雅黑",textAlign:"center",lineHeight:18},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:130,height:40,width:40,title:"qrcode",field:"qrcode",testData:"qrcode"},printElementType:{title:"二维码",type:"qrcode"}},{options:{left:160,top:130,height:40,width:80,title:"barcode",field:"barcode",testData:"barcode"},printElementType:{title:"条形码",type:"barcode"}},{options:{left:153,top:189,height:13,width:238,title:"单击元素,右侧可自定义元素属性",textAlign:"center",fontFamily:"微软雅黑"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:190.5,height:13,width:51,title:"横线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:415.5,top:190.5,height:13,width:164,title:"可以配置各属性的默认值",textAlign:"center",fontFamily:"微软雅黑"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:214.5,height:10,width:475.5},printElementType:{title:"横线",type:"hline"}},{options:{left:235.5,top:220.5,height:32,width:342,title:"自定义表格:用户可左键选中表头,右键查看可操作项,操作类似Excel,双击表头单元格可进行编辑。内容:title#field",fontFamily:"微软雅黑",textAlign:"center",lineHeight:15},printElementType:{title:"自定义文本",type:"text"}},{options:{left:156,top:265.5,height:13,width:94,title:"表头列大小可拖动",fontFamily:"微软雅黑",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:265.5,height:13,width:90,title:"红色区域可拖动",fontFamily:"微软雅黑",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:285,height:56,width:511.5,field:"table",tableFooterRepeat:"",tableBorder:"noBorder",tableHeaderBorder:"topBorder",tableHeaderCellBorder:"border",tableBodyRowBorder:"topBorder",tableFooterBorder:"topBorder",fields:[{text:"id",field:"id"},{text:"姓名",field:"name"},{text:"性别",field:"gender"},{text:"数量",field:"count"}],columns:[[{width:85.25,colspan:1,rowspan:1,checked:!0},{title:"性别",field:"gender",width:85.25,colspan:1,rowspan:1,checked:!1},{title:"姓名",field:"name",width:85.25,align:"center",colspan:1,rowspan:1,checked:!0,tableSummary:"count"},{title:"数量",field:"count",width:85.25,align:"center",colspan:1,rowspan:1,checked:!0,tableSummary:"sum"},{width:85.25,colspan:1,rowspan:1,checked:!0},{width:85.25,colspan:1,rowspan:1,checked:!0}]]},printElementType:{title:"表格",type:"table"}},{options:{left:21,top:346.5,height:61.5,width:15,title:"装订线",lineHeight:18,fixed:!0,contentPaddingTop:3.75,backgroundColor:"#ffffff"},printElementType:{type:"text"}},{options:{left:225,top:355,height:13,width:346.5,title:"自定义模块:主要为开发人员设计,能够快速,简单,实现自己功能",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:370.5,height:18,width:79,title:"配置项表格",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:225,top:385.5,height:38,width:346.5,title:"配置模块:主要为客户使用,开发人员可以配置属性,字段,标题等,客户直接使用,配置模块请参考实例2",fontFamily:"微软雅黑",lineHeight:15,textAlign:"center",color:"#d93838"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:487.5,height:13,width:123,title:"长文本会自动分页",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:507,height:40,width:511.5,field:"longText"},printElementType:{title:"长文",type:"longText"}},{options:{left:475.5,top:565.5,height:100,width:100},printElementType:{title:"矩形",type:"rect"}},{options:{left:174,top:568.5,height:13,width:90,title:"竖线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:574.5,height:100,width:10},printElementType:{title:"竖线",type:"vline"}},{options:{left:210,top:604.5,height:13,width:120,title:"横线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:130.5,top:625.5,height:10,width:277},printElementType:{title:"横线",type:"hline"}},{options:{left:364.5,top:649.5,height:13,width:101,title:"矩形",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:525,top:784.5,height:13,width:63,title:"页尾线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:12,top:786,height:49,width:49},printElementType:{title:"html",type:"html"}},{options:{left:75,top:790.5,height:13,width:137,title:"红色原型是自动定义的Html",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:334.5,top:810,height:13,width:205,title:"页眉线已上。页尾下以下每页都会重复打印",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}}],paperNumberLeft:565.5,paperNumberTop:819}]}},"1d86":function(t,e,n){var i={"./template1.js":"56cb","./template2.js":"cb87","./template3.js":"cf45","./template4.js":"aeb8","./template5.js":"cc13","./template6.js":"16d4","./template7.js":"9ab8"};function o(t){var e=a(t);return n(e)}function a(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="1d86"},2394:function(t){t.exports=JSON.parse('{"请选择字段":"Veuillez sélectionner un champ","计数":"Compter","合计":"Somme","平均值":"Moyenne","最小值":"Minimum","最大值":"Maximum","此格式不支持该文本":"Ce format ne prend pas en charge ce texte","二维码生成失败":"Échec de la génération de code QR","字体行高":"Hauteur de police","默认":"Défaut","字体":"Police","宋体":"SimSun","微软雅黑":"Microsoft YaHei","字体大小":"Taille de police","字体粗细":"Épaisseur de police","更细":"Plus léger","粗体":"Gras","粗体+":"Plus gras","字间距":"Espacement des lettres","左右对齐":"Justifié","居左":"Gauche","居中":"Centré","居右":"Droite","两端对齐":"Justifié","标题显示隐藏":"Affichage du titre","显示":"Afficher","隐藏":"Masquer","表格边框":"Bordure du tableau","有边框":"Oui","无边框":"Non","表头边框":"Bordure d\'en-tête","左边框":"Gauche","右边框":"Droite","左右边框":"Gauche et droite","上边框":"Haut","下边框":"Bas","上下边框":"Haut et bas","表头单元格边框":"Bordure de cellule d\'en-tête","表尾边框":"Bordure de pied de page","表尾单元格边框":"Bordure de cellule de pied de page","表头行高":"Hauteur de ligne d\'en-tête","表头字体大小":"Taille de police d\'en-tête","表头字体粗细":"Épaisseur de police d\'en-tête","表体单元格边框":"Bordure de cellule de corps","表体行高":"Hauteur de ligne de corps","表头背景":"Arrière-plan de l\'en-tête","线宽":"Largeur de trait","边框大小":"Taille de bordure","条形码格式":"Type de code à barres","商品条码":"Code à barres de produit","条形码":"Code à barres","物流":"Logistique","邮政和快递编码":"Code postal et messagerie","医疗产品编码":"Code de produit médical","不常用编码":"Code inhabituel","附加组件":"Composant supplémentaire","实验编码":"Code expérimental","条码类型":"Type de code à barres","二维码类型":"Type de QR code","二维码容错率":"Niveau de correction d\'erreur de QR code","字体颜色":"Couleur de police","文本修饰":"Décoration de texte","下划线":"Souligné","上划线":"Barré","穿梭线":"Barré","字段名":"Nom de champ","请输入字段名":"Veuillez saisir le nom du champ","标题":"Titre","请输入标题":"Veuillez saisir le titre","测试数据":"Données de test","仅字段名称存在时有效":"Valide uniquement lorsque le nom de champ existe","位置坐标":"Coordonnée de position","X位置(左)":"Position X (gauche)","Y位置(上)":"Position Y (haut)","同步":"Synchroniser","不同步":"Non synchronisé","宽高大小":"Largeur et hauteur","宽":"Largeur","高":"Hauteur","图片地址":"URL de l\'image","请输入图片地址":"Veuillez saisir l\'URL de l\'image","选择":"Choisir","图片缩放":"Mise à l\'échelle de l\'image","等比":"Proportionnel","裁切":"Rogner","填充":"Remplir","原始尺寸":"Taille d\'origine","颜色":"Couleur","边框颜色":"Couleur de bordure","水印功能":"Filigrane","水印内容":"Contenu du filigrane","旋转角度":"Angle de rotation","水平密度":"Densité horizontale","垂直密度":"Densité verticale","水印时间":"Heure du filigrane","时间格式":"Format de l\'heure","页码格式":"Format du numéro de page","显示页码":"Afficher le numéro de page","页码续排":"Continuer le numéro de page","续排":"Continuer","重排":"Réinitialiser","每行缩进":"Retrait","显示规则":"Règle d\'affichage","始终隐藏":"Toujours masquer","首页":"Première page","奇数页":"Pages impaires","偶数页":"Pages paires","尾页":"Dernière page","强制分页":"Forcer saut de page","是":"Oui","否":"Non","打印规则":"Règle d\'impression","保持奇数":"Garder impaires","保持偶数":"Garder paires","分页规则":"Règle de saut de page","不分页":"Pas de saut de page","移除段落左侧空白":"Supprimer l\'espace vide à gauche","移除":"Supprimer","不移除":"Ne pas supprimer","首页页尾":"Pied de page première page","尾页页尾":"Pied de page dernière page","偶数页页尾":"Pied de page pages paires","奇数页页尾":"Pied de page pages impaires","位置固定":"Position fixe","拖动方向":"Direction de glissement","横向":"Horizontal","竖向":"Vertical","左偏移":"Décalage à gauche","偏移量":"Décalage","最低高度":"Hauteur minimum","文本过短或为空时的高度":"Hauteur lorsque le texte est trop court ou vide","隐藏规则":"Règle de masquage","表体行边框":"Bordure de ligne du corps","元素层级":"Index Z","边框设置":"Paramètres de bordure","实线":"Plein","虚线":"Pointillé","左内边距":"Marge intérieure gauche","上内边距":"Marge intérieure haut","右内边距":"Marge intérieure droite","下内边距":"Marge intérieure bas","样式":"Style","边框样式":"Style de bordure","长虚线":"Pointillé long","短虚线":"Pointillé court","背景颜色":"Couleur de fond","纸张方向(仅自定义纸质有效)":"Orientation du papier (uniquement papier personnalisé)","纵向":"Portrait","上下对齐":"Alignement vertical","垂直居中":"Centré verticalement","底部":"Bas","文本换行":"Césure de texte","不换行":"Pas de césure","不换行&隐藏":"Pas de césure et masquer","不换行&省略":"Pas de césure et points de suspension","打印类型":"Type d\'impression","文本":"Texte","二维码":"QR code","字段类型":"Type de champ","默认(文本)":"Défaut (texte)","序号":"Index","图片":"Image","单元格高度":"Hauteur de cellule","条形码、二维码以及图片有效":"Code à barres, QR code et image sont valides","底部聚合标题":"Titre du récapitulatif","底部聚合文本":"Texte du récapitulatif","聚合类型":"Type de récapitulatif","底部聚合合并列数":"Colonnes fusionnées du récapitulatif","合并列数":"Colonnes fusionnées","底部聚合类型左右对齐":"Alignement du récapitulatif","整数":"Entier","保留%s位":"Garder %s décimales","底部聚合小数":"Décimales du récapitulatif","转大小写":"Majuscules ou minuscules","底部聚合类型":"Type de récapitulatif","不聚合":"Pas de récapitulatif","仅文本":"Texte uniquement","顶部偏移":"Décalage supérieur","一行多组":"Plusieurs groupes sur une ligne","一行二列":"Une ligne deux colonnes","一行三列":"Une ligne trois colonnes","一行四列":"Une ligne quatre colonnes","一行多组间隔":"Espacement de plusieurs groupes sur une ligne","表格头显示":"Affichage de l\'en-tête du tableau","每页显示":"Afficher par page","首页显示":"Afficher sur la première page","不显示":"Ne pas afficher","数据类型":"Type de données","日期时间":"DateHeure","布尔":"Booléen","格式":"Format","格式化函数":"Fonction de mise en forme","样式函数":"Fonction de style","行/列合并函数":"Fusionner ligne/colonne","跨页合并是否清除":"Annuler fusion sur saut de page","表格脚函数":"Fonction pied de tableau","分组字段函数":"Fonction Champ de regroupement","分组头格式化函数":"Fonction de mise en forme en-tête de groupe","分组头信息":"Informations en-tête de groupe","分组脚格式化函数":"Fonction de mise en forme pied de groupe","分组脚信息":"Informations pied de groupe","多组表格脚函数":"Fonction pied de tableau multi-groupe","行样式函数":"Fonction style de ligne","单元格左右对齐":"Alignement des cellules","单元格上下对齐":"Alignement vertical des cellules","上":"Haut","中":"Milieu","表格头单元格左右对齐":"Alignement des cellules d\'en-tête","单元格样式函数":"Fonction style de cellule","表格头样式函数":"Fonction style d\'en-tête","单元格格式化函数":"Fonction de mise en forme de cellule","单元格渲染函数":"Fonction d\'affichage de cellule","自动补全":"Saisie automatique","每页最大行数":"Lignes max par page","表格脚显示":"Affichage pied de tableau","最后显示":"Afficher sur dernière page","没有足够空间进行表格分页,请调整页眉/页脚线":"Pas assez d\'espace pour la pagination du tableau, veuillez ajuster la ligne d\'entête/pied de page","没有足够空间,显示下方内容, 可分页高度":"Pas assez de place, afficher le contenu ci-dessous, la hauteur peut être paginée :","列属性":"Propriété de colonne","在上方插入行":"Insérer ligne au-dessus","在下方插入行":"Insérer ligne en dessous","向左方插入列":"Insérer colonne à gauche","向右方插入列":"Insérer colonne à droite","删除行":"Supprimer ligne","删除列":"Supprimer colonne","对齐":"Aligner","左":"Gauche","左右居中":"Centrer","右":"Droite","下":"Bas","合并单元格":"Fusionner cellule","解开单元格":"Défusionner cellule","条形码生成失败":"Échec de la génération de code à barres","请检查 hiprint.init 的 provider 是否配置了":"Veuillez vérifier si le fournisseur de hiprint.init est configuré","已移除\'tableCustom\',请替换使用\'table\'详情见更新记录":"\'TableCustom\' a été supprimé, veuillez le remplacer par \'table\', voir le journal de mise à jour pour plus de détails","确定":"Confirmer","删除":"Supprimer","连接客户端失败":"Échec de connexion au client","基础":"De base","边框":"Bordure","列":"Colonne","高级":"Avancé","面板排列":"Agencement du panneau","排列方式":"Mode d\'agencement","垂直间距%s":"Espacement Vertical %s","水平间距%s":"Espacement Horizontal %s","边框圆角":"Rayon de Bordure","显示码值":"Afficher la Valeur du Code"}')},2508:function(t){t.exports=JSON.parse('{"请选择字段":"Bitte Feld auswählen","计数":"Anzahl","合计":"Summe","平均值":"Durchschnitt","最小值":"Min","最大值":"Max","此格式不支持该文本":"Dieses Format unterstützt diesen Text nicht","二维码生成失败":"QR-Code Generierung fehlgeschlagen","字体行高":"Schriftzeilenhöhe","默认":"Standard","字体":"Schriftart","宋体":"SimSun","微软雅黑":"Microsoft YaHei","字体大小":"Schriftgröße","字体粗细":"Schriftstärke","更细":"Feiner","粗体":"Fett","粗体+":"Fetter","字间距":"Zeilenabstand","左右对齐":"Blocksatz","居左":"Linksbündig","居中":"Zentriert","居右":"Rechtsbündig","两端对齐":"Blocksatz","标题显示隐藏":"Titelanzeige","显示":"Anzeigen","隐藏":"Ausblenden","表格边框":"Tabellenrahmen","有边框":"Ja","无边框":"Nein","表头边框":"Kopfrahmen","左边框":"Links","右边框":"Rechts","左右边框":"Links & Rechts","上边框":"Oben","下边框":"Unten","上下边框":"Oben & Unten","表头单元格边框":"Kopfzel-lenrahmen","表尾边框":"Fußzeilenrahmen","表尾单元格边框":"Fußzellenrahmen","表头行高":"Kopfzeilenhöhe","表头字体大小":"Kopfschriftgröße","表头字体粗细":"Kopfschriftstärke","表体单元格边框":"Zellenrahmen","表体行高":"Zeilenhöhe","表头背景":"Kopfzeilen-hintergrund","线宽":"Linienbreite","边框大小":"Rahmenbreite","条形码格式":"Strichcodetyp","商品条码":"Waren-Strichcode","条形码":"Strichcode","物流":"Logistik","邮政和快递编码":"Post- und Kuriercode","医疗产品编码":"Medizinproduktcode","不常用编码":"Ungewöhnlicher Code","附加组件":"Zusätzliche Komponente","实验编码":"Experimenteller Code","条码类型":"Strichcodetyp","二维码类型":"QR-Code-Typ","二维码容错率":"QR-Code-Fehlerkorrektur","字体颜色":"Schriftfarbe","文本修饰":"Textdekoration","下划线":"Unterstrichen","上划线":"Überstrichen","穿梭线":"Durchgestrichen","字段名":"Feldname","请输入字段名":"Bitte Feldname eingeben","标题":"Titel","请输入标题":"Bitte Titel eingeben","测试数据":"Testdaten","仅字段名称存在时有效":"Nur gültig, wenn Feldnamen vorhanden","位置坐标":"Positionskoordinate","X位置(左)":"X-Position (links)","Y位置(上)":"Y-Position (oben)","同步":"Synchronisieren","不同步":"Nicht synchronisieren","宽高大小":"Breite & Höhe","宽":"Breite","高":"Höhe","图片地址":"Bild-URL","请输入图片地址":"Bitte Bild-URL eingeben","选择":"Auswählen","图片缩放":"Bildskalierung","等比":"Proportional","裁切":"Zuschneiden","填充":"Auffüllen","原始尺寸":"Originalgröße","颜色":"Farbe","边框颜色":"Rahmenfarbe","水印功能":"Wasserzeichen","水印内容":"Wasserzeicheninhalt","旋转角度":"Drehwinkel","水平密度":"Horizontale Dichte","垂直密度":"Vertikale Dichte","水印时间":"Wasserzeichenzeit","时间格式":"Zeitformat","页码格式":"Seitenzahlformat","显示页码":"Seitenzahl anzeigen","页码续排":"Seitenzahl fortsetzen","续排":"Fortsetzen","重排":"Zurücksetzen","每行缩进":"Einrückung","显示规则":"Anzeigeregel","始终隐藏":"Immer ausblenden","首页":"Erste Seite","奇数页":"Ungerade Seiten","偶数页":"Gerade Seiten","尾页":"Letzte Seite","强制分页":"Seitenumbruch erzwingen","是":"Ja","否":"Nein","打印规则":"Druckregel","保持奇数":"Ungerade beibehalten","保持偶数":"Gerade beibehalten","分页规则":"Seitenumbruchregel","不分页":"Kein Seitenumbruch","移除段落左侧空白":"Linken Freiraum entfernen","移除":"Entfernen","不移除":"Nicht entfernen","首页页尾":"Fußzeile erste Seite","尾页页尾":"Fußzeile letzte Seite","偶数页页尾":"Fußzeile gerade Seiten","奇数页页尾":"Fußzeile ungerade Seiten","位置固定":"Feste Position","拖动方向":"Zugrichtung","横向":"Horizontal","竖向":"Vertikal","左偏移":"Linker Versatz","偏移量":"Versatz","最低高度":"Mindesthöhe","文本过短或为空时的高度":"Höhe bei zu kurzem oder leerem Text","隐藏规则":"Ausblendregel","表体行边框":"Zeilenrahmen","元素层级":"Z-Index","边框设置":"Rahmeneinstellungen","实线":"Durchgezogen","虚线":"Gestrichelt","左内边距":"Linker Abstand","上内边距":"Oberer Abstand","右内边距":"Rechter Abstand","下内边距":"Unterer Abstand","样式":"Stil","边框样式":"Rahmenstil","长虚线":"Lang gestrichelt","短虚线":"Kurz gestrichelt","背景颜色":"Hintergrundfarbe","纸张方向(仅自定义纸质有效)":"Papierausrichtung (nur benutzerdefiniertes Papier)","纵向":"Hochformat","上下对齐":"Vertikale Ausrichtung","垂直居中":"Vertikal zentriert","底部":"Unten","文本换行":"Textumbruch","不换行":"Kein Umbruch","不换行&隐藏":"Kein Umbruch & ausbl.","不换行&省略":"Kein Umbruch & Ausl.","打印类型":"Drucktyp","文本":"Text","二维码":"QR-Code","字段类型":"Feldtyp","默认(文本)":"Standard (Text)","序号":"Index","图片":"Bild","单元格高度":"Zellenhöhe","条形码、二维码以及图片有效":"Strichcode, QR-Code und Bild gültig","底部聚合标题":"Zusammenfassungstitel","底部聚合文本":"Zusammenfassungstext","聚合类型":"Zusammenfassungstyp","底部聚合合并列数":"Zusammenfassungsspalten","合并列数":"Spalten verbinden","底部聚合类型左右对齐":"Zusammenfassungsausrichtung","整数":"Ganzzahl","保留%s位":"Behalte %s Dezimalstellen","底部聚合小数":"Zusammenfassungsdezimalstellen","转大小写":"Groß-/Kleinschreibung","底部聚合类型":"Zusammenfassungstyp","不聚合":"Keine Zusammenfassung","仅文本":"Nur Text","顶部偏移":"oberer Versatz","一行多组":"Mehrere Gruppen pro Zeile","一行二列":"Eine Zeile zwei Spalten","一行三列":"Eine Zeile drei Spalten","一行四列":"Eine Zeile vier Spalten","一行多组间隔":"Abstand mehrerer Gruppen pro Zeile","表格头显示":"Tabellenkopf Anzeige","每页显示":"Pro Seite anzeigen","首页显示":"Auf erster Seite anzeigen","不显示":"Nicht anzeigen","数据类型":"Datentyp","日期时间":"DatumUhrzeit","布尔":"Boolesch","格式":"Format","格式化函数":"Formatierungsfunktion","样式函数":"Style-Funktion","行/列合并函数":"Zeile/Spalte zusammenführen","跨页合并是否清除":"Seitenumbruch aufheben","表格脚函数":"Tabellenfußfunktion","分组字段函数":"Gruppenfeld-Funktion","分组头格式化函数":"Gruppenkopf-Formatierungsfunktion","分组头信息":"Gruppenkopfinfo","分组脚格式化函数":"Gruppenfuß-Formatierungsfunktion","分组脚信息":"Gruppenfußinfo","多组表格脚函数":"Mehrere Gruppen Tabellenfußfunktion","行样式函数":"Zeilenstilfunktion","单元格左右对齐":"Zellenausrichtung","单元格上下对齐":"Zellenvertikale Ausrichtung","上":"Oben","中":"Mitte","表格头单元格左右对齐":"Tabellenkopf Ausrichtung","单元格样式函数":"Zellenstilfunktion","表格头样式函数":"Tabellenkopf-Stilfunktion","单元格格式化函数":"Zellenformatierungsfunktion","单元格渲染函数":"Zellen-Rendering-Funktion","自动补全":"Auto Vervollständigen","每页最大行数":"Max Zeilen pro Seite","表格脚显示":"Tabellenfußanzeige","最后显示":"Auf letzter Seite anzeigen","没有足够空间进行表格分页,请调整页眉/页脚线":"Nicht genügend Platz für die Tabellenseitenumbrüche, bitte Kopf-/Fußzeile anpassen","没有足够空间,显示下方内容, 可分页高度":"Nicht genügend Platz, Inhalt unten anzeigen, Höhe kann umgebrochen werden:","列属性":"Spalteneigenschaft","在上方插入行":"Zeile oben einfügen","在下方插入行":"Zeile unten einfügen","向左方插入列":"Spalte links einfügen","向右方插入列":"Spalte rechts einfügen","删除行":"Zeile löschen","删除列":"Spalte löschen","对齐":"Ausrichtung","左":"Links","左右居中":"Zentriert","右":"Rechts","下":"Unten","合并单元格":"Zelle verbinden","解开单元格":"Zellenverbindung aufheben","条形码生成失败":"Strichcode-Generierung fehlgeschlagen","请检查 hiprint.init 的 provider 是否配置了":"Bitte überprüfen, ob der Anbieter von hiprint.init konfiguriert wurde","已移除\'tableCustom\',请替换使用\'table\'详情见更新记录":"\'TableCustom\' wurde entfernt, bitte durch \'table\' ersetzen, Details siehe Änderungsprotokoll","确定":"Bestätigen","删除":"Löschen","连接客户端失败":"Verbindung zum Client fehlgeschlagen","基础":"Grundlegend","边框":"Rahmen","列":"Spalte","高级":"Erweitert","面板排列":"Panelanordnung","排列方式":"Anordnungsart","垂直间距%s":"Vertikaler Abstand %s","水平间距%s":"Horizontaler Abstand %s","边框圆角":"Abgerundete Ecken","显示码值":"Anzeigecode"}')},"25f3":function(t,e,n){"use strict";e["a"]={totalCap:"壹佰元整",logoTest:"https://portrait.gitee.com/uploads/avatars/user/1800/5400665_CcSimple_1591166830.png!avatar60",barcode:"XS888888888",qrcode:"0123456789",test:{a:"111",b:"222",longText:"浙江在线3月29日讯最近,\n一篇小学五年级学生写的作文引起了钱报记者的关注这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文《脏话风波》浙江在线3月29日讯最近,一篇小学五年级学生写的作文引起了钱报记者的关注。这篇作文的题目叫做《脏话风波》,讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文讲述的是小作者班级里发生的一种不文明现象——讲脏话的同学越来越多,有的人说话甚至句句“带把儿”。班主任为了遏制这种现象,煞费苦心想了很多办法,跟学生斗智斗勇……看到这篇作文,记者突然想到,自己读六年级的儿子有天突然冒出一句脏话。此前,他是从不说脏话的。问他怎么学会的,他也说不出个所以然来。于是,记者做了这个小学生脏话现象调查。经过了解才发现,小学生爱说脏话竟然较为普遍,一般三年级会冒出苗头。无论是学习成绩好的,还是平时不太起眼的,都会说脏话。而且,说脏话会“传染”,一旦冒头不制止,到了五六年级甚至可能在班里大爆发。以下为作文"},testaaa:{a:{b:{c:{d:"dddddddddddd"}}}},table_test:{a:[{NAME:"测试商品01",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品02",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品03",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品04",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品05",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品06",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品07",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品08",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品09",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品10",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品11",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品12",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品13",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品14",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品15",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品16",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品17",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品18",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品19",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品20",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品21",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品22",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品23",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品24",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品25",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品26",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品27",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品28",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品29",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{NAME:"测试商品30",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"}]},table:[{INDEX:"1",NAME:"测试商品01",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"2",NAME:"测试商品02",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"3",NAME:"测试商品03",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"4",NAME:"测试商品04",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"5",NAME:"测试商品05",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"6",NAME:"测试商品06",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"7",NAME:"测试商品07",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"8",NAME:"测试商品08",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"9",NAME:"测试商品09",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"10",NAME:"测试商品10",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"11",NAME:"测试商品11",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"12",NAME:"测试商品12",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"13",NAME:"测试商品13",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"14",NAME:"测试商品14",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"15",NAME:"测试商品15",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"16",NAME:"测试商品16",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"17",NAME:"测试商品17",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"18",NAME:"测试商品18",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"19",NAME:"测试商品19",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"20",NAME:"测试商品20",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"21",NAME:"测试商品21",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"22",NAME:"测试商品22",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"23",NAME:"测试商品23",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"24",NAME:"测试商品24",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"25",NAME:"测试商品25",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"26",NAME:"测试商品26",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"27",NAME:"测试商品27",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"28",NAME:"测试商品28",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"29",NAME:"测试商品29",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"30",NAME:"测试商品30",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"}]}},3181:function(t,e,n){"use strict";(function(t){var i,o,a,r,s=n("5530"),l=(n("4de4"),n("7db0"),n("caad"),n("d81d"),n("4e82"),n("ace4"),n("2c66"),n("249d"),n("40e9"),n("b0c0"),n("e9c4"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("2532"),n("5319"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("6ce5"),n("2834"),n("72f7"),n("4ea1"),n("159b"),n("ddb0"),n("b635")),p=n("1264"),d=n("beb3"),c=n("a6b2"),u=n("b3a1"),h=n("85de"),_=n("ed08");e["a"]={name:"printDesign",components:{printPreview:d["a"],jsonView:c["a"]},data:function(){return{template:null,curPaper:{type:"A4",width:210,height:296.6},paperTypes:{A3:{width:420,height:296.6},A4:{width:210,height:296.6},A5:{width:210,height:147.6},B3:{width:500,height:352.6},B4:{width:250,height:352.6},B5:{width:250,height:175.6}},paperPopVisible:!1,paperWidth:"220",paperHeight:"80",scaleValue:1,scaleMax:5,scaleMin:.5,jsonIn:"",jsonOut:""}},computed:{curPaperType:function(){var t="other",e=this.paperTypes;for(var n in e){var i=e[n],o=this.curPaper,a=o.width,r=o.height;i.width===a&&i.height===r&&(t=n)}return t},currVerInfo:function(){var t;return this.$parent.version&&"development"!=this.$parent.version?Object(_["a"])(this.$parent.version):null!==(t=i)&&void 0!==t&&t.version?Object(_["a"])(i.version):{verVal:9999}}},mounted:function(){this.getPanel(),this.$parent.version&&"development"!=this.$parent.version?this.getVersion(this.$parent.version):(i=l["c"],o=l["a"],this.init())},methods:{getPanel:function(){var t=n("1045"),e=t.keys().map((function(t){return Object(s["a"])(Object(s["a"])({},Object(_["a"])(t.replace(/(\.\/panel-?)|(\.js)/g,""))),{},{key:t})}));if(this.$parent.version&&"development"!=this.$parent.version){var i=Object(_["a"])(this.$parent.version),o=e.filter((function(t){var e=t.verVal;return e<=i.verVal})).sort((function(t,e){return e.verVal-t.verVal}));a=t(o[0].key).default}else a=t("./panel.js").default},getVersion:function(e){var n=this,a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("src","https://unpkg.com/vue-plugin-hiprint@".concat(e,"/dist/vue-plugin-hiprint.js")),a.addEventListener("load",(function(){i=window["vue-plugin-hiprint"].hiprint,o=window["vue-plugin-hiprint"].defaultElementTypeProvider,n.init()}));var r=document.querySelector("head");r.querySelector('link[media=print][href*="print-lock.css"]').remove(),r.append(t(''))[0]),r.append(a)},init:function(){i.init({providers:[new o],lang:this.$parent.lang}),i.setConfig(),i.PrintElementTypeManager.buildByHtml(t(".ep-draggable-item")),t("#hiprint-printTemplate").empty();this.template=r=new i.PrintTemplate({template:a,onImageChooseClick:function(t){setTimeout((function(){t.refresh("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAIIAQMAAAB99EudAAAABlBMVEUmf8vG2O41LStnAAABD0lEQVR42u3XQQqCQBSAYcWFS4/QUTpaHa2jdISWLUJjjMpclJoPGvq+1WsYfiJCZ4oCAAAAAAAAAAAAAAAAAHin6pL9c6H/fOzHbRrP0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u/SY9LS0tLS0tLS0tLS0n+edm+UlpaWlpaWlpaWlpaW/tl0Ndyzbno7/+tPTJdd1wal69dNa6abx+Lq6TSeYtK7BX/Diek0XULSZZrakPRtV0i6Hu/KIt30q4fM0pvBqvR9mvsQkZaW9gyJT+f5lsnzjR54xAk8mAUeJyMPwYFH98ALx5Jr0kRLLndT7b64UX9QR/0eAAAAAAAAAAAAAAAAAAD/4gpryzr/bja4QgAAAABJRU5ErkJggg==",{real:!0})}),3e3)},fontList:[{title:"微软雅黑",value:"Microsoft YaHei"},{title:"黑体",value:"STHeitiSC-Light"},{title:"思源黑体",value:"SourceHanSansCN-Normal"},{title:"王羲之书法体",value:"王羲之书法体"},{title:"宋体",value:"SimSun"},{title:"华为楷体",value:"STKaiti"},{title:"cursive",value:"cursive"}],dataMode:1,history:!0,willOutOfBounds:!0,qtDesigner:!0,onDataChanged:function(t,e){console.log(t),console.log(e)},onUpdateError:function(t){console.log(t)},settingContainer:"#PrintElementOptionSetting",paginationContainer:".hiprint-printPagination"}),r.design("#hiprint-printTemplate",{grid:!0}),console.log(r),this.scaleValue=r.editingPanel.scale||1},setOptionConfig:function(e){switch(e){case-1:i.setConfig({movingDistance:2.5,text:{tabs:[{options:[{name:"fixed",hidden:!0}]}],supportOptions:[{name:"styler",hidden:!0},{name:"formatter",hidden:!0}]},image:{tabs:[{replace:!0,name:"基本",options:[{name:"field",hidden:!1},{name:"src",hidden:!1},{name:"fit",hidden:!1}]}]}}),i.setConfig({movingDistance:2.5,text:{tabs:[{options:[{name:"fixed",hidden:!0}]}],supportOptions:[{name:"styler",hidden:!0},{name:"formatter",hidden:!0}]},image:{tabs:[{replace:!0,name:"基本",options:[{name:"field",hidden:!1},{name:"src",hidden:!1},{name:"fit",hidden:!1}]}]}});break;case 0:i.setConfig();break;case 1:i.setConfig({text:{tabs:[{},{},{name:"边框",replace:!0,options:[]},{name:"高级",replace:!0,options:[]}]}});break;case 2:i.setConfig({image:{tabs:[],supportOptions:[]}});break;case 3:i.setConfig({optionItems:[u["a"],function(){function e(){this.name="zIndex"}return e.prototype.css=function(t,e){return t&&t.length&&e?t.css("z-index",e):null},e.prototype.createTarget=function(){return this.target=t('
\n
\n 元素层级2\n
\n
\n \n
\n
'),this.target},e.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseInt(t.toString())},e.prototype.setValue=function(t){this.target.find("input").val(t)},e.prototype.destroy=function(){this.target.remove()},e}()]});break;case 4:i.setConfig({optionItems:[h["a"]],movingDistance:2.5,text:{tabs:[{},{name:"样式",options:[{name:"scale",after:"transform",hidden:!1}]}]}});break}console.log(r),r.editingPanel.printElements.forEach((function(t){t._printElementOptionTabs&&delete t._printElementOptionTabs,t._printElementOptionItems&&delete t._printElementOptionItems}));var n=r.getSelectEls();n&&n.length&&n[0].designTarget.trigger(t.Event("click"))},setPaper:function(t,e){try{Object.keys(this.paperTypes).includes(t)?(this.curPaper={type:t,width:e.width,height:e.height},r.setPaper(e.width,e.height)):(this.curPaper={type:"other",width:e.width,height:e.height},r.setPaper(e.width,e.height))}catch(n){this.$message.error("操作失败: ".concat(n))}},otherPaper:function(){var t={};t.width=this.paperWidth,t.height=this.paperHeight,this.paperPopVisible=!1,this.setPaper("other",t)},changeScale:function(t){var e=this.scaleValue;t?(e+=.1,e>this.scaleMax&&(e=5)):(e-=.1,e'.concat("应收金额大写: "+n["totalCap"],""):'应收金额大写: '}},{tid:"taskProviderModule.customText",title:"文本",customText:"自定义文本",custom:!0,type:"text"}]),new i["c"].PrintElementTypeGroup("辅助",[{tid:"taskProviderModule.hline",title:"横线",type:"hline"},{tid:"taskProviderModule.vline",title:"竖线",type:"vline"},{tid:"taskProviderModule.rect",title:"矩形",type:"rect"},{tid:"taskProviderModule.oval",title:"椭圆",type:"oval"}])])};return{addElementTypes:e}};e["a"]=o()},"383e":function(t,e,n){t.exports=n.p+"static/img/l_img.c03b941d.svg"},"38a2":function(t,e,n){"use strict";(function(t){n("b0c0");var i,o=n("b635"),a=n("a6b2"),r=n("cc1f");n("8616"),n("1264");e["a"]={name:"templatePreview",components:{printPreview:r["a"],jsonView:a["a"]},data:function(){return{visible:!1,spinning:!0,waitShowPrinter:!1,template:null,isMultiPanel:!0,hiprintTemplate:{},name:"名称",json:{},printData:{},extendCss:""}},methods:{hideModal:function(){this.visible=!1,t("link[media=print]").empty()},show:function(e){var n=this;this.visible=!0,this.spinning=!0,this.template=e,this.name=e.name,this.json=e.json,this.printData=e.printData,this.extendCss=e.extendCss||"",this.extendCss.length>1&&t(this.extendCss).appendTo(t("link[media=print]"));var a=t("#template-preview").length<=0||t("#template-preview-setting").length<=0;do{return void setTimeout((function(){t("#template-preview").empty(),n.hiprintTemplate=i=new o["c"].PrintTemplate({template:e.json,settingContainer:"#template-preview-setting",paginationContainer:"#template-preview-printPagination"}),i.design(t("#template-preview")),n.isMultiPanel=e.json.panels.length>1,console.log("isMultiPanel",n.isMultiPanel),n.spinning=!1}),200)}while(a)},print:function(){var t=this,e=this;this.waitShowPrinter=!0,this.hiprintTemplate.print(this.printData,{},{callback:function(){t.waitShowPrinter=!1},styleHandler:function(){return e.extendCss}})},toPdf:function(){var t=this;this.hiprintTemplate.toPdf(this.printData,this.name,{styleHandler:function(){return t.extendCss}})},print2:function(){if(o["c"].hiwebSocket.opened){var t=this;this.hiprintTemplate.print2(this.printData,{printer:"",title:this.name,styleHandler:function(){return t.extendCss}})}else this.$message.error("请先连接直接打印客户端")}}}}).call(this,n("1157"))},"3aa8":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("a-modal",{attrs:{visible:t.visible,maskClosable:!1,width:t.width+"mm"},on:{cancel:t.hideModal}},[e("a-spin",{staticStyle:{"min-height":"100px"},attrs:{spinning:t.spinning}},[e("div",{attrs:{id:"preview_content_custom"}})]),e("template",{slot:"title"},[e("a-space",[e("div",{staticStyle:{"margin-right":"20px"}},[t._v("打印预览")]),e("a-button",{attrs:{loading:t.waitShowPrinter,type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.print.apply(null,arguments)}}},[t._v("打印")]),e("a-button",{attrs:{type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.toPdf.apply(null,arguments)}}},[t._v("pdf")])],1)],1),e("template",{slot:"footer"},[e("a-button",{key:"close",attrs:{type:"info"},on:{click:t.hideModal}},[t._v(" 关闭 ")])],1)],2)},o=[],a=n("9b18"),r=a["a"],s=(n("cf8f"),n("2877")),l=Object(s["a"])(r,i,o,!1,null,"f12b823a",null);e["a"]=l.exports},"3e5e":function(t,e,n){"use strict";var i=n("b635"),o=function(t){var e=function(t){t.removePrintElementTypes("aProviderModule"),t.addPrintElementTypes("aProviderModule",[new i["c"].PrintElementTypeGroup("平台",[{tid:"aProviderModule.header",title:"单据表头",data:"单据表头",type:"text",options:{testData:"单据表头",height:17,fontSize:16.5,field:"headera",fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"aProviderModule.type",title:"单据类型",data:"单据类型",type:"text",options:{testData:"单据类型",height:16,fontSize:15,field:"textType",fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"aProviderModule.order",title:"订单编号",data:"XS888888888",type:"text",options:{field:"orderId",testData:"XS888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"aProviderModule.date",title:"业务日期",data:"2020-01-01",type:"text",options:{field:"date",testData:"2020-01-01",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"aProviderModule.barcode",title:"条形码",data:"XS888888888",type:"text",options:{field:"barcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"barcode"}},{tid:"aProviderModule.qrcode",title:"二维码",data:"XS888888888",type:"text",options:{field:"qrcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"qrcode"}},{tid:"aProviderModule.platform",title:"平台名称",data:"平台名称",type:"text",options:{testData:"平台名称",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"aProviderModule.logo",title:"Logo",data:"",type:"image"}]),new i["c"].PrintElementTypeGroup("库管",[{tid:"aProviderModule.creater",title:"制单人",data:"李四",type:"text",options:{field:"creater",testData:"李四",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"aProviderModule.printDate",title:"打印时间",data:"2022-01-01 09:00",type:"text",options:{field:"printDate",testData:"2022-01-01 09:00",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"aProviderModule.signer",title:"库管签字",data:"",type:"text",options:{title:"库管签字:",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}}]),new i["c"].PrintElementTypeGroup("表格/其他",[{tid:"aProviderModule.table",title:"订单数据",type:"table",options:{field:"table",tableHeaderRepeat:"first",tableFooterRepeat:"last",fields:[{text:"名称",field:"NAME"},{text:"数量",field:"SL"},{text:"规格",field:"GG"},{text:"条码",field:"TM"},{text:"单价",field:"DJ"},{text:"金额",field:"JE"}]},editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,isEnableEditField:!0,isEnableContextMenu:!0,isEnableInsertRow:!0,isEnableDeleteRow:!0,isEnableInsertColumn:!0,isEnableDeleteColumn:!0,isEnableMergeCell:!0,columns:[[{title:"名称",align:"center",field:"NAME",width:150},{title:"数量",align:"center",field:"SL",width:80},{title:"规格",align:"center",field:"GG",width:80,checked:!1},{title:"条码",align:"center",field:"TM",width:100,checked:!1},{title:"单价",align:"center",field:"DJ",width:100},{title:"金额",align:"center",field:"JE",width:100,checked:!1}]],rowsColumnsMerge:function(t,e,n){return 0==n?[1,t.INDEX%2==1?2:1]:n>0&&n<2?[t.INDEX%2==1?0:1,1]:[t.INDEX%2==1?2:0,1]},footerFormatter:function(t,e,n,i){return n&&n["totalCap"]?''.concat("应收金额大写: "+n["totalCap"],""):'应收金额大写: '}},{tid:"aProviderModule.customText",title:"文本",customText:"自定义文本",custom:!0,type:"text"},{tid:"aProviderModule.longText",title:"长文本",type:"longText",options:{field:"test.longText",width:200,testData:"长文本分页/不分页测试"}}]),new i["c"].PrintElementTypeGroup("辅助",[{tid:"aProviderModule.hline",title:"横线",type:"hline"},{tid:"aProviderModule.vline",title:"竖线",type:"vline"},{tid:"aProviderModule.rect",title:"矩形",type:"rect"},{tid:"aProviderModule.oval",title:"椭圆",type:"oval"},{tid:"aProviderModule.barcode",title:"条形码",type:"barcode"},{tid:"aProviderModule.qrcode",title:"二维码",type:"qrcode"}])])};return{addElementTypes:e}},a=function(t){var e=function(t){t.removePrintElementTypes("bProviderModule"),t.addPrintElementTypes("bProviderModule",[new i["c"].PrintElementTypeGroup("常规",[{tid:"bProviderModule.header",title:"单据表头",data:"单据表头",type:"text",options:{testData:"单据表头",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"bProviderModule.type",title:"单据类型",data:"单据类型",type:"text",options:{testData:"单据类型",height:16,fontSize:15,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"bProviderModule.order",title:"订单编号",data:"XS888888888",type:"text",options:{field:"orderId",testData:"XS888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"bProviderModule.date",title:"业务日期",data:"2020-01-01",type:"text",options:{field:"date",testData:"2020-01-01",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"bProviderModule.barcode",title:"条形码",data:"XS888888888",type:"text",options:{field:"barcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"barcode"}},{tid:"bProviderModule.qrcode",title:"二维码",data:"XS888888888",type:"text",options:{field:"qrcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"qrcode"}},{tid:"bProviderModule.platform",title:"平台名称",data:"平台名称",type:"text",options:{testData:"平台名称",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"bProviderModule.image",title:"Logo",data:"",type:"image"}]),new i["c"].PrintElementTypeGroup("客户",[{tid:"bProviderModule.khname",title:"客户名称",data:"高级客户",type:"text",options:{field:"name",testData:"高级客户",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"bProviderModule.tel",title:"客户电话",data:"18888888888",type:"text",options:{field:"tel",testData:"18888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}}]),new i["c"].PrintElementTypeGroup("表格/其他",[{tid:"bProviderModule.table",title:"订单数据",type:"table",options:{field:"table",fields:[{text:"名称",field:"NAME"},{text:"数量",field:"SL"},{text:"规格",field:"GG"},{text:"条码",field:"TM"},{text:"单价",field:"DJ"},{text:"金额",field:"JE"},{text:"备注",field:"DETAIL"}]},editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,columns:[[{title:"名称",align:"center",field:"NAME",width:100},{title:"数量",align:"center",field:"SL",width:100},{title:"条码",align:"center",field:"TM",width:100},{title:"规格",align:"center",field:"GG",width:100},{title:"单价",align:"center",field:"DJ",width:100},{title:"金额",align:"center",field:"JE",width:100},{title:"备注",align:"center",field:"DETAIL",width:100}]],footerFormatter:function(t,e,n,i){return n&&n["totalCap"]?''.concat("应收金额大写: "+n["totalCap"],""):'应收金额大写: '}},{tid:"bProviderModule.customText",title:"文本",customText:"自定义文本",custom:!0,type:"text"},{tid:"bProviderModule.longText",title:"长文本",type:"longText",options:{field:"test.longText",width:200,testData:"长文本分页/不分页测试"}}]),new i["c"].PrintElementTypeGroup("辅助",[{tid:"bProviderModule.hline",title:"横线",type:"hline"},{tid:"bProviderModule.vline",title:"竖线",type:"vline"},{tid:"bProviderModule.rect",title:"矩形",type:"rect"},{tid:"bProviderModule.oval",title:"椭圆",type:"oval"}])])};return{addElementTypes:e}};e["a"]=[{name:"A设计",value:"aProviderModule",type:1,f:o()},{name:"B设计",value:"bProviderModule",type:2,f:a()}]},4474: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 _home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b85c"),_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("5530"),_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("2909"),_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("53ca"),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("a4d3"),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("e01a"),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("dc8d"),core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_symbol_has_instance_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("d28b"),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("944a"),core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_symbol_to_string_tag_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("d9e2"),core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("cb29"),core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_array_fill_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("4de4"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("7db0"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("c740"),core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_array_find_index_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("caad"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("a15b"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("fb6a"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("4e82"),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("b56e"),core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_function_has_instance_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_24__),core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("0c47"),core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(core_js_modules_es_json_to_string_tag_js__WEBPACK_IMPORTED_MODULE_25__),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("4ec9"),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_26__),core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("23dc"),core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(core_js_modules_es_math_to_string_tag_js__WEBPACK_IMPORTED_MODULE_27__),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("a9e3"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_28__),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("b680"),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_29__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_30__),core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("1f68"),core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(core_js_modules_es_object_proto_js__WEBPACK_IMPORTED_MODULE_31__),core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("131a"),core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_32__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_33___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_33__),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("4d63"),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_34__),core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("c607"),core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_35___default=__webpack_require__.n(core_js_modules_es_regexp_dot_all_js__WEBPACK_IMPORTED_MODULE_35__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_36__),core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("2c3e"),core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(core_js_modules_es_regexp_sticky_js__WEBPACK_IMPORTED_MODULE_37__),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("00b4"),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_38__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("25f0"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_39__),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("8a79"),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_40___default=__webpack_require__.n(core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_40__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("2532"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("3ca3"),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_42__),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("466d"),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_43__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("5319"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_44___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_44__),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("1276"),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_45___default=__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_45__),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("2ca0"),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_46___default=__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_46__),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("498a"),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_47___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_47__),core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("c7cd"),core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_48___default=__webpack_require__.n(core_js_modules_es_string_fixed_js__WEBPACK_IMPORTED_MODULE_48__),core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("9911"),core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_49___default=__webpack_require__.n(core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_49__),core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("81b2"),core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_50___default=__webpack_require__.n(core_js_modules_web_atob_js__WEBPACK_IMPORTED_MODULE_50__),core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("313d"),core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_51___default=__webpack_require__.n(core_js_modules_web_btoa_js__WEBPACK_IMPORTED_MODULE_51__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_52___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_52__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ddb0"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_53___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_53__),core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("0eb6"),core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_54___default=__webpack_require__.n(core_js_modules_web_dom_exception_constructor_js__WEBPACK_IMPORTED_MODULE_54__),core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("b7ef"),core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_55___default=__webpack_require__.n(core_js_modules_web_dom_exception_stack_js__WEBPACK_IMPORTED_MODULE_55__),core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("8bd4"),core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_56___default=__webpack_require__.n(core_js_modules_web_dom_exception_to_string_tag_js__WEBPACK_IMPORTED_MODULE_56__),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_57__=__webpack_require__("2b3d"),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_57___default=__webpack_require__.n(core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_57__),core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_58__=__webpack_require__("bf19"),core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_58___default=__webpack_require__.n(core_js_modules_web_url_to_json_js__WEBPACK_IMPORTED_MODULE_58__),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_59__=__webpack_require__("9861"),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_59___default=__webpack_require__.n(core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_59__),core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_60__=__webpack_require__("88a7"),core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_60___default=__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_60__),core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_61__=__webpack_require__("271a"),core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_61___default=__webpack_require__.n(core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_61__),core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_62__=__webpack_require__("5494"),core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_62___default=__webpack_require__.n(core_js_modules_web_url_search_params_size_js__WEBPACK_IMPORTED_MODULE_62__),jquery__WEBPACK_IMPORTED_MODULE_63__=__webpack_require__("1157"),jquery__WEBPACK_IMPORTED_MODULE_63___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_63__),_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_64__=__webpack_require__("92d7"),_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_64___default=__webpack_require__.n(_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_64__),jsbarcode__WEBPACK_IMPORTED_MODULE_65__=__webpack_require__("62c5"),jsbarcode__WEBPACK_IMPORTED_MODULE_65___default=__webpack_require__.n(jsbarcode__WEBPACK_IMPORTED_MODULE_65__),_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_66__=__webpack_require__("f801"),_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_66___default=__webpack_require__.n(_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_66__),bwip_js__WEBPACK_IMPORTED_MODULE_67__=__webpack_require__("2582"),bwip_js__WEBPACK_IMPORTED_MODULE_67___default=__webpack_require__.n(bwip_js__WEBPACK_IMPORTED_MODULE_67__),_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_68__=__webpack_require__("f694"),socket_io_client__WEBPACK_IMPORTED_MODULE_69__=__webpack_require__("daa8"),_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_70__=__webpack_require__("383e"),_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_70___default=__webpack_require__.n(_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_70__),_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_71__=__webpack_require__("a41b"),_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_71___default=__webpack_require__.n(_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_71__),jspdf__WEBPACK_IMPORTED_MODULE_72__=__webpack_require__("8baf"),_wtto00_html2canvas__WEBPACK_IMPORTED_MODULE_73__=__webpack_require__("8a86"),_wtto00_html2canvas__WEBPACK_IMPORTED_MODULE_73___default=__webpack_require__.n(_wtto00_html2canvas__WEBPACK_IMPORTED_MODULE_73__),nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74__=__webpack_require__("c4de"),nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default=__webpack_require__.n(nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74__),canvg__WEBPACK_IMPORTED_MODULE_75__=__webpack_require__("0d73"),_etypes_default_etyps_provider__WEBPACK_IMPORTED_MODULE_76__=__webpack_require__("c5d8");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"===Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_3__["a"])(Symbol.iterator)?function(t){return Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_3__["a"])(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_3__["a"])(t)},_typeof(t)}window.$=window.jQuery=jquery__WEBPACK_IMPORTED_MODULE_63___default.a,window.autoConnect=!0,window.io=socket_io_client__WEBPACK_IMPORTED_MODULE_69__["a"];var languages={},ctx=__webpack_require__("d950");ctx.keys().forEach((function(t){languages[t.match(/\.\/([^.]+)/)[1]]=ctx(t)}));var i18n={lang:"cn",languages:languages,__:function(t,e){var n=this.languages[this.lang][t]||t;return e&&e instanceof Object?(Object.keys(e).forEach((function(t){n=n.replace(new RegExp("{{".concat(t,"}}"),"g"),e[t])})),n):e?(n=n.replace(/%s/g,e),n):n},__n:function(t,e){var n=this.languages[this.lang][t];return n=n.replace(/%s/g,e),n}},hiprint=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==_typeof(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=21)}([function(t,e,n){var i;n.d(e,"a",(function(){return hinnn})),window.hinnn={},hinnn.event=(i={},{on:function(t,e){i[t]||(i[t]=[]),i[t].push(e)},id:0,off:function(t,e){var n=i[t];if(n){for(var o=-1,a=0;ae?(r&&(clearTimeout(r),r=null),s=p,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,d)),a}},hinnn.debounce=function(t,e,n){var i,o,a,r,s,l=function l(){var p=_.now()-r;p=0?i=setTimeout(l,e-p):(i=null,n||(s=t.apply(a,o),i||(a=o=null)))};return function(){a=this,o=arguments,r=_.now();var p=n&&!i;return i||(i=setTimeout(l,e)),p&&(s=t.apply(a,o),a=o=null),s}},hinnn.toUtf8=function(t){var e,n,i,o;for(e="",i=t.length,n=0;n=1&&o<=127?e+=t.charAt(n):o>2047?(e+=String.fromCharCode(224|o>>12&15),e+=String.fromCharCode(128|o>>6&63),e+=String.fromCharCode(128|o>>0&63)):(e+=String.fromCharCode(192|o>>6&31),e+=String.fromCharCode(128|o>>0&63));return e},hinnn.groupBy=function(t,e,n){var i={};return t.forEach((function(t){var o=JSON.stringify(n(t));i[o]||(i[o]={rows:[]},e.forEach((function(e){i[o][e]=t[e]}))),i[o].rows.push(t)})),Object.keys(i).map((function(t){return i[t]}))},hinnn.orderBy=function(t,e){if(t.length<=1)return t;var n=Math.floor(t.length/2),i=t.splice(n,1)[0],o=[],a=[],r=!0,s=!1,l=void 0;try{for(var p,d=t[Symbol.iterator]();!(r=(p=d.next()).done);r=!0){var c=p.value;e(c)0?n.toFixed(i):parseInt(n.toString())}catch(t){return console.log(t),""}return""},hinnn.toUpperCase=function(t,e){if(!nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a)return e;var n=e;switch(t){case"0":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.encodeS(e);break;case"1":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.encodeS(e,{tenMin:!1});break;case"2":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.encodeB(e,{tenMin:!0});break;case"3":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.encodeB(e);break;case"4":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.toMoney(e,{tenMin:!0});break;case"5":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.toMoney(e);break;case"6":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.toMoney(e,{complete:!0});break;case"7":n=nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_74___default.a.cn.toMoney(e,{complete:!0,outSymbol:!1});break}return n}},function(t,e,n){n.d(e,"a",(function(){return o}));var i=n(9),o=function(){function t(){}return t.prototype.init=function(t){t&&jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(this,t)},t.prototype.on=function(t,e){hinnn.event.on(t,e)},t.prototype.clear=function(t){hinnn.event.clear(t)},t.prototype.registerItems=function(t){t.forEach((function(t){i.a.registerItem(new t)}))},Object.defineProperty(t,"instance",{get:function(){return t._instance||(t._instance=new t,window.HIPRINT_CONFIG&&jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(t._instance,HIPRINT_CONFIG),t._instance.optionItems&&t._instance.optionItems.forEach((function(t){i.a.registerItem(new t)}))),t._instance},enumerable:!0,configurable:!0}),t}()},function(t,e,n){var i=function(){function t(t){this.printElement=t}return t.prototype.updatePosition=function(t,e){this.left=t,this.top=e},t}();n.d(e,"a",(function(){return o}));var o=function(){function t(){this.printTemplateContainer={},this.A1={width:841,height:594},this.A2={width:420,height:594},this.A3={width:420,height:297},this.A4={width:210,height:297},this.A5={width:210,height:148},this.A6={width:105,height:148},this.A7={width:105,height:74},this.A8={width:52,height:74},this.B1={width:1e3,height:707},this.B2={width:500,height:707},this.B3={width:500,height:353},this.B4={width:250,height:353},this.B5={width:250,height:176},this.B6={width:125,height:176},this.B7={width:125,height:88},this.B8={width:62,height:88},this.dragLengthCNum=function(t,e){var n=.75*t;return e&&(e=e),Math.round(n/e)*e}}return Object.defineProperty(t,"instance",{get:function(){return this._instance||(this._instance=new t),this._instance},enumerable:!0,configurable:!0}),t.prototype.getDragingPrintElement=function(){return t.instance.dragingPrintElement},t.prototype.setDragingPrintElement=function(e){t.instance.dragingPrintElement=new i(e)},t.prototype.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t.prototype.imageToBase64=function(t){if(-1==jquery__WEBPACK_IMPORTED_MODULE_63___default()(t).attr("src").indexOf("base64"))try{var e=document.createElement("canvas"),n=new Image;n.src=t.attr("src"),e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0),t.attr("src",e.toDataURL("image/png"))}catch(e){try{this.xhrLoadImage(t)}catch(t){console.log(t)}}},t.prototype.xhrLoadImage=function(t){},t.prototype.transformImg=function(t){var e=this;t.map((function(t,n){e.imageToBase64(jquery__WEBPACK_IMPORTED_MODULE_63___default()(n))}))},t.prototype.getPrintTemplateById=function(e){return t.instance.printTemplateContainer[e]},t.prototype.setPrintTemplateById=function(e,n){return t.instance.printTemplateContainer[e]=n},t}()},function(t,e,n){var i=function(){return function(){}}();n.d(e,"a",(function(){return o}));var o=function(){function t(t){t=t||{},this.left=t.left,this.top=t.top,this.topInDesign=this.top,this.height=t.height,this.width=t.width,this.transform=t.transform,this.init(t)}return t.prototype.setDefault=function(t){var e=this;this.defaultOptions=t,this.initSize(),Object.keys(this.defaultOptions).forEach((function(t){e[t]=e[t]||e.defaultOptions[t]}))},t.prototype.initSize=function(){this.width||this.setWidth(this.defaultOptions.width),this.height||this.setHeight(this.defaultOptions.height)},t.prototype.initSizeByHtml=function(t,e){this.width||this.setWidth(t),this.height||this.setHeight(e)},t.prototype.getRectInfo=function(){var t={w:0,h:0,diffW:0,diffH:0};if(this.transform){var e=this.transform*Math.PI/180,n=this.width,i=this.height,o=Math.sin(e),a=Math.cos(e),r=Math.abs(n*a)+Math.abs(i*o),s=Math.abs(n*o)+Math.abs(i*a),l=(n-r)/2,p=(i-s)/2;t.w=r,t.h=s,t.diffW=l,t.diffH=p}return t},t.prototype.getLeft=function(){return this.left},t.prototype.posLeft=function(){var t=this.left;return this.transform&&(t+=this.getRectInfo().diffW),Math.floor(10*t)/10},t.prototype.setRotate=function(t){null!=t&&(this.transform=t)},t.prototype.displayLeft=function(t){return this.transform&&t?this.left+this.getRectInfo().diffW+"pt":this.left+"pt"},t.prototype.setLeft=function(t){null!=t&&(this.left=t)},t.prototype.getTop=function(){return this.top},t.prototype.posTop=function(){var t=this.top;return this.transform&&(t+=this.getRectInfo().diffH),Math.floor(10*t)/10},t.prototype.getTopInDesign=function(){return this.topInDesign},t.prototype.displayTop=function(t){return this.transform&&t?this.top+this.getRectInfo().diffH+"pt":this.top+"pt"},t.prototype.setTop=function(t){null!=t&&(this.top=t)},t.prototype.copyDesignTopFromTop=function(){this.topInDesign=this.top},t.prototype.getHeight=function(){if(this.transform){var t=this.getRectInfo();return t.h+t.diffH}return this.height},t.prototype.displayHeight=function(){return this.height+"pt"},t.prototype.setHeight=function(t){null!=t&&(this.height=t)},t.prototype.getWidth=function(){if(this.transform){var t=this.getRectInfo();return t.w+t.diffW}return this.width},t.prototype.displayWidth=function(){return this.width+"pt"},t.prototype.setWidth=function(t){null!=t&&(this.width=t)},t.prototype.getValueFromOptionsOrDefault=function(t){return null==this[t]?this.defaultOptions[t]:this[t]},t.prototype.getPrintElementOptionEntity=function(){var t=new i,e=this;return Object.keys(this).filter((function(t){return"topInDesign"!=t})).forEach((function(n){if("number"!=typeof e[n]&&"string"!=typeof e[n]&&!["fields"].includes(n)&&_typeof(e[n])!=_typeof(!0)||(t[n]=e[n]),"style"==n){t.style={};var i=e[n];i&&Object.keys(i).forEach((function(e){"number"!=typeof i[e]&&"string"!=typeof i[e]||(t.style[e]=i[e])}))}})),t},t.prototype.init=function(t){var e=this;t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))},t}()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",(function(){return BasePrintElement}));var _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(17),_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9),_dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6),_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),_PrintReferenceElement__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8),_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),BasePrintElement=function(){function BasePrintElement(t){this.printElementType=t,this.id=_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.guid()}return BasePrintElement.prototype.getConfigOptionsByName=function(t){return _HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance[t]},BasePrintElement.prototype.getProxyTarget=function(t){t&&this.SetProxyTargetOption(t);var e=this.getData(),n=this.createTarget(this.getTitle(),e);return this.updateTargetSize(n),this.css(n,e),n},BasePrintElement.prototype.SetProxyTargetOption=function(t){this.options.getPrintElementOptionEntity(),jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(this.options,t),this.copyFromType()},BasePrintElement.prototype.showInPage=function(t,e){var n=this.options.showInPage,i=this.options.unShowInPage;if(n){if("first"==n)return 0==t;if(t==e-1&&"last"==i)return!1;if("odd"==n)return(0!=t||"first"!=i)&&t%2==0;if("even"==n)return t%2==1;if("last"==n)return t==e-1}return(0!=t||"first"!=i)&&(t!=e-1||"last"!=i)},BasePrintElement.prototype.setTemplateId=function(t){this.templateId=t},BasePrintElement.prototype.setPanel=function(t){this.panel=t},BasePrintElement.prototype.getField=function(){return this.options.field||this.printElementType.field},BasePrintElement.prototype.getTitle=function(){return this.printElementType.title},BasePrintElement.prototype.updateSizeAndPositionOptions=function(t,e,n,i){var o=_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(this.templateId);if(void 0!==this.panel&&!o.willOutOfBounds){var a=hinnn.mm.toPt(this.panel.width),r=hinnn.mm.toPt(this.panel.height);if(t<0)return;if(e<0)return;if(t+this.options.width>a)return;if(e+this.options.height>r)return}this.options.setLeft(t),this.options.setTop(e),this.options.copyDesignTopFromTop(),this.options.setWidth(n),this.options.setHeight(i)},BasePrintElement.prototype.initSizeByHtml=function(t){if(t&&t.length){this.createTempContainer();var e=t.clone();this.getTempContainer().append(e),this.options.initSizeByHtml(parseInt(hinnn.px.toPt(e.width()).toString()),parseInt(hinnn.px.toPt(e.height()).toString())),this.removeTempContainer()}},BasePrintElement.prototype.updateTargetSize=function(t){t.css("width",this.options.displayWidth()),t.css("height",this.options.displayHeight())},BasePrintElement.prototype.updateTargetWidth=function(t){t.css("width",this.options.displayWidth())},BasePrintElement.prototype.getDesignTarget=function(t){var e=this,n=0;return this.designTarget=this.getHtml(t)[0].target,this.designPaper=t,this.designTarget.click((function(t){t.timeStamp-n>500&&hinnn.event.trigger(e.getPrintElementSelectEventKey(),{printElement:e}),n=t.timeStamp})),this.designTarget.dblclick((function(t){var n=e.designTarget.find(".hiprint-printElement-content");if(n){var i=e.designTarget.find(".resize-panel");"text"!=e.printElementType.type||e.options.textType&&"text"!=e.options.textType||(e._editing=!0,e.designTarget.hidraggable("update",{draggable:!1}),n.css("cursor","text"),n.addClass("editing"),e.designTarget.addClass("editing"),n.click((function(t){e._editing&&t.stopPropagation()})),n.attr("contenteditable",!0),i&&i.css("display","none"),e.selectEnd(n))}})),this.designTarget},BasePrintElement.prototype.selectEnd=function(t){if(t.focus(),"undefined"!=typeof window.getSelection&&"undefined"!=typeof document.createRange){var e=document.createRange();e.selectNodeContents(t[0]),e.collapse(!1);var n=window.getSelection();n.removeAllRanges(),n.addRange(e)}else if("undefined"!=typeof document.body.createTextRange){e=document.body.createTextRange();e.moveToElementText(t[0]),e.collapse(!1),e.select()}},BasePrintElement.prototype.updateByContent=function(t){var e=this,n=e.designTarget.find(".hiprint-printElement-content");if(e._editing){n&&n.css("cursor","")&&n.removeClass("editing")&&n.removeAttr("contenteditable"),e.designTarget.removeClass("editing");var i=n.text(),o=e.options.title;i.startsWith(o)&&e.options.field?i.length>o.length?e.options.testData=i.split(":")[1]:(e.options.title=i,e.options.testData=""):e.options.title=i,e.options.title=e.options.title.split(":")[0],t||hinnn.event.trigger(e.getPrintElementSelectEventKey(),{printElement:e}),e.updateDesignViewFromOptions(),hinnn.event.trigger("hiprintTemplateDataChanged_"+e.templateId,"编辑修改"),e._editing=!1;var a=void 0==e.options.draggable||1==e.options.draggable;e.designTarget.hidraggable("update",{draggable:a})}},BasePrintElement.prototype.getPrintElementSelectEventKey=function(){return"PrintElementSelectEventKey_"+this.templateId},BasePrintElement.prototype.design=function(t,e){var n=this;this.designTarget.hidraggable({draggable:n.options.draggable,axis:n.options.axis?n.options.axis:void 0,designTarget:n,onDrag:function(t,i,o){var a=n.panel.printElements.filter((function(t){return"block"==t.designTarget.children().last().css("display")&&t.designTarget.children().last().hasClass("selected")&&!t.printElementType.type.includes("table")})),r=a.length>1,s=!n.designTarget.children().last().hasClass("selected");if(r){var l=i-n.options.left,p=o-n.options.top;a.forEach((function(t){t.updateSizeAndPositionOptions(l+t.options.getLeft(),p+t.options.getTop()),t.designTarget.css("left",t.options.displayLeft()),t.designTarget.css("top",t.options.displayTop()),t.createLineOfPosition(e)})),s&&(n.updateSizeAndPositionOptions(i,o),n.createLineOfPosition(e))}else n.updateSizeAndPositionOptions(i,o),n.createLineOfPosition(e);_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed=!0},moveUnit:"pt",minMove:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance,onBeforeDrag:function(t){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!0,n.designTarget.focus(),n.createLineOfPosition(e)},onBeforeSelectAllDrag:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!0,n.designTarget.focus()},getScale:function(){return n.designPaper.scale||1},onStopDrag:function(t){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed&&hinnn.event.trigger("hiprintTemplateDataChanged_"+n.templateId,"移动"),_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!1,_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.changed=!1;var e=n.panel.printElements.filter((function(t){return"block"==t.designTarget.children().last().css("display")&&!t.printElementType.type.includes("table")}));e.length>1?e.forEach((function(t){t.removeLineOfPosition()})):n.removeLineOfPosition()}}),this.setResizePanel(),this.bingCopyEvent(this.designTarget),this.bingKeyboardMoveEvent(this.designTarget,e)},BasePrintElement.prototype.getPrintElementEntity=function(t){return t?new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(void 0,this.options.getPrintElementOptionEntity(),this.printElementType.getPrintElementTypeEntity()):new _entity_PrintElementEntity__WEBPACK_IMPORTED_MODULE_0__.a(this.printElementType.tid,this.options.getPrintElementOptionEntity())},BasePrintElement.prototype.submitOption=function(){var t=this,e=this.panel.printElements.filter((function(t){return"block"==t.designTarget.children().last().css("display")&&t.designTarget.children().last().hasClass("selected")&&!t.printElementType.type.includes("table")}));e=e.filter((function(e){return e.printElementType.type==t.printElementType.type}));var n=this,i=this.getConfigOptions();i&&i.tabs&&i.tabs.length?this.getPrintElementOptionTabs().forEach((function(t){"样式"===t.name&&e.length?t.list.forEach((function(t){e.forEach((function(e){var n=t.getValue(),i="textType"==t.name&&e.options[t.name]!==n,o="axis"==t.name&&e.options[t.name]!==n;n&&"object"==_typeof(n)?Object.keys(n).forEach((function(t){e.options[t]=n[t]})):e.options[t.name]=n,i&&e.setResizePanel(),o&&e.designTarget.hidraggable("update",{axis:n})}))})):t.list.forEach((function(t){var e=t.getValue(),i="textType"==t.name&&n.options[t.name]!==e,o="axis"==t.name&&n.options[t.name]!==e;e&&"object"==_typeof(e)?Object.keys(e).forEach((function(t){n.options[t]=e[t]})):n.options[t.name]=e,i&&n.setResizePanel(),o&&n.designTarget.hidraggable("update",{axis:e})}))})):this.getPrintElementOptionItems().forEach((function(t){var e=t.getValue(),i="textType"==t.name&&n.options[t.name]!==e,o="axis"==t.name&&n.options[t.name]!==e;e&&"object"==_typeof(e)?Object.keys(e).forEach((function(t){n.options[t]=e[t]})):n.options[t.name]=e,i&&n.setResizePanel(),o&&n.designTarget.hidraggable("update",{axis:e})})),this.updateDesignViewFromOptions(),hinnn.event.trigger("hiprintTemplateDataChanged_"+this.templateId,"元素修改")},BasePrintElement.prototype.updateOption=function(t,e,n){try{var i=this.getConfigOptions(),o=[];i&&i.tabs&&i.tabs.length?i.tabs.forEach((function(t){t.options.forEach((function(t){o.push(t.name)}))})):o=i.supportOptions.map((function(t){return t.name})),o&&o.includes(t)&&(this.options[t]=e,this.updateDesignViewFromOptions(),n||hinnn.event.trigger("hiprintTemplateDataChanged_"+this.templateId,"参数修改")),this._printElementOptionTabs.forEach((function(n){n.list.forEach((function(n){var i,o;n.name===t&&(null===(i=n.target.find("select"))||void 0===i||i.val(e.toString()),null===(o=n.target.find("input"))||void 0===o||o.val(e.toString()))}))}))}catch(i){console.log("updateOption error",i)}},BasePrintElement.prototype.getReizeableShowPoints=function(){return["barcode","qrcode"].includes(this.options.textType)?["se","s","e","r"]:["s","e","r"]},BasePrintElement.prototype.setResizePanel=function(){var t=this,e=this.designPaper;this.designTarget.hireizeable({showPoints:t.getReizeableShowPoints(),draggable:t.options.draggable,showSizeBox:_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.showSizeBox,getScale:function(){return t.designPaper.scale||1},onBeforeResize:function(){_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!0},onResize:function(n,i,o,a,r,s){void 0!=s?t.onRotate(n,s):t.onResize(n,i,o,a,r),t.createLineOfPosition(e)},onStopResize:function(e){hinnn.event.trigger("hiprintTemplateDataChanged_"+t.templateId,e?"旋转":"大小"),_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.draging=!1,t.removeLineOfPosition()}})},BasePrintElement.prototype.onRotate=function(t,e){this.options.setRotate(e)},BasePrintElement.prototype.onResize=function(t,e,n,i,o){this.updateSizeAndPositionOptions(o,i,n,e)},BasePrintElement.prototype.getOrderIndex=function(){return this.options.getTop()},BasePrintElement.prototype.getHtml=function(t,e,n){var i=0;this.setCurrenttemplateData(e);var o=[],a=this.getBeginPrintTopInPaperByReferenceElement(t),r=t.getPaperFooter(i);this.isHeaderOrFooter()||this.isFixed()||a>r&&"none"!=t.panelPageRule&&(o.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),a=a-r+t.paperHeader,i++,r=t.getPaperFooter(i));var s=this.getData(e),l=this.createTarget(this.getTitle(),s,n);return this.updateTargetSize(l),this.css(l,s),l.css("position","absolute"),l.css("left",this.options.displayLeft()),l.css("top",a+"pt"),o.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:l,printLine:a+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:a+this.options.getHeight(),printTopInPaper:a})})),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.getHtml2=function(t,e,n){var i=0;this.setCurrenttemplateData(e);var o=[],a=this.getBeginPrintTopInPaperByReferenceElement(t),r=t.getPaperFooter(i);this.isHeaderOrFooter()||this.isFixed()||("none"!=t.panelPageRule&&a>r&&(o.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),a=a-r+t.paperHeader,i++,r=t.getPaperFooter(i)),a<=r&&e&&a+this.options.getHeight()>r&&"none"!=t.panelPageRule&&(o.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:void 0,printLine:void 0})),a=t.paperHeader,i++,r=t.getPaperFooter(i)));var s=this.getData(e),l=this.createTarget(this.getTitle(),s);return"none"==t.panelPageRule&&a+this.options.getHeight()>r&&this.updatePanelHeight(a+this.options.getHeight(),t),this.updateTargetSize(l),this.css(l,s),l.css("position","absolute"),l.css("left",this.options.displayLeft()),l.css("top",a+"pt"),o.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_3__.a({target:l,printLine:a+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:a+this.options.getHeight(),printTopInPaper:a})})),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){if("none"==this.panel.panelPageRule){var n=hinnn.pt.toMm(t);e.paperFooter=t,e.target.css("height",n+"mm"),e.target.attr("original-height",n)}},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(t,e){var n,i=this,o=[],a=this.getConfigOptions();a&&(a.tabs&&a.tabs.length?(n=[],a.tabs.forEach((function(t){n=n.concat(t.options)}))):n=a.supportOptions,n&&n.forEach((function(e){var n=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(e.name);if(n&&n.css){var a=n.css(t,i.options.getValueFromOptionsOrDefault(e.name));a&&o.push(a)}})));this.stylerCss(t,e)},BasePrintElement.prototype.stylerCss=function(t,e){var n=this.getStyler();if(n){var i=n(e,this.options,t,this._currenttemplateData);i&&Object.keys(i).forEach((function(e){t.css(e,i[e])}))}},BasePrintElement.prototype.getData=function(t){var e=this.getField();return t?e&&e.split(".").reduce((function(e,n){return e?e[n]:t?t[n]:""}),!1)||"":this.printElementType.getData()},BasePrintElement.prototype.copyFromType=function(){var t=this.options,e=this.printElementType,n=this.getConfigOptions(),i=[];return n&&n.tabs&&n.tabs.length?n.tabs.forEach((function(t){t.options.forEach((function(t){i.push(t.name)}))})):i=n.supportOptions.map((function(t){return t.name})),Object.keys(e).forEach((function(n){e[n]&&"columns"!=n&&i.indexOf(n)>-1&&(t[n]="function"==_typeof(e[n])?e[n].toString():e[n])})),t},BasePrintElement.prototype.getPrintElementOptionTabs=function(){if(this._printElementOptionTabs)return this._printElementOptionTabs;var t=[],e=this.getConfigOptions();if(e){var n=e.tabs;n&&n.forEach((function(e,n){t.push({name:e.name,list:[]}),e.options.filter((function(t){return!t.hidden})).forEach((function(e){var i=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(e.name);t[n].list.push(i)}))}))}return this._printElementOptionTabs=t,this._printElementOptionItems=void 0,this._printElementOptionTabs},BasePrintElement.prototype.getPrintElementOptionItems=function(){if(this._printElementOptionItems)return this._printElementOptionItems;var t,e=[],n=this.getConfigOptions();n&&(n.tabs&&n.tabs.length?(t=[],n.tabs.forEach((function(t){t=t.concat(t.options)}))):t=n.supportOptions,t&&t.filter((function(t){return!t.hidden})).forEach((function(t){var n=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(t.name);e.push(n)})));return this._printElementOptionItems=this.filterOptionItems(e.concat()),this._printElementOptionTabs=void 0,this._printElementOptionItems},BasePrintElement.prototype.getPrintElementOptionItemsByName=function(t){var e,n=[],i=this.getConfigOptionsByName(t);i&&(i.tabs&&i.tabs.length?(e=[],i.tabs.forEach((function(t){e=e.concat(t.options)}))):e=i.supportOptions,e&&e.filter((function(t){return!t.hidden})).forEach((function(t){var e=_print_element_option_PrintElementOptionItemManager__WEBPACK_IMPORTED_MODULE_2__.a.getItem(t.name);n.push(e)})));return n.concat()},BasePrintElement.prototype.filterOptionItems=function(t){return this.printElementType.field?t.filter((function(t){return"field"!=t.name})):t},BasePrintElement.prototype.createTempContainer=function(){this.removeTempContainer(),jquery__WEBPACK_IMPORTED_MODULE_63___default()("body").append(jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'))},BasePrintElement.prototype.removeTempContainer=function(){jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint_temp_Container").remove()},BasePrintElement.prototype.getTempContainer=function(){return jquery__WEBPACK_IMPORTED_MODULE_63___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_63___default()(".toplineOfPosition.id"+this.id),n=jquery__WEBPACK_IMPORTED_MODULE_63___default()(".topPosition.id"+this.id),i=jquery__WEBPACK_IMPORTED_MODULE_63___default()(".leftlineOfPosition.id"+this.id),o=jquery__WEBPACK_IMPORTED_MODULE_63___default()(".leftPosition.id"+this.id),a=jquery__WEBPACK_IMPORTED_MODULE_63___default()(".rightlineOfPosition.id"+this.id),r=jquery__WEBPACK_IMPORTED_MODULE_63___default()(".bottomlineOfPosition.id"+this.id),s=_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance;if(e.length)e.css("top",this.options.displayTop(!0));else{e=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');e.css("top",this.options.displayTop(!0)),e.css("width",t.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(e)}if(s.showPosition)if(n.length)n.toggleClass("topPosition-lineMode",s.positionLineMode),n.text(this.options.posTop()+(s.positionUnit?"pt":"")),n.css("top",this.options.posTop()-n.height()+"pt"),s.positionLineMode?n.css("left",this.options.posLeft()-n.width()/2+"pt"):n.css("left",this.options.posLeft()+2+"pt"),this.designTarget.find(".size-box")&&this.designTarget.find(".size-box").toggleClass("hide",!0);else{n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');n.toggleClass("topPosition-lineMode",s.positionLineMode),n.text(this.options.posTop()+(s.positionUnit?"pt":"")),s.positionLineMode?n.css("left",this.options.posLeft()-n.width()/2+"pt"):n.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(n),n.css("top",this.options.posTop()-n.height()+"pt")}if(i.length)i.css("left",this.options.displayLeft(!0));else{var l=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');l.css("left",this.options.displayLeft(!0)),l.css("height",t.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(l)}if(s.showPosition)if(o.length)o.text(this.options.posLeft()+(s.positionUnit?"pt":"")),o.toggleClass("leftPosition-lineMode",s.positionLineMode),o.css("left",this.options.posLeft()-o.width()+"pt"),s.positionLineMode?o.css("top",this.options.posTop()-o.height()/3+"pt"):o.css("top",this.options.posTop()+2+"pt");else{o=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');o.text(this.options.posLeft()+(s.positionUnit?"pt":"")),o.toggleClass("leftPosition-lineMode",s.positionLineMode),s.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")}if(a.length)a.css("left",this.options.getLeft()+this.options.getWidth()+"pt");else{var p=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');p.css("left",this.options.getLeft()+this.options.getWidth()+"pt"),p.css("height",t.displayHeight()),this.designTarget.parents(".hiprint-printPaper-content").append(p)}if(r.length)r.css("top",this.options.getTop()+this.options.getHeight()+"pt");else{var d=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');d.css("top",this.options.getTop()+this.options.getHeight()+"pt"),d.css("width",t.displayWidth()),this.designTarget.parents(".hiprint-printPaper-content").append(d)}},BasePrintElement.prototype.removeLineOfPosition=function(){jquery__WEBPACK_IMPORTED_MODULE_63___default()(".toplineOfPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".topPosition.id"+this.id).remove(),this.designTarget.find(".size-box")&&this.designTarget.find(".size-box").toggleClass("hide",!1),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".leftlineOfPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".leftPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".rightlineOfPosition.id"+this.id).remove(),jquery__WEBPACK_IMPORTED_MODULE_63___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(){if("table"==this.printElementType.type){var t=this.options.tableFields;return t}t=this.options.fields;return t||_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?(t.ctrlKey||t.metaKey)&&67==t.keyCode&&(e.copyJson(),t.preventDefault()):e.updateByContent()}))},BasePrintElement.prototype.copyJson=function(){try{var t=this,e=jquery__WEBPACK_IMPORTED_MODULE_63___default()("#copyArea");e.length||(e=jquery__WEBPACK_IMPORTED_MODULE_63___default()('')),jquery__WEBPACK_IMPORTED_MODULE_63___default()("body").append(e);var n=this.panel.printElements.filter((function(t){return"block"==t.designTarget.children().last().css("display")&&!t.printElementType.type.includes("table")}));n=n.map((function(t){return{options:t.options,printElementType:t.printElementType,id:t.id,templateId:t.templateId}}));var i=JSON.stringify(n);e.text(i),e.css("visibility","visible"),e.setSelectionRange?e.setSelectionRange(0,e.value.length):e.select();var o=!1;o=document.execCommand("copy"),e.css("visibility","hidden"),t.designTarget.focus(),console.log("copyJson success")}catch(a){o=!1,console.log("copyJson error",a)}return o},BasePrintElement.prototype.clone=function(t){var e=this,n=e.printElementType.createPrintElement();return Object.keys(e.options).forEach((function(t){n.options[t]=e.options[t]})),n},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){console.log(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){console.log(t)}return fnstyler},BasePrintElement.prototype.bingKeyboardMoveEvent=function(t,e){var n=this,i=void 0,o=void 0;t.attr("tabindex","1"),t.keydown((function(e){if("INPUT"!=e.target.tagName&&(!n._editing||e.altKey)&&!1!==n.options.draggable){var a=n.panel.printElements.filter((function(t){return"block"==t.designTarget.children().last().css("display")&&!t.printElementType.type.includes("table")})),r=a.length>1,s=_HiPrintConfig__WEBPACK_IMPORTED_MODULE_1__.a.instance.movingDistance;switch(e.keyCode){case 8:case 46:var l=_HiPrintlib__WEBPACK_IMPORTED_MODULE_6__.a.instance.getPrintTemplateById(n.templateId);l.deletePrintElement(n),hinnn.event.trigger("hiprintTemplateDataChanged_"+n.templateId,"删除"),hinnn.event.trigger("clearSettingContainer"),a.forEach((function(t){l.deletePrintElement(t),hinnn.event.trigger("hiprintTemplateDataChanged_"+t.templateId,"删除")})),hinnn.event.trigger("clearSettingContainer");break;case 37:i=n.options.getLeft(),r?a.forEach((function(t){t.updatePositionByMultipleSelect(0-s,0)})):(n.updateSizeAndPositionOptions(i-s),t.css("left",n.options.displayLeft())),e.preventDefault();break;case 38:o=n.options.getTop(),r?a.forEach((function(t){t.updatePositionByMultipleSelect(0,0-s)})):(n.updateSizeAndPositionOptions(void 0,o-s),t.css("top",n.options.displayTop())),e.preventDefault();break;case 39:i=n.options.getLeft(),r?a.forEach((function(t){t.updatePositionByMultipleSelect(s,0)})):(n.updateSizeAndPositionOptions(i+s),t.css("left",n.options.displayLeft())),e.preventDefault();break;case 40:o=n.options.getTop(),r?a.forEach((function(t){t.updatePositionByMultipleSelect(0,s)})):(n.updateSizeAndPositionOptions(void 0,o+s),t.css("top",n.options.displayTop())),e.preventDefault()}[37,38,39,40].includes(e.keyCode)&&hinnn.event.trigger("hiprintTemplateDataChanged_"+n.templateId,"键盘移动")}}))},BasePrintElement.prototype.inRect=function(t){var e=this.designPaper.scale||1,n=this.designTarget[0].offsetLeft,i=this.designTarget[0].offsetTop,o=this.designTarget[0].offsetHeight,a=this.designTarget[0].offsetWidth,r=n+a,s=i+o,l=jquery__WEBPACK_IMPORTED_MODULE_63___default()(t.target[0]).position().left/e,p=jquery__WEBPACK_IMPORTED_MODULE_63___default()(t.target[0]).position().top/e,d=t.target[0].offsetHeight,c=t.target[0].offsetWidth,u=l+c,h=p+d;return ln&&ip},BasePrintElement.prototype.multipleSelect=function(t){t?this.designTarget.addClass("multipleSelect"):this.designTarget.removeClass("multipleSelect")},BasePrintElement.prototype.updatePositionByMultipleSelect=function(t,e){!1!==this.options.draggable&&(this.updateSizeAndPositionOptions(t+this.options.getLeft(),e+this.options.getTop()),this.designTarget.css("left",this.options.displayLeft()),this.designTarget.css("top",this.options.displayTop()))},BasePrintElement}()},function(t,e,n){var i=function(){function t(){}return t.prototype.init=function(t){this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()(''),t.getTarget().append(this.target),this.target.focus()},t.prototype.getValue=function(){return this.target.val()},t.prototype.setValue=function(t){this.target.val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),o=function(){function t(){this.text=new i}return Object.defineProperty(t,"Instance",{get:function(){return t._instance||(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t}(),a=function(){function t(){}return t.prototype.init=function(t,e){var n='",this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()(n),e.getTarget().append(this.target),this.target.focus()},t.prototype.getValue=function(){var t=this.target.val(),e=this.target.find('option[value="'+t+'"]').text();return e+"#"+t},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),r=function(){function t(){this.select=new a}return Object.defineProperty(t,"Instance",{get:function(){return t._instance||(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t}(),s=function(){function t(){}return Object.defineProperty(t,"Instance",{get:function(){return o._instance||(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t.prototype.createEditor=function(t){return jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend({},o.Instance[t])},t.prototype.createSelect=function(t){return jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend({},r.Instance[t])},t}(),l=n(10),p=n(14),d=n(11),c=function(){function t(){}return t.prototype.init=function(t,e){var n=this;this.tableOptions=e,this.title=t.title,this.field=t.field,t.getTarget().unbind("dblclick.hitable").bind("dblclick.hitable",(function(){t.isEditing=!0,n.beginEdit(t)}))},t.prototype.getDisplayHtml=function(){return this.title},t.prototype.beginEdit=function(t){var e=this;e.tableOptions.options.fields&&e.tableOptions.options.fields.length?(this.editor=s.Instance.createSelect("select"),t.getTarget().html(""),this.editor.init(e.tableOptions.options.fields,t),this.editor.setValue(this.field||""),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this.editor.target).keydown((function(n){13==n.keyCode&&e.endEdit(t)})),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this.editor.target).change((function(n){e.endEdit(t)})),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this.editor.target).blur((function(n){e.endEdit(t)}))):(this.editor=s.Instance.createEditor("text"),t.getTarget().html(""),this.editor.init(t),(this.title||this.field)&&(this.tableOptions.options.isEnableEditField?this.editor.setValue((this.title||"")+"#"+(this.field||"")):this.editor.setValue(this.title||"")),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this.editor.target).keydown((function(n){13==n.keyCode&&e.endEdit(t)})),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this.editor.target).blur((function(n){e.endEdit(t)})),this.tableOptions.editingCell&&this.tableOptions.editingCell.id!=t.id&&this.tableOptions.editingCell.innerElement.endEdit(this.tableOptions.editingCell),this.tableOptions.editingCell=t)},t.prototype.endEdit=function(t){t.isEditing=0;var e=this.editor.getValue();if(e)if(this.tableOptions.options.isEnableEditField||this.tableOptions.options.fields){var n=e.split("#");t.title=this.title=n[0],n.length>0&&(t.columnId=t.field=this.field=n[1]),t.id&&t.target.attr("id",t.id),t.columnId&&t.target.attr("column-id",t.columnId),hinnn.event.trigger("hiprintTemplateDataChanged_"+this.tableOptions.options.templateId,"调整表格列字段")}else t.title=this.title=e;else this.tableOptions.options.isEnableEditField?(t.title=this.title="",t.field=this.field=""):t.title=this.title="";this.editor.destroy(),t.getTarget().html(this.title)},t}(),u=function(){return function(t){this.title=t.title,this.field=t.field,this.width=t.width,this.align=t.align,this.halign=t.halign,this.vAlign=t.vAlign,this.colspan=t.colspan,this.rowspan=t.rowspan,this.checked=t.checked,this.columnId=t.columnId,this.tableSummaryTitle=t.tableSummaryTitle,this.tableSummaryText=t.tableSummaryText,this.tableSummaryColspan=t.tableSummaryColspan,this.tableSummary=t.tableSummary,this.tableSummaryAlign=t.tableSummaryAlign,this.tableSummaryNumFormat=t.tableSummaryNumFormat,this.tableSummaryFormatter=t.tableSummaryFormatter,this.showCodeTitle=t.showCodeTitle,this.upperCase=t.upperCase,this.renderFormatter=t.renderFormatter&&t.renderFormatter.toString(),this.formatter2=t.formatter2&&t.formatter2.toString(),this.styler2=t.styler2&&t.styler2.toString(),this.stylerHeader=t.stylerHeader&&t.stylerHeader.toString(),this.tableColumnHeight=t.tableColumnHeight,this.tableTextType=t.tableTextType,this.tableBarcodeMode=t.tableBarcodeMode,this.tableQRCodeLevel=t.tableQRCodeLevel}}(),h=function(){function t(){this.id=d.a.createId()}return t.prototype.init=function(t,e,n,i){this.isHead=i,this.rowId=n,this.isEditing=!1;var o=/^[0-9]*$/;this.target=t,this.tableOptions=e;var a=this.target.attr("colspan");this.colspan=o.test(a)?parseInt(a):1;var r=this.target.attr("rowspan");this.rowspan=o.test(r)?parseInt(r):1,this.initEvent(),this.isHead&&this.initInnerEelement()},t.prototype.beginEdit=function(){if(!this.isEditing&&this.tableOptions.isEnableEdit&&this.tableOptions.onBeforEdit(this)){var t=this.getValue();this.editor=s.Instance.createEditor("text"),this.isEditing=!0,this.tableOptions.editingCell=this,this.target.html(""),this.editor.init(this),this.editor.setValue(t)}},t.prototype.endEdit=function(){this.isEditing=!1;var t=this.editor.getValue();this.editor.destroy(),this.target.html(t)},t.prototype.getTarget=function(){return this.target},t.prototype.getValue=function(){return this.target.html()},t.prototype.setValue=function(t){},t.prototype.initInnerEelement=function(){this.innerElement=new c,this.innerElement.init(this,this.tableOptions)},t.prototype.initEvent=function(){},t.prototype.isXYinCell=function(t,e){var n=new l.b({x:t,y:e,height:0,width:0});return this.isOverlap(n)},t.prototype.getTableRect=function(){return new l.b({x:this.target.offset().left,y:this.target.offset().top,height:this.target[0].offsetHeight,width:this.target[0].offsetWidth})},t.prototype.isOverlap=function(t){var e=this.getTableRect();return t.x+t.width>e.x&&e.x+e.width>t.x&&t.y+t.height>e.y&&e.y+e.height>t.y},t.prototype.isInRect=function(t){var e=t.rect,n=this.getTableRect();if(n.x>=e.x&&n.x+n.width<=e.x+e.width&&n.y>=e.y&&n.y+n.height<=e.y+e.height){var i=p.a.mergeRect(e,n);return JSON.stringify(e)==JSON.stringify(i)||(t.changed=!0,t.rect=i,!0)}return!1},t.prototype.isSelected=function(){return this.target.hasClass("selected")},t.prototype.select=function(){this.target.addClass("selected")},t.prototype.isHeader=function(){return!1},t.prototype.setAlign=function(t){this.align=t,t?this.target.css("text-align",t):this.target[0].style.textAlign=""},t.prototype.setVAlign=function(t){this.vAlign=t,t?this.target.css("vertical-align",t):this.target[0].style.verticalAlign=""},t.prototype.getEntity=function(){return new u(this)},t}();n.d(e,"a",(function(){return m}));var _,f=(_=function(t,e){return(_=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),m=function(t){function e(e){var n=this;return e=e||{},(n=t.call(this)||this).width=e.width?parseFloat(e.width.toString()):100,n.title=e.title,n.descTitle=e.descTitle,n.field=e.field,n.fixed=e.fixed,n.rowspan=e.rowspan?parseInt(e.rowspan):1,n.colspan=e.colspan?parseInt(e.colspan):1,n.align=e.align,n.halign=e.halign,n.vAlign=e.vAlign,n.formatter=e.formatter,n.styler=e.styler,n.renderFormatter=e.renderFormatter,n.formatter2=e.formatter2,n.styler2=e.styler2,n.stylerHeader=e.stylerHeader,n.checkbox=e.checkbox,n.checked=0!=e.checked,n.columnId=e.columnId||e.field,n.tableColumnHeight=e.tableColumnHeight,n.tableTextType=e.tableTextType,n.tableBarcodeMode=e.tableBarcodeMode,n.tableQRCodeLevel=e.tableQRCodeLevel,n.tableSummaryTitle=e.tableSummaryTitle,n.tableSummaryText=e.tableSummaryText,n.tableSummaryColspan=e.tableSummaryColspan,n.tableSummary=e.tableSummary,n.tableSummaryAlign=e.tableSummaryAlign,n.tableSummaryNumFormat=e.tableSummaryNumFormat,n.tableSummaryFormatter=e.tableSummaryFormatter,n.showCodeTitle=e.showCodeTitle,n.upperCase=e.upperCase,n}return f(e,t),e.prototype.css=function(t){},e}(h)},function(t,e,n){n.d(e,"a",(function(){return i}));var i=function(){return 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 n=TableExcelHelper.reconsitutionTableColumnTree(t),i=jquery__WEBPACK_IMPORTED_MODULE_63___default()(""),o=jquery__WEBPACK_IMPORTED_MODULE_63___default()(""),a=TableExcelHelper.getColumnsWidth(n,e),r=function(t){var e=jquery__WEBPACK_IMPORTED_MODULE_63___default()("");o=jquery__WEBPACK_IMPORTED_MODULE_63___default()(""),n[t].filter((function(t){return t.checked})).forEach((function(t){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()("");t.id&&n.attr("id",t.id),t.columnId&&n.attr("column-id",t.columnId),(t.align||t.halign)&&n.css("text-align",t.halign||t.align),t.vAlign&&n.css("vertical-align",t.vAlign),t.colspan>1&&n.attr("colspan",t.colspan),t.rowspan>1&&n.attr("rowspan",t.rowspan),n.html(t.title),a[t.id]?(t.hasWidth=!0,t.targetWidth=a[t.id],n.attr("haswidth","haswidth"),n.css("width",a[t.id]+"pt")):t.hasWidth=!1;var i=TableExcelHelper.getHeaderStyler(t);if(i){var r=i(t);r&&Object.keys(r).forEach((function(t){n.css(t,r[t])}))}e.append(n),o.append(''))})),i.append(e)},s=0;s"),s=this.getFooterFormatter(n,i),l=this.tableSummaryTitle,p="last"==n.tableFooterRepeat?e:a,d=n.columns.length-1,c=this.rowColumns||n.columns[d].columns;if("no"!=n.tableFooterRepeat&&c.some((function(t){return t.tableSummary}))){var u=jquery__WEBPACK_IMPORTED_MODULE_63___default()("");c.filter((function(t){return t.checked})).forEach((function(t){var i=p.filter((function(e){return e&&e[t.field]})).map((function(e){return new RegExp("^-?(0|[1-9]\\d*)(\\.\\d+)?").test(e[t.field])?Number(e[t.field]):0})),a=t.tableSummaryText,r=t.tableSummaryNumFormat||2,s="text-align: ".concat(t.tableSummaryAlign||"center"),d=void 0==t.tableSummaryColspan?1:t.tableSummaryColspan,c=t.upperCase,h=_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a,_=h.toUpperCase,f=h.numFormat,m=TableExcelHelper.getColumnTableSummaryFormatter(t),g=m?m(t,i,e,n):"";if(g)u.append(g);else switch(t.tableSummary){case"count":var v=l(t,a||"".concat(i18n.__("计数"),":"),o),y=_(c,p.filter((function(t){return t})).length||0);u.append('').concat(v).concat(y,""));break;case"sum":var b=parseFloat(Number(i.reduce((function(t,e){return t+e}),0)));b=_(c,f(b,r));v=l(t,a||"".concat(i18n.__("合计"),":"),o);u.append('').concat(v).concat(b,""));break;case"avg":b=parseFloat(Number(i.reduce((function(t,e){return t+e}),0)));var E=parseFloat(Number(b/(i.length||1)));E=_(c,f(E,r));v=l(t,a||"".concat(i18n.__("平均值"),":"),o);u.append('').concat(v).concat(E,""));break;case"min":var P=Math.min.apply(Math,Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_2__["a"])(i))||0;P==1/0&&(P=0),P=_(c,f(P,r));v=l(t,a||"".concat(i18n.__("最小值"),":"),o);u.append('').concat(v).concat(P||0,""));break;case"max":var T=Math.max.apply(Math,Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_2__["a"])(i));T==-1/0&&(T=0),T=_(c,f(T,r));v=l(t,a||"".concat(i18n.__("最大值"),":"),o);u.append('').concat(v).concat(T||0,""));break;case"text":u.append('').concat(a||"",""));break;default:d>=1&&u.append('').concat(a||"",""));break}})),r.append(u)}return s&&r.append(s(n,e,o,a)),r},TableExcelHelper.tableSummaryTitle=function(t,e,n){var i=void 0==t.tableSummaryTitle||1==t.tableSummaryTitle;return i?"".concat(e):n?"":''.concat(e,"")},TableExcelHelper.createTableRow=function(t,e,n,i,o){var a=this,r=TableExcelHelper.reconsitutionTableColumnTree(t),s=jquery__WEBPACK_IMPORTED_MODULE_63___default()(""),l=a.getGroupFieldsFormatter(i,o),p=l?i.groupFields=l(o,i,e):o.groupFields?o.groupFields:[];return e||(e=[]),p.length?_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_1__.a.groupBy(e,p,(function(t){var e={};return p.forEach((function(n){return e[n]=t[n]})),e})).forEach((function(t){var l=a.getGroupFormatter(i,o);if(l){var p=l(r.colspan,e,n,t,i);jquery__WEBPACK_IMPORTED_MODULE_63___default()(p).is("tr")?s.append(p):jquery__WEBPACK_IMPORTED_MODULE_63___default()(p).is("td")?s.append("".concat(p,"")):s.append("".concat(p,""))}var d=a.getGroupFooterFormatter(i,o),c=t;if(c.rows.forEach((function(t,e){var a=TableExcelHelper.createRowTarget(r,t,i,o,e,c.rows,n);s.append(a)})),d){var u=d(r.colspan,e,n,t,i);jquery__WEBPACK_IMPORTED_MODULE_63___default()(u).is("tr")?s.append(u):jquery__WEBPACK_IMPORTED_MODULE_63___default()(u).is("td")?s.append("".concat(u,"")):s.append("".concat(u,""))}})):e.forEach((function(t,a){var l=TableExcelHelper.createRowTarget(r,t,i,o,a,e,n);s.append(l)})),s},TableExcelHelper.createRowTarget=function(t,e,n,i,rowIndex,tableData,printData){var o=jquery__WEBPACK_IMPORTED_MODULE_63___default()(""),columns=t.rowColumns.filter((function(t){return t.checked}));o.data("rowData",e),t.rowColumns.filter((function(t){return t.checked})).forEach((function(t,i){if(t.checked){var rowsColumnsMerge="";if(n.rowsColumnsMerge){eval("rowsColumnsMerge="+n.rowsColumnsMerge);var rowsColumnsArr=rowsColumnsMerge(e,t,i,rowIndex,tableData,printData)||[1,1],r=jquery__WEBPACK_IMPORTED_MODULE_63___default()(""))}else var r=jquery__WEBPACK_IMPORTED_MODULE_63___default()("");if(e&&Object.keys(e).length>0&&("first"==n.tableHeaderRepeat||"none"==n.tableHeaderRepeat)){if(t.field&&r.attr("field",t.field),t.align&&r.css("text-align",t.align),t.vAlign&&r.css("vertical-align",t.vAlign),n.rowsColumnsMerge&&rowsColumnsArr[1]>1){var width=0;columns.forEach((function(t,e){e>=i&&e
');try{p?(jsbarcode__WEBPACK_IMPORTED_MODULE_65___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(""),t.showCodeTitle&&r.find(".hibarcode_displayValue").html(p)}catch(t){console.log(t),r.html("".concat(i18n.__("此格式不支持该文本")))}}if("image"==t.tableTextType&&(r.html(""),p)){var imagebox=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');imagebox.find("img").attr("src",p),console.log(imagebox.find("img").css("width")),r.html(imagebox)}if("qrcode"==t.tableTextType){r.html("");try{var qrcodebox=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
');if(p){var l=parseInt(t.width||t.targetWidth||20),u=parseInt(t.tableColumnHeight||20);qrcodebox.css("height",(l>u?u:l)+"pt"),new QRCode(qrcodebox[0],{width:l>u?u:l,height:l>u?u:l,colorDark:"#000000",useSVG:!0,correctLevel:t.tableQRCodeLevel||0}).makeCode(p),r.html(qrcodebox),t.showCodeTitle&&(r.append('
'),r.find(".hiqrcode_displayValue").html(p))}}catch(t){console.log(t),r.html("".concat(i18n.__("二维码生成失败")))}}"sequence"===t.tableTextType&&r.html(rowIndex+1)}var s=TableExcelHelper.getColumnStyler(t);if(s){var l=s(e[t.field],e,i,n);l&&Object.keys(l).forEach((function(t){r.css(t,l[t])}))}o.append(r)}}));var r=TableExcelHelper.getRowStyler(n,i);if(r){var a=r(e,n);a&&Object.keys(a).forEach((function(t){o.css(t,a[t])}))}return o},TableExcelHelper.createEmptyRowTarget=function(t,e){var n=TableExcelHelper.reconsitutionTableColumnTree(t),i=jquery__WEBPACK_IMPORTED_MODULE_63___default()("");return n.rowColumns.filter((function(t){return t.checked})).forEach((function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()("");t.field&&n.attr("field",t.field),t.align&&n.css("text-align",t.align),t.vAlign&&n.css("vertical-align",t.vAlign),i.append(n)})),e&&e.options.tableBodyRowHeight&&i.find("td:not([rowspan])").css("height",e.options.tableBodyRowHeight+"pt"),i},TableExcelHelper.getColumnsWidth=function(t,e){var n={},i=TableExcelHelper.allAutoWidth(t),o=TableExcelHelper.allFixedWidth(t);return t.rowColumns.filter((function(t){return t.checked})).forEach((function(t){if(t.fixed)n[t.id]=t.width;else{var a=e-o,r=t.width/i*(a>0?a:0);n[t.id]=r}})),n},TableExcelHelper.resizeTableCellWidth=function(t,e,n){var i=TableExcelHelper.reconsitutionTableColumnTree(e),o=TableExcelHelper.getColumnsWidth(i,n);t.find("thead tr td[haswidth]").map((function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()(e).attr("id"),i=o[n];jquery__WEBPACK_IMPORTED_MODULE_63___default()(e).css("width",i+"pt")}))},TableExcelHelper.allAutoWidth=function(t){var e=0,n={};return t.rowColumns.filter((function(t){return t.checked})).forEach((function(t){n[t.id]?n[t.id]=0:n[t.id]=t.width,e+=t.fixed?0:n[t.id]})),e},TableExcelHelper.allFixedWidth=function(t){var e=0,n={};return t.rowColumns.filter((function(t){return t.checked})).forEach((function(t){n[t.id]?n[t.id]=0:n[t.id]=t.width,e+=t.fixed?n[t.id]:0})),e},TableExcelHelper.reconsitutionTableColumnTree=function(t,e,n){var i=e||new _ReconsitutionTableColumns__WEBPACK_IMPORTED_MODULE_0__.a;i.colspan=0;for(var o=function(e){i.totalLayer=e+1,i[e]=t[e].columns,0==e&&t[e].columns.forEach((function(t){0==e&&(i.colspan+=t.colspan)}))},a=0;a=t.totalLayer-1?e[n].forEach((function(t,e){t.field||(t.field=r[e])})):e[n].forEach((function(t,e){0==n?r.push(t.field||""):t.field&&(r[e]=t.field)}))},l=0;lt},t}()},function(t,e,n){var i=function(){function t(){this.name="lineHeight"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("字体行高"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),o=function(){function t(){this.name="fontFamily"}return t.prototype.createTarget=function(t){var e=void 0;if(t&&(e=t.getFontList()),e){var n='
\n
\n '.concat(i18n.__("字体"),'\n
\n
\n \n
\n
",this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()(n)}else this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("字体"),'\n
\n
\n \n
\n
"));return this.target},t.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},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),a=function(){function t(){this.name="fontSize"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("字体大小"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),r=function(){function t(){this.name="fontWeight"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("字体粗细"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),s=function(){function t(){this.name="letterSpacing"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("字间距"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),l=function(){function t(){this.name="textAlign"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("左右对齐"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),p=function(){function t(){this.name="hideTitle"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("标题显示隐藏"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),d=function(){function t(){this.name="tableBorder"}return t.prototype.css=function(t,e){if(t.find("table").length){if("border"==e||void 0==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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表格边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),c=function(){function t(){this.name="tableHeaderBorder"}return t.prototype.css=function(t,e){if(t.find("thead tr").length){if("border"==e||void 0==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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表头边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),u=function(){function t(){this.name="tableHeaderCellBorder"}return t.prototype.css=function(t,e){if(t.find("thead tr").length){if("border"==e||void 0==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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表头单元格边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),h=function(){function t(){this.name="tableFooterBorder"}return t.prototype.css=function(t,e){if(t.find("tfoot tr").length){if("border"==e||void 0==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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表尾边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),_=function(){function t(){this.name="tableFooterCellBorder"}return t.prototype.css=function(t,e){if(t.find("tfoot tr").length){if("border"==e||void 0==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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表尾单元格边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),f=function(){function t(){this.name="tableHeaderRowHeight"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表头行高"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),m=function(){function t(){this.name="tableHeaderFontSize"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表头字体大小"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),g=function(){function t(){this.name="tableHeaderFontWeight"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表头字体粗细"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),v=function(){function t(){this.name="tableBodyCellBorder"}return t.prototype.css=function(t,e){if(t.find("tbody tr").length){if("border"==e||void 0==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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表体单元格边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),y=function(){function t(){this.name="tableBodyRowHeight"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表体行高"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),b=function(){function t(){this.name="tableHeaderBackground"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表头背景"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),E=function(){function t(){this.name="borderWidth"}return t.prototype.createTarget=function(t){var e=["hline","vline","rect","oval"].includes(t.printElementType.type)?"".concat(i18n.__("线宽")):"".concat(i18n.__("边框大小"));return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(e,'\n
\n
\n \n
\n
')),this.target},t.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},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),P=function(){function t(){this.name="barcodeMode"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("条形码格式"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();return t||void 0},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),T=function(){function t(){this.name="barWidth"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("条码宽度"),'
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();return t||void 0},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),w=function(){function t(){this.name="barAutoWidth"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("条码自动增宽"),'
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();return t||void 0},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),D=function(){function t(){this.name="barcodeType"}return t.prototype.createTarget=function(){var t=[{label:"".concat(i18n.__("默认"),"(Code 128)"),value:""},{label:"".concat(i18n.__("商品条码")),children:[{label:"EAN-13",value:"ean13"},{label:"EAN-8",value:"ean8"},{label:"UPC-A",value:"upca"},{label:"UPC-E",value:"upce"},{label:"ISBN",value:"isbn"},{label:"ISMN",value:"ismn"},{label:"ISSN",value:"issn"}]},{label:"".concat(i18n.__("条形码")),children:[{label:"Code 39",value:"code39"},{label:"Code 39 Extended",value:"code39ext"},{label:"Code 93",value:"code93"},{label:"Code 93 Extended",value:"code93ext"},{label:"Code 128",value:"code128"},{label:"Interleaved 2 of 5 (ITF)",value:"interleaved2of5"}]},{label:"".concat(i18n.__("物流")),children:[{label:"EAN-14",value:"ean14"},{label:"GS1-128",value:"gs1-128"},{label:"ITF-14",value:"itf14"},{label:"SSCC-18",value:"sscc18"}]},{label:"GS1 DataBar",children:[{label:"扩展式 GS1 DataBar",value:"databarexpanded"},{label:"层排扩展式 GS1 DataBar",value:"databarexpandedstacked"},{label:"限定式 GS1 DataBar",value:"databarlimited"},{label:"全向式 GS1 DataBar",value:"databaromni"},{label:"层排式 GS1 DataBar",value:"databarstacked"},{label:"全向层排式 GS1 DataBar",value:"databarstackedomni"},{label:"截短式 GS1 DataBar",value:"databartruncated"},{label:"GS1 北美优惠券码",value:"gs1northamericancoupon"}]},{label:"".concat(i18n.__("邮政和快递编码")),children:[{label:"AusPost 4 State Customer Code",value:"auspost"},{label:"Deutsche Post Identcode",value:"identcode"},{label:"Deutsche Post Leitcode",value:"leitcode"},{label:"Japan Post 4 State Customer Code",value:"japanpost"},{label:"Royal TNT Post",value:"kix"},{label:"Royal Mail 4 State Customer Code",value:"royalmail"},{label:"Royal Mail Mailmark",value:"mailmark"},{label:"MaxiCode",value:"maxicode"},{label:"USPS FIM symbols",value:"symbol"},{label:"USPS Intelligent Mail",value:"onecode"},{label:"USPS PLANET",value:"planet"},{label:"USPS POSTNET",value:"postnet"}]},{label:"".concat(i18n.__("医疗产品编码")),children:[{label:"Italian Pharmacode",value:"code32"},{label:"Pharmaceutical Binary Code",value:"pharmacode"},{label:"Pharmazentralnummer (PZN)",value:"pzn"},{label:"Two-track Pharmacode",value:"pharmacode2"},{label:"HIBC Aztec Code",value:"hibcazteccode"},{label:"HIBC Codablock F",value:"hibccodablockf"},{label:"HIBC Code 128",value:"hibccode128"},{label:"HIBC Code 39",value:"hibccode39"}]},{label:"".concat(i18n.__("不常用编码")),children:[{label:"Code 11",value:"code11"},{label:"Code 16K",value:"code16k"},{label:"Code 2 of 5",value:"code2of5"},{label:"Code 49",value:"code49"},{label:"Code One",value:"codeone"},{label:"Codabar",value:"rationalizedCodabar"},{label:"Codablock F",value:"codablockf"},{label:"BC412",value:"bc412"},{label:"COOP 2 of 5",value:"coop2of5"},{label:"Channel Code",value:"channelcode"},{label:"Datalogic 2 of 5",value:"datalogic2of5"},{label:"DotCode",value:"dotcode"},{label:"IATA 2 of 5",value:"iata2of5"},{label:"MSI Plessey",value:"msi"},{label:"Matrix 2 of 5",value:"matrix2of5"},{label:"Plessey UK",value:"plessey"},{label:"PosiCode",value:"posicode"},{label:"Telepen",value:"telepen"},{label:"Telepen Numeric",value:"telepennumeric"}]},{label:"GS1 复合编码",children:[{label:"复合 EAN-13",value:"ean13composite"},{label:"复合 EAN-8",value:"ean8composite"},{label:"复合 UPC-A",value:"upcacomposite"},{label:"复合 UPC-E",value:"upcecomposite"},{label:"层排扩展式复合 GS1 DataBar",value:"databarexpandedstackedcomposite"},{label:"扩展式复合 GS1 DataBar",value:"databarexpandedcomposite"},{label:"限定式复合 GS1 DataBar",value:"databarlimitedcomposite"},{label:"全向式复合 GS1 DataBar",value:"databaromnicomposite"},{label:"层排式复合 GS1 DataBar",value:"databarstackedcomposite"},{label:"全向层排式复合 GS1 DataBar",value:"databarstackedomnicomposite"},{label:"截短式复合 GS1 DataBar",value:"databartruncatedcomposite"},{label:"复合 GS1-128",value:"gs1-128composite"}]},{label:"".concat(i18n.__("附加组件")),children:[{label:"EAN-2 (2 位附加码)",value:"ean2"},{label:"EAN-5 (5 位附加码)",value:"ean5"},{label:"GS1 复合 2D 组件",value:"gs1-cc"}]},{label:"".concat(i18n.__("实验编码")),children:[{label:"Raw",value:"raw"},{label:"Custom 4 state symbology",value:"daft"},{label:"Flattermarken",value:"flattermarken"}]}];this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("条码类型"),'
'));var e=this.target.find("select.auto-submit");return t.forEach((function(t){if(t.children){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('').concat(t.label,"")))})),e.append(n)}else e.append('"))})),this.target},t.prototype.getValue=function(){return this.target.find("select").val()||void 0},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),M=function(){function t(){this.name="qrcodeType"}return t.prototype.createTarget=function(){var t=[{label:"".concat(i18n.__("默认"),"(qrcode)"),value:""},{label:"QR Code",value:"qrcode"},{label:"Micro QR Code",value:"microqrcode"},{label:"Swiss QR Code",value:"swissqrcode"},{label:"Rectangular Micro QR Code",value:"rectangularmicroqrcode"},{label:"Aztec Code",value:"azteccode"},{label:"Aztec Runes",value:"aztecrune"},{label:"Compact Aztec Code",value:"azteccodecompact"},{label:"Data Matrix",value:"datamatrix"},{label:"Data Matrix Rectangular",value:"datamatrixrectangular"},{label:"汉信码",value:"hanxin"},{label:"GS1 Data Matrix",value:"gs1datamatrix"},{label:"GS1 Data Matrix Rectangular",value:"gs1datamatrixrectangular"},{label:"GS1 QR Code",value:"gs1qrcode"},{label:"HIBC Data Matrix",value:"hibcdatamatrix"},{label:"HIBC Data Matrix Rectangular",value:"hibcdatamatrixrectangular"},{label:"HIBC MicroPDF417",value:"hibcmicropdf417"},{label:"HIBC PDF417",value:"hibcpdf417"},{label:"HIBC QR Code",value:"hibcqrcode"}];this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("二维码类型"),'
'));var e=this.target.find("select.auto-submit");return t.forEach((function(t){e.append('"))})),this.target},t.prototype.getValue=function(){return this.target.find("select").val()||void 0},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),C=function(){function t(){this.name="qrCodeLevel"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("二维码容错率"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();return parseInt(t||0)},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),O=function(){function t(){this.name="color"}return t.prototype.css=function(t,e){if(t&&t.length){if(e)return t.css("color",e),"color:"+e;t[0].style.color=""}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("字体颜色"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),x=function(){function t(){this.name="textDecoration"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("文本修饰"),'\n
\n
\n \n
\n
")),this.target},t.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},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),A=function(){function t(){this.name="field"}return t.prototype.createTarget=function(t){var e=void 0;if(t&&(e=t.getFields()),e){this.isSelect=!0;var n='
\n
\n '.concat(i18n.__("字段名"),'\n
\n
\n \n
\n
",this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()(n)}else this.isSelect=!1,this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("字段名"),'\n
\n
\n \n
\n
'));return this.target},t.prototype.getValue=function(){return(this.isSelect?this.target.find("select").val():this.target.find("input").val())||void 0},t.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)},t.prototype.destroy=function(){this.target.remove()},t}(),I=function(){function t(){this.name="title"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("标题"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),L=function(){function t(){this.name="testData"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("测试数据"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),S=function(){function t(){this.name="coordinate"}return t.prototype.createTarget=function(t,e){var n=this;return n.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("位置坐标"),'\n
\n
\n\n \n\n \n\n
\n\n
')),n.syncLock=e.coordinateSync||!1,n.createSyncLock(n.syncLock),n.target},t.prototype.createSyncLock=function(t){var e=this;return e.lockTarget=e.syncLock?jquery__WEBPACK_IMPORTED_MODULE_63___default()('')):jquery__WEBPACK_IMPORTED_MODULE_63___default()('')),e.lockTarget.click((function(){e.syncLock?e.lockTarget.text("🔓").attr("title","".concat(i18n.__("不同步"))):e.lockTarget.text("🔗").attr("title","".concat(i18n.__("同步"))),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_63___default()(this).val())})),e.target.find("input:last").change((function(){e.syncLock&&e.target.find("input:first").val(jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).val())})),e.lockTarget},t.prototype.css=function(t){if(t&&t.length&&this.target&&("block"==t.find(".resize-panel").css("display")||t[0].className.includes("table"))&&this.el==t){var e=this.getValue();return t.css("left",e.left+"pt").css("top",e.top+"pt")}return null},t.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},t.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)},t.prototype.destroy=function(){this.target.remove()},t}(),R=function(){function t(){this.name="widthHeight"}return t.prototype.createTarget=function(t,e){var n=this;return n.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("宽高大小"),'\n
\n
\n\n \n\n \n\n
\n\n
')),n.syncLock=e.widthHeightSync||!1,n.createSyncLock(n.syncLock),n.target},t.prototype.createSyncLock=function(t){var e=this;return e.lockTarget=e.syncLock?jquery__WEBPACK_IMPORTED_MODULE_63___default()('')):jquery__WEBPACK_IMPORTED_MODULE_63___default()('')),e.lockTarget.click((function(){e.syncLock?e.lockTarget.text("🔓").attr("title","".concat(i18n.__("不同步"))):e.lockTarget.text("🔗").attr("title","".concat(i18n.__("同步"))),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_63___default()(this).val())})),e.target.find("input:last").change((function(){e.syncLock&&e.target.find("input:first").val(jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).val())})),e.lockTarget},t.prototype.css=function(t){if(t&&t.length&&this.target&&("block"==t.find(".resize-panel").css("display")||t[0].className.includes("table"))&&this.el==t){var e=this.getValue();return t.css("width",e.width+"pt").css("height",e.height+"pt")}return null},t.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},t.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)},t.prototype.destroy=function(){this.target.remove()},t}(),B=function(){function t(){this.name="src"}return t.prototype.createTarget=function(t){this.el=t;var e=void 0,n=this;return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("图片地址"),'\n
\n
\n \n
\n
")),t&&(e=t.getOnImageChooseClick()),e&&this.target.find("button").click((function(){e&&e(n)})),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.refresh=function(t,e,n){var i=this;if(this.setValue(t),this.target.find("input").change(),this.el&&e){var o=new Image;o.src=t,o.complete?i.updateEl(o.width,o.height,e,n):o.onload=function(){i.updateEl(o.width,o.height,e,n)}}},t.prototype.updateEl=function(t,e,n,i){var o,a,r;n&&(n&&n.auto&&(t>=e?n.width=!0:n.height=!0),n.width?(o=e/t,a=this.el.options.width,r=Math.floor(a*o*10)/10,this.el.options.height=r,this.el.designTarget.css("height",r+"pt")):n.height?(o=t/e,r=this.el.options.height,a=Math.floor(r*o*10)/10,this.el.options.width=a,this.el.designTarget.css("width",a+"pt")):n.real&&(a=hinnn.px.toPt(t),r=hinnn.px.toPt(e),this.el.options.width=a,this.el.options.height=r,this.el.designTarget.css("width",a+"pt"),this.el.designTarget.css("height",r+"pt")),this.el.designTarget.children(".resize-panel").trigger(jquery__WEBPACK_IMPORTED_MODULE_63___default.a.Event("click")));i&&i(this.el,t,e)},t.prototype.destroy=function(){this.target.remove()},t}(),j=function(){function t(){this.name="fit"}return 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_63___default()('
\n
\n '.concat(i18n.__("图片缩放"),'\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}(),k=function(){function t(){this.name="borderColor"}return t.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},t.prototype.createTarget=function(t){var e=["hline","vline","rect","oval"].includes(t.printElementType.type)?"".concat(i18n.__("颜色")):"".concat(i18n.__("边框颜色"));return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(e,'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),W=function(){function t(){this.name="watermarkOptions"}return t.prototype.createTarget=function(){this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("水印功能"),"
")),this.content=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("水印内容"),':
')),this.fillStyle=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("字体颜色"),':
')),this.fontSize=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("字体大小"),':
')),this.rotate=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("旋转角度"),':
')),this.width=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("水平密度"),':
')),this.height=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("垂直密度"),':
')),this.timestamp=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("水印时间"),':
'));var t=["YYYY-MM-DD HH:mm:ss","YYYY-MM-DD HH:mm","YYYY-MM-DD HH","YYYY-MM-DD","YYYY-MMMM","YYYY-MM","YYYY"],e='\n ");return t.forEach((function(t){e+='\n "})),this.format=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
'.concat(i18n.__("时间格式"),':
')),this.format.find(".auto-submit").append(jquery__WEBPACK_IMPORTED_MODULE_63___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},t.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()},e=Object.assign({},this.options,t);return e},t.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",void 0!=t.timestamp&&t.timestamp),this.format.find("select").val(t.format||"YYYY-MM-DD HH:mm")},t.prototype.destroy=function(){this.target.remove()},t}(),H=function(){function t(){this.name="paperNumberFormat"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("页码格式"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),U=function(){function t(){this.name="paperNumberDisabled"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("显示页码"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),F=function(){function t(){this.name="paperNumberContinue"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("页码续排"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){return"true"==this.target.find("select").val()},t.prototype.setValue=function(t){this.target.find("select").val((void 0==t||t?"true":"reset").toString())},t.prototype.destroy=function(){this.target.remove()},t}(),K=function(){function t(){this.name="longTextIndent"}return t.prototype.css=function(t,e){return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("每行缩进"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),q=function(){function t(){this.name="showInPage"}return t.prototype.css=function(t,e){if(t&&t.length){if(e&&"none"==e)return t.addClass("alwaysHide");t.removeClass("alwaysHide")}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("显示规则"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),N=function(){function t(){this.name="pageBreak"}return t.prototype.css=function(t,e){if(t&&t.length){if(e&&"none"==e)return t.addClass("alwaysHide");t.removeClass("alwaysHide")}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("强制分页"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),z=function(){function t(){this.name="panelPaperRule"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("打印规则"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),V=function(){function t(){this.name="panelPageRule"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("分页规则"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),G=function(){function t(){this.name="leftSpaceRemoved"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("移除段落左侧空白"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){if("false"==this.target.find("select").val())return!1},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),J=function(){function t(){this.name="firstPaperFooter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("首页页尾"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),X=function(){function t(){this.name="lastPaperFooter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("尾页页尾"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Y=function(){function t(){this.name="evenPaperFooter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("偶数页页尾"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Q=function(){function t(){this.name="oddPaperFooter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("奇数页页尾"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),$=function(){function t(){this.name="fixed"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("位置固定"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),Z=function(){function t(){this.name="axis"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("拖动方向"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();return t||void 0},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),tt=function(){function t(){this.name="leftOffset"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("左偏移"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),et=function(){function t(){this.name="lHeight"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("最低高度"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),nt=function(){function t(){this.name="unShowInPage"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("隐藏规则"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),it=function(){function t(){this.name="tableBodyRowBorder"}return t.prototype.css=function(t,e){if(t.find("tbody tr").length){if("border"==e||void 0==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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("表体行边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ot=function(){function t(){this.name="transform"}return t.prototype.css=function(t,e){if(t&&t.length){var n=t.find(".hiprint-printElement-content").parent(".hiprint-printElement");if(n.length||(n=t),e)return n.css("transform","rotate("+e+"deg)"),n.css("-ms-transform","rotate("+e+"deg)"),n.css("-moz-transform","rotate("+e+"deg)"),n.css("-webkit-transform","rotate("+e+"deg)"),n.css("-o-transform","rotate("+e+"deg)"),"transform:rotate("+e+"deg)";n.length&&(n[0].style.transform="")}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("旋转角度"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),at=function(){function t(){this.name="zIndex"}return t.prototype.css=function(t,e){return t&&t.length&&e?t.css("z-index",e):null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("元素层级"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseInt(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),rt=function(){function t(){this.name="borderRadius"}return t.prototype.css=function(t,e){return t&&t.length&&e?t.css("border-raduis",e):null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("边框圆角"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),st=function(){function t(){this.name="optionsGroup"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("边框设置"),"\n
\n \n
")),this.target},t.prototype.getValue=function(){},t.prototype.setValue=function(t){},t.prototype.destroy=function(){this.target.remove()},t}(),lt=function(){function t(){this.name="borderTop"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("上边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),pt=function(){function t(){this.name="borderLeft"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("左边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),dt=function(){function t(){this.name="borderRight"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("右边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ct=function(){function t(){this.name="borderBottom"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("下边框"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ut=function(){function t(){this.name="contentPaddingLeft"}return t.prototype.css=function(t,e){var n=t.find(".hiprint-printElement-content");if(n&&n.length){if(e)return n.css("padding-left",e+"pt"),"padding-left";n[0].style.paddingLeft=""}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("左内边距"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ht=function(){function t(){this.name="contentPaddingTop"}return t.prototype.css=function(t,e){var n=t.find(".hiprint-printElement-content");if(n&&n.length){if(e)return n.css("padding-top",e+"pt"),"padding-top";n[0].style.paddingTop=""}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("上内边距"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),_t=function(){function t(){this.name="contentPaddingRight"}return t.prototype.css=function(t,e){var n=t.find(".hiprint-printElement-content");if(n&&n.length){if(e)return n.css("padding-right",e+"pt"),"padding-right";n[0].style.paddingRight=""}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("右内边距"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ft=function(){function t(){this.name="contentPaddingBottom"}return t.prototype.css=function(t,e){var n=t.find(".hiprint-printElement-content");if(n&&n.length){if(e)return n.css("padding-bottom",e+"pt"),"padding-bottom";n[0].style.paddingBottom=""}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("下内边距"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),mt=function(){function t(){this.name="borderStyle"}return t.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},t.prototype.createTarget=function(t){var e=["hline","vline","rect","oval"].includes(t.printElementType.type)?"".concat(i18n.__("样式")):"".concat(i18n.__("边框样式"));return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(e,'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),gt=function(){function t(){this.name="backgroundColor"}return t.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},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("背景颜色"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),vt=function(){function t(){this.name="barColor"}return t.prototype.css=function(t,e){return t&&t.length,null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("条码颜色"),'\n
\n
\n \n
\n
')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").minicolors({defaultValue:t||"",theme:"bootstrap"}),this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),yt=function(){function t(){this.name="orient"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("纸张方向(仅自定义纸质有效)"),'\n
\n
\n \n
\n
")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),bt=function(){function t(){this.name="textContentVerticalAlign"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("上下对齐"),'\n
\n
\n \n
\n
")),this.target},t.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},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Et=function(){function t(){this.name="textContentWrap"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n '.concat(i18n.__("文本换行"),'\n
\n
\n \n
\n
")),this.target},t.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},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Pt=n(5),Tt=function(){function t(){this.name="columns"}return t.prototype.createTarget=function(){return jquery__WEBPACK_IMPORTED_MODULE_63___default()('
').appendTo("body"),this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
\n
\n
\n
\n
'),this.target},t.prototype.getValue=function(){return this.buildData()},t.prototype.setValue=function(t,e,n){var i=this,o=this;this.value=t,this.options=e,this.printElementType=n;var a=n.columns[0].filter((function(e){return 0==t[0].columns.filter((function(t){return e.columnId==t.columnId})).length})).map((function(t){var e=new Pt.a(t);return e.checked=!1,e}));this.allColumns=t[0].columns.concat(a),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,n=t.target.attributes["column-id"].nodeValue||"",o=i.allColumns.findIndex((function(t){return t.field==n||t.id==n}));o>=0&&(i.allColumns[o]["checked"]=e),i.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_63___default()(this).css("border-top-color","red")},onDragLeave:function(t,e){jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).css("border-top-color","")},onDrop:function(t,e){jquery__WEBPACK_IMPORTED_MODULE_63___default()(e).insertBefore(this),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).css("border-top-color",""),o.submit()}}))},t.prototype.buildData=function(){var t=this,e=[];return t.options.columns.length>1||(t.printElementType.makeColumnObj(t.allColumns),this.target.find("input").map((function(n,i){var o=jquery__WEBPACK_IMPORTED_MODULE_63___default()(i).attr("column-id"),a=t.printElementType.getColumnByColumnId(o);if(a){var r=new Pt.a(a);r.checked=a.checked,e.push(r)}})),this.value[0].columns=e),this.value},t.prototype.destroy=function(){this.target.remove()},t}(),wt=function(){function t(){this.name="textType"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("打印类型"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Dt=function(){function t(){this.name="tableTextType"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("字段类型"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Mt=function(){function t(){this.name="tableBarcodeMode"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("条形码格式"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();return t||void 0},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Ct=function(){function t(){this.name="tableQRCodeLevel"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("二维码容错率"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();return parseInt(t||0)},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Ot=function(){function t(){this.name="tableColumnHeight"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("单元格高度"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),xt=function(){function t(){this.name="tableSummaryTitle"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("底部聚合标题"),'
    ")),this.target},t.prototype.getValue=function(){return!("false"==this.target.find("select").val())},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),At=function(){function t(){this.name="tableSummaryText"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("底部聚合文本"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),It=function(){function t(){this.name="tableSummaryColspan"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("底部聚合合并列数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Lt=function(){function t(){this.name="tableSummaryAlign"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("底部聚合类型左右对齐"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),St=function(){function t(){this.name="tableSummaryNumFormat"}return t.prototype.createTarget=function(){var t=[{t:"".concat(i18n.__("整数")),v:"0"}],e=[1,2,3,4,5,6];e.forEach((function(e){t.push({t:i18n.__n("保留%s位",e),v:""+e})}));var n='\n ");return t.forEach((function(t){n+='\n "})),this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("底部聚合小数"),'\n
    \n
    \n \n
    \n
    ')),this.target.find(".auto-submit").append(jquery__WEBPACK_IMPORTED_MODULE_63___default()(n)),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Rt=function(){function t(){this.name="showCodeTitle"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("显示码值"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),Bt=function(){function t(){this.name="tableSummaryFormatter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("底部聚合格式化函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),jt=function(){function t(){this.name="upperCase"}return t.prototype.createTarget=function(){var t=[{t:"「小写」十点八",v:"0"},{t:"「小写」一十点八",v:"1"},{t:"「大写」拾点捌",v:"2"},{t:"「大写」壹拾点捌",v:"3"},{t:"「金额」人民币拾元捌角",v:"4"},{t:"「金额」人民币壹拾元捌角",v:"5"},{t:"「金额」人民币壹拾元捌角零分",v:"6"},{t:"「金额」壹拾元捌角零分",v:"7"}],e='\n");return t.forEach((function(t){e+="\n")})),this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n'.concat(i18n.__("转大小写"),'\n
    \n
    \n\n
    \n
    ')),this.target.find(".auto-submit").append(jquery__WEBPACK_IMPORTED_MODULE_63___default()(e)),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),kt=function(){function t(){this.name="tableSummary"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("底部聚合类型"),'
    ")),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}(),Wt=function(){function t(){this.name="topOffset"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("顶部偏移"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Ht=function(){function t(){this.name="panelLayoutOptions"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("面板排列"),"
    ")),this.layoutType=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("排列方式"),':
    ")),this.layoutRowGap=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("垂直间距"),':
    ')),this.layoutColumnGap=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("水平间距"),':
    ')),this.target.append(this.layoutType),this.target.append(this.layoutRowGap),this.target.append(this.layoutColumnGap),this.target},t.prototype.getValue=function(){var t={layoutType:this.layoutType.find("select").val()||"column",layoutRowGap:parseInt(this.layoutRowGap.find("input").val()||0),layoutColumnGap:parseInt(this.layoutColumnGap.find("input").val()||0)},e=Object.assign({},this.options,t);return e},t.prototype.setValue=function(t){this.options=t,this.layoutType.find("select").val(t.layoutType||"column"),this.layoutRowGap.find("input").val(t.layoutRowGap),this.layoutColumnGap.find("input").val(t.layoutColumnGap)},t.prototype.destroy=function(){this.target.remove()},t}(),Ut=function(){function t(){this.name="gridColumns"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("一行多组"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Ft=function(){function t(){this.name="gridColumnsGutter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("一行多组间隔"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.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},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Kt=function(){function t(){this.name="tableHeaderRepeat"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("表格头显示"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),qt=function(){function t(){this.name="paddingLeft"}return t.prototype.css=function(t,e){var n=t;if(n&&n.length){if(e)return n.css("padding-left",e+"pt"),"padding-left";n[0].style.paddingLeft=""}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("左内边距"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),Nt=function(){function t(){this.name="paddingRight"}return t.prototype.css=function(t,e){var n=t;if(n&&n.length){if(e)return n.css("padding-right",e+"pt"),"padding-right";n[0].style.paddingRight=""}return null},t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("右内边距"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},t.prototype.setValue=function(t){t&&(this.target.find('option[value="'+t+'"]').length||this.target.find("select").prepend('")),this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),zt=function(){function t(){this.name="dataType"}return t.prototype.createTarget=function(){var t=this;return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('\n
    \n
    \n
    \n '.concat(i18n.__("数据类型"),'\n
    \n
    \n \n
    \n
    \n
    \n
    \n ').concat(i18n.__("格式"),'\n
    \n
    \n \n \n
    \n
    \n
    \n')),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this.target.find(".hiprint-option-item-datatype")).change((function(){var e=jquery__WEBPACK_IMPORTED_MODULE_63___default()(t.target.find(".hiprint-option-item-datatype")).val();t.loadFormatSelectByDataType(e),t.submit(t.getValue())})),this.target},t.prototype.getValue=function(){var t=this.target.find(".hiprint-option-item-datatype").val();if(t){var e=this.target.find(".hiprint-option-item-datatype-format").val();return{dataType:t,format:e||void 0}}return{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}(),Vt=function(){function t(){this.name="formatter"}return t.prototype.createTarget=function(){var t='
    \n
    \n '.concat(i18n.__("格式化函数"),'\n
    \n
    \n \n
    \n
    ');return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()(t),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),Gt=function(){function t(){this.name="styler"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("样式函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),Jt=function(){function t(){this.name="rowsColumnsMerge"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("行/列合并函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),Xt=function(){function t(){this.name="rowsColumnsMergeClean"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("跨页合并是否清除"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),Yt=function(){function t(){this.name="footerFormatter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("表格脚函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),Qt=function(){function t(){this.name="groupFieldsFormatter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("分组字段函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),$t=function(){function t(){this.name="groupFormatter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("分组头格式化函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),Zt=function(){function t(){this.name="groupFooterFormatter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("分组脚格式化函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),te=function(){function t(){this.name="gridColumnsFooterFormatter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("多组表格脚函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),ee=function(){function t(){this.name="rowStyler"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("行样式函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),ne=function(){function t(){this.name="align"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("单元格左右对齐"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ie=function(){function t(){this.name="vAlign"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("单元格上下对齐"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),oe=function(){function t(){this.name="halign"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("表格头单元格左右对齐"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ae=function(){function t(){this.name="styler2"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("单元格样式函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),re=function(){function t(){this.name="stylerHeader"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("表格头样式函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),se=function(){function t(){this.name="formatter2"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("单元格格式化函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),le=function(){function t(){this.name="renderFormatter"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("单元格渲染函数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("textarea").val();if(t)return t},t.prototype.setValue=function(t){this.target.find("textarea").val(t?t.toString():null)},t.prototype.destroy=function(){this.target.remove()},t}(),pe=function(){function t(){this.name="autoCompletion"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("自动补全"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){if("true"==this.target.find("select").val())return!0},t.prototype.setValue=function(t){this.target.find("select").val((null==t?"":t).toString())},t.prototype.destroy=function(){this.target.remove()},t}(),de=function(){function t(){this.name="maxRows"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("每页最大行数"),'\n
    \n
    \n \n
    \n
    ')),this.target},t.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseInt(t.toString())},t.prototype.setValue=function(t){this.target.find("input").val(t)},t.prototype.destroy=function(){this.target.remove()},t}(),ce=function(){function t(){this.name="tableFooterRepeat"}return t.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    \n
    \n '.concat(i18n.__("表格脚显示"),'\n
    \n
    \n \n
    \n
    ")),this.target},t.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},t.prototype.setValue=function(t){this.target.find("select").val(t)},t.prototype.destroy=function(){this.target.remove()},t}();n.d(e,"a",(function(){return ue}));var ue=function(){function t(){}return t.init=function(){t.printElementOptionItems||(t.printElementOptionItems={},t._printElementOptionItems.forEach((function(e){t.printElementOptionItems[e.name]=e})))},t.registerItem=function(e){if(!e.name)throw new Error("styleItem must have name");t.init(),t.printElementOptionItems[e.name]=e},t.getItem=function(e){return t.init(),t.printElementOptionItems[e]},t._printElementOptionItems=[new o,new a,new r,new s,new i,new l,new p,new wt,new d,new c,new u,new f,new m,new g,new v,new h,new _,new y,new b,new E,new P,new C,new O,new x,new A,new I,new L,new S,new R,new B,new j,new k,new H,new U,new F,new W,new K,new q,new N,new z,new V,new G,new J,new X,new Y,new Q,new $,new Z,new Wt,new tt,new et,new nt,new it,new ot,new rt,new at,new st,new lt,new pt,new dt,new ct,new ht,new ut,new _t,new ft,new mt,new gt,new yt,new bt,new Et,new Tt,new Ut,new Ht,new Ft,new Kt,new qt,new Nt,new zt,new Vt,new Gt,new Yt,new Jt,new Xt,new Qt,new $t,new Zt,new te,new ee,new ne,new oe,new ie,new ae,new re,new le,new se,new pe,new de,new ce,new Ot,new Mt,new Ct,new Dt,new xt,new At,new It,new kt,new Lt,new St,new Bt,new Rt,new jt,new D,new M,new vt,new T,new w],t}()},function(t,e,n){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n(14),o=function(){function t(t,e){this.selectedCells=[],this.rows=t,this.tableTatget=e}return t.prototype.clear=function(){this.tableTatget.find("td").removeClass("selected")},t.prototype.setSingleSelect=function(t){this.startCell=t,this.selectedCells=[]},t.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(this.selectedCells.length>1)return}return this.startCell},t.prototype.singleSelectByXY=function(t,e){var n=this.getCellByXY(t,e);n&&(this.clear(),n&&(n.cell.select(),this.startCell=n,this.selectedCells=[]))},t.prototype.multipleSelectByXY=function(t,e){this.clear();var n=[];if(this.startCell){var o=this.getCellByXY(t,e);if(o){var a=i.a.mergeRect(this.startCell.cell.getTableRect(),o.cell.getTableRect());this.selectByRect(new r(a),n)}}this.selectedCells=n},t.prototype.selectByRect=function(t,e){this.rows.forEach((function(n,i){var o=[];n.columns.forEach((function(e){e.isInRect(t)&&(o.push(new s(i,e)),e.select())})),o.length&&e.push(o)})),t.changed&&(t.changed=!1,e.splice(0,e.length),this.selectByRect(t,e))},t.prototype.getSelectedCells=function(){return this.selectedCells},t.prototype.getCellByXY=function(t,e){var n;return this.rows.forEach((function(i,o){var a=(i.columns||[]).filter((function(t){return t.checked})).filter((function(n){return n.isXYinCell(t,e)}));a.length&&(n=new s(o,a[0]))})),n},t}(),a=function(){return function(t){this.x=t.x,this.y=t.y,this.height=t.height,this.width=t.width}}(),r=function(){return function(t){this.rect=t}}(),s=function(){return function(t,e){this.rowIndex=t,this.cell=e}}()},function(t,e,n){n.d(e,"a",(function(){return i}));var i=function(){function t(){}return t.createId=function(){return this.id+=1,this.id},t.id=1,t}()},function(t,e,n){n.d(e,"a",(function(){return s}));var i,o=n(5),a=n(13),r=(i=function(t,e){return(i=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e){var n=t.call(this)||this;return n.columns=[],e&&e.constructor===Array?(e||[]).forEach((function(t){n.columns.push(new o.a(t))})):e.columns&&(e.columns||[]).forEach((function(t){n.columns.push(new o.a(t))})),n}return r(e,t),e.prototype.getPrintElementOptionEntity=function(){var t=[],e=this.allColumns?this.allColumns.filter((function(t){return!t.checked})):[];return[].concat(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_2__["a"])(this.columns),Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_2__["a"])(e)).forEach((function(e){t.push(e.getEntity())})),t},e}(a.a)},function(t,e,n){n.d(e,"a",(function(){return a}));var i=n(11),o=n(5),a=function(){function t(){this.id=i.a.createId()}return t.prototype.init=function(t,e,n){this.isHead=n,this.target=e||jquery__WEBPACK_IMPORTED_MODULE_63___default()(""),this.tableOptions=t,this.allColumns=this.columns||[],this.initCells((this.columns||[]).filter((function(t){return t.checked})))},t.prototype.getTarget=function(){return this.target},t.prototype.initCells=function(t){var e=this;t?(this.columns=t,t.forEach((function(t,n){t.init(e.target.find("td:eq("+n+")"),e.tableOptions,e.id,e.isHead)}))):(this.columns=[],this.target.find("td").map((function(t,n){var i=new o.a;i.init(jquery__WEBPACK_IMPORTED_MODULE_63___default()(n),e.tableOptions,e.id,e.isHead),e.columns.push(i)})))},t.prototype.removeCell=function(t){var e=this.columns.indexOf(t);this.columns[e].getTarget().remove(),this.columns.splice(e,1)},t.prototype.createTableCell=function(t,e){var n=new o.a;return n.init(jquery__WEBPACK_IMPORTED_MODULE_63___default()(""),this.tableOptions,this.id,this.isHead),t>1&&(n.getTarget().attr("rowspan",t),n.rowspan=t),e>1&&(n.getTarget().attr("colspan",e),n.colspan=e),n},t.prototype.insertToTargetCellLeft=function(t,e){var n=this.columns.indexOf(t);t.getTarget().before(e.getTarget()),this.columns.splice(n,0,e)},t.prototype.insertToTargetCellRight=function(t,e){var n=this.columns.indexOf(t);this.columns[n].getTarget().after(e.getTarget()),this.columns.splice(n+1,0,e)},t.prototype.insertCellToFirst=function(t){this.target.prepend(t.getTarget()),this.columns.splice(0,0,t)},t.prototype.insertCellToLast=function(t){this.columns.push(t),this.target.append(t.getTarget())},t.prototype.getPrintElementOptionEntity=function(){var t=[];return[].concat(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_2__["a"])(this.columns),Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_2__["a"])(this.allColumns.filter((function(t){return!t.checked})))).forEach((function(e){t.push(e.getEntity())})),t},t}()},function(t,e,n){n.d(e,"a",(function(){return o}));var i=n(10),o=function(){function t(){}return t.mergeRect=function(t,e){var n=Math.min(t.x,e.x),o=Math.min(t.y,e.y);return new i.b({x:n,y:o,height:Math.max(t.y+t.height,e.y+e.height)-o,width:Math.max(t.x+t.width,e.x+e.width)-n})},t.Rect=function(t,e,n,i){return{minX:t
    '),o=this.createGridColumnsStructure(n),a=0;a'),n=0;n');e.append(i)}var o=this.getGridColumnsFooterFormatter();if(o){var a=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    ');a.append(o(this.options,this.getData(t),t,[])),e.append(a)}return 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 n,i;if(!this.getField()&&this.options.content)return(n=jquery__WEBPACK_IMPORTED_MODULE_63___default()("
    ")).append(this.options.content),(i=n.find("table")).addClass("hiprint-printElement-tableTarget"),i;if(this.printElementType.formatter)return(n=jquery__WEBPACK_IMPORTED_MODULE_63___default()("
    ")).append(this.printElementType.formatter(t)),(i=n.find("table")).addClass("hiprint-printElement-tableTarget"),i;var o=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '),a=_table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createTableHead(this.getColumns(),this.options.getWidth()/this.options.getGridColumns());return this.isNotDesign?o.append(a):o.append(a[0]),o.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(o.find("tbody")),o},TablePrintElement.prototype.getEmptyRowTarget=function(){return _table_TableExcelHelper__WEBPACK_IMPORTED_MODULE_6__.a.createEmptyRowTarget(this.getColumns(),this)},TablePrintElement.prototype.getHtml=function(t,e){this.createTempContainer(),this.isNotDesign=void 0!=e;var n=this.getPaperHtmlResult(t,e);return this.removeTempContainer(),n},TablePrintElement.prototype.getPaperHtmlResult=function(t,e){var n=[],i=this.getData(e),o=this.getTableHtml(i,e),a=this.createtempEmptyRowsTargetStructure(e);e?this.updateTargetWidth(a):this.updateTargetSize(a),this.css(a,i),this.css(o,i),this.getTempContainer().html(""),this.getTempContainer().append(a);var r=a.find("tfoot").outerHeight()||0;a.find("tfoot").remove();for(var s,l=this.getBeginPrintTopInPaperByReferenceElement(t),p=0,d=!1;!d;){var c=0,u=t.getPaperFooter(p);0==p&&l>u&&"none"!=t.panelPageRule&&(l=l-u+t.paperHeader,n.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({target:void 0,printLine:void 0})),c=t.getContentHeight(p)-(l-t.paperHeader),p++,u=t.getPaperFooter(p));var h=n.length>0?n[n.length-1].target:void 0,_=this.getRowsInSpecificHeight(e,c>0?c:0==p?u-l:t.getContentHeight(p),a,o,p,h,r);if(d=_.isEnd,c<0){n[0].target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("没有足够空间进行表格分页,请调整页眉/页脚线"),"
    ")),n[0].printLine=l,n[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:l+this.options.lHeight,printTopInPaper:l}),n[0].target.css("top",l+"pt"),n[0].target.css("left",this.options.displayLeft());break}var f=void 0;_.target&&(_.target.css("left",this.options.displayLeft()),_.target[0].height=""),0==p||c>0?(_.target&&(s=l,_.target.css("top",l+"pt")),f=d&&null!=this.options.lHeight?l+(_.height>this.options.lHeight?_.height:this.options.lHeight):l+_.height):(_.target&&(s=t.paperHeader,_.target.css("top",t.paperHeader+"pt")),f=t.paperHeader+_.height),n.push(new _dto_PaperHtmlResult__WEBPACK_IMPORTED_MODULE_2__.a({target:_.target,printLine:f,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:f,printTopInPaper:s})})),p++,e&&this.updatePanelHeight(f+this.options.getHeight(),t)}return n},TablePrintElement.prototype.getRowsInSpecificHeight=function(t,e,n,i,o,a,r){var s=this,l=i.find("tbody"),p=_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.pt.toPx(e);n.find(".hiprint-printElement-tableTarget tbody").html(""),"last"!=this.options.tableFooterRepeat&&n.find(".hiprint-printElement-tableTarget tfoot").remove(),"first"==this.options.tableHeaderRepeat&&o>0?n.find(".hiprint-printElement-tableTarget thead").remove():"none"==this.options.tableHeaderRepeat&&(t?n.find(".hiprint-printElement-tableTarget thead").remove():(n.find(".hiprint-printElement-tableTarget thead").css("background","firebrick"),n.find(".hiprint-printElement-tableTarget thead tr").css("background","firebrick")));var d,c="none"==this.panel.panelPageRule;if(t&&c){var u=n.find(".hiprint-printElement-tableTarget thead").attr("style");d=n.find(".hiprint-printElement-tableTarget thead tr").clone(),u?d.attr("style",u):d.css({background:"#e8e8e8"}),n.find(".hiprint-printElement-tableTarget thead").remove()}var h=n.outerHeight();if(!c&&h>p)return{target:void 0,length:0,height:0,isEnd:!1};for(var _=this.options.getGridColumns(),f=[],m=0;m<_;m++)for(var g=n.find(".hiprint-printElement-tableTarget:eq("+m+")"),v=void 0,y=[];;){if(c){var b=l.find("tr").length;if(0==b)v={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(h),isEnd:!0},t&&this.options.autoCompletion&&(this.autoCompletion(p,g,r),h=n.outerHeight());else{var E=l.find("tr:lt(1)");0==y.length&&d&&g.find("tbody").append(d),g.find("tbody").append(E);var P=E.data("rowData");f.push(P),y.push(P),h=n.outerHeight(),0==b&&(l.prepend(E),f.pop(),y.pop(),v={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(h),isEnd:!1})}}else if(h<=p)if(0==l.find("tr").length)v={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(h),isEnd:!0},t&&this.options.autoCompletion&&(this.autoCompletion(p,g,r),h=g.outerHeight());else{E=l.find("tr:lt(1)");s.options.rowsColumnsMerge&&(o>0||m>0)&&0==y.length&&(E=s.fixMergeSpan(E,l)),g.find("tbody").append(E);P=E.data("rowData");f.push(P),y.push(P),h=g.outerHeight(),(("last"==this.options.tableFooterRepeat?h:h+=r)>p||this.options.maxRows&&y.length>+this.options.maxRows)&&(l.prepend(E),f.pop(),y.pop(),h=g.outerHeight(),v={height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(h),isEnd:!1})}if(v){if("last"==this.options.tableFooterRepeat&&!v.isEnd)break;"no"!==this.options.tableFooterRepeat&&(c?g.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(g.find("tbody")),s.css(g,t));break}}var T=n.find(".hiprint-printElement-tableTarget tbody tr").length,w=this.getGridColumnsFooterFormatter();w&&n.find(this.gridColumnsFooterCss).html(w(this.options,this.getData(t),t,f)),h=n.outerHeight();var D=l.find("tr:lt(1)");if(0==T&&D.length&&P==D.data("rowData")){g.find("tbody").append(D);var M=g.find("tbody tr").outerHeight();return l.prepend(D),{target:jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    '.concat(i18n.__("没有足够空间,显示下方内容, 可分页高度"),": ")+p+"px < ".concat(i18n.__("当前需要高度"),": ")+M+"px
    ").append(D.css("background","blue")),length:T,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(h),isEnd:!1}}var C=0==l.find("tr").length?0==T&&a?{target:void 0,length:0,height:0,isEnd:!0}:{target:n.clone(),length:T,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(h),isEnd:!0}:{target:n.clone(),length:T,height:_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.px.toPt(h),isEnd:!1};return C},TablePrintElement.prototype.fixMergeSpan=function(t,e){var n=this,i=new Map;return t.children().each((function(e,o){var a=jquery__WEBPACK_IMPORTED_MODULE_63___default()(o).attr("field");i.set(a,{rowSpan:1,rowEnd:!1}),t.nextAll().each((function(t,e){jquery__WEBPACK_IMPORTED_MODULE_63___default()(e).has("td[field=".concat(a,"][rowspan=0]")).length&&!i.get(a).rowEnd?i.set(a,{rowSpan:++i.get(a).rowSpan,rowEnd:!1}):i.set(a,Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__["a"])(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__["a"])({},i.get(a)),{},{rowEnd:!0}))})),jquery__WEBPACK_IMPORTED_MODULE_63___default()(o).attr("rowspan")<1&&(jquery__WEBPACK_IMPORTED_MODULE_63___default()(o).attr("rowspan",i.get(a).rowSpan),jquery__WEBPACK_IMPORTED_MODULE_63___default()(o).css("display",""),n.options.rowsColumnsMergeClean&&jquery__WEBPACK_IMPORTED_MODULE_63___default()(o).text(""))})),t},TablePrintElement.prototype.autoCompletion=function(t,e,n){for(var i,o=this,a=this.getEmptyRowTarget(),r=e.outerHeight()+n;t>r;)if(i=a.clone(),e.find("tbody").append(i),r=e.outerHeight()+n,o.options.maxRows&&e.find("tbody").children().length>o.options.maxRows)break;i&&i.remove()},TablePrintElement.prototype.getData=function(t){if(!t)try{var e=this.options.testData||"[{}]";return JSON.parse(e)}catch(i){return console.log("table testData parse error",i),[{}]}var n=this.getField(),i=n&&n.split(".").reduce((function(e,n){return e?e[n]:t?t[n]:""}),!1)||"";return i?JSON.parse(JSON.stringify(i)):[]},TablePrintElement.prototype.onResize=function(t,e,n,i,o){_super.prototype.updateSizeAndPositionOptions.call(this,o,i,n,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,e){var n=this;this.designTarget.hidraggable({handle:this.designTarget.find(".hiprint-printElement-table-handle"),axis:n.options.axis?n.options.axis:void 0,designTarget:n,onDrag:function(t,i,o){n.updateSizeAndPositionOptions(i,o),n.createLineOfPosition(e),_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,n.createLineOfPosition(e)},getScale:function(){return n.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_"+n.templateId,"移动"),_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.changed=!1,n.removeLineOfPosition()}}),this.printElementType.editable&&this.setHitable(),this.setColumnsOptions(),this.designTarget.hireizeable({showPoints:n.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 n.designPaper.scale||1},onResize:function(t,i,o,a,r){n.onResize(t,i,o,a,r),n.hitable&&n.hitable.updateColumnGrips(),n.createLineOfPosition(e)},onStopResize:function(t){_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger("hiprintTemplateDataChanged_"+n.templateId,t?"旋转":"大小"),_HiPrintlib__WEBPACK_IMPORTED_MODULE_9__.a.instance.draging=!1,n.removeLineOfPosition()}}),this.bingKeyboardMoveEvent(this.designTarget,e)},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||this.printElementType.editable,columnDisplayEditable:void 0==this.printElementType.columnDisplayEditable||this.printElementType.columnDisplayEditable,columnDisplayIndexEditable:void 0==this.printElementType.columnDisplayIndexEditable||this.printElementType.columnDisplayIndexEditable,columnResizable:void 0==this.printElementType.columnResizable||this.printElementType.columnResizable,columnAlignEditable:void 0==this.printElementType.columnAlignEditable||this.printElementType.columnAlignEditable,isEnableEditText:void 0==this.printElementType.columnTitleEditable||this.printElementType.columnTitleEditable,isEnableEditField:void 0==this.printElementType.isEnableEditField||this.printElementType.isEnableEditField,isEnableContextMenu:void 0==this.printElementType.isEnableContextMenu||this.printElementType.isEnableContextMenu,isEnableInsertRow:void 0==this.printElementType.isEnableInsertRow||this.printElementType.isEnableInsertRow,isEnableDeleteRow:void 0==this.printElementType.isEnableDeleteRow||this.printElementType.isEnableDeleteRow,isEnableInsertColumn:void 0==this.printElementType.isEnableInsertColumn||this.printElementType.isEnableInsertColumn,isEnableDeleteColumn:void 0==this.printElementType.isEnableDeleteColumn||this.printElementType.isEnableDeleteColumn,isEnableMergeCell:void 0==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 t=this;this.designTarget.find(".hiprint-printElement-tableTarget:eq(0)").find("thead td").bind("click.hiprint",(function(e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()(e.target).attr("id")||jquery__WEBPACK_IMPORTED_MODULE_63___default()(e.target).attr("column-id"),i=t.getColumnByColumnId(n);if(i){var o=t.getPrintElementOptionItemsByName("tableColumn");_assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(t.getPrintElementSelectEventKey(),{printElement:t,customOptionsInput:[{title:(i.title||"".concat(i.id,"(id)"))+"-".concat(i18n.__("列属性")),optionItems:o,options:i,callback:function(t){o.forEach((function(t){var e=t.getValue();if("title"==t.name&&e&&!e.trim().endsWith("#")&&!e.trim().startsWith("#")){var n=e?e.split("#"):"";return i.title=n[0],n.length>1&&(i.columnId=i.field=n[1]),i.columnId&&i.target.attr("column-id",i.columnId),void t.target.find("textarea").val(n[0])}i[t.name]=e}))}}]})}else _assets_plugins_hinnn__WEBPACK_IMPORTED_MODULE_3__.a.event.trigger(t.getPrintElementSelectEventKey(),{printElement:t})}))},TablePrintElement.prototype.filterOptionItems=function(t){var e=_super.prototype.filterOptionItems.call(this,t);return this.printElementType.editable&&1==this.options.columns.length?e:t.filter((function(t){return"columns"!=t.name}))},TablePrintElement.prototype.getFooterFormatter=function(){var footerFormatter=void 0;if(this.printElementType.footerFormatter&&(footerFormatter=this.printElementType.footerFormatter),this.options.footerFormatter)try{var s="footerFormatter="+this.options.footerFormatter;eval(s)}catch(t){console.log(t)}return footerFormatter},TablePrintElement.prototype.getGridColumnsFooterFormatter=function(){var gridColumnsFooterFormatter=void 0;if(this.printElementType.gridColumnsFooterFormatter&&(gridColumnsFooterFormatter=this.printElementType.gridColumnsFooterFormatter),this.options.gridColumnsFooterFormatter)try{var s="gridColumnsFooterFormatter="+this.options.gridColumnsFooterFormatter;eval(s)}catch(t){console.log(t)}return gridColumnsFooterFormatter},TablePrintElement}(_BasePrintElement__WEBPACK_IMPORTED_MODULE_0__.a)},function(t,e,n){var i=function(){return function(t){this.table=t.table,this.templateId=t.templateId,this.fields=t.fields,this.isEnableEdit=t.isEnableEdit,this.trs=t.trs,this.resizeRow=t.resizeRow,this.resizeColumn=t.resizeColumn,this.isEnableEditField=t.isEnableEditField,this.isEnableContextMenu=t.isEnableContextMenu,this.isEnableEditField=t.isEnableEditField,this.isEnableInsertRow=t.isEnableInsertRow,this.isEnableDeleteRow=t.isEnableDeleteRow,this.isEnableInsertColumn=t.isEnableInsertColumn,this.isEnableDeleteColumn=t.isEnableDeleteColumn,this.isEnableMergeCell=t.isEnableMergeCell,this.columnResizable=t.columnResizable,this.columnAlignEditable=t.columnAlignEditable}}(),o=function(){function t(t){this.options=new i(t)}return t.prototype.enableEidt=function(){this.options.isEnableEdit},t.prototype.disableEdit=function(){this.options.isEnableEdit},t.prototype.isEnableEdit=function(){return this.options.isEnableEdit},t}(),a=n(0),r=function(){return function(t){this.cell=t.cell,this.link=t.link,this.linkType=t.linkType,this.bottom=t.bottom,this.rightMost=t.rightMost,this.rowLevel=t.rowLevel,this.columnLevel=t.columnLevel,this.indexInTableGridRow=t.indexInTableGridRow,this.indexInTableGridColumn=t.indexInTableGridColumn}}(),s=n(10),l=function(){function t(){}return t.getLeftTableCell=function(t,e){var n;return t.forEach((function(t,i){t.cell&&i0?e:0);i[t.id]=a})),i},t.resizeTableCellWeight=function(t){t.forEach((function(t){t.columns.forEach((function(t){t.hasWidth&&jquery__WEBPACK_IMPORTED_MODULE_63___default()(t.getTarget()).css("width",t.width+"pt")}))}))},t.allAutoWidth=function(t){var e=0;return t.rowColumns.forEach((function(t){e+=t.width})),e},t.reconsitutionTableColumnTree=function(t,e,n){for(var i=e||new h,o=function(e){i.totalLayer=e+1,i[e]=t[e].columns,i.rowColumns=i.rowColumns.concat(i[e].filter((function(n){return n.rowspan==t.length-e})))},a=0;a');i.width(this.target.width()),this.rows.forEach((function(o){(o.columns||[]).filter((function(t){return t.checked})).forEach((function(o,r){if(o.getTarget().attr("haswidth")){var s=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    ');i.append(s);var l=new u(s);n.length>0&&(n[n.length-1].nextGrip=l),n.push(l),t.syncGrips(o,l),jquery__WEBPACK_IMPORTED_MODULE_63___default()(s).hidraggable({axis:"h",onDrag:function(t,e,n){},moveUnit:"pt",minMove:1,getScale:function(){return jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint-printPaper")[0].style.transform&&parseFloat(jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint-printPaper")[0].style.transform.slice(6,-1))||1},onBeforeDrag:function(t){if(f.a.instance.draging=!0,!l.nextGrip)return!1;e.dragingGrip=l,e.dragingGrip.left=parseFloat(e.dragingGrip.target.css("left").replace("px","")),l.target.addClass("columngripDraging")},onStopDrag:function(n){f.a.instance.draging=!1;var i=parseFloat(e.dragingGrip.target.css("left").replace("px","")),o=a.a.px.toPt(i-e.dragingGrip.left);l.cell.width+o<10?o=10-l.cell.width:l.nextGrip.cell.width-o<10&&(o=l.nextGrip.cell.width-10),l.cell.width=l.cell.width+o,l.nextGrip.cell.width=l.nextGrip.cell.width-o,t.resizeTableCellWidth(),l.target.removeClass("columngripDraging"),e.updateColumnGrips()}})}}))})),this.target.before(i),this.cgripContariner=new c(i,n)},t.prototype.updateColumnGrips=function(){this.cgripContariner&&(this.cgripContariner.target.remove(),this.createColumnGrips())},t.prototype.updateRowGrips=function(){this.rgripContariner&&(this.rgripContariner.target.remove(),this.createRowGrips())},t.prototype.createRowGrips=function(){var t=this,e=this,n=[],i=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    ');this.rows.forEach((function(o,r){var s=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
    ');i.append(s);var l=new u(s);n.push(l),r>0&&r=u&&t.cell}));if(0==s.rowLevel){var p=r[e],d=r[e].createTableCell();n&&d.getTarget().addClass(n),null!=i&&(d.width=i),l.length?p.insertToTargetCellLeft(l[0].cell,d):p.insertCellToLast(d),a.a.event.trigger("newCell"+o.id,d)}else if("row"==s.linkType){var c=s.link.getTarget();s.link.colspan+=1,c.attr("colspan",s.link.colspan)}}))}else{var h=c[c.length-1].indexInTableGridRow;d.forEach((function(t,e){var s=t[h],l=t.filter((function(t,e){return e<=h&&t.cell}));if(s.rightMost){var p=r[e],d=p.createTableCell();n&&d.getTarget().addClass(n),null!=i&&(d.width=i),l.length?p.insertToTargetCellRight(l[l.length-1].cell,d):p.insertCellToFirst(d),a.a.event.trigger("newCell"+o.id,d)}else{var c=s.link||s.cell;if("row"==s.linkType){var u=c.getTarget();c.colspan+=1,u.attr("colspan",c.colspan)}s.cell&&(u=c.getTarget(),c.colspan+=1,u.attr("colspan",c.colspan))}}))}},t.prototype.deleteRow=function(){var t=this,e=this.tableCellSelector.getSingleSelect(),n=(e.cell,this.rows[e.rowIndex],e.rowIndex),i=this.getCellGrid(),o=this.rows[n];i[n].forEach((function(e,a){if(e.cell)if(1==e.cell.rowspan)o.removeCell(e.cell);else{o.removeCell(e.cell);var r=i[n+1].filter((function(t,e){return t.cell&&e>a})),s=t.rows[n+1],l=s.createTableCell(e.cell.rowspan-1,e.cell.colspan);r.length?s.insertToTargetCellLeft(r[0].cell,l):s.insertCellToLast(l)}else if("column"==e.linkType){var p=e.link;p.rowspan-=1,p.getTarget().attr("rowspan",p.rowspan)}})),o.getTarget().remove(),this.rows.splice(n,1)},t.prototype.deleteColums=function(){var t=this.rows.concat(this.trRows),e=this.tableCellSelector.getSingleSelect(),n=e.cell,i=e.rowIndex,o=this.getCellGrid(t),a=o[i].filter((function(t){return t.cell&&t.cell.id==n.id||t.link&&t.link.id==n.id}))[0].indexInTableGridRow;o.forEach((function(e,n){var i=e[a];i.cell?1==i.cell.colspan?t[n].removeCell(i.cell):(i.cell.colspan-=1,i.cell.getTarget().attr("colspan",i.cell.colspan)):"row"==i.linkType&&(i.link.colspan-=1,i.link.getTarget().attr("colspan",i.link.colspan))}))},t.prototype.mergeCell=function(){var t=this,e=this.tableCellSelector.getSelectedCells();if(0!=e.length){var n=e[0][0].cell;e.forEach((function(i,o){i.forEach((function(i,a){0==o?0!=a&&(n.colspan+=i.cell.colspan,t.rows[i.rowIndex].removeCell(i.cell)):t.rows[i.rowIndex].removeCell(i.cell),0==a&&e[0][0].rowIndex+n.rowspan-10?"row":void 0,rightMost:a==t.colspan-1||void 0,bottom:0==t.rowspan-1,rowLevel:a,columnLevel:0,indexInTableGridRow:s,indexInTableGridColumn:e});for(var p=e+1,d=1;d0?"rowColumn":"column",rightMost:a==t.colspan-1||void 0,bottom:d==t.rowspan-1,rowLevel:a,columnLevel:d,indexInTableGridRow:s,indexInTableGridColumn:p}),p+=1;l=!0}s++}}))})),i},t.prototype.setAlign=function(t){var e=this.tableCellSelector.getSingleSelect();e&&e.cell.setAlign(t)},t.prototype.setVAlign=function(t){var e=this.tableCellSelector.getSingleSelect();e&&e.cell.setVAlign(t)},t.prototype.getColumnStep=function(t){var e=0;return this.rows.length&&this.rows[t||0].columns.forEach((function(t){e+=t.colspan})),e},t.prototype.initContext=function(){var t=this;if(!this.optionsCoat.options.isEnableContextMenu)return!1;jquery__WEBPACK_IMPORTED_MODULE_63___default()(this.handle).hicontextMenu({menus:[{text:"".concat(i18n.__("在上方插入行")),enabled:this.optionsCoat.options.isEnableInsertRow,disable:function(){return!t.tableCellSelector.getSingleSelect()},callback:function(){t.insertRow("above"),t.resizer.updateRowGrips(),a.a.event.trigger("updateTable"+t.id)}},{text:"".concat(i18n.__("在下方插入行")),borderBottom:!0,enabled:this.optionsCoat.options.isEnableInsertRow,disable:function(){return!t.tableCellSelector.getSingleSelect()},callback:function(){t.insertRow("below"),t.resizer.updateRowGrips(),a.a.event.trigger("updateTable"+t.id)}},{text:"".concat(i18n.__("向左方插入列")),enabled:this.optionsCoat.options.isEnableInsertColumn,disable:function(){return!t.tableCellSelector.getSingleSelect()},callback:function(){t.insertColumn("left"),t.resizer.updateColumnGrips(),a.a.event.trigger("updateTable"+t.id)}},{text:"".concat(i18n.__("向右方插入列")),enabled:this.optionsCoat.options.isEnableInsertColumn,disable:function(){return!t.tableCellSelector.getSingleSelect()},borderBottom:!0,callback:function(){t.insertColumn("right"),t.resizer.updateColumnGrips(),a.a.event.trigger("updateTable"+t.id)}},{text:"".concat(i18n.__("删除行")),enabled:this.optionsCoat.options.isEnableDeleteRow,disable:function(){return!t.tableCellSelector.getSingleSelect()||t.rows.length<=1},callback:function(){t.deleteRow(),t.resizer.updateRowGrips(),a.a.event.trigger("updateTable"+t.id)}},{text:"".concat(i18n.__("删除列")),borderBottom:!0,enabled:this.optionsCoat.options.isEnableDeleteColumn,disable:function(){return!t.tableCellSelector.getSingleSelect()||t.rows.length>0&&t.rows[0].columns.length<=1},callback:function(){t.deleteColums(),t.resizer.updateColumnGrips(),a.a.event.trigger("updateTable"+t.id)}},{text:"".concat(i18n.__("对齐")),borderBottom:!0,enabled:this.optionsCoat.options.columnAlignEditable,menus:[{text:"".concat(i18n.__("左")),callback:function(){t.setAlign("left")}},{text:"".concat(i18n.__("左右居中")),callback:function(){t.setAlign("center")}},{text:"".concat(i18n.__("右")),callback:function(){t.setAlign("right")}},{text:"".concat(i18n.__("默认")),borderBottom:!0,callback:function(){t.setAlign("")}},{text:"".concat(i18n.__("上")),callback:function(){t.setVAlign("top")}},{text:"".concat(i18n.__("垂直居中")),callback:function(){t.setVAlign("middle")}},{text:"".concat(i18n.__("下")),callback:function(){t.setVAlign("bottom")}},{text:"".concat(i18n.__("默认")),callback:function(){t.setVAlign("")}}]},{text:"".concat(i18n.__("合并单元格")),enabled:this.optionsCoat.options.isEnableMergeCell,disable:function(){return t.tableCellSelector.getSingleSelect()},callback:function(){t.mergeCell(),a.a.event.trigger("updateTable"+t.id)}},{text:"".concat(i18n.__("解开单元格")),enabled:this.optionsCoat.options.isEnableMergeCell,disable:function(){var e=t.tableCellSelector.getSingleSelect();return!e||1==e.cell.rowspan&&1==e.cell.colspan},callback:function(){t.splitCell(),a.a.event.trigger("updateTable"+t.id)}}].filter((function(t){return t.enabled}))})},t.prototype.getTableWidth=function(){return a.a.px.toPt(this.target.outerWidth(!1))},t.prototype.updateColumnGrips=function(){this.resizer.updateColumnGrips()},t.prototype.updateRowGrips=function(){this.resizer.updateRowGrips()},t}()},function(t,e,n){n.d(e,"a",(function(){return i}));var i=function(){return function(t,e,n){this.tid=t,this.options=e,this.printElementType=n}}()},function(t,e,n){var i=n(3),o=n(12),a=function(){return function(t){this.width=t.width,this.title=t.title,this.field=t.field,this.checked=t.checked,this.columnId=t.columnId,this.fixed=!1,this.rowspan=t.rowspan||1,this.colspan=t.colspan||1,this.align=t.align,this.halign=t.halign,this.vAlign=t.vAlign,this.renderFormatter=t.renderFormatter,this.formatter2=t.formatter2,this.styler2=t.styler2,this.stylerHeader=t.stylerHeader,this.tableColumnHeight=t.tableColumnHeight,this.tableTextType=t.tableTextType,this.tableBarcodeMode=t.tableBarcodeMode,this.tableQRCodeLevel=t.tableQRCodeLevel,this.tableSummaryTitle=t.tableSummaryTitle,this.tableSummaryText=t.tableSummaryText,this.tableSummaryColspan=t.tableSummaryColspan,this.tableSummary=t.tableSummary,this.tableSummaryAlign=t.tableSummaryAlign,this.tableSummaryNumFormat=t.tableSummaryNumFormat,this.tableSummaryFormatter=t.tableSummaryFormatter,this.showCodeTitle=t.showCodeTitle,this.upperCase=t.upperCase}}(),r=n(5);n.d(e,"a",(function(){return p}));var s,l=(s=function(t,e){return(s=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e,n){var i=this;return e=e||{},(i=t.call(this,e)||this).lHeight=e.lHeight,i.autoCompletion=e.autoCompletion,i.tableFooterRepeat=e.tableFooterRepeat,n&&(i.columns=[],n.editable&&e.columns&&e.columns.length?e.columns.forEach((function(t){var e=[];t.forEach((function(t){var i=new a(t),o=n.getColumnByColumnId(i.columnId),s=o?jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(o,i):new r.a(i);e.push(s)})),i.columns.push(new o.a(e))})):n.columns.forEach((function(t){i.columns.push(new o.a(t))}))),i}return l(e,t),e.prototype.getColumnByColumnId=function(t){return this.makeColumnObj()[t]},e.prototype.makeColumnObj=function(){var t={};return this.columns&&this.columns.forEach((function(e){e.columns.forEach((function(e){(e.id||e.columnId)&&(t[e.id||e.columnId]=e)}))})),t},e.prototype.getGridColumns=function(){return this.gridColumns||1},e.prototype.getPrintElementOptionEntity=function(){var e=t.prototype.getPrintElementOptionEntity.call(this);return e.fields=this.fields,this.columns&&(e.columns=[],this.columns.forEach((function(t){var n=t.getPrintElementOptionEntity().map((function(t){return new a(t)}));e.columns.push(n)}))),e},e}(i.a)},function(t,e,n){n.d(e,"a",(function(){return i}));var i=function(){return function(){this.rowColumns=[]}}()},function(t,e,n){n.d(e,"a",(function(){return i}));var i=function(){function t(t,e){this.gridColumns=t,this.target=e}return t.prototype.getByIndex=function(t){return this.target.find(".hi-grid-col:eq("+t+")")},t}()},function(t,e,n){t.exports=n(33)},function(t,e){!function(t){function e(e){var n=t.data(e.data.target,"hidraggable"),i=n.options,o=n.proxy,a=e.data,r=a.startLeft+(e.pageX-a.startX)/(n.options.getScale()||1),s=a.startTop+(e.pageY-a.startY)/(n.options.getScale()||1);o&&(o.parent()[0]==document.body?(r=null!=i.deltaX&&null!=i.deltaX?e.pageX+i.deltaX:e.pageX-e.data.offsetWidth,s=null!=i.deltaY&&null!=i.deltaY?e.pageY+i.deltaY:e.pageY-e.data.offsetHeight):(null!=i.deltaX&&null!=i.deltaX&&(r+=e.data.offsetWidth+i.deltaX),null!=i.deltaY&&null!=i.deltaY&&(s+=e.data.offsetHeight+i.deltaY))),e.data.parent!=document.body&&(r+=t(e.data.parent).scrollLeft(),s+=t(e.data.parent).scrollTop()),"h"==i.axis?a.left=r:"v"==i.axis||e.shiftKey&&e.altKey?a.top=s:e.shiftKey?a.left=r:(a.left=r,a.top=s)}function n(e){var n=t.data(e.data.target,"hidraggable"),i=n.options,o=n.proxy;o||(o=t(e.data.target)),o.css({left:t.fn.dragLengthC(e.data.left,i),top:t.fn.dragLengthC(e.data.top,i)}),t("body").css("cursor",i.cursor)}function i(i){t.fn.hidraggable.isDragging=!0;var o=t.data(i.data.target,"hidraggable"),a=o.options,r=t(".hidroppable").filter((function(){return i.data.target!=this})).filter((function(){var e=t.data(this,"hidroppable").options.accept;return!e||t(e).filter((function(){return this==i.data.target})).length>0}));o.hidroppables=r;var s=o.proxy;return s||(a.proxy?(s="clone"==a.proxy?t(i.data.target).clone().insertAfter(i.data.target):a.proxy.call(i.data.target,i.data.target),o.proxy=s):s=t(i.data.target)),s.css("position","absolute"),e(i),n(i),a.onStartDrag.call(i.data.target,i),!1}function o(t,e,n,i,o,a){Math.abs(t[n]-e[i])<=HIPRINT_CONFIG.adsorbLineMin?t.v.length?t.v.css("left",t[n]+"pt"):(t.v=jquery__WEBPACK_IMPORTED_MODULE_63___default()("
    "),t.v.css("height",o+"pt"),t.v.css("left",t[n]+"pt"),a.append(t.v)):t.v&&t.v.remove()}function a(t){t&&t.v&&t.v.remove(),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".verLine").remove()}function r(t,e,n,i,o,a){Math.abs(t[n]-e[i])<=HIPRINT_CONFIG.adsorbLineMin?t.h.length?t.h.css("top",t[n]+"pt"):(t.h=jquery__WEBPACK_IMPORTED_MODULE_63___default()("
    "),t.h.css("width",o+"pt"),t.h.css("top",t[n]+"pt"),a.append(t.h)):t.h&&t.h.remove()}function s(t){t&&t.h&&t.h.remove(),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".horLine").remove()}function l(i){var l=t.data(i.data.target,"hidraggable");if(e(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 p=i.data;if(0==t(".mouseRect").length&&l.options.designTarget&&l.options.designTarget.panel.printElements.filter((function(t){return"block"==t.designTarget.children().last().css("display")&&!t.printElementType.type.includes("table")})).length<=1){var d=window.hinnn.px.toPt(p.left),c=window.hinnn.px.toPt(p.top),u=l.options.designTarget.options;u.left=d,u.top=c,u.right=d+u.width,u.bottom=c+u.height,u.vCenter=d+u.width/2,u.hCenter=c+u.height/2,function(){var t=l.options.designTarget.panel.printElements.filter((function(t){return t.id!=l.options.designTarget.id})).map((function(t){var e,n,i,o,a=t.options,r=a.left,s=a.top,l=a.width,p=a.height,d=r+l,c=r+l/2,h=s+p/2,_=u.left+u.width/2,f=u.top+u.height/2,m=u.left+u.width;return n=Math.sqrt(Math.pow(r-u.left,2)+Math.pow(h-f,2)),i=Math.sqrt(Math.pow(c-_,2)+Math.pow(h-f,2)),o=Math.sqrt(Math.pow(d-m,2)+Math.pow(h-f,2)),e=Math.min(n,i,o),Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__["a"])(Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__["a"])({},t.options),{},{distance:e,h:jquery__WEBPACK_IMPORTED_MODULE_63___default()(".horLine.id-"+t.id),v:jquery__WEBPACK_IMPORTED_MODULE_63___default()(".verLine.id-"+t.id),bottom:s+p,right:r+l,vCenter:c,hCenter:h})})).sort((function(t,e){return t.distance-e.distance})).slice(0,1),e=l.options.designTarget.designPaper,n=e.target.find(".hiprint-printPaper-content"),i=e.width,p=e.height,d=HIPRINT_CONFIG.showAdsorbLine,c=HIPRINT_CONFIG.adsorbMin,h=HIPRINT_CONFIG.adsorbLineMin;t.forEach((function(e,l){Math.abs(t[l].left-u.left)<=c?(u.left=t[l].left,a(t[l])):Math.abs(t[l].vCenter-u.left)<=c?(u.left=t[l].vCenter,a(t[l])):Math.abs(t[l].right-u.left)<=c&&(u.left=t[l].right,a(t[l])),Math.abs(t[l].left-u.vCenter)<=c?(u.left=t[l].left-u.width/2,a(t[l])):Math.abs(t[l].vCenter-u.vCenter)<=c?(u.left=t[l].vCenter-u.width/2,a(t[l])):Math.abs(t[l].right-u.vCenter)<=c&&(u.left=t[l].right-u.width/2,a(t[l])),Math.abs(t[l].left-u.right)<=c?(u.left=t[l].left-u.width,a(t[l])):Math.abs(t[l].vCenter-u.right)<=c?(u.left=t[l].vCenter-u.width,a(t[l])):Math.abs(t[l].right-u.right)<=c&&(u.left=t[l].right-u.width,a(t[l])),Math.abs(t[l].top-u.top)<=c?(u.top=t[l].top,s(t[l])):Math.abs(t[l].hCenter-u.top)<=c?(u.top=t[l].hCenter,s(t[l])):Math.abs(t[l].bottom-u.top)<=c&&(u.top=t[l].bottom,s(t[l])),Math.abs(t[l].top-u.hCenter)<=c?(u.top=t[l].top-u.height/2,s(t[l])):Math.abs(t[l].hCenter-u.hCenter)<=c?(u.top=t[l].hCenter-u.height/2,s(t[l])):Math.abs(t[l].bottom-u.hCenter)<=c&&(u.top=t[l].bottom-u.height/2,s(t[l])),Math.abs(t[l].top-u.bottom)<=c?(u.top=t[l].top-u.height,s(t[l])):Math.abs(t[l].hCenter-u.bottom)<=c?(u.top=t[l].hCenter-u.height,s(t[l])):Math.abs(t[l].bottom-u.bottom)<=c&&(u.top=t[l].bottom-u.height,s(t[l])),d&&(Math.abs(t[l].left-u.left)>c&&Math.abs(t[l].left-u.left)<=h?o(t[l],u,"left","left",p,n):Math.abs(t[l].vCenter-u.left)>c&&Math.abs(t[l].vCenter-u.left)<=h?o(t[l],u,"vCenter","left",p,n):Math.abs(t[l].right-u.left)>c&&Math.abs(t[l].right-u.left)<=h?o(t[l],u,"right","left",p,n):Math.abs(t[l].left-u.vCenter)>c&&Math.abs(t[l].left-u.vCenter)<=h?o(t[l],u,"left","vCenter",p,n):Math.abs(t[l].vCenter-u.vCenter)>c&&Math.abs(t[l].vCenter-u.vCenter)<=h?o(t[l],u,"vCenter","vCenter",p,n):Math.abs(t[l].right-u.vCenter)>c&&Math.abs(t[l].right-u.vCenter)<=h?o(t[l],u,"right","vCenter",p,n):Math.abs(t[l].left-u.right)>c&&Math.abs(t[l].left-u.right)<=h?o(t[l],u,"left","right",p,n):Math.abs(t[l].vCenter-u.right)>c&&Math.abs(t[l].vCenter-u.right)<=h?o(t[l],u,"vCenter","right",p,n):Math.abs(t[l].right-u.right)>c&&Math.abs(t[l].right-u.right)<=h?o(t[l],u,"right","right",p,n):Math.abs(t[l].top-u.top)>c&&Math.abs(t[l].top-u.top)<=h?r(t[l],u,"top","top",i,n):Math.abs(t[l].hCenter-u.top)>c&&Math.abs(t[l].hCenter-u.top)<=h?r(t[l],u,"hCenter","top",i,n):Math.abs(t[l].bottom-u.top)>c&&Math.abs(t[l].bottom-u.top)<=h?r(t[l],u,"bottom","top",i,n):Math.abs(t[l].top-u.hCenter)>c&&Math.abs(t[l].top-u.hCenter)<=h?r(t[l],u,"top","hCenter",i,n):Math.abs(t[l].hCenter-u.hCenter)>c&&Math.abs(t[l].hCenter-u.hCenter)<=h?r(t[l],u,"hCenter","hCenter",i,n):Math.abs(t[l].bottom-u.hCenter)>c&&Math.abs(t[l].bottom-u.hCenter)<=h?r(t[l],u,"bottom","hCenter",i,n):Math.abs(t[l].top-u.bottom)>c&&Math.abs(t[l].top-u.bottom)<=h?r(t[l],u,"top","bottom",i,n):Math.abs(t[l].hCenter-u.bottom)>c&&Math.abs(t[l].hCenter-u.bottom)<=h?r(t[l],u,"hCenter","bottom",i,n):Math.abs(t[l].bottom-u.bottom)>c&&Math.abs(t[l].bottom-u.bottom)<=h?r(t[l],u,"bottom","bottom",i,n):(a(t[l]),s(t[l])))}))}(),i.data.left=window.hinnn.pt.toPx(u.left),i.data.top=window.hinnn.pt.toPx(u.top)}var h=p.parent.className.endsWith("design")?p.parent:p.parent.offsetParent,_=h.clientWidth,f=h.clientHeight,m=p.target.clientWidth,g=p.target.clientHeight,v=0,y=0;if(l.options.designTarget&&l.options.designTarget.options.transform){var b=l.options.designTarget.options.getRectInfo();v=window.hinnn.pt.toPx(b.diffW),y=window.hinnn.pt.toPx(b.diffH)}p.left<0-v?p.left=0-v:p.left>=_-m+v&&(p.left=_-m+v),p.top<0-y?p.top=0-y:p.top>=f-g+y&&(p.top=f-g+y),i.data=p}0!=l.options.onDrag.call(i.data.target,i,t.fn.dragLengthCNum(i.data.left,l.options),t.fn.dragLengthCNum(i.data.top,l.options))&&n(i);var E=i.data.target;return l.hidroppables.each((function(){var e=t(this);if(!e.hidroppable("options").disabled){var n=e.offset();i.pageX>n.left&&i.pageXn.top&&i.pageYo.left&&e.pageXo.top&&e.pageYn.options.edge}t.data(this,"hidraggable",{options:n,handle:a}),n.disabled?t(this).css("cursor",""):a.unbind(".hidraggable").bind("mousemove.hidraggable",{target:this},(function(e){if(!t.fn.hidraggable.isDragging){var n=t.data(e.data.target,"hidraggable").options;r(e)?t(this).css("cursor",n.cursor):t(this).css("cursor","")}})).bind("mouseleave.hidraggable",{target:this},(function(e){t(this).css("cursor","")})).bind("mousedown.hidraggable",{target:this},(function(e){if(0!=r(e)){t(this).css("cursor","");var n=t(e.data.target).position(),o=t(e.data.target).offset(),a={startPosition:t(e.data.target).css("position"),startLeft:n.left,startTop:n.top,left:n.left,top:n.top,startX:e.pageX,startY:e.pageY,offsetWidth:e.pageX-o.left,offsetHeight:e.pageY-o.top,target:e.data.target,parent:t(e.data.target).parent()[0]},s=t.data(e.data.target,"hidraggable");if(!1===s.options.draggable)return;if("r resizebtn"==e.target.className)return;var d=s.options.getScale();d&&(a.left/=d,a.top/=d,a.startLeft/=d,a.startTop/=d);var c=a.target.style.transform&&parseInt(a.target.style.transform.slice(7,-1));if(c){var u=c*Math.PI/180,h=t(e.data.target).outerWidth(),_=t(e.data.target).outerHeight(),f=Math.sin(u),m=Math.cos(u),g=Math.abs(h*m)+Math.abs(_*f),v=Math.abs(h*f)+Math.abs(_*m),y=(g-h)/2,b=(v-_)/2;a.left+=y,a.top+=b,a.startLeft+=y,a.startTop+=b}t.extend(e.data,a),0!=t.data(e.data.target,"hidraggable").options.onBeforeDrag.call(e.data.target,e)&&(t(document).bind("mousedown.hidraggable",e.data,i),t(document).bind("mousemove.hidraggable",e.data,l),t(document).bind("mouseup.hidraggable",e.data,p))}}))}))},t.fn.hidraggable.methods={options:function(e){return t.data(e[0],"hidraggable").options},update:function(e,n){n&&"object"==Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_3__["a"])(n)&&t.data(e[0],"hidraggable")&&Object.keys(n).forEach((function(i){t.data(e[0],"hidraggable").options[i]=n[i]}))},proxy:function(e){return t.data(e[0],"hidraggable").proxy},enable:function(e){return e.each((function(){t(this).hidraggable({disabled:!1})}))},disable:function(e){return e.each((function(){t(this).hidraggable({disabled:!0})}))}},t.fn.hidraggable.parseOptions=function(e){var n=t(e);return t.extend({},t.hiprintparser.parseOptions(e,["cursor","handle","axis",{revert:"boolean",deltaX:"number",deltaY:"number",edge:"number"}]),{disabled:!!n.attr("disabled")||void 0})},t.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){}},t.fn.hidraggable.isDragging=!1}(jQuery)},function(t,e){!function(t){t.fn.hidroppable=function(e,n){return"string"==typeof e?t.fn.hidroppable.methods[e](this,n):(e=e||{},this.each((function(){var n,i=t.data(this,"hidroppable");i?t.extend(i.options,e):(t(n=this).addClass("hidroppable"),t(n).bind("_dragenter",(function(e,i){t.data(n,"hidroppable").options.onDragEnter.apply(n,[e,i])})),t(n).bind("_dragleave",(function(e,i){t.data(n,"hidroppable").options.onDragLeave.apply(n,[e,i])})),t(n).bind("_dragover",(function(e,i){t.data(n,"hidroppable").options.onDragOver.apply(n,[e,i])})),t(n).bind("_drop",(function(e,i){t.data(n,"hidroppable").options.onDrop.apply(n,[e,i])})),t.data(this,"hidroppable",{options:t.extend({},t.fn.hidroppable.defaults,t.fn.hidroppable.parseOptions(this),e)}))})))},t.fn.hidroppable.methods={options:function(e){return t.data(e[0],"hidroppable").options},enable:function(e){return e.each((function(){t(this).hidroppable({disabled:!1})}))},disable:function(e){return e.each((function(){t(this).hidroppable({disabled:!0})}))}},t.fn.hidroppable.parseOptions=function(e){var n=t(e);return t.extend({},t.hiprintparser.parseOptions(e,["accept"]),{disabled:!!n.attr("disabled")||void 0})},t.fn.hidroppable.defaults={accept:null,disabled:!1,onDragEnter:function(t,e){},onDragOver:function(t,e){},onDragLeave:function(t,e){},onDrop:function(t,e){}}}(jQuery)},function(t,e){var n;(n=jQuery).hiprintparser={parseOptions:function(t,e){var i=n(t),o={},a=n.trim(i.attr("data-options"));if(a&&("{"!=a.substring(0,1)&&(a="{"+a+"}"),o=new Function("return "+a)()),e){for(var r={},s=0;s
    ')).css({width:"100%",height:"100%",top:0,left:0,position:"absolute","background-color":"rgba(0,0,0,0.5)",cursor:"move",display:"none"}),e.appendHandler(o,n(this));var a={name:"n",target:n('
    ')},r={name:"s",target:n('
    ')},s={name:"w",target:n('
    ')},l={name:"e",target:n('
    ')},p={name:"ne",target:n('
    ')},d={name:"nw",target:n('
    ')},c={name:"se",target:n('
    ')},u={name:"sw",target:n('
    ')},h=(a={name:"r",target:n('
    ')},n('
    ')),_=n('
    '),f=function(){var t=[],i=e.options.showPoints;return n.each([a,r,s,l,p,d,c,u],(function(e,o){n.inArray(o.name,i)>-1&&t.push(o.target)})),t};e.refreshSizeBox(void 0,h,o),0!=e.options.draggable&&(o.append(_),o.on("mousedown",".del-btn",(function(){var e=new KeyboardEvent("keydown",{bubbles:!0,keyCode:46});t.dispatchEvent(e)}))),e.addHandlerCss(f()),e.appendHandler(f(),o),e.bindResizeEvent(o,n(this));var m=n(this);n(o).on("mousedown",".resizebtn",(function(){m.addClass("resizeing")})),n(".easyui-droppable").on("mouseup",(function(){m.removeClass("resizeing")})),e.bindTrigger(n(this))})),e.bindHidePanel()},addHandlerCss:function(t){for(var e=0;e360&&(D%=360),d.css({transform:"rotate("+D+"deg)"}),i.options.onResize(e,void 0,void 0,void 0,void 0,D)}else if(h)n=(e.pageX-o)/i.options.getScale(),t.css({width:"100%"}),d.css({width:i.numHandlerText(r-n),left:i.numHandlerText(i.options.noDrag?void 0:i.numHandler(l+n))}),i.options.onResize(e,void 0,i.numHandler(r-n),void 0,i.options.noDrag?void 0:i.numHandler(l+n));else if(_)E=(e.pageY-a)/i.options.getScale(),t.css({height:"100%"}),d.css({height:i.numHandlerText(s-E),top:i.numHandlerText(i.options.noDrag?void 0:p+E)}),i.options.onResize(e,i.numHandler(s-E),void 0,i.options.noDrag?void 0:i.numHandler(p+E),void 0);else if(f)n=(e.pageX-o)/i.options.getScale(),E=(e.pageY-a)/i.options.getScale(),t.css({height:"100%",width:"100%"}),d.css({height:i.numHandlerText(s-E),top:i.numHandlerText(i.options.noDrag?void 0:p+E),width:i.numHandlerText(r+n)}),i.options.onResize(e,i.numHandler(s-E),i.numHandler(r+n),i.options.noDrag?void 0:i.numHandler(p+E),void 0);else if(m)n=(e.pageX-o)/i.options.getScale(),E=(e.pageY-a)/i.options.getScale(),t.css({height:"100%",width:"100%"}),d.css({height:i.numHandlerText(s-E),top:i.numHandlerText(i.options.noDrag?void 0:p+E),width:i.numHandlerText(r-n),left:i.numHandlerText(i.options.noDrag?void 0:l+n)}),i.options.onResize(e,i.numHandler(s-E),i.numHandler(r-n),i.options.noDrag?void 0:i.numHandler(p+E),i.options.noDrag?void 0:i.numHandler(l+n));else if(g)if(n=(e.pageX-o)/i.options.getScale(),E=(e.pageY-a)/i.options.getScale(),t.css({width:"100%",height:"100%"}),e.shiftKey)d.css({width:i.numHandlerText(r+n),height:i.numHandlerText(s+E)}),i.options.onResize(e,i.numHandler(s+E),i.numHandler(r+n),void 0,void 0);else{var M=s/r,C=r+n,O=s+E;O=C*M,d.css({width:i.numHandlerText(C),height:i.numHandlerText(O)}),i.options.onResize(e,i.numHandler(O),i.numHandler(C),void 0,void 0)}else v?(n=(e.pageX-o)/i.options.getScale(),E=(e.pageY-a)/i.options.getScale(),t.css({width:"100%",height:"100%"}),d.css({width:i.numHandlerText(r-n),left:i.numHandlerText(i.options.noDrag?void 0:l+n),height:i.numHandlerText(s+E)}),i.options.onResize(e,i.numHandler(s+E),i.numHandler(r-n),i.numHandler(otundefinedop),i.options.noDrag?void 0:i.numHandler(l+n))):b&&(n=(e.pageX-o)/i.options.getScale(),E=(e.pageY-a)/i.options.getScale(),d.css({left:i.numHandlerText(i.options.noDrag?void 0:l+n),top:i.numHandlerText(i.options.noDrag?void 0:p+E)}),i.options.onResize(e,void 0,void 0,i.options.noDrag?void 0:i.numHandler(p+E),i.options.noDrag?void 0:i.numHandler(l+n)))})).on("mouseup",(function(t){(c||u||h||_||f||m||v||g||b||y)&&i.options.onStopResize(y),c=!1,u=!1,h=!1,_=!1,f=!1,m=!1,v=!1,g=!1,b=!1,y=!1}))},bindTrigger:function(t){var e=this;t.on("click",(function(i){i.stopPropagation(),e.triggerResize(t,i),n(".mouseRect").remove()}))},bindHidePanel:function(t){if(i.maxPanelIndex<2){var e=this.options.stage;n(e).bind("click",(function(t){t.target.className&&"string"==_typeof(t.target.className)&&t.target.className.includes("design")&&(t.stopPropagation(),n("div[panelindex]").css({display:"none"}),n("div[panelindex]").removeClass("selected"))}))}}},n.fn.extend({hireizeable:function(t){return this.each((function(){var e,i=n.data(this,"hireizeable");e=i?n.extend({},i.options,t||{}):n.extend({},n.fn.hireizeable.defaults,t||{}),n.data(this,"hireizeable",{options:e}),new o({target:this,onResize:function(t,e,n,i,o){},onStopResize:function(t,e,n,i,o){}})}))}}),n.fn.hireizeable.defaults={stage:document,reizeUnit:"pt",minResize:1.5,showSizeBox:!0,showPoints:["s","e"],noContainer:!1,onBeforeResize:function(t,e,n,i,o){},onResize:function(t,e,n,i,o){},onStopResize:function(t,e,n,i,o){},noDrag:!1}},function(t,e){var n,i;n="connected",i="reconnecting",window.hiwebSocket={opened:!1,name:"webSockets",host:"http://localhost:17521",token:null,reconnectTimeout:6e4,reconnectWindowSetTimeout:null,reconnectDelay:2e3,supportsKeepAlive:function(){return!0},hasIo:function(t){return window.io},send:function(t){try{this.socket.emit("news",t)}catch(e){console.log("send data error:"+(t||"")+JSON.stringify(e))}},getPrinterList:function(){return this.printerList},refreshPrinterList:function(){try{this.socket.emit("refreshPrinterList")}catch(e){console.log("refreshPrinterList error:"+JSON.stringify(e))}},getPaperSizeInfo:function(t){try{console.warn("getPaperSizeInfo 是一个测试功能,仅win客户端支持该api!"),this.socket.emit("getPaperSizeInfo",t)}catch(e){console.log("getPaperSizeInfo error:"+JSON.stringify(e))}},getClients:function(){try{this.socket.emit("getClients")}catch(e){console.log("getClients error:"+JSON.stringify(e))}},getClientInfo:function(){try{this.socket.emit("getClientInfo")}catch(e){console.log("getClientInfo error:"+JSON.stringify(e))}},getAddress:function(t){try{for(var n,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a.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,n){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i=t[1]||"",o=t[3];if(!o)return i;if(e&&"function"==typeof btoa){var a=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),r=o.sources.map((function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"}));return[i].concat(r).concat([a]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o=0&&d.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){return n.nc}();i&&(t.attrs.nonce=i)}return g(e,t.attrs),_(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function v(t,e){var n,i,o,a;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}if(e.singleton){var r=p++;n=l||(l=m(e)),i=E.bind(null,n,r,!1),o=E.bind(null,n,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),_(t,e),e}(e),i=function(t,e,n){var i=n.css,o=n.sourceMap,a=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||a)&&(i=c(i)),o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(r),s&&URL.revokeObjectURL(s)}.bind(null,n,e),o=function(){f(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),i=function(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){f(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=("undefined"===typeof document?"undefined":_typeof(document)))throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==_typeof(e.attrs)?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return u(n,e),function(t){for(var i=[],o=0;o');i||(i=o).addClass("hicontextmenuroot"),jquery__WEBPACK_IMPORTED_MODULE_63___default.a.each(t,(function(t,e){var i=!!e.disable&&e.disable(),a=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
  • '+(e.text||"")+"
  • ");i&&a.addClass("disable"),e.borderBottom&&a.addClass("borderBottom"),e.menus&&(a.addClass("hicontextsubmenu"),n.renderMenu(e.menus,a)),e.callback&&a.click((function(t){jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).hasClass("disable")||(jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hicontextmenuroot").remove(),e.callback()),t.stopPropagation()})),o.append(a)})),e&&e.append(o)}e||jquery__WEBPACK_IMPORTED_MODULE_63___default()("body").append(i).find(".hicontextmenuroot").hide()},setPosition:function(t){jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hicontextmenuroot").css({left:t.pageX+2,top:t.pageY+2}).show()},eventBind:function(){var t=this;this.ele.on("contextmenu",(function(e){jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hicontextmenuroot").remove(),e.preventDefault(),t.renderMenu(t.opts.menus),t.setPosition(e),t.opts.target&&"function"==typeof t.opts.target&&t.opts.target(n(this))})),n("body").on("click",(function(){n(".hicontextmenuroot").remove()}))}},n.fn.hicontextMenu=function(t){return new i(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=new t),t._instance},enumerable:!0,configurable:!0}),t.prototype.addPrintElementTypes=function(t,e){var n=this;this[t]?this[t]=this[t].concat(e):this[t]=e,e.forEach((function(t){n.allElementTypes=n.allElementTypes.concat(t.printElementTypes)}))},t.prototype.removePrintElementTypes=function(t){var e=this;delete e[t],e.allElementTypes=e.allElementTypes.filter((function(e){return!e.tid.startsWith(t)}))},t.prototype.getElementTypeGroups=function(t){return this[this.formatterModule(t)]||[]},t.prototype.getElementType=function(t){var e=this.allElementTypes.filter((function(e){return e.tid==t}));if(e.length>0)return e[0]},t.prototype.updateElementType=function(t,e){var n=this.getElementType(t);if(e){var i=e(n),o=this.allElementTypes.findIndex((function(e){return e.tid==t}));if(o>=0)return this.allElementTypes.splice(o,1,i),i}return n},t.prototype.formatterModule=function(t){return t||"_default"},t}(),p=n(1),s=n(2),l=function(){function t(){}return t.prototype.createPrintElementTypeHtml=function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
      ');return e.forEach((function(t){var e=jquery__WEBPACK_IMPORTED_MODULE_63___default()("
    • ");e.append(''+t.name+"");var i=jquery__WEBPACK_IMPORTED_MODULE_63___default()("
        ");e.append(i),t.printElementTypes.forEach((function(t){i.append('
      • '+t.getText()+"
      • ")})),n.append(e)})),jquery__WEBPACK_IMPORTED_MODULE_63___default()(t).append(n),n.find(".ep-draggable-item")},t}(),u=n(5),d=n(15),c=function(){return function(t){this.title=t.title,this.type=t.type}}(),ctable=function(){return 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 e=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=void 0==t.editable||t.editable,this.columnDisplayEditable=void 0==t.columnDisplayEditable||t.columnDisplayEditable,this.columnDisplayIndexEditable=void 0==t.columnDisplayIndexEditable||t.columnDisplayIndexEditable,this.columnTitleEditable=void 0==t.columnTitleEditable||t.columnTitleEditable,this.columnResizable=void 0==t.columnResizable||t.columnResizable,this.columnAlignEditable=void 0==t.columnAlignEditable||t.columnAlignEditable,this.columns=[],(t.columns||[]).forEach((function(t,n){e.columns.push(e.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=void 0==t.isEnableEditField||t.isEnableEditField,this.isEnableContextMenu=void 0==t.isEnableContextMenu||t.isEnableContextMenu,this.isEnableInsertRow=void 0==t.isEnableInsertRow||t.isEnableInsertRow,this.isEnableDeleteRow=void 0==t.isEnableDeleteRow||t.isEnableDeleteRow,this.isEnableInsertColumn=void 0==t.isEnableInsertColumn||t.isEnableInsertColumn,this.isEnableDeleteColumn=void 0==t.isEnableDeleteColumn||t.isEnableDeleteColumn,this.isEnableMergeCell=void 0==t.isEnableMergeCell||t.isEnableMergeCell,this.columnObj=this.makeColumnObj()}return t.prototype.getText=function(){return this.text||this.title||""},t.prototype.createPrintElement=function(t){var e=this;return this.columns&&0==this.columns.length&&(t.columns||[]).forEach((function(t,n){e.columns.push(e.createTableColumnArray(t))})),new d.a(this,t)},t.prototype.getData=function(){return[{}]},t.prototype.createTableColumnArray=function(t){var e=[];return t.forEach((function(t,n){e.push(new u.a(t))})),e},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,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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}_r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),v=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new g.a(n),i.options.setDefault(new g.a(p.a.instance.image.default).getPrintElementOptionEntity()),i}return m(e,t),e.prototype.getReizeableShowPoints=function(){return["s","e","se","r"]},e.prototype.getData=function(t){var e="",n=this.getField();e=t&&n?n.split(".").reduce((function(e,n){return e?e[n]:t[n]}),!1)||"":this.options.src||this.printElementType.getData();var i=this.getFormatter();return i&&(e=i(e,this.options,this._currenttemplateData)),e||""},e.prototype.createTarget=function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ');return this.updateTargetImage(n,t,e),n},e.prototype.initSizeByHtml=function(e){t.prototype.initSizeByHtml.call(this,e),this.css(e,this.getData())},e.prototype.getConfigOptions=function(){return p.a.instance.image},e.prototype.updateDesignViewFromOptions=function(){this.designTarget&&(this.css(this.designTarget,this.getData()),this.updateTargetImage(this.designTarget,this.getTitle(),this.getData()))},e.prototype.updateTargetImage=function(t,e,n){var i=t.find(".hiprint-printElement-image-content");i.find("img").length?i.find("img").attr("src",n):i.html(''),n.length?i.find("img").css("cssText",'width:100%;height:100%;content:url("'.concat(n,'")!important')):i.find("img").css("cssText","width:100%;height:100%;"),this.options.fit&&i.find("img").css("object-fit",this.options.fit),this.options.borderRadius&&i.find("img").css("border-radius",this.options.borderRadius)},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(f.a),y=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(t){function e(e){var n=this;return e=e||{},(n=t.call(this,e)||this).leftSpaceRemoved=e.leftSpaceRemoved,n}return y(e,t),e.prototype.getHideTitle=function(){return null==this.hideTitle?this.defaultOptions.hideTitle:this.hideTitle},e}(g.a),E=n(8),T=function(){function t(t,e,n,i,a,r,s,l,p,d,c,u,h,_,f,m){this.panelPageRule=i,this.scale=a,this.watermarkOptions=n,this.defaultPaperNumberFormat="${paperNo}-${paperCount}",this.printLine=0,this.templateId=t,this.panelIdx=e,this.width=o.a.mm.toPt(r),this.height=o.a.mm.toPt(s),this.mmwidth=r,this.mmheight=s,this.paperHeader=l>=0?l:0,this.paperFooter=p,this.contentHeight=p-l,this.createTarget(),this.index=f,this.paperNumberLeft=d||parseInt((this.width-30).toString()),this.paperNumberTop=c||parseInt((this.height-22).toString()),this.paperNumberDisabled=u,this.paperNumberContinue=h,this.paperNumberFormat=_,this.referenceElement=m?jquery__WEBPACK_IMPORTED_MODULE_63___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,n,i){this.firstPaperFooter=t,this.evenPaperFooter=e,this.oddPaperFooter=n,this.lastPaperFooter=i},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_63___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 t=this;this.headerLinetarget=jquery__WEBPACK_IMPORTED_MODULE_63___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(e,n){n>=t.paperFooter&&(n=t.paperFooter-10),t.paperHeader=n>=0?n:0,t.triggerOnPaperBaseInfoChanged()}))},t.prototype.createFooterLine=function(){var t=this;this.footerLinetarget=jquery__WEBPACK_IMPORTED_MODULE_63___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(e,n){n<=t.paperHeader&&(n=t.paperHeader+10),t.paperFooter=n,t.triggerOnPaperBaseInfoChanged()}))},t.prototype.createPaperNumber=function(t,e){var n=this,i=this.target.find(".hiprint-paperNumber");if(i.length)return i.html(t),i;var o=jquery__WEBPACK_IMPORTED_MODULE_63___default()(''+t+"");return o.css("top",this.paperNumberTop+"pt"),o.css("left",this.paperNumberLeft+"pt"),this.paperContentTarget.append(o),e&&this.dragHeadLineOrFootLine(o,(function(t,e){n.paperNumberTop=e,n.paperNumberLeft=t,n.triggerOnPaperBaseInfoChanged()}),!0),o},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_63___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_63___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?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,n){var i=this.createPaperNumber(this.formatPaperNumber(t,e));this.paperNumberDisabled?i.hide():n&&this.index%2==1&&(i[0].style.left="",i.css("right",this.paperNumberLeft+"pt"))},t.prototype.formatPaperNumber=function(t,e){return this.createWaterMark(!1,t,this.watermarkOptions),eval("`"+(this.paperNumberFormat?this.paperNumberFormat:this.defaultPaperNumberFormat).replace("paperNo",t).replace("paperCount",e)+"`")},t.prototype.dragHeadLineOrFootLine=function(t,e,n){var i=this;t.hidraggable({axis:n?void 0:"v",onDrag:function(t,n,i){e(n,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 n=this.paperFooter/this.height;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);var i=this.height*n;this.paperFooter=i||this.height,this.footerLinetarget.css("top",i+"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+")"),t>1?this.target.css("transform-origin","-"+t+"% -"+t+"%"):this.target.css("transform-origin","0 0"),this.triggerOnPaperBaseInfoChanged("缩放"))},t.prototype.getPaperFooter=function(t){var e=this.index+t;return 0==e?this.firstPaperFooter?this.firstPaperFooter:this.oddPaperFooter?this.oddPaperFooter:this.paperFooter:e%2==0?this.oddPaperFooter?this.oddPaperFooter:this.paperFooter:e%2==1?this.evenPaperFooter?this.evenPaperFooter:this.paperFooter:void 0},t.prototype.getContentHeight=function(t){return this.getPaperFooter(t)-this.paperHeader},t.prototype.createRuler=function(){this.target.append('
        \n \n \n
        ')},t.prototype.createWaterMark=function(t,e,n){var i=this,o=Object.assign({},n||{},{id:"".concat(i.templateId,"_").concat(i.panelIdx,"_").concat(e||1,"_").concat(t?"design":i.index),watch:t,container:i.target[0]});o.container&&(o.content?(t&&_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_68__["a"].destroyWatermark(Object.assign({},o,{id:"".concat(i.templateId,"_").concat(i.panelIdx,"_").concat(e||1,"_").concat(i.index)})),_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_68__["a"].createWatermark(o)):_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_68__["a"].destroyWatermark(o))},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 t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new b(n),i.options.setDefault(new b(p.a.instance.longText.default).getPrintElementOptionEntity()),i}return _(e,t),e.prototype.getDesignTarget=function(e){var n=t.prototype.getDesignTarget.call(this,e);return n.find(".hiprint-printElement-longText-content").css("border","1px dashed #cebcbc"),n},e.prototype.getProxyTarget=function(t){t&&this.SetProxyTargetOption(t);var e=this.getData(),n=this.createTarget(this.printElementType.getText(!0),e);return this.updateTargetSize(n),this.css(n,e),n},e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var 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)}},e.prototype.getConfigOptions=function(){return p.a.instance.longText},e.prototype.getTitle=function(){return this.options.title||this.printElementType.title},e.prototype.getData=function(t){var e=this.getField(),n=e&&e.split(".").reduce((function(e,n){return e?e[n]:t?t[n]:""}),!1)||"";return t?n||"":this.options.testData||this.printElementType.getData()||""},e.prototype.updateTargetText=function(t,e,n){var i=t.find(".hiprint-printElement-longText-content"),o=this.getText(e,n);i.html(o)},e.prototype.createTarget=function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ');return this.updateTargetText(n,t,e),n},e.prototype.getText=function(t,e){var n=this.getFormatter();return e&&(e=0!=this.options.leftSpaceRemoved?e.toString().replace(/^\s*/,""):e),(this.getField()?(this.options.getHideTitle()?"":t?t+":":"")+(n?n(t,e,this.options,this._currenttemplateData):e):n?n(t,t,this.options,this._currenttemplateData):t||"")||""},e.prototype.getHtml=function(t,e){this.setCurrenttemplateData(e),this.createTempContainer();var n=this.getPaperHtmlResult(t,e);return this.removeTempContainer(),n},e.prototype.getHeightByData=function(t){this.createTempContainer();var e=this.getPaperHtmlResult(new T("","",void 0,1e3,1e3,0,25e3,0,0,!0,!0,void 0,0,void 0),{},t);return this.removeTempContainer(),e[0].referenceElement.bottomInLastPaper-e[0].referenceElement.printTopInPaper},e.prototype.getLongTextIndent=function(){return this.options.longTextIndent?'':''},e.prototype.getPaperHtmlResult=function(t,e,n){var i=this,o=[],a=0,r=n||this.getData(e),s=this.getText(this.getTitle(),r),l=this.createTarget(this.getTitle(),this.options.testData||"");this.css(l,r),e?this.updateTargetWidth(l):this.updateTargetSize(l),this.getTempContainer().html(""),this.getTempContainer().append(l);var p=[this.getLongTextIndent()],d=s.split(new RegExp("\r|\n","g"));if(d.forEach((function(t,e){var n=0!=i.options.leftSpaceRemoved?(t||"").toString().replace(/^\s*/,""):t;p=p.concat(n.split("")),e"+i.getLongTextIndent())})),0==p.length&&(p=[""]),this.isHeaderOrFooter()||this.isFixed()||!e)return(_=this.getStringBySpecificHeight(p,25e3,l)).target.css("left",this.options.displayLeft()),_.target.css("top",this.options.displayTop()),_.target[0].height="",o.push(new P.a({target:_.target,printLine:this.options.displayTop()+_.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()+_.height,printTopInPaper:this.options.getTop()})})),o;for(var c=this.getBeginPrintTopInPaperByReferenceElement(t);p.length>0;){var u=0,h=t.getPaperFooter(a);0==a&&c>h&&"none"!=t.panelPageRule&&(c=c-h+t.paperHeader,o.push(new P.a({target:void 0,printLine:void 0})),a++,u=t.getContentHeight(a)-(c-t.paperHeader),h=t.getPaperFooter(a));var _=this.getStringBySpecificHeight(p,u>0?u:0==a?h-c:t.getContentHeight(a),l);p.splice(0,_.length);var f=void 0,m=void 0;_.target.css("left",this.options.displayLeft()),_.target[0].height="",0==a||u>0?(m=c,_.target.css("top",m+"pt"),f=p.length>0?c+_.height:null!=this.options.lHeight?c+(_.height>this.options.lHeight?_.height:this.options.lHeight):c+_.height):(m=t.paperHeader,_.target.css("top",m+"pt"),f=m+_.height),o.push(new P.a({target:_.target,printLine:f,referenceElement:new E.a({top:this.options.getTop(),left:this.options.getLeft(),height:this.options.getHeight(),width:this.options.getWidth(),beginPrintPaperIndex:t.index,bottomInLastPaper:f,printTopInPaper:m})})),a++,e&&this.updatePanelHeight(f+this.options.getHeight(),t)}return o},e.prototype.getStringBySpecificHeight=function(t,e,n){var i=o.a.pt.toPx(e),a=void 0,r="none"==this.panel.panelPageRule;return a=r?this.IsPaginationIndex(t,t.length,-1,n):this.IsPaginationIndex(t,t.length-1,i,n),a.IsPagination?a:this.BinarySearch(t,0,t.length-1,i,n)},e.prototype.BinarySearch=function(t,e,n,i,o){var a=Math.floor((e+n)/2);if(e>n)return o.find(".hiprint-printElement-longText-content").html(""),{IsPagination:!0,height:0,length:0,target:o.clone()};var r=this.IsPaginationIndex(t,a,i,o);return r.IsPagination?r:"l"==r.move?this.BinarySearch(t,e,a-1,i,o):this.BinarySearch(t,a+1,n,i,o)},e.prototype.IsPaginationIndex=function(t,e,n,i){if(-1==n){i.find(".hiprint-printElement-longText-content").html(t.slice(0,e).join(""));var a=i.height();return{IsPagination:!0,height:o.a.px.toPt(a),length:t.length,target:i.clone()}}i.find(".hiprint-printElement-longText-content").html(t.slice(0,e+2).join(""));var r=i.height();i.find(".hiprint-printElement-longText-content").html(t.slice(0,e+1).join(""));a=i.height();return e>=t.length-1&&a=n?{IsPagination:!0,height:a,length:e+1,target:i.clone()}:a>=n?{IsPagination:!1,move:"l"}:r<=n?{IsPagination:!1,move:"r"}:{IsPagination:!0,result:1}},e}(f.a),x=function(){function t(){}return t.replaceEnterAndNewline=function(t,e){return t.replace(new RegExp("\r|\n|/g","g"),e)},t.replaceTab=function(t,e){return t.replace(new RegExp("\t/g","g"),e)},t.replaceEnterAndNewlineAndTab=function(t,e){return t.replace(new RegExp("\r|\n|\t|/g","g"),e)},t}(),C=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(t){function e(e){var n=t.call(this,e)||this;return n.title&&(n.title=x.replaceEnterAndNewlineAndTab(n.title,"")),n}return C(e,t),e.prototype.getHideTitle=function(){return null==this.hideTitle?this.defaultOptions.hideTitle:this.hideTitle},e.prototype.getTextType=function(){return(null==this.textType?this.defaultOptions.textType:this.textType)||"text"},e.prototype.getFontSize=function(){return(null==this.fontSize?this.defaultOptions.fontSize:this.fontSize)||9},e.prototype.getbarcodeMode=function(){return(null==this.barcodeMode?this.defaultOptions.barcodeMode:this.barcodeMode)||"CODE128"},e.prototype.getBarWidth=function(){return(null==this.barWidth?this.defaultOptions.barWidth:this.barWidth)||1},e.prototype.getBarAutoWidth=function(){var t;return null===(t=null==this.barAutoWidth?"true"===this.defaultOptions.barAutoWidth:"true"===this.barAutoWidth)||void 0===t||t},e.prototype.getQRcodeLevel=function(){return(null==this.qrCodeLevel?this.defaultOptions.qrCodeLevel:this.qrCodeLevel)||0},e}(g.a),H=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),D=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new O(n),i.options.setDefault(new O(p.a.instance.text.default).getPrintElementOptionEntity()),i}return H(e,t),e.prototype.getDesignTarget=function(e){return t.prototype.getDesignTarget.call(this,e)},e.prototype.getProxyTarget=function(t){t&&this.SetProxyTargetOption(t);var e=this.getData(),n=this.createTarget(this.printElementType.getText(!0),e);return this.updateTargetSize(n),this.css(n,e),n},e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t),this.updateTargetText(this.designTarget,this.getTitle(),t)}},e.prototype.getConfigOptions=function(){return p.a.instance.text},e.prototype.getTitle=function(){var t=this.options.title||this.printElementType.title||"";return t&&(t=x.replaceEnterAndNewlineAndTab(t,"")),t},e.prototype.getData=function(t){var e=void 0,n=this.getField();if(e=t?n&&n.split(".").reduce((function(e,n){return e?e[n]:t?t[n]:""}),!1)||"":this.options.testData||this.printElementType.getData()||"",this.options.format){if("datetime"==this.options.dataType)return o.a.dateFormat(e,this.options.format);if("boolean"==this.options.dataType){var i=this.options.format.split(":");if(i.length>0)return!0===e||"true"===e?i[0]:i[1]}}return e},e.prototype.updateTargetText=function(t,e,n,i,a){var r=this.getFormatter(),s=t.find(".hiprint-printElement-text-content"),l="";l=this.getField()?(this.options.getHideTitle()?"":e?e+":":"")+hinnn.toUpperCase(this.options.upperCase,r?r(e,n,this.options,this._currenttemplateData,t):n):n=hinnn.toUpperCase(this.options.upperCase,r?r(e,e,this.options,this._currenttemplateData,t):e);var p=this.options.getTextType();if("text"==p)s.html(l);else{if("barcode"==p){s.css({display:"flex","flex-direction":"column"}),s.html('');try{n?(jsbarcode__WEBPACK_IMPORTED_MODULE_65___default()(s.find(".hibarcode_imgcode")[0],n,{format:this.options.getbarcodeMode(),width:this.options.getBarWidth(),textMargin:-1,lineColor:this.options.color||"#000000",margin:0,height:parseInt(o.a.pt.toPx(this.options.getHeight()||10).toString()),displayValue:!this.options.hideTitle}),s.find(".hibarcode_imgcode").attr("height","100%"),s.find(".hibarcode_imgcode").attr("width","100%")):s.html("");var d=s.find(".hibarcode_imgcode rect")[0].attributes.width.value;d=Math.ceil(hinnn.px.toPt(1.05*d)),this.options.getBarAutoWidth()&&d>this.options.width&&(s.parent().css("width",d+"pt"),this.options.width=d)}catch(t){console.log(t),s.html("".concat(i18n.__("此格式不支持该文本")))}}if("qrcode"==p){s.html("");try{if(n){var c,u;s.css({display:"flex","flex-direction":"column"});var h=this.options.width,_=this.options.height-(this.options.hideTitle?0:null!==(c=this.options.lineHeight)&&void 0!==c?c:1.5*(null!==(u=this.options.fontSize)&&void 0!==u?u:10.5)),f=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ').css({width:Math.min(h,_)+"pt",height:Math.min(h,_)+"pt",margin:"auto"});new QRCode(f[0],{width:"100%",height:"100%",colorDark:this.options.color||"#000000",useSVG:!0,correctLevel:this.options.getQRcodeLevel()}).makeCode(n),s.html(f),!this.options.hideTitle&&s.append('
        '.concat(n,"
        "))}}catch(t){console.log(t),s.html("".concat(i18n.__("二维码生成失败")))}}}},e.prototype.onResize=function(e,n,i,o,a){t.prototype.onResize.call(this,e,n,i,o,a),"barcode"!=this.options.getTextType()&&"qrcode"!=this.options.getTextType()||this.updateTargetText(this.designTarget,this.getTitle(),this.getData())},e.prototype.createTarget=function(t,e,n){var i=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ');return this.updateTargetText(i,t,e,n),i},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(f.a),I=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e){return t.call(this,e)||this}return I(e,t),e}(g.a),M=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new R(n),i.options.setDefault(new R(p.a.instance.html.default).getPrintElementOptionEntity()),i}return M(e,t),e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t),this.updateTargetHtml()}},e.prototype.updateTargetHtml=function(){var t=this.getFormatter();if(t){var e=t(this.getData(),this.options,this._currenttemplateData);this.designTarget.find(".hiprint-printElement-html-content").html(e)}},e.prototype.getConfigOptions=function(){return p.a.instance.html},e.prototype.createTarget=function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        '),i=this.getFormatter();if(i){var o=i(this.getData(),this.options,this._currenttemplateData);n.find(".hiprint-printElement-html-content").append(o)}else this.options.content&&n.find(".hiprint-printElement-html-content").append(this.options.content);return n},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(f.a),B=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),F=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new g.a(n),i.options.setDefault(new g.a(p.a.instance.vline.default).getPrintElementOptionEntity()),i}return B(e,t),e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t)}},e.prototype.getConfigOptions=function(){return p.a.instance.vline},e.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ')},e.prototype.getReizeableShowPoints=function(){return["s","r"]},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(f.a),L=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new g.a(n),i.options.setDefault(new g.a(p.a.instance.hline.default).getPrintElementOptionEntity()),i}return L(e,t),e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t)}},e.prototype.getConfigOptions=function(){return p.a.instance.hline},e.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ')},e.prototype.getReizeableShowPoints=function(){return["e","r"]},e}(f.a),z=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),k=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new g.a(n),i.options.setDefault(new g.a(p.a.instance.rect.default).getPrintElementOptionEntity()),i}return z(e,t),e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t)}},e.prototype.getConfigOptions=function(){return p.a.instance.rect},e.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ')},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(f.a),N=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),V=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new g.a(n),i.options.setDefault(new g.a(p.a.instance.oval.default).getPrintElementOptionEntity()),i}return N(e,t),e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t)}},e.prototype.getConfigOptions=function(){return p.a.instance.oval},e.prototype.createTarget=function(t,e){return jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ')},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(f.a),barcode=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new g.a(n),i.options.setDefault(new g.a(p.a.instance.barcode.default).getPrintElementOptionEntity()),i}return N(e,t),e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t),this.initBarcode(this.designTarget,this.getTitle(),this.getData())}},e.prototype.getConfigOptions=function(){return p.a.instance.barcode},e.prototype.getBarAutoWidth=function(){var t;return null===(t=null==this.options.barAutoWidth?"true"===this.options.defaultOptions.barAutoWidth:"true"===this.options.barAutoWidth)||void 0===t||t},e.prototype.onResize=function(e,n,i,o,a){t.prototype.onResize.call(this,e,n,i,o,a),this.initBarcode(this.designTarget,this.getTitle(),this.getData())},e.prototype.getTitle=function(){return this.options.title||this.printElementType.title},e.prototype.getData=function(t){var e=void 0,n=this.getField();return e=t?n&&n.split(".").reduce((function(e,n){return e?e[n]:t?t[n]:""}),!1)||"":this.options.testData||this.printElementType.getData()||"",e},e.prototype.initBarcode=function(t,e,n){t=t||this.designTarget;var i=t.find(".hiprint-printElement-barcode-content");try{var a,r,s=o.a.pt.toMm(this.options.height-(this.options.hideTitle?0:null!==(a=this.options.lineHeight)&&void 0!==a?a:1.5*(null!==(r=this.options.fontSize)&&void 0!==r?r:10.5))),l=bwip_js__WEBPACK_IMPORTED_MODULE_67___default.a.toSVG({bcid:this.options.barcodeType||"code128",text:n||this.options.testData||this.options.title,scale:this.options.barWidth||1,width:this.getBarAutoWidth()?"":parseInt(o.a.pt.toMm(this.options.getWidth())),height:parseInt(s),includetext:!this.options.hideTitle,barcolor:this.options.barColor||"#000"});l=jquery__WEBPACK_IMPORTED_MODULE_63___default()(l),l.attr("preserveAspectRatio","none slice");var p=l[0].attributes.viewBox.value.split(" ")[2];p=Math.ceil(hinnn.px.toPt(1.05*p)),this.getBarAutoWidth()&&p>this.options.width&&(i.parent().css("width",p+"pt"),l.css("height","100%"),this.options.width=p),i.html(l)}catch(d){console.error(d),i.html(jquery__WEBPACK_IMPORTED_MODULE_63___default()("
        ".concat(i18n.__("条形码生成失败"),"
        ")))}},e.prototype.getReizeableShowPoints=function(){return["s","e","se","r"]},e.prototype.createTarget=function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ');return this.initBarcode(n,t,e),n},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(f.a),qrcode=function(t){function e(e,n){var i=t.call(this,e)||this;return i.options=new g.a(n),i.options.setDefault(new g.a(p.a.instance.qrcode.default).getPrintElementOptionEntity()),i}return N(e,t),e.prototype.updateDesignViewFromOptions=function(){if(this.designTarget){var t=this.getData();this.css(this.designTarget,t),this.initQrcode(this.designTarget,this.getTitle(),this.getData())}},e.prototype.getConfigOptions=function(){return p.a.instance.qrcode},e.prototype.onResize=function(e,n,i,o,a){t.prototype.onResize.call(this,e,n,i,o,a),this.initQrcode(this.designTarget,this.getTitle(),this.getData())},e.prototype.getTitle=function(){return this.options.title||this.printElementType.title},e.prototype.getData=function(t){var e=void 0,n=this.getField();return e=t?n&&n.split(".").reduce((function(e,n){return e?e[n]:t?t[n]:""}),!1)||"":this.options.testData||this.printElementType.getData()||"",e},e.prototype.initQrcode=function(t,e,n){t=t||this.designTarget;var i=t.find(".hiprint-printElement-qrcode-content");try{var a,r,s,l=o.a.pt.toPx(this.options.getWidth()),p=o.a.pt.toPx(this.options.height-(this.options.hideTitle?0:null!==(a=this.options.lineHeight)&&void 0!==a?a:1.5*(null!==(r=this.options.fontSize)&&void 0!==r?r:10.5))),d=l>=p?Math.abs(parseInt((l-p)/2)):0,c=l>=p?0:Math.abs(parseInt((p-l)/2)),u=bwip_js__WEBPACK_IMPORTED_MODULE_67___default.a.toSVG({bcid:this.options.qrcodeType||"qrcode",text:n||this.options.testData||this.options.title,scale:1,paddingwidth:d,paddingheight:c,width:Math.min(parseInt(l/2.835),parseInt(p/2.835)),height:Math.min(parseInt(l/2.835),parseInt(p/2.835)),includetext:!1,eclevel:["M","L","H","Q"][null!==(s=this.options.qrCodeLevel)&&void 0!==s?s:0],barcolor:this.options.barColor||"#000"});if(i.html(jquery__WEBPACK_IMPORTED_MODULE_63___default()(u)),!this.options.hideTitle){var h=e?e+(n?":":""):"",_=this.options.textAlign||"center",f="justify"===_?"text-align-last: justify;text-justify: distribute-all-lines;":"text-align: ".concat(_,";");i.append(jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ').concat(h).concat(n,"
        ")))}}catch(m){console.error(m),i.html(jquery__WEBPACK_IMPORTED_MODULE_63___default()("
        ".concat(i18n.__("二维码生成失败"),"
        ")))}},e.prototype.getReizeableShowPoints=function(){return["s","e","se","r"]},e.prototype.createTarget=function(t,e){var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ');return this.initQrcode(n,t,e),n},e.prototype.getHtml=function(t,e,n){return this.getHtml2(t,e,n)},e}(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):"barcode"==t.type?new barcode(t,e):"qrcode"==t.type?new qrcode(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_63___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 t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(t){function e(e){var n=t.call(this,e)||this;return(e=e||{}).columns?(n.columns=[],e.columns.forEach((function(t){n.columns.push(new K.a(t))}))):n.columns=[new K.a({columns:[new u.a({width:100}),new u.a({width:100})]})],n.lHeight=e.lHeight,n.autoCompletion=e.autoCompletion,n.tableFooterRepeat=e.tableFooterRepeat,n}return G(e,t),e.prototype.getPrintElementOptionEntity=function(){var e=t.prototype.getPrintElementOptionEntity.call(this);return e.fields=this.fields,e.columns=[],this.columns.forEach((function(t){e.columns.push(t.getPrintElementOptionEntity())})),e},e}(g.a),Q=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),et=function(t){function e(e){return t.call(this,e)||this}return tt(e,t),e.prototype.createPrintElement=function(t){var e={};return jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(e,t||{}),W.createPrintElement(this,e)},e.prototype.getPrintElementTypeEntity=function(){return new c({title:this.title,type:this.type})},e}(j),nt=function(){function t(){}return t.createPrintElementType=function(t){return t.type=t.type||"text","text"==t.type?new et(t):"table"==t.type?new h(t):new j(t)},t}(),it=function(){function t(){}return t.getElementTypeGroups=function(e){var n=t.formatterModule(e);return a.instance[n]||[]},t.getElementType=function(t,e){if(t)return a.instance.getElementType(t);nt.createPrintElementType({type:e})},t.build=function(e,n){var i=t.formatterModule(n),o=(new l).createPrintElementTypeHtml(e,this.getElementTypeGroups(i));this.enableDrag(o)},t.buildByHtml=function(t){this.enableDrag(t)},t.enableDrag=function(e){e.hidraggable({revert:!0,proxy:function(t){var e=s.a.instance.getDragingPrintElement(),n=e.printElement.getProxyTarget(e.printElement.printElementType.getOptions());return n.appendTo("body"),n.css("z-index","9999"),n},moveUnit:"pt",minMove:4,onBeforeDrag:function(e){s.a.instance.draging=!0;var n=jquery__WEBPACK_IMPORTED_MODULE_63___default()(e.data.target).attr("tid"),i=t.getElementType(n,jquery__WEBPACK_IMPORTED_MODULE_63___default()(e.data.target).attr("ptype"));if(!i)throw new Error("".concat(i18n.__("请检查 hiprint.init 的 provider 是否配置了")," [").concat(n,"]"));var o=i.createPrintElement();if(!o&&"tableCustom"==i.type)throw new Error("".concat(i18n.__("已移除'tableCustom',请替换使用'table'详情见更新记录")));return s.a.instance.setDragingPrintElement(o),!0},onDrag:function(t,e,n){s.a.instance.getDragingPrintElement().updatePosition(e,n)},onStopDrag:function(t){s.a.instance.draging=!1}})},t.formatterModule=function(t){return t||"_default"},t}(),ot=function(){return function(t,e){var n=this;this.name=t,this.printElementTypes=[],e.forEach((function(t){n.printElementTypes.push(nt.createPrintElementType(t))}))}}(),rt=function(){return function(t){if(this.index=t.index,this.name=t.name,this.paperType=t.paperType,this.paperType){var e=s.a.instance[this.paperType];t.height?(this.height=t.height,this.width=t.width):(this.height=e.height,this.width=e.width)}else 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,this.panelLayoutOptions=t.panelLayoutOptions}}(),at=function(){function t(t,e,n,i){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=n,this.lastTop=i}return t.prototype.updateRect=function(t,e,n){var i=n.designPaper.scale||1;this.ex=t,this.ey=e,this.minX=this.startX/i0&&(d.indexthis.lastPaperFooter&&(d=p.createNewPage(l.length,d.referenceElement),l.push(d),r.append(d.getTarget())),this.panelPaperRule&&("odd"==this.panelPaperRule&&l.length%2==0&&(d=p.createNewPage(l.length,d.referenceElement),l.push(d),r.append(d.getTarget())),"even"==this.panelPaperRule&&l.length%2==1&&(d=p.createNewPage(l.length,d.referenceElement),l.push(d),r.append(d.getTarget()))),l.forEach((function(n){n.updatePaperNumber(n.index+1,l.length,e.paperNumberToggleInEven),a.fillPaperHeaderAndFooter(n,t,l.length),e&&(null!=e.leftOffset&&n.setLeftOffset(e.leftOffset),null!=e.topOffset&&n.setTopOffset(e.topOffset))})),r.prepend(this.getPrintStyle()),s.paperNumberContinue&&hinnn._paperList.forEach((function(t,e){t.updatePaperNumber(e+1,hinnn._paperList.length)}))),r},t.prototype.resize=function(t,e,n,i){this.width=e,this.height=n,this.paperType=t,this.rotate=i,this.designPaper.resize(e,n)},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(t){var e=[];return this.printElements.forEach((function(n){e.push(n.getPrintElementEntity(t))})),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:void 0==this.paperNumberContinue||this.paperNumberContinue,paperNumberFormat:this.paperNumberFormat?this.paperNumberFormat:void 0,panelPaperRule:this.panelPaperRule?this.panelPaperRule:void 0,panelPageRule:this.panelPageRule?this.panelPageRule:void 0,paperNumberLeft:this.paperNumberLeft,paperNumberTop:this.paperNumberTop,printElements:e,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?this.watermarkOptions:void 0,leftOffset:this.leftOffset,panelLayoutOptions:this.panelLayoutOptions||{}})},t.prototype.createTarget=function(){var t=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        ');return this.css(t),t},t.prototype.droppablePaper=function(t){var e=this;t.getTarget().hidroppable({accept:".ep-draggable-item",onDrop:function(n,i){var a=s.a.instance.getPrintTemplateById(e.templateId),r=s.a.instance.getDragingPrintElement(),l=r.printElement,p=e.designPaper.scale||1,d=(r.left-o.a.px.toPt(e.target.children(".hiprint-printPaper").offset().left))/p,c=(r.top-o.a.px.toPt(e.target.children(".hiprint-printPaper").offset().top))/p;l.updateSizeAndPositionOptions(e.mathroundToporleft(d),e.mathroundToporleft(c)),l.setTemplateId(e.templateId),l.setPanel(e),e.appendDesignPrintElement(e.designPaper,l,!0),l.options.field&&a.qtDesigner&&(l.options.qid=a.qtDesignderFunction(l.options.field)),e.printElements.push(l),l.design(void 0,t),o.a.event.trigger("hiprintTemplateDataChanged_"+e.templateId,"新增")}})},t.prototype.initPrintElements=function(t){var e=this;this.printElements=[],t&&t.forEach((function(n){var i;if(i=n.printElementType?nt.createPrintElementType(n.printElementType):a.instance.getElementType(n.tid)){var o=i.createPrintElement(n.options);o.setTemplateId(e.templateId),o.setPanel(e),e.printElements.push(o)}else console.log("miss "+JSON.stringify(t))}))},t.prototype.mathroundToporleft=function(t){var e=p.a.instance.movingDistance;return Math.round(t/e)*e},t.prototype.appendDesignPrintElement=function(t,e,n){e.setCurrenttemplateData(void 0);var i=e.getDesignTarget(t);i.addClass("design"),n&&e.initSizeByHtml(i),t.append(i)},t.prototype.createNewPage=function(t,e){var n=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 n.setFooter(this.firstPaperFooter,this.evenPaperFooter,this.oddPaperFooter,this.lastPaperFooter),n.setOffset(this.leftOffset,this.topOffset),n},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(t,e,n){this.printElements.filter((function(t){return t.isFixed()||t.isHeaderOrFooter()})).forEach((function(i){if(i.isFixed(),i.showInPage(t.index,n)){var o=i.getHtml(t,e);o.length&&t.append(o[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);if(e){var n=e.createPrintElement(t.options);n.setTemplateId(this.templateId),n.setPanel(this),this.printElements.push(n)}},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){if(t.printElementType=t.printElementType||{},t.printElementType.type="table",t.options&&t.options.columns){var e=jquery__WEBPACK_IMPORTED_MODULE_63___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){var e;return(e=t.tid?a.instance.getElementType(t.tid):nt.createPrintElementType(t.printElementType))||console.log("miss "+JSON.stringify(t)),e},t.prototype.getPrintStyle=function(){var t="";return this.panelLayoutOptions&&"row"===this.panelLayoutOptions["layoutType"]&&(t="\n \n ")),t+" \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(t){var e=this;this.printElements.filter((function(n,i){n.id==t.id&&(t.delete(),e.printElements.splice(i,1))}))},t.prototype.getElementByTid=function(t){return this.printElements.filter((function(e){return e.printElementType.tid===t})).map((function(t,e){return t}))},t.prototype.getElementByName=function(t){return this.printElements.filter((function(e){return e.options.name===t})).map((function(t,e){return t}))},t.prototype.getElementById=function(t){return this.printElements.find((function(e){return e.id===t}))},t.prototype.getFieldsInPanel=function(){var t=[];return this.printElements.forEach((function(e){e.options&&e.options.field?t.push(e.options.field):e.printElementType.field&&t.push(e.printElementType.field)})),t},t.prototype.getTestData=function(){var t={};return this.printElements.forEach((function(e){"table"!=e.printElementType.type&&(e.options&&e.options.field?t[e.options.field]=e.options.testData:e.printElementType.field&&(t[e.printElementType.field]=e.printElementType.data||e.options.testData))})),t},t.prototype.bindBatchMoveElement=function(){var t=this;this.designPaper.getTarget().on("mousemove",(function(e){e.target.className&&"string"==_typeof(e.target.className)&&e.target.className.includes("editing")||(e.currentTarget.className==t.designPaper.target[0].className?(t.mouseOffsetX=e.offsetX,t.mouseOffsetY=e.offsetY):t.mouseOffsetX=t.mouseOffsetY=void 0,s.a.instance.draging||1===e.buttons&&s.a.instance.rectDraging&&t.mouseRect&&(t.mouseRect.updateRect(e.pageX,e.pageY,t),t.updateRectPanel(t.mouseRect)))})).on("mousedown",(function(e){s.a.instance.rectDraging=!0,e.target.className&&"string"==_typeof(e.target.className)&&e.target.className.includes("editing")||s.a.instance.draging||(t.mouseRect&&t.mouseRect.target&&t.mouseRect.target.remove(),1===e.buttons&&"string"==_typeof(e.target.className)&&e.target.className.includes("hiprint-printPaper hidroppable design")&&(t.mouseRect=new at(e.pageX,e.pageY,s.a.instance.dragLengthCNum(e.pageX-t.designPaper.getTarget().offset().left,p.a.instance.movingDistance),s.a.instance.dragLengthCNum(e.pageY-t.designPaper.getTarget().offset().top,p.a.instance.movingDistance))))})).on("mouseup",(function(t){s.a.instance.rectDraging=!1}))},t.prototype.getElementInRect=function(t){var e=[];return this.printElements.filter((function(t){return!1!==t.options.draggable})).forEach((function(n){n.inRect(t)&&e.push(n)})),e},t.prototype.updateRectPanel=function(t){var e=this,n=this.designPaper.getTarget(),i=this.designPaper.scale||1;this.mouseRect.target||(this.mouseRect.target=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        '),n.find(".hiprint-printPaper-content").append(this.mouseRect.target),this.bingKeyboardMoveEvent(this.mouseRect.target),this.mouseRect.target.hidraggable({onDrag:function(t,n,a){e.mouseRect.lastLeft=e.mouseRect.lastLeft?o.a.px.toPt(e.mouseRect.target[0].offsetLeft):n/i,e.mouseRect.lastTop=e.mouseRect.lastTop?o.a.px.toPt(e.mouseRect.target[0].offsetTop):a/i,(e.mouseRect.mouseRectSelectedElement||[]).forEach((function(t){t.updatePositionByMultipleSelect(n-e.mouseRect.lastLeft,a-e.mouseRect.lastTop)})),e.mouseRect.lastLeft=n/i,e.mouseRect.lastTop=a/i,s.a.instance.changed=!0},moveUnit:"pt",minMove:p.a.instance.movingDistance,onBeforeDrag:function(t){e.mouseRect.target.focus(),s.a.instance.draging=!0,e.mouseRect.mouseRectSelectedElement||(e.mouseRect.mouseRectSelectedElement=e.getElementInRect(e.mouseRect)),e.mouseRect.target.css({transform:"unset"})},getScale:function(){return e.designPaper.scale||1},onStopDrag:function(t){s.a.instance.changed&&o.a.event.trigger("hiprintTemplateDataChanged_"+n.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/i+"pt",top:t.lastTop/i+"pt",transform:"unset"}):t.ext.by?this.mouseRect.target.css({height:t.maxY-t.minY+"px",width:t.maxX-t.minX+"px",left:t.lastLeft/i+"pt",top:t.lastTop/i+"pt",transform:"rotateY(180deg)","transform-origin":"0 0"}):t.ex>t.bx&&t.ey
          '),r.filter((function(t){return t.list.length>0})).forEach((function(t){var r=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
        • '+i18n.__(t.name)+"
        • ");e.find(".prop-tab-items").append(r);var s=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
          ');t.list.forEach((function(t){t.submit=function(t){o.submitOption()};var e=t.createTarget(o,o.options,o.printElementType);n.printElementOptionSettingPanel[t.name]=e,s.append(e),["columns","dataType"].includes(t.name)?t.setValue(o.options[t.name],o.options,o.printElementType):["coordinate","widthHeight"].includes(t.name)?t.setValue(o.options,o):t.setValue(o.options[t.name]||o.printElementType[t.name]),e.find("textarea").bind("dblclick.textarea",(function(t){if(!jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).val()){var e=t.target.placeholder||"";jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).val(e)}}))})),0==t.list.length&&a&&a.length&&a.forEach((function(t){var e=t.callback;t.callback=function(t){e&&e(t)};var n=t.optionItems;t.title&&s.append('
          \n
          \n '+t.title+"\n
          \n
          "),n.forEach((function(e){e.submit=function(e){t.callback(i.getValueByOptionItems(n))},s.append(e.createTarget(i.printTemplate,t.options,void 0)),e.setValue(t.options[e.name],t.options,void 0)})),s.find(".auto-submit").change((function(){t.callback(i.getValueByOptionItems(n))})),s.find(".auto-submit:input").bind("keydown.submitOption",(function(e){13===e.keyCode&&t.callback(i.getValueByOptionItems(n))})),s.find("textarea").bind("dblclick.textarea",(function(t){if(!jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).val()){var e=t.target.placeholder||"";jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).val(e)}}))})),e.append(s)}))):(e=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
          '),o.getPrintElementOptionItems().forEach((function(t){t.submit=function(t){o.submitOption()};var i=t.createTarget(o,o.options,o.printElementType);n.printElementOptionSettingPanel[t.name]=i,e.append(i),["columns","dataType"].includes(t.name)?t.setValue(o.options[t.name],o.options,o.printElementType):["coordinate","widthHeight"].includes(t.name)?t.setValue(o.options,o):t.setValue(o.options[t.name]||o.printElementType[t.name])})));var s=jquery__WEBPACK_IMPORTED_MODULE_63___default()('")),l=jquery__WEBPACK_IMPORTED_MODULE_63___default()('"));if(e.append(s),0!=o.options.draggable&&e.append(l),r.length){e.on("click",".prop-tab-item",(function(){var t=jquery__WEBPACK_IMPORTED_MODULE_63___default()(this),i=t.index();n.settingContainer.data("last-index",i),t.addClass("active"),t.siblings().removeClass("active");var o=e.find(".hiprint-option-items:eq("+i+")");o.addClass("active"),o.siblings().removeClass("active")}));var p=+(n.settingContainer.data("last-index")||0);p>=r.length&&(p=0),e.find(".prop-tab-item:eq("+p+")").click()}s.bind("click.submitOption",(function(){o.submitOption()})),l.bind("click.deleteBtn",(function(){hinnn.event.trigger("hiprintTemplateDataChanged_"+o.templateId,"删除"),i.printTemplate.deletePrintElement(o),n.clearSettingContainer()})),e.find(".auto-submit").change((function(t){o.submitOption()})),e.find(".auto-submit:input").bind("keydown.submitOption",(function(t){13==t.keyCode&&o.submitOption()})),this.settingContainer.append(e),r.length<1&&a&&a.forEach((function(t){var e=t.callback;t.callback=function(t){e&&(e(t),o.submitOption())},n.buildSettingByCustomOptions(t,n.settingContainer)})),this.lastPrintElement=o},t.prototype.buildSettingByCustomOptions=function(t,e){var n=this;this.clearLastPrintElement();var i=e||this.settingContainer;e||this.settingContainer.html("");var o=[],a=p.a.instance.panel.supportOptions.filter((function(t){return!t.hidden})).map((function(t){return t.name}));t.optionItems?o=t.optionItems:Object.keys(t.options).filter((function(t){return a.includes(t)})).forEach((function(t){var e=lt.a.getItem(t);e&&o.push(e)}));var r=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
          ');t.title&&r.append('
          \n
          \n '+t.title+"\n
          \n
          "),o.forEach((function(e){e.submit=function(e){t.callback(n.getValueByOptionItems(o))},r.append(e.createTarget(n.printTemplate,t.options,void 0)),e.setValue(t.options[e.name],t.options,void 0)}));var s=jquery__WEBPACK_IMPORTED_MODULE_63___default()('"));r.append(s),s.bind("click.submitOption",(function(){t.callback(n.getValueByOptionItems(o))})),r.find(".auto-submit").change((function(e){t.callback(n.getValueByOptionItems(o))})),r.find(".auto-submit:input").bind("keydown.submitOption",(function(e){13==e.keyCode&&t.callback(n.getValueByOptionItems(o))})),i.append(r)},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_63___default()(this.paginationContainer),this.template=e}return t.prototype.buildPagination=function(t){var e=this.template.getPaneltotal(),n=this;this.jqPaginationContainer.html("");for(var i=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
            '),o=function(){var t=a,e=n.template.printPanels[t].name||t+1,o=jquery__WEBPACK_IMPORTED_MODULE_63___default()("
          • "+e+'x
          • ');o.find("span").click((function(){n.template.selectPanel(t),o.siblings().removeClass("selected"),jquery__WEBPACK_IMPORTED_MODULE_63___default()(this).parent("li").addClass("selected")})),o.find("a").click((function(){n.template.deletePanel(t),n.buildPagination()})),i.append(o)},a=0;a+");i.append(r),this.jqPaginationContainer.append(i),r.click((function(){var t=function(t){n.template.addPrintPanel(t||void 0,!0),n.buildPagination(),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint-pagination li").removeClass("selected"),jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint-pagination li:nth-last-child(2)").addClass("selected")};if(n.template.onPanelAddClick){var e={index:n.template.printPanels.length,paperType:"A4"};n.template.onPanelAddClick(e,t)}else t()}))},t.prototype.selectPanel=function(t){var e=t||this.template.editingPanel.index,n=jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint-pagination li:nth("+e+")");n.length&&(n.siblings().removeClass("selected"),n.addClass("selected")),hinnn.event.trigger("onSelectPanel",this.template.editingPanel,e,n)},t}(),ct=function(){function t(t){var e=this;this.tempimageBase64={},this.id=s.a.instance.guid(),s.a.instance.setPrintTemplateById(this.id,this);var n=t||{};this.printPanels=[],this.dataMode=n.dataMode||1,this.history=void 0==n.history||n.history,this.willOutOfBounds=void 0==n.willOutOfBounds||n.willOutOfBounds,this.onDataChanged=n.onDataChanged,this.onUpdateError=n.onUpdateError,this.lastJson=n.template||{},this.historyList=[{id:s.a.instance.guid(),type:"初始",json:this.lastJson}],this.historyPos=0,this.defaultPanelName=n.defaultPanelName,this.designOptions={},this.qtDesigner=void 0==n.qtDesigner||n.qtDesigner,this.qtDesignerMap={},this.qtDesignderFunction=function(t){this.qtDesignerMap={};var e,n=t.split("_")[0],i=Object(_home_runner_work_vue_plugin_hiprint_vue_plugin_hiprint_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__["a"])(this.editingPanel.printElements);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(void 0!==o.options.field){var a=o.options.field.split("_")[0];void 0===this.qtDesignerMap[a]?this.qtDesignerMap[a]=1:this.qtDesignerMap[a]+=1}}}catch(r){i.e(r)}finally{i.f()}return 0===this.qtDesignerMap[n]||void 0===this.qtDesignerMap[n]?n:n+"_"+this.qtDesignerMap[n]};var i=new st(n.template||[]);n.template&&i.panels.forEach((function(t){e.printPanels.push(new pt(t,e.id))})),n.fontList&&(this.fontList=n.fontList),n.fields&&(this.fields=n.fields),n.onImageChooseClick&&(this.onImageChooseClick=n.onImageChooseClick),n.onPanelAddClick&&(this.onPanelAddClick=n.onPanelAddClick),n.settingContainer&&new ut(this,n.settingContainer),n.paginationContainer&&(this.printPaginationCreator=new dt(n.paginationContainer,this),this.printPaginationCreator.buildPagination()),this.initAutoSave()}return t.prototype.design=function(t,e){var n=this;if(e||(e={}),0==this.printPanels.length){var i=this.createDefaultPanel();this.printPanels.push(i)}if(!t)throw new Error("options.container can not be empty");n.designOptions=e,this.createContainer(t),this.printPanels.forEach((function(t,i){n.container.append(t.getTarget()),i>0&&t.disable(),t.design(e)})),this.selectPanel(0)},t.prototype.getSimpleHtml=function(t,e){var n=this;e||(e={});var i=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
            ');return t&&t.constructor===Array?t.forEach((function(o,a){o&&n.printPanels.forEach((function(n,r){i.append(n.getHtml(o,e)),a==t.length-1&&delete hinnn._paperList}))})):this.printPanels.forEach((function(o,a){i.append(o.getHtml(t,e)),a==n.printPanels.length-1&&delete hinnn._paperList})),e&&e.imgToBase64&&this.transformImg(i.find("img")),i},t.prototype.getHtml=function(t,e){return t||(t={}),this.getSimpleHtml(t,e)},t.prototype.getJointHtml=function(t,e,n){var i=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
            '),o=[];return this.printPanels.forEach((function(a,r){i.append(a.getHtml(t,e,o,void 0,n))})),i},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{var n=s.a.instance[t];if(!n)throw new Error("not found pagetype:"+(t||""));this.editingPanel.resize(t,n.width,n.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 n=t?new pt(new rt(t),this.id):this.createDefaultPanel();return t&&(t.index=this.printPanels.length),e&&(this.container.append(n.getTarget()),n.design(this.designOptions)),this.printPanels.push(n),e&&this.selectPanel(n.index),n},t.prototype.selectPanel=function(t){var e=this;t>e.printPanels.length-1&&(t=e.printPanels.length-1),this.printPanels.forEach((function(n,i){t==i?(n.enable(),e.editingPanel=n,e.printPaginationCreator&&e.printPaginationCreator.selectPanel(t)):n.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_63___default()(t),this.container.addClass("hiprint-printTemplate")):this.container=jquery__WEBPACK_IMPORTED_MODULE_63___default()('
            ')},t.prototype.getJsonTid=function(){var t=[];return this.printPanels.forEach((function(e){e.getPanelEntity().printElements.length&&t.push(e.getPanelEntity())})),new st({panels:t})},t.prototype.getJson=function(){var t=[];return this.printPanels.forEach((function(e){t.push(e.getPanelEntity(!0))})),new st({panels:t})},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){if(t.clear(),t.index>0){var e=t.getTarget();e&&e.length&&e.remove()}})),this.printPanels=[this.printPanels[0]],this.printPaginationCreator&&this.printPaginationCreator.buildPagination()},t.prototype.getPaperType=function(t){return null==t&&(t=0),this.printPanels[0].paperType},t.prototype.getOrient=function(t){return null==t&&(t=0),this.printPanels[t].height>this.printPanels[t].width?1:2},t.prototype.getPrintStyle=function(t){return this.printPanels[t].getPrintStyle()},t.prototype.print=function(t,e,n){t||(t={}),this.getHtml(t,e).hiwprint(n)},t.prototype.print2=function(t,e){if(t||(t={}),e||(e={}),this.clientIsOpened()){var n=this,i=0,o={},a=jquery__WEBPACK_IMPORTED_MODULE_63___default()('link[media=print][href*="print-lock"]'),r="";if(e.styleHandler&&(r+=e.styleHandler()),a.length<=0)throw new Error('请在 入口文件(index.html) 中引入 print-lock.css. 注意: link[media="print"]');a.each((function(s,l){var p=new XMLHttpRequest;p.open("GET",jquery__WEBPACK_IMPORTED_MODULE_63___default()(l).attr("href")),p.onreadystatechange=function(){if(4===p.readyState&&200===p.status&&(o[s+""]='",++i==a.length)){for(var l="",d=0;d'+p.responseText+"",++i==a.length)){for(var l="",d=0;d-1?d.save(e):d.save(e+".pdf");else{i.removeTempContainer();var u=n.type||"blob",_=d.output(u);a.resolve(_)}}))}return a.promise()},t.prototype.createTempContainer=function(){this.removeTempContainer(),jquery__WEBPACK_IMPORTED_MODULE_63___default()("body").prepend(jquery__WEBPACK_IMPORTED_MODULE_63___default()('
            '))},t.prototype.removeTempContainer=function(){jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint_temp_Container").remove()},t.prototype.getTempContainer=function(){return jquery__WEBPACK_IMPORTED_MODULE_63___default()(".hiprint_temp_Container")},t.prototype.svg2canvas=function(t){var e=this;t.find("svg").each((function(t,n){var i=n.parentNode,o=e.parentWidthHeight(i),a=document.createElement("canvas");a.width=o.width,a.height=o.height;var r=a.getContext("2d"),s=(new XMLSerializer).serializeToString(n);canvg__WEBPACK_IMPORTED_MODULE_75__["default"].fromString(r,s).render(),jquery__WEBPACK_IMPORTED_MODULE_63___default()(n).before(a),i.removeChild(n)}))},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(){var t=hiwebSocket.getPrinterList();return t||[]},t.prototype.getElementByTid=function(t,e){return null==e&&(e=0),this.printPanels[e].getElementByTid(t)},t.prototype.getElementByName=function(t,e){return null==e&&(e=0),this.printPanels[e].getElementByName(t)},t.prototype.getPanel=function(t){return null==t&&(t=0),this.printPanels[t]},t.prototype.loadAllImages=function(t,e,n){var i=this;null==n&&(n=0);for(var o=t[0].getElementsByTagName("img"),a=!0,r=0;r0){var i=n.printPanels.length-1;t.panels.forEach((function(t,e){if(e>i){n.printPanels.push(new pt(t,n.id));var o=n.printPanels[e];n.container.append(o.getTarget()),e>0&&o.disable(),o.design(n.designOptions),n.printPaginationCreator&&n.printPaginationCreator.buildPagination()}var a=new rt(t);n.editingPanel=n.printPanels[e],n.editingPanel.update(a)})),n.selectPanel(e||0)}}catch(o){console.log(o),n.onUpdateError&&n.onUpdateError(o)}},t.prototype.getSelectEls=function(){var t=this,e=[];return e=t.editingPanel.mouseRect&&t.editingPanel.mouseRect.target&&jquery__WEBPACK_IMPORTED_MODULE_63___default()(".mouseRect").length?t.editingPanel.getElementInRect(t.editingPanel.mouseRect):t.editingPanel.printElements.filter((function(t){return"block"==t.designTarget.children().last().css("display")&&!t.printElementType.type.includes("table")})),e},t.prototype.selectElementsByField=function(t){var e=this,n=jquery__WEBPACK_IMPORTED_MODULE_63___default.a;e.editingPanel.printElements.forEach((function(e,i){if(t&&t.includes(e.options.field)){var o=e.designTarget;o.children("div[panelindex]").addClass("selected"),o.children().last().css({display:"block"}),o=o[0],n.data(o,"hidraggable").options.onBeforeSelectAllDrag.call(o,{})}}))},t.prototype.selectAllElements=function(){var t=this,e=jquery__WEBPACK_IMPORTED_MODULE_63___default.a;t.editingPanel.printElements.forEach((function(t,n){var i=t.designTarget;i.children("div[panelindex]").addClass("selected"),i.children().last().css({display:"block"}),i=i[0],e.data(i,"hidraggable").options.onBeforeSelectAllDrag.call(i,{})}))},t.prototype.updateOption=function(t,e){var n=this.getSelectEls();n&&n.length&&(n.forEach((function(n){n.updateOption(t,e,!0)})),o.a.event.trigger("hiprintTemplateDataChanged_"+this.id,"批量修改"))},t.prototype.setElsAlign=function(t){var e=this.getSelectEls();if(e.length){var n=Math.min.apply(null,e.map((function(t){return t.options.left}))),i=Math.max.apply(null,e.map((function(t){return t.options.left+t.options.width}))),o=Math.min.apply(null,e.map((function(t){return t.options.top}))),a=Math.max.apply(null,e.map((function(t){return t.options.top+t.options.height})));switch(t){case"left":e.forEach((function(t){t.updateSizeAndPositionOptions(n),t.designTarget.css("left",t.options.displayLeft())}));break;case"vertical":var r=n+(i-n)/2;e.forEach((function(t){t.updateSizeAndPositionOptions(r-t.options.width/2),t.designTarget.css("left",t.options.displayLeft())}));break;case"right":e.forEach((function(t){t.updateSizeAndPositionOptions(i-t.options.width),t.designTarget.css("left",t.options.displayLeft())}));break;case"top":e.forEach((function(t){t.updateSizeAndPositionOptions(void 0,o),t.designTarget.css("top",t.options.displayTop())}));break;case"horizontal":var s=o+(a-o)/2;e.forEach((function(t){t.updateSizeAndPositionOptions(void 0,s-t.options.height/2),t.designTarget.css("top",t.options.displayTop())}));break;case"bottom":e.forEach((function(t){t.updateSizeAndPositionOptions(void 0,a-t.options.height),t.designTarget.css("top",t.options.displayTop())}));break;case"distributeHor":var l=[].reduce.call(e,(function(t,e){return t+e.options.width}),0),p=(i-n-l)/(e.length-1);e.sort((function(t,e){return t.options.left-e.options.left})),e.forEach((function(t,n){[0,e.length-1].includes(n)||(t.updateSizeAndPositionOptions(e[n-1].options.left+e[n-1].options.width+p),t.designTarget.css("left",t.options.displayLeft()))}));break;case"distributeVer":var d=[].reduce.call(e,(function(t,e){return t+e.options.height}),0),c=(a-o-d)/(e.length-1);e.sort((function(t,e){return t.options.top-e.options.top})),e.forEach((function(t,n){[0,e.length-1].includes(n)||(t.updateSizeAndPositionOptions(void 0,e[n-1].options.top+e[n-1].options.height+c),t.designTarget.css("top",t.options.displayTop()))}));break}}},t.prototype.setElsSpace=function(t,e){var n=this.getSelectEls();n.length&&(e?(n.sort((function(t,e){return t.options.left-e.options.left})),n.forEach((function(e,i){i>0&&(e.updateSizeAndPositionOptions(n[i-1].options.left+n[i-1].options.width+t),e.designTarget.css("left",e.options.displayLeft()))}))):(n.sort((function(t,e){return t.options.top-e.options.top})),n.forEach((function(e,i){i>0&&(e.updateSizeAndPositionOptions(void 0,n[i-1].options.top+n[i-1].options.height+t),e.designTarget.css("top",e.options.displayTop()))}))))},t.prototype.initAutoSave=function(){var t=this;o.a.event.on("hiprintTemplateDataShortcutKey_"+this.id,(function(e){if(t.history)switch(e){case"undo":if(t.historyPos>0){t.historyPos-=1;var n=t.historyList[t.historyPos];t.update(n.json)}break;case"redo":if(t.historyPos50?t.historyList=t.historyList.slice(0,1).concat(t.historyList.slice(1,50)):t.historyPos+=1,t.onDataChanged&&t.onDataChanged(e,n)}}))},t}();function ht(t){this.getHtml(t).hiwprint()}function ft(t,e,n){jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend({},t||{}).imgToBase64=!0;var i=new ct({});i.on("printSuccess",e),i.on("printError",n),i.printByHtml2(this.getHtml(t),t.options)}function gt(t){var e=void 0;return t&&t.templates.forEach((function(n,i){var o=jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend({},n.options||{});t.imgToBase64&&(o.imgToBase64=!0),e?e.append(n.template.getHtml(n.data,o).html()):e=n.template.getHtml(n.data,o)})),e}function mt(t){p.a.instance.init(t),p.a.instance.providers&&p.a.instance.providers.forEach((function(t){t.addElementTypes(a.instance)})),!window.autoConnect||p.a.instance.host==hiwebSocket.host&&p.a.instance.token==hiwebSocket.token||(hiwebSocket.stop(),p.a.instance.host&&(hiwebSocket.host=p.a.instance.host),p.a.instance.token&&(hiwebSocket.token=p.a.instance.token),hiwebSocket.start()),p.a.instance.lang&&Object.keys(languages).includes(p.a.instance.lang)?i18n.lang=p.a.instance.lang:i18n.lang="cn"}function cig(t){t?t&&Object.keys(t).forEach((function(e){if("optionItems"==e&&t.optionItems&&t.optionItems.length)p.a.instance.registerItems(t.optionItems);else if(t[e].tabs&&t[e].tabs.length)t[e].tabs.forEach((function(t,n){if(t.replace)jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(p.a.instance[e].tabs[n],t);else{var i=t.options||[],o=p.a.instance[e].tabs[n].options;i&&i.forEach((function(t){var e=o.findIndex((function(e){return e.name==t.name}));e>-1?o[e].hidden=t.hidden:t.after?(e=o.findIndex((function(e){return e.name==t.after})),e>-1&&o.splice(e+1,0,t)):o.push(t)})),jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(p.a.instance[e].tabs[n],{name:t.name,options:o})}})),delete t[e].tabs;else if(t[e].supportOptions&&t[e].supportOptions.length){var n=t[e].supportOptions,i=p.a.instance[e].supportOptions;n.forEach((function(t){var e=i.findIndex((function(e){return e.name==t.name}));e>-1?i[e].hidden=t.hidden:t.after?(e=i.findIndex((function(e){return e.name==t.after})),e>-1&&i.splice(e+1,0,t)):i.push(t)})),jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(p.a.instance[e].supportOptions,i),delete t[e].supportOptions}else{var o={};o[e]=t[e],t[e].tabs&&0==t[e].tabs.length&&(o[e].supportOptions=p.a.instance[e].supportOptions),jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(p.a.instance,o)}})):jquery__WEBPACK_IMPORTED_MODULE_63___default.a.extend(p.a.instance,HIPRINT_CONFIG)}function uep(t,e){return a.instance.updateElementType(t,e)}function rpl(t){p.a.instance.clear("printerList"),p.a.instance.on("printerList",t),hiwebSocket.refreshPrinterList()}function getClients(t){p.a.instance.clear("clients"),p.a.instance.on("clients",t),hiwebSocket.getClients()}function getClientInfo(t){p.a.instance.clear("clientInfo"),p.a.instance.on("getClientInfo",t),hiwebSocket.getClientInfo()}function getAddr(t,e){var n;p.a.instance.clear("address_"+t),p.a.instance.on("address_"+t,e);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a=55.3?e("a-row",{staticStyle:{height:"100px"}},[e("a-col",{staticClass:"drag_item_box",attrs:{span:12}},[e("div",[e("a",{staticClass:"ep-draggable-item",attrs:{tid:"defaultModule.barcode"}},[e("span",{staticClass:"glyphicon glyphicon-barcode",attrs:{"aria-hidden":"true"}}),e("p",{staticClass:"glyphicon-class"},[t._v("条形码")])])])]),e("a-col",{staticClass:"drag_item_box",attrs:{span:12}},[e("div",[e("a",{staticClass:"ep-draggable-item",attrs:{tid:"defaultModule.qrcode"}},[e("span",{staticClass:"glyphicon glyphicon-qrcode",attrs:{"aria-hidden":"true"}}),e("p",{staticClass:"glyphicon-class"},[t._v("二维码")])])])])],1):t._e()],1)],1)],1)],1),e("a-col",{attrs:{span:15}},[e("a-card",{staticClass:"card-design"},[e("div",{staticClass:"hiprint-printTemplate",attrs:{id:"hiprint-printTemplate"}})])],1),e("a-col",{staticClass:"params_setting_container",attrs:{span:5}},[e("a-card",[e("a-row",{staticClass:"hinnn-layout-sider"},[e("div",{attrs:{id:"PrintElementOptionSetting"}})])],1)],1)],1),e("print-preview",{ref:"preView"})],1)}),s=[],l=n("3181"),p=l["a"],d=(n("d312"),n("2877")),c=Object(d["a"])(p,r,s,!1,null,"cc8bfd24",null),u=c.exports,h=function(){var t=this,e=t._self._c;return e("a-card",[e("a-row",{staticStyle:{"margin-bottom":"10px"},attrs:{gutter:[8,0]}},[e("a-col",{attrs:{span:4}},[e("a-select",{staticStyle:{width:"100%"},attrs:{showSearch:"",defaultValue:0,"option-label-prop":"label"},on:{change:t.changeMode},model:{value:t.mode,callback:function(e){t.mode=e},expression:"mode"}},t._l(t.modeList,(function(n,i){return e("a-select-option",{key:i,attrs:{label:n.name,value:i}},[t._v(" "+t._s(n.name)+" ")])})),1)],1),e("a-col",{attrs:{span:20}},[e("a-space",[e("a-button-group",[t._l(t.paperTypes,(function(n,i){return[e("a-button",{key:i,attrs:{type:t.curPaperType===i?"primary":"info"},on:{click:function(e){return t.setPaper(i,n)}}},[t._v(" "+t._s(i)+" ")])]})),e("a-popover",{attrs:{title:"设置纸张宽高(mm)",trigger:"click"},model:{value:t.paperPopVisible,callback:function(e){t.paperPopVisible=e},expression:"paperPopVisible"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-input-group",{staticStyle:{margin:"10px 10px"},attrs:{compact:""}},[e("a-input",{staticStyle:{width:"100px","text-align":"center"},attrs:{type:"number",placeholder:"宽(mm)"},model:{value:t.paperWidth,callback:function(e){t.paperWidth=e},expression:"paperWidth"}}),e("a-input",{staticStyle:{width:"30px","border-left":"0","pointer-events":"none",backgroundColor:"#fff"},attrs:{placeholder:"~",disabled:""}}),e("a-input",{staticStyle:{width:"100px","text-align":"center","border-left":"0"},attrs:{type:"number",placeholder:"高(mm)"},model:{value:t.paperHeight,callback:function(e){t.paperHeight=e},expression:"paperHeight"}})],1),e("a-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.otherPaper}},[t._v("确定")])],1),e("a-button",{attrs:{type:"other"==t.curPaperType?"primary":""}},[t._v("自定义纸张")])],1)],2),e("a-button",{attrs:{type:"text",icon:"zoom-out"},on:{click:function(e){return t.changeScale(!1)}}}),e("a-input-number",{staticStyle:{width:"70px"},attrs:{value:t.scaleValue,min:t.scaleMin,max:t.scaleMax,step:.1,disabled:"",formatter:function(t){return"".concat((100*t).toFixed(0),"%")},parser:function(t){return t.replace("%","")}}}),e("a-button",{attrs:{type:"text",icon:"zoom-in"},on:{click:function(e){return t.changeScale(!0)}}}),e("a-button-group",[e("a-button",{attrs:{type:"primary",icon:"eye"},on:{click:t.preView}},[t._v(" 预览 ")]),e("a-button",{attrs:{type:"primary"},on:{click:t.print}},[t._v(" 直接打印 "),e("a-icon",{attrs:{type:"printer"}})],1),e("a-button",{attrs:{type:"primary"},on:{click:t.selectAll}},[t._v("全选元素")])],1),e("a-button-group",[e("a-button",{attrs:{type:"primary",icon:"save"},on:{click:t.save}},[t._v(" 保存 ")]),e("a-popconfirm",{attrs:{title:"是否确认清空?",okType:"danger",okText:"确定清空"},on:{confirm:t.clearPaper}},[e("a-icon",{staticStyle:{color:"red"},attrs:{slot:"icon",type:"question-circle-o"},slot:"icon"}),e("a-button",{attrs:{type:"danger"}},[t._v(" 清空 "),e("a-icon",{attrs:{type:"close"}})],1)],1)],1),e("json-view",{attrs:{template:t.template}})],1)],1)],1),e("a-row",{attrs:{gutter:[8,0]}},[e("a-col",{attrs:{span:4}},[e("a-card",{staticStyle:{height:"100vh"}},[e("a-row",[e("a-col",{staticClass:"rect-printElement-types hiprintEpContainer",attrs:{span:24}})],1)],1)],1),e("a-col",{attrs:{span:14}},[e("a-card",{staticClass:"card-design"},[e("div",{staticClass:"hiprint-printTemplate",attrs:{id:"hiprint-printTemplate"}})])],1),e("a-col",{staticClass:"params_setting_container",attrs:{span:6}},[e("a-card",[e("a-row",{staticClass:"hinnn-layout-sider"},[e("div",{attrs:{id:"PrintElementOptionSetting"}})])],1)],1)],1),e("print-preview",{ref:"preView"})],1)},_=[],f=n("0330"),m=f["a"],g=(n("85a5"),Object(d["a"])(m,h,_,!1,null,"d4e72d8e",null)),v=g.exports,y=function(){var t=this,e=t._self._c;return e("a-card",[e("a-row",{staticStyle:{"margin-bottom":"10px"},attrs:{gutter:[8,0]}},[e("a-col",{attrs:{span:24}},[e("a-space",[e("a-button-group",[t._l(t.paperTypes,(function(n,i){return[e("a-button",{key:i,attrs:{type:t.curPaperType===i?"primary":"info"},on:{click:function(e){return t.setPaper(i,n)}}},[t._v(" "+t._s(i)+" ")])]})),e("a-popover",{attrs:{title:"设置纸张宽高(mm)",trigger:"click"},model:{value:t.paperPopVisible,callback:function(e){t.paperPopVisible=e},expression:"paperPopVisible"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-input-group",{staticStyle:{margin:"10px 10px"},attrs:{compact:""}},[e("a-input",{staticStyle:{width:"100px","text-align":"center"},attrs:{type:"number",placeholder:"宽(mm)"},model:{value:t.paperWidth,callback:function(e){t.paperWidth=e},expression:"paperWidth"}}),e("a-input",{staticStyle:{width:"30px","border-left":"0","pointer-events":"none",backgroundColor:"#fff"},attrs:{placeholder:"~",disabled:""}}),e("a-input",{staticStyle:{width:"100px","text-align":"center","border-left":"0"},attrs:{type:"number",placeholder:"高(mm)"},model:{value:t.paperHeight,callback:function(e){t.paperHeight=e},expression:"paperHeight"}})],1),e("a-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.otherPaper}},[t._v("确定")])],1),e("a-button",{attrs:{type:"other"==t.curPaperType?"primary":""}},[t._v("自定义纸张")])],1)],2),t._v(" 打印数量: "),e("a-slider",{staticStyle:{width:"200px"},attrs:{min:1,max:1e4},model:{value:t.count,callback:function(e){t.count=e},expression:"count"}}),e("a-input-number",{staticStyle:{"margin-left":"16px"},attrs:{min:1,max:1e4},model:{value:t.count,callback:function(e){t.count=e},expression:"count"}}),e("a-button-group",[e("a-button",{attrs:{type:"primary",icon:"eye"},on:{click:t.preView}},[t._v(" 预览 ")]),e("a-button",{attrs:{type:"primary"},on:{click:t.print}},[t._v(" 直接打印 "),e("a-icon",{attrs:{type:"printer"}})],1)],1),e("a-button-group",[e("a-button",{attrs:{type:"primary",icon:"save"},on:{click:t.save}},[t._v(" 保存 ")]),e("a-popconfirm",{attrs:{title:"是否确认清空?",okType:"danger",okText:"确定清空"},on:{confirm:t.clearPaper}},[e("a-icon",{staticStyle:{color:"red"},attrs:{slot:"icon",type:"question-circle-o"},slot:"icon"}),e("a-button",{attrs:{type:"danger"}},[t._v(" 清空 "),e("a-icon",{attrs:{type:"close"}})],1)],1)],1),e("json-view",{attrs:{template:t.template}})],1)],1)],1),e("a-row",{attrs:{gutter:[8,0]}},[e("a-col",{attrs:{span:4}},[e("a-card",{staticStyle:{height:"100vh"}},[e("a-row",[e("a-col",{staticClass:"rect-printElement-types hiprintEpContainer",attrs:{span:24}})],1)],1)],1),e("a-col",{attrs:{span:14}},[e("a-card",{staticClass:"card-design"},[e("div",{staticClass:"hiprint-printTemplate",attrs:{id:"hiprint-printTemplate"}})])],1),e("a-col",{staticClass:"params_setting_container",attrs:{span:6}},[e("a-card",[e("a-row",{staticClass:"hinnn-layout-sider"},[e("div",{attrs:{id:"PrintElementOptionSetting"}})])],1)],1)],1),e("print-preview",{ref:"preView"})],1)},b=[],E=n("de64"),P=E["a"],T=(n("c3c6"),Object(d["a"])(P,y,b,!1,null,"57088120",null)),w=T.exports,D=function(){var t=this,e=t._self._c;return e("a-card",[e("a-row",{staticStyle:{"margin-bottom":"10px"},attrs:{gutter:[8,0]}},[e("a-col",{attrs:{span:4}},[e("a-select",{staticStyle:{width:"100%"},attrs:{showSearch:"",defaultValue:0,"option-label-prop":"label"},on:{change:t.changeMode},model:{value:t.mode,callback:function(e){t.mode=e},expression:"mode"}},t._l(t.modeList,(function(n,i){return e("a-select-option",{key:i,attrs:{label:n.name,value:i}},[t._v(" "+t._s(n.name)+" ")])})),1)],1),e("a-col",{attrs:{span:20}},[e("a-row",[e("a-space",[e("a-button-group",[t._l(t.paperTypes,(function(n,i){return[e("a-button",{key:i,attrs:{type:t.curPaperType===i?"primary":"info"},on:{click:function(e){return t.setPaper(i,n)}}},[t._v(" "+t._s(i)+" ")])]})),e("a-popover",{attrs:{title:"设置纸张宽高(mm)",trigger:"click"},model:{value:t.paperPopVisible,callback:function(e){t.paperPopVisible=e},expression:"paperPopVisible"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("a-input-group",{staticStyle:{margin:"10px 10px"},attrs:{compact:""}},[e("a-input",{staticStyle:{width:"100px","text-align":"center"},attrs:{type:"number",placeholder:"宽(mm)"},model:{value:t.paperWidth,callback:function(e){t.paperWidth=e},expression:"paperWidth"}}),e("a-input",{staticStyle:{width:"30px","border-left":"0","pointer-events":"none",backgroundColor:"#fff"},attrs:{placeholder:"~",disabled:""}}),e("a-input",{staticStyle:{width:"100px","text-align":"center","border-left":"0"},attrs:{type:"number",placeholder:"高(mm)"},model:{value:t.paperHeight,callback:function(e){t.paperHeight=e},expression:"paperHeight"}})],1),e("a-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.otherPaper}},[t._v("确定")])],1),e("a-button",{attrs:{type:"other"==t.curPaperType?"primary":""}},[t._v("自定义纸张")])],1)],2),e("a-button",{attrs:{type:"text",icon:"zoom-out"},on:{click:function(e){return t.changeScale(!1)}}}),e("a-input-number",{staticStyle:{width:"70px"},attrs:{value:t.scaleValue,min:t.scaleMin,max:t.scaleMax,step:.1,disabled:"",formatter:function(t){return"".concat((100*t).toFixed(0),"%")},parser:function(t){return t.replace("%","")}}}),e("a-button",{attrs:{type:"text",icon:"zoom-in"},on:{click:function(e){return t.changeScale(!0)}}}),e("a-button-group",[e("a-button",{attrs:{type:"primary",icon:"eye"},on:{click:t.preView}},[t._v(" 预览 ")]),e("a-button",{attrs:{type:"primary"},on:{click:t.print}},[t._v(" 直接打印 "),e("a-icon",{attrs:{type:"printer"}})],1)],1),e("a-button-group",[e("a-button",{attrs:{type:"primary",icon:"save"},on:{click:t.save}},[t._v(" 保存 ")]),e("a-popconfirm",{attrs:{title:"是否确认清空?",okType:"danger",okText:"确定清空"},on:{confirm:t.clearPaper}},[e("a-icon",{staticStyle:{color:"red"},attrs:{slot:"icon",type:"question-circle-o"},slot:"icon"}),e("a-button",{attrs:{type:"danger"}},[t._v(" 清空 "),e("a-icon",{attrs:{type:"close"}})],1)],1)],1),e("json-view",{attrs:{template:t.template}})],1),e("div",{staticClass:"hiprint-printPagination",staticStyle:{"margin-top":"14px"}})],1)],1)],1),e("a-row",{attrs:{gutter:[8,0]}},[e("a-col",{attrs:{span:4}},[e("a-card",{staticStyle:{height:"100vh"}},[e("a-row",[e("a-col",{staticClass:"rect-printElement-types hiprintEpContainer",attrs:{span:24}})],1)],1)],1),e("a-col",{attrs:{span:14}},[e("a-card",{staticClass:"card-design"},[e("div",{staticClass:"hiprint-printTemplate",attrs:{id:"hiprint-printTemplate"}})])],1),e("a-col",{staticClass:"params_setting_container",attrs:{span:6}},[e("a-card",[e("a-row",{staticClass:"hinnn-layout-sider"},[e("div",{attrs:{id:"PrintElementOptionSetting"}})])],1)],1)],1),e("print-preview",{ref:"preView"})],1)},M=[],C=n("6e48"),O=C["a"],x=(n("6c1b"),Object(d["a"])(O,D,M,!1,null,"24699c9e",null)),A=x.exports,I=(n("9911"),function(){var t=this,e=t._self._c;return e("a-card",[e("div",{staticClass:"templates"},[t._l(t.templates,(function(n,i){return[e("div",{key:i,staticClass:"item-box",on:{click:function(e){return t.show(n)}}},[n.preview?e("a-popover",{scopedSlots:t._u([{key:"content",fn:function(){return[e("img",{staticStyle:{cursor:"pointer"},attrs:{src:n.preview},on:{click:function(e){return t.show(n)}}})]},proxy:!0}],null,!0)},[e("img",{staticClass:"preview",attrs:{src:n.preview}})]):e("div",{staticClass:"preview"},[t._v("暂无预览图")]),e("div",{staticClass:"name pd"},[t._v(t._s(n.name))]),e("div",{staticClass:"desc pd"},[t._v(t._s(n.desc))]),e("div",{staticClass:"author pd",on:{click:function(t){t.stopPropagation()}}},[e("a",{attrs:{href:n.link,target:"_blank"}},[t._v(t._s(n.author))])])],1)]}))],2),e("template-preview",{ref:"preview"})],1)}),L=[],S=(n("e9c4"),n("d3b7"),n("159b"),n("ddb0"),n("56cb"),n("1d86")),R={};S.keys().forEach((function(t){var e=t.replace(/\.\//,"").replace(/(\.js)/,"");R[e]=Object.assign(R[e]||{},S(t).default)}));var B=R,j=function(){var t=this,e=t._self._c;return e("a-modal",{attrs:{visible:t.visible,maskClosable:!1,width:"80vw"},on:{cancel:t.hideModal}},[e("a-spin",{staticStyle:{"min-height":"100px"},attrs:{spinning:t.spinning}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isMultiPanel,expression:"isMultiPanel"}],staticStyle:{margin:"14px 0 0 10px"},attrs:{id:"template-preview-printPagination"}}),e("a-row",[e("a-col",{attrs:{span:18}},[e("a-card",{staticClass:"card-design"},[e("div",{attrs:{id:"template-preview"}})])],1),e("a-col",{attrs:{span:6}},[e("a-card",[e("div",{attrs:{id:"template-preview-setting"}})])],1)],1)],1),e("template",{slot:"title"},[e("a-space",[e("div",{staticStyle:{"margin-right":"20px"}},[t._v("模板预览")]),e("a-button",{attrs:{loading:t.waitShowPrinter,type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.print.apply(null,arguments)}}},[t._v("打印")]),e("a-button",{attrs:{type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.toPdf.apply(null,arguments)}}},[t._v("pdf")]),e("a-button",{attrs:{type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.print2.apply(null,arguments)}}},[t._v("直接打印")]),e("json-view",{attrs:{template:t.hiprintTemplate}})],1)],1),e("template",{slot:"footer"},[e("a-button",{key:"close",attrs:{type:"info"},on:{click:t.hideModal}},[t._v(" 关闭 ")])],1)],2)},k=[],W=n("38a2"),H=W["a"],U=(n("48a2"),Object(d["a"])(H,j,k,!1,null,"5c3009c6",null)),F=U.exports,K={name:"templates",components:{templatePreview:F},data:function(){return{}},computed:{templates:function(){var t=JSON.parse(JSON.stringify(B));for(var e in t)Object.hasOwnProperty.call(t,e)&&(t[e].preview="/vue-plugin-hiprint".concat(B[e].preview));return t}},mounted:function(){},methods:{show:function(t){this.$refs.preview.show(t)}}},q=K,N=(n("961a"),Object(d["a"])(q,I,L,!1,null,"4cd977d3",null)),z=N.exports,V=n("ed08"),G={name:"App",components:{printDesign:u,printCustom:v,printTasks:w,printPanels:A,templates:z},data:function(){return{curDemo:"printDesign",demoList:[{name:"printDesign",title:"默认拖拽设计"},{name:"printCustom",title:"自定义设计"},{name:"printTasks",title:"队列/批量打印"},{name:"printPanels",title:"多面板设计"}],npmInfo:{},versions:[],lang:"cn",languages:[{label:"简体中文-cn",value:"cn"},{label:"英语-en",value:"en"},{label:"德语-de",value:"de"},{label:"西班牙语-es",value:"es"},{label:"法语-fr",value:"fr"},{label:"意大利语-it",value:"it"},{label:"日语-ja",value:"ja"},{label:"俄语-ru",value:"ru"},{label:"繁体中文-cn_tw",value:"cn_tw"}],version:void 0}},computed:{i18nSupport:function(){return"development"==this.version||this.version&&Object(V["a"])(this.version).verVal>=55.8}},created:function(){this.version=sessionStorage.getItem("version")||"development",this.lang=sessionStorage.getItem("lang")||"cn",this.getVersion()},methods:{getVersion:function(){var t=this,e=new XMLHttpRequest;e.open("GET","https://registry.npmmirror.com/vue-plugin-hiprint"),e.onload=function(){var n;200===e.status&&(t.npmInfo=JSON.parse(e.responseText),t.versions=Object.keys(t.npmInfo.versions).map((function(t){return{label:t,value:t}})).reverse(),null!==(n=t.version)&&void 0!==n||(t.version=t.versions[0].value))},e.send()},handleVerChange:function(t){sessionStorage.setItem("version",t),location.reload()},handleLangChange:function(t){sessionStorage.setItem("lang",t),location.reload()}}},J=G,X=(n("0668"),Object(d["a"])(J,o,a,!1,null,null,null)),Y=X.exports,Q=n("f23d"),$=(n("202f"),n("b635")),Z=n("c16e"),tt=n.n(Z);i["a"].use(Q["a"]),i["a"].use($["b"]);var et={namespace:"hiPrint-",name:"ls",storage:"local"};i["a"].use(tt.a,et),i["a"].config.productionTip=!1,new i["a"]({render:function(t){return t(Y)}}).$mount("#app")},"5b87":function(t,e,n){"use strict";(function(t){e["a"]={name:"printPreview",props:{},data:function(){return{visible:!1,spinning:!0,waitShowPrinter:!1,width:0,hiprintTemplate:{},printData:{}}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{hideModal:function(){this.visible=!1},show:function(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"210";this.visible=!0,this.spinning=!0,this.width=e.editingPanel?e.editingPanel.width:o,this.hiprintTemplate=e,this.printData=n,setTimeout((function(){t("#preview_content_tasks").html(e.getHtml(n)),i.spinning=!1}),500)},print:function(){var t=this;this.waitShowPrinter=!0,this.hiprintTemplate.print(this.printData,{},{callback:function(){t.waitShowPrinter=!1}})},toPdf:function(){this.hiprintTemplate.toPdf(this.printData,"打印预览pdf")}}}}).call(this,n("1157"))},"5ceb":function(t,e,n){},"61a1":function(t,e,n){"use strict";(function(t){e["a"]={name:"printPreview",props:{},data:function(){return{visible:!1,spinning:!0,waitShowPrinter:!1,width:0,hiprintTemplate:{},printData:{}}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{hideModal:function(){this.visible=!1},show:function(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"210";this.visible=!0,this.spinning=!0,this.width=e.editingPanel?e.editingPanel.width:o,this.hiprintTemplate=e,this.printData=n,setTimeout((function(){t("#preview_content_design").html(e.getHtml(n)),i.spinning=!1}),500)},print:function(){var t=this;this.waitShowPrinter=!0,this.hiprintTemplate.print(this.printData,{},{callback:function(){console.log("callback"),t.waitShowPrinter=!1}})},toPdf:function(){this.hiprintTemplate.toPdf({},"打印预览")}}}}).call(this,n("1157"))},"626a":function(t){t.exports=JSON.parse('{"请选择字段":"Пожалуйста, выберите поле","计数":"Подсчет","合计":"Сумма","平均值":"Среднее значение","最小值":"Минимум","最大值":"Максимум","此格式不支持该文本":"Этот формат не поддерживает такой текст","二维码生成失败":"Сбой генерации QR-кода","字体行高":"Высота строки шрифта","默认":"По умолчанию","字体":"Шрифт","宋体":"SimSun","微软雅黑":"Microsoft YaHei","字体大小":"Размер шрифта","字体粗细":"Толщина шрифта","更细":"Тоньше","粗体":"Жирный","粗体+":"Жирнее","字间距":"Межбуквенный интервал","左右对齐":"По ширине","居左":"По левому краю","居中":"По центру","居右":"По правому краю","两端对齐":"По ширине","标题显示隐藏":"Отображение заголовка","显示":"Показывать","隐藏":"Скрыть","表格边框":"Граница таблицы","有边框":"Да","无边框":"Нет","表头边框":"Граница заголовка","左边框":"Левая граница","右边框":"Правая граница","左右边框":"Левая и правая границы","上边框":"Верхняя граница","下边框":"Нижняя граница","上下边框":"Верхняя и нижняя границы","表头单元格边框":"Граница ячейки заголовка","表尾边框":"Граница подвала","表尾单元格边框":"Граница ячейки подвала","表头行高":"Высота строки заголовка","表头字体大小":"Размер шрифта заголовка","表头字体粗细":"Толщина шрифта заголовка","表体单元格边框":"Граница ячейки основной части","表体行高":"Высота строки основной части","表头背景":"Фон заголовка","线宽":"Толщина линии","边框大小":"Размер границы","条形码格式":"Тип штрихкода","商品条码":"Штрихкод товара","条形码":"Штрихкод","物流":"Логистика","邮政和快递编码":"Почтовый и курьерский код","医疗产品编码":"Код медицинского продукта","不常用编码":"Нестандартный код","附加组件":"Дополнительный компонент","实验编码":"Экспериментальный код","条码类型":"Тип штрихкода","二维码类型":"Тип QR-кода","二维码容错率":"Уровень коррекции ошибок QR-кода","字体颜色":"Цвет шрифта","文本修饰":"Оформление текста","下划线":"Подчеркивание","上划线":"Надчеркивание","穿梭线":"Перечеркивание","字段名":"Имя поля","请输入字段名":"Пожалуйста, введите имя поля","标题":"Заголовок","请输入标题":"Пожалуйста, введите заголовок","测试数据":"Тестовые данные","仅字段名称存在时有效":"Действительно только если существует имя поля","位置坐标":"Координаты позиции","X位置(左)":"Позиция X (слева)","Y位置(上)":"Позиция Y (сверху)","同步":"Синхронизировать","不同步":"Не синхронизировать","宽高大小":"Ширина и высота","宽":"Ширина","高":"Высота","图片地址":"URL изображения","请输入图片地址":"Пожалуйста, введите URL изображения","选择":"Выбрать","图片缩放":"Масштаб изображения","等比":"Пропорционально","裁切":"Обрезать","填充":"Заполнить","原始尺寸":"Исходный размер","颜色":"Цвет","边框颜色":"Цвет границы","水印功能":"Водяной знак","水印内容":"Содержание водяного знака","旋转角度":"Угол поворота","水平密度":"Горизонтальная плотность","垂直密度":"Вертикальная плотность","水印时间":"Время водяного знака","时间格式":"Формат времени","页码格式":"Формат номера страницы","显示页码":"Показывать номер страницы","页码续排":"Продолжить нумерацию страниц","续排":"Продолжить","重排":"Сбросить","每行缩进":"Отступ строки","显示规则":"Правило отображения","始终隐藏":"Всегда скрывать","首页":"Первая страница","奇数页":"Нечетные страницы","偶数页":"Четные страницы","尾页":"Последняя страница","强制分页":"Принудительный разрыв страницы","是":"Да","否":"Нет","打印规则":"Правило печати","保持奇数":"Сохранять нечетные","保持偶数":"Сохранять четные","分页规则":"Правило разрыва страниц","不分页":"Без разрыва страниц","移除段落左侧空白":"Убрать левый отступ","移除":"Удалить","不移除":"Не удалять","首页页尾":"Нижний колонтитул первой страницы","尾页页尾":"Нижний колонтитул последней страницы","偶数页页尾":"Нижний колонтитул на четных страницах","奇数页页尾":"Нижний колонтитул на нечетных страницах","位置固定":"Фиксированная позиция","拖动方向":"Направление перетаскивания","横向":"Горизонтально","竖向":"Вертикально","左偏移":"Смещение слева","偏移量":"Смещение","最低高度":"Минимальная высота","文本过短或为空时的高度":"Высота при слишком коротком или пустом тексте","隐藏规则":"Правило скрытия","表体行边框":"Граница строки основной части","元素层级":"Z-индекс","边框设置":"Настройки границы","实线":"Сплошная линия","虚线":"Пунктир","左内边距":"Отступ слева","上内边距":"Отступ сверху","右内边距":"Отступ справа","下内边距":"Отступ снизу","样式":"Стиль","边框样式":"Стиль границы","长虚线":"Длинный пунктир","短虚线":"Короткий пунктир","背景颜色":"Цвет фона","纸张方向(仅自定义纸质有效)":"Ориентация бумаги (только пользовательская)","纵向":"Книжная","上下对齐":"Вертикальное выравнивание","垂直居中":"По центру по вертикали","底部":"Внизу","文本换行":"Перенос строк","不换行":"Без переноса строк","不换行&隐藏":"Без переноса строк и скрыть","不换行&省略":"Без переноса строк и многоточие","打印类型":"Тип печати","文本":"Текст","二维码":"QR-код","字段类型":"Тип поля","默认(文本)":"По умолчанию (текст)","序号":"Индекс","图片":"Изображение","单元格高度":"Высота ячейки","条形码、二维码以及图片有效":"Штрихкод, QR-код и изображение действительны","底部聚合标题":"Заголовок итогов","底部聚合文本":"Текст итогов","聚合类型":"Тип итогов","底部聚合合并列数":"Количество объединенных столбцов итогов","合并列数":"Количество объединенных столбцов","底部聚合类型左右对齐":"Выравнивание итогов","整数":"Целое число","保留%s位":"Оставить %s знаков после запятой","底部聚合小数":"Дробная часть итогов","转大小写":"Верхний или нижний регистр","底部聚合类型":"Тип итогов","不聚合":"Без итогов","仅文本":"Только текст","顶部偏移":"Смещение сверху","一行多组":"Несколько групп в строке","一行二列":"Одна строка две колонки","一行三列":"Одна строка три колонки","一行四列":"Одна строка четыре колонки","一行多组间隔":"Интервал между группами в строке","表格头显示":"Отображение заголовка таблицы","每页显示":"Показывать на странице","首页显示":"Показывать на первой странице","不显示":"Не показывать","数据类型":"Тип данных","日期时间":"Дата и время","布尔":"Логический","格式":"Формат","格式化函数":"Функция форматирования","样式函数":"Функция стиля","行/列合并函数":"Объединение строки/столбца","跨页合并是否清除":"Очистить объединение перед разрывом страницы","表格脚函数":"Функция нижнего колонтитула таблицы","分组字段函数":"Функция поля группировки","分组头格式化函数":"Функция форматирования заголовка группы","分组头信息":"Информация заголовка группы","分组脚格式化函数":"Функция форматирования подвала группы","分组脚信息":"Информация подвала группы","多组表格脚函数":"Функция нижнего колонтитула таблицы с несколькими группами","行样式函数":"Функция стиля строки","单元格左右对齐":"Выравнивание ячеек по горизонтали","单元格上下对齐":"Вертикальное выравнивание ячеек","上":"Вверху","中":"По центру","表格头单元格左右对齐":"Горизонтальное выравнивание ячеек заголовка","单元格样式函数":"Функция стиля ячейки","表格头样式函数":"Функция стиля заголовка таблицы","单元格格式化函数":"Функция форматирования ячейки","单元格渲染函数":"Функция отрисовки ячейки","自动补全":"Автозаполнение","每页最大行数":"Макс. строк на странице","表格脚显示":"Отображение нижнего колонтитула таблицы","最后显示":"Показать на последней странице","没有足够空间进行表格分页,请调整页眉/页脚线":"Недостаточно места для постраничного разделения таблицы, отрегулируйте строку заголовка/подвала","没有足够空间,显示下方内容, 可分页高度":"Недостаточно места, показать содержимое ниже, высоту можно разбить на страницы:","列属性":"Свойство столбца","在上方插入行":"Вставить строку выше","在下方插入行":"Вставить строку ниже","向左方插入列":"Вставить столбец слева","向右方插入列":"Вставить столбец справа","删除行":"Удалить строку","删除列":"Удалить столбец","对齐":"Выравнивание","左":"Слева","左右居中":"По центру","右":"Справа","下":"Внизу","合并单元格":"Объединить ячейки","解开单元格":"Разъединить ячейки","条形码生成失败":"Сбой генерации штрихкода","请检查 hiprint.init 的 provider 是否配置了":"Проверьте, настроен ли поставщик hiprint.init","已移除\'tableCustom\',请替换使用\'table\'详情见更新记录":"\'TableCustom\' была удалена, замените ее на \'table\', подробности см. в журнале обновлений","确定":"Подтвердить","删除":"Удалить","连接客户端失败":"Не удалось подключиться к клиенту","基础":"Основные","边框":"Граница","列":"Столбец","高级":"Дополнительно","面板排列":"Расположение панели","排列方式":"Способ распределения","垂直间距%s":"Вертикальный интервал %s","水平间距%s":"Горизонтальный интервал %s","边框圆角":"Радиус границы","显示码值":"Отображение кодового значения"}')},6465:function(t,e,n){"use strict";e["a"]={panels:[{index:0,height:60,width:80,paperHeader:-15,paperFooter:170.07874015748033,printElements:[{options:{left:28.5,top:12,height:17,width:120,testData:"单据表头",fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0,title:"单据表头"},printElementType:{title:"单据表头",type:"text"}},{options:{left:28.5,top:34.5,height:120,width:120,testData:"XS888888888",fontSize:12,lineHeight:18,fontWeight:"700",textAlign:"left",textType:"qrcode",title:"二维码"},printElementType:{title:"二维码",type:"text"}},{options:{left:157.5,top:15,height:9.75,width:57,title:"第",field:"count",testData:"1"},printElementType:{title:"文本",type:"text"}}],paperNumberLeft:196,paperNumberTop:148,paperNumberDisabled:!0}]}},"64c8":function(t,e,n){},"6c1b":function(t,e,n){"use strict";n("e5ac")},"6e48":function(t,e,n){"use strict";(function(t){var i,o=n("2909"),a=(n("caad"),n("b0c0"),n("b64b"),n("2532"),n("3aa8")),r=n("a6b2"),s=n("b635"),l=n("a2c8"),p=n("ac07");e["a"]={name:"printPanels",components:{printPreview:a["a"],jsonView:r["a"]},data:function(){return{template:null,mode:0,modeList:[],curPaper:{type:"other",width:220,height:80},paperTypes:{A3:{width:420,height:296.6},A4:{width:210,height:296.6},A5:{width:210,height:147.6},B3:{width:500,height:352.6},B4:{width:250,height:352.6},B5:{width:250,height:175.6}},scaleValue:1,scaleMax:5,scaleMin:.5,paperPopVisible:!1,paperWidth:"220",paperHeight:"80",lastjson:""}},computed:{curPaperType:function(){var t="other",e=this.paperTypes;for(var n in e){var i=e[n],o=this.curPaper,a=o.width,r=o.height;i.width===a&&i.height===r&&(t=n)}return t}},mounted:function(){this.init(),this.otherPaper()},methods:{init:function(){this.modeList=l["a"],this.changeMode(),this.buildTemplate()},changeMode:function(){var e=this.mode,n=l["a"][e];s["c"].init({providers:Object(o["a"])(l["b"])}),t(".hiprintEpContainer").empty(),s["c"].PrintElementTypeManager.build(".hiprintEpContainer",n.value)},buildTemplate:function(){t("#hiprint-printTemplate").empty();var e=this.$ls.get("KEY_TEMPLATES_PANELS",{}),n=this;this.template=i=new s["c"].PrintTemplate({template:e,settingContainer:"#PrintElementOptionSetting",paginationContainer:".hiprint-printPagination",defaultPanelName:"默认面板名称",onPanelAddClick:function(t,e){t.name="新面板"+(t.index+1),n.$message.success("弹出个东西,让你们知道,在这里可以自定义面板名称"),n.$notification.success({placement:"topRight",message:"弹出个东西,让你们知道,在这里可以自定义面板名称",description:"自定义面板名称"}),e(t)}}),i.design("#hiprint-printTemplate",{grid:!0}),this.scaleValue=i.editingPanel.scale||1},setPaper:function(t,e){try{Object.keys(this.paperTypes).includes(t)?(this.curPaper={type:t,width:e.width,height:e.height},i.setPaper(e.width,e.height)):(this.curPaper={type:"other",width:e.width,height:e.height},i.setPaper(e.width,e.height))}catch(n){this.$message.error("操作失败: ".concat(n))}},changeScale:function(t){var e=this.scaleValue;t?(e+=.1,e>this.scaleMax&&(e=5)):(e-=.1,e\n
            \n 缩放\n
            \n
            \n \n
            \n '),this.target},e.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},e.prototype.setValue=function(t){this.target.find("input").val(t)},e.prototype.destroy=function(){this.target.remove()},e}()}).call(this,n("1157"))},8616:function(t,e,n){"use strict";n.r(e),e["default"]={panels:[{index:0,height:297,width:210,paperHeader:49.5,paperFooter:780,watermarkOptions:{content:"vue-plugin-hiprint",rotate:25,timestamp:!0,format:"YYYY-MM-DD HH:mm"},printElements:[{options:{left:175.5,top:10.5,height:27,width:259,title:"HiPrint自定义模块打印插件",fontSize:19,fontWeight:"600",textAlign:"center",lineHeight:26,coordinateSync:!0,widthHeightSync:!0,draggable:!1},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:27,height:13,width:52,title:"页眉线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:25.5,top:57,height:705,width:9,fixed:!0,borderStyle:"dotted"},printElementType:{type:"vline"}},{options:{left:60,top:61.5,height:48,width:87,src:"",fit:"contain"},printElementType:{title:"图片",type:"image"}},{options:{left:153,top:64.5,height:39,width:276,title:"二维码以及条形码均采用svg格式打印。不同打印机打印不会造成失真。图片打印:不同DPI打印可能会导致失真,",fontFamily:"微软雅黑",textAlign:"center",lineHeight:18},printElementType:{title:"自定义文本",type:"text"}},{options:{left:457.5,top:79.5,height:13,width:120,title:"姓名",field:"name",testData:"古力娜扎",color:"#f00808",textDecoration:"underline",textAlign:"center",fields:[{text:"id",field:"id"},{text:"姓名",field:"name"},{text:"性别",field:"gender"},{text:"数量",field:"count"}]},printElementType:{title:"文本",type:"text"}},{options:{left:483,top:115,height:60,width:60,title:"123456789",textAlign:"center",textType:"qrcode"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:285,top:125,height:40,width:175,title:"123456789",fontFamily:"微软雅黑",textAlign:"center",textType:"barcode"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:110,height:19,width:213,title:"所有打印元素都可已拖拽的方式来改变元素大小",fontFamily:"微软雅黑",textAlign:"center",lineHeight:18},printElementType:{title:"自定义文本",type:"text"}},{options:{left:153,top:189,height:13,width:238,title:"单击元素,右侧可自定义元素属性",textAlign:"center",fontFamily:"微软雅黑"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:190.5,height:13,width:51,title:"横线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:415.5,top:190.5,height:13,width:164,title:"可以配置各属性的默认值",textAlign:"center",fontFamily:"微软雅黑"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:214.5,height:10,width:475.5},printElementType:{title:"横线",type:"hline"}},{options:{left:235.5,top:220.5,height:32,width:342,title:"自定义表格:用户可左键选中表头,右键查看可操作项,操作类似Excel,双击表头单元格可进行编辑。内容:title#field",fontFamily:"微软雅黑",textAlign:"center",lineHeight:15},printElementType:{title:"自定义文本",type:"text"}},{options:{left:156,top:265.5,height:13,width:94,title:"表头列大小可拖动",fontFamily:"微软雅黑",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:265.5,height:13,width:90,title:"红色区域可拖动",fontFamily:"微软雅黑",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:285,height:56,width:511.5,field:"table",tableFooterRepeat:"",tableBorder:"noBorder",tableHeaderBorder:"topBorder",tableHeaderCellBorder:"border",tableBodyRowBorder:"topBorder",tableFooterBorder:"topBorder",fields:[{text:"id",field:"id"},{text:"姓名",field:"name"},{text:"性别",field:"gender"},{text:"数量",field:"count"}],columns:[[{width:85.25,colspan:1,rowspan:1,checked:!0},{title:"性别",field:"gender",width:85.25,colspan:1,rowspan:1,checked:!1},{title:"姓名",field:"name",width:85.25,align:"center",colspan:1,rowspan:1,checked:!0,tableSummary:"count"},{title:"数量",field:"count",width:85.25,align:"center",colspan:1,rowspan:1,checked:!0,tableSummary:"sum"},{width:85.25,colspan:1,rowspan:1,checked:!0},{width:85.25,colspan:1,rowspan:1,checked:!0}]]},printElementType:{title:"表格",type:"table"}},{options:{left:21,top:346.5,height:61.5,width:15,title:"装订线",lineHeight:18,fixed:!0,contentPaddingTop:3.75,backgroundColor:"#ffffff"},printElementType:{type:"text"}},{options:{left:225,top:355,height:13,width:346.5,title:"自定义模块:主要为开发人员设计,能够快速,简单,实现自己功能",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:370.5,height:18,width:79,title:"配置项表格",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:225,top:385.5,height:38,width:346.5,title:"配置模块:主要为客户使用,开发人员可以配置属性,字段,标题等,客户直接使用,配置模块请参考实例2",fontFamily:"微软雅黑",lineHeight:15,textAlign:"center",color:"#d93838"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:487.5,height:13,width:123,title:"长文本会自动分页",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:507,height:40,width:511.5,field:"longText"},printElementType:{title:"长文",type:"longText"}},{options:{left:475.5,top:565.5,height:100,width:100},printElementType:{title:"矩形",type:"rect"}},{options:{left:174,top:568.5,height:13,width:90,title:"竖线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:60,top:574.5,height:100,width:10},printElementType:{title:"竖线",type:"vline"}},{options:{left:210,top:604.5,height:13,width:120,title:"横线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:130.5,top:625.5,height:10,width:277},printElementType:{title:"横线",type:"hline"}},{options:{left:364.5,top:649.5,height:13,width:101,title:"矩形",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:525,top:784.5,height:13,width:63,title:"页尾线",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:12,top:786,height:49,width:49},printElementType:{title:"html",type:"html"}},{options:{left:75,top:790.5,height:13,width:137,title:"红色原型是自动定义的Html",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}},{options:{left:334.5,top:810,height:13,width:205,title:"页眉线已上。页尾下以下每页都会重复打印",textAlign:"center"},printElementType:{title:"自定义文本",type:"text"}}],paperNumberLeft:565.5,paperNumberTop:819}]}},"8c16":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("a-modal",{attrs:{visible:t.visible,maskClosable:!1,width:t.width+"mm"},on:{cancel:t.hideModal}},[e("a-spin",{staticStyle:{"min-height":"100px"},attrs:{spinning:t.spinning}},[e("div",{attrs:{id:"preview_content_tasks"}})]),e("template",{slot:"title"},[e("a-space",[e("div",{staticStyle:{"margin-right":"20px"}},[t._v("打印预览")]),e("a-button",{attrs:{loading:t.waitShowPrinter,type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.print.apply(null,arguments)}}},[t._v("打印")]),e("a-button",{attrs:{type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.toPdf.apply(null,arguments)}}},[t._v("pdf")])],1)],1),e("template",{slot:"footer"},[e("a-button",{key:"close",attrs:{type:"info"},on:{click:t.hideModal}},[t._v(" 关闭 ")])],1)],2)},o=[],a=n("5b87"),r=a["a"],s=(n("975f"),n("2877")),l=Object(s["a"])(r,i,o,!1,null,"5b59a4ca",null);e["a"]=l.exports},9224:function(t){t.exports=JSON.parse('{"a":"0.0.57-beta26"}')},"961a":function(t,e,n){"use strict";n("1c54")},"975f":function(t,e,n){"use strict";n("c2cc")},"9ab8":function(t,e,n){"use strict";n.r(e),n.d(e,"name",(function(){return r})),n.d(e,"desc",(function(){return s})),n.d(e,"author",(function(){return l})),n.d(e,"link",(function(){return p})),n.d(e,"preview",(function(){return d})),n.d(e,"json",(function(){return g}));var i=n("5530"),o=(n("99af"),n("a15b"),n("d81d"),n("14d9"),n("b0c0"),n("2ef0")),a=n.n(o),r="多列行合并示例",s="动态数据多列行合并示例",l="54xavier",p="https://ccsimple.gitee.io/vue-plugin-hiprint/",d="/static/template7.png",c=["23年秋季","24年春季","24年秋季"],u=["必修课","选修课"],h=["张三","李四","王五","赵六","孙七","周八","吴九","郑十"],_=["男","女"],f={tableData:[],spanValues:{}},m=[a.a.random(80,120),a.a.random(180,220)];a.a.times(300,(function(t){f.tableData.push({classTime:c[t2&&void 0!==arguments[2]?arguments[2]:"210";this.visible=!0,this.spinning=!0,this.width=e.editingPanel?e.editingPanel.width:o,this.hiprintTemplate=e,this.printData=n,setTimeout((function(){t("#preview_content_custom").html(e.getHtml(n)),i.spinning=!1}),500)},print:function(){var t=this;this.waitShowPrinter=!0,this.hiprintTemplate.print(this.printData,{},{callback:function(){t.waitShowPrinter=!1}})},toPdf:function(){this.hiprintTemplate.toPdf(this.printData,"打印预览pdf")}}}}).call(this,n("1157"))},"9d58":function(t,e,n){"use strict";n("77ad")},a2c8:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s}));var i=n("b635"),o=function(t){var e=function(t){t.removePrintElementTypes("panelsProvider1"),t.addPrintElementTypes("panelsProvider1",[new i["c"].PrintElementTypeGroup("平台",[{tid:"panelsProvider1.header",title:"单据表头",data:"单据表头",type:"text",options:{testData:"单据表头",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"panelsProvider1.type",title:"单据类型",data:"单据类型",type:"text",options:{testData:"单据类型",height:16,fontSize:15,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"panelsProvider1.order",title:"订单编号",data:"XS888888888",type:"text",options:{field:"orderId",testData:"XS888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"panelsProvider1.date",title:"业务日期",data:"2020-01-01",type:"text",options:{field:"date",testData:"2020-01-01",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"panelsProvider1.barcode",title:"条形码",data:"XS888888888",type:"text",options:{field:"barcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"barcode"}},{tid:"panelsProvider1.qrcode",title:"二维码",data:"XS888888888",type:"text",options:{field:"qrcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"qrcode"}},{tid:"panelsProvider1.platform",title:"平台名称",data:"平台名称",type:"text",options:{testData:"平台名称",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"panelsProvider1.logo",title:"Logo",data:"",type:"image"}]),new i["c"].PrintElementTypeGroup("库管",[{tid:"panelsProvider1.creater",title:"制单人",data:"李四",type:"text",options:{field:"creater",testData:"李四",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"panelsProvider1.printDate",title:"打印时间",data:"2022-01-01 09:00",type:"text",options:{field:"printDate",testData:"2022-01-01 09:00",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"panelsProvider1.signer",title:"库管签字",data:"",type:"text",options:{title:"库管签字:",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}}]),new i["c"].PrintElementTypeGroup("表格/其他",[{tid:"panelsProvider1.table",title:"订单数据",type:"table",options:{field:"table",tableHeaderRepeat:"first",tableFooterRepeat:"last",fields:[{text:"名称",field:"NAME"},{text:"数量",field:"SL"},{text:"规格",field:"GG"},{text:"条码",field:"TM"},{text:"单价",field:"DJ"},{text:"金额",field:"JE"}]},editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,isEnableEditField:!0,isEnableContextMenu:!0,isEnableInsertRow:!0,isEnableDeleteRow:!0,isEnableInsertColumn:!0,isEnableDeleteColumn:!0,isEnableMergeCell:!0,columns:[[{title:"名称",align:"center",field:"NAME",width:150},{title:"数量",align:"center",field:"SL",width:80},{title:"规格",align:"center",field:"GG",width:80,checked:!1},{title:"条码",align:"center",field:"TM",width:100,checked:!1},{title:"单价",align:"center",field:"DJ",width:100},{title:"金额",align:"center",field:"JE",width:100,checked:!1}]],rowsColumnsMerge:function(t,e,n){return 0==n?[1,t.INDEX%2==1?2:1]:n>0&&n<2?[t.INDEX%2==1?0:1,1]:[t.INDEX%2==1?2:0,1]},footerFormatter:function(t,e,n,i){return n&&n["totalCap"]?''.concat("应收金额大写: "+n["totalCap"],""):'应收金额大写: '}},{tid:"panelsProvider1.customText",title:"文本",customText:"自定义文本",custom:!0,type:"text"},{tid:"panelsProvider1.longText",title:"长文本",type:"longText",options:{field:"test.longText",width:200,testData:"长文本分页/不分页测试"}}]),new i["c"].PrintElementTypeGroup("辅助",[{tid:"panelsProvider1.hline",title:"横线",type:"hline"},{tid:"panelsProvider1.vline",title:"竖线",type:"vline"},{tid:"panelsProvider1.rect",title:"矩形",type:"rect"},{tid:"panelsProvider1.oval",title:"椭圆",type:"oval"}])])};return{addElementTypes:e}},a=function(t){var e=function(t){t.removePrintElementTypes("panelsProvider2"),t.addPrintElementTypes("panelsProvider2",[new i["c"].PrintElementTypeGroup("常规",[{tid:"panelsProvider2.header",title:"单据表头",data:"单据表头",type:"text",options:{testData:"单据表头",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"panelsProvider2.type",title:"单据类型",data:"单据类型",type:"text",options:{testData:"单据类型",height:16,fontSize:15,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"panelsProvider2.order",title:"订单编号",data:"XS888888888",type:"text",options:{field:"orderId",testData:"XS888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"panelsProvider2.date",title:"业务日期",data:"2020-01-01",type:"text",options:{field:"date",testData:"2020-01-01",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"panelsProvider2.barcode",title:"条形码",data:"XS888888888",type:"text",options:{field:"barcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"barcode"}},{tid:"panelsProvider2.qrcode",title:"二维码",data:"XS888888888",type:"text",options:{field:"qrcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"qrcode"}},{tid:"panelsProvider2.platform",title:"平台名称",data:"平台名称",type:"text",options:{testData:"平台名称",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"panelsProvider2.image",title:"Logo",data:"",type:"image"}]),new i["c"].PrintElementTypeGroup("客户",[{tid:"panelsProvider2.khname",title:"客户名称",data:"高级客户",type:"text",options:{field:"name",testData:"高级客户",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"panelsProvider2.tel",title:"客户电话",data:"18888888888",type:"text",options:{field:"tel",testData:"18888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}}]),new i["c"].PrintElementTypeGroup("表格/其他",[{tid:"panelsProvider2.table",title:"订单数据",type:"table",options:{field:"table",fields:[{text:"名称",field:"NAME"},{text:"数量",field:"SL"},{text:"规格",field:"GG"},{text:"条码",field:"TM"},{text:"单价",field:"DJ"},{text:"金额",field:"JE"},{text:"备注",field:"DETAIL"}]},editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,columns:[[{title:"名称",align:"center",field:"NAME",width:100},{title:"数量",align:"center",field:"SL",width:100},{title:"条码",align:"center",field:"TM",width:100},{title:"规格",align:"center",field:"GG",width:100},{title:"单价",align:"center",field:"DJ",width:100},{title:"金额",align:"center",field:"JE",width:100},{title:"备注",align:"center",field:"DETAIL",width:100}]],footerFormatter:function(t,e,n,i){return n&&n["totalCap"]?''.concat("应收金额大写: "+n["totalCap"],""):'应收金额大写: '}},{tid:"panelsProvider2.customText",title:"文本",customText:"自定义文本",custom:!0,type:"text"},{tid:"panelsProvider2.longText",title:"长文本",type:"longText",options:{field:"test.longText",width:200,testData:"长文本分页/不分页测试"}}]),new i["c"].PrintElementTypeGroup("辅助",[{tid:"panelsProvider2.hline",title:"横线",type:"hline"},{tid:"panelsProvider2.vline",title:"竖线",type:"vline"},{tid:"panelsProvider2.rect",title:"矩形",type:"rect"},{tid:"panelsProvider2.oval",title:"椭圆",type:"oval"}])])};return{addElementTypes:e}},r=[o(),a()],s=[{name:"设计1",type:1,value:"panelsProvider1"},{name:"设计2",type:2,value:"panelsProvider2"}]},a41b:function(t,e,n){t.exports=n.p+"static/img/v_img.d7cff5bd.svg"},a6b2:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",[e("a-button",{attrs:{type:"primary"},on:{click:t.show}},[t._v(" 查看模板json ")]),e("a-modal",{attrs:{visible:t.visible,maskClosable:!1},on:{cancel:t.hideModal}},[e("a-spin",{staticStyle:{"min-height":"100px"},attrs:{spinning:t.spinning}},[e("a-textarea",{staticStyle:{width:"40vw",height:"50vh"},model:{value:t.jsonOut,callback:function(e){t.jsonOut=e},expression:"jsonOut"}})],1),e("template",{slot:"title"},[e("a-space",[e("div",{staticStyle:{"margin-right":"20px"}},[t._v("JSON")]),e("a-switch",{attrs:{"checked-children":"tid模式","un-checked-children":"默认"},on:{change:t.onModeChange},model:{value:t.tidMode,callback:function(e){t.tidMode=e},expression:"tidMode"}}),e("a-switch",{attrs:{"checked-children":"美化","un-checked-children":"压缩"},on:{change:t.onModeChange},model:{value:t.beautify,callback:function(e){t.beautify=e},expression:"beautify"}})],1)],1),e("template",{slot:"footer"},[e("a-button",{key:"close",attrs:{type:"info"},on:{click:t.hideModal}},[t._v(" 关闭 ")])],1)],2)],1)},o=[],a=(n("e9c4"),{name:"JSONView",props:{template:{type:Object}},data:function(){return{visible:!1,spinning:!0,jsonOut:"",tidMode:!1,beautify:!1}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{hideModal:function(){this.visible=!1},show:function(){var t=this;this.visible=!0,this.spinning=!0,setTimeout((function(){var e=t.tidMode?t.template.getJsonTid():t.template.getJson(),n=t.beautify?2:0;t.jsonOut=JSON.stringify(e,null,n),t.spinning=!1}),500)},onModeChange:function(){this.show()}}}),r=a,s=(n("9d58"),n("2877")),l=Object(s["a"])(r,i,o,!1,null,"24a206ed",null);e["a"]=l.exports},a6b8:function(t,e,n){},ac07:function(t,e,n){"use strict";e["a"]={totalCap:"壹佰元整",logo:"https://portrait.gitee.com/uploads/avatars/user/1800/5400665_CcSimple_1591166830.png!avatar60",barcode:"XS888888888",qrcode:"0123456789",table:[{INDEX:"1",NAME:"测试商品01",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"2",NAME:"测试商品02",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"3",NAME:"测试商品03",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"4",NAME:"测试商品04",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"5",NAME:"测试商品05",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"6",NAME:"测试商品06",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"7",NAME:"测试商品07",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"8",NAME:"测试商品08",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"9",NAME:"测试商品09",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"10",NAME:"测试商品10",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"11",NAME:"测试商品11",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"12",NAME:"测试商品12",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"13",NAME:"测试商品13",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"14",NAME:"测试商品14",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"15",NAME:"测试商品15",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"16",NAME:"测试商品16",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"17",NAME:"测试商品17",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"18",NAME:"测试商品18",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"19",NAME:"测试商品19",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"20",NAME:"测试商品20",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"21",NAME:"测试商品21",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"22",NAME:"测试商品22",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"23",NAME:"测试商品23",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"24",NAME:"测试商品24",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"25",NAME:"测试商品25",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"26",NAME:"测试商品26",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"27",NAME:"测试商品27",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"28",NAME:"测试商品28",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"29",NAME:"测试商品29",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"},{INDEX:"30",NAME:"测试商品30",SL:2,GG:"1*24g",TM:"2O22010100110",DJ:"6.8",JE:"13.6"}]}},aeb8:function(t,e,n){"use strict";n.r(e),n.d(e,"name",(function(){return i})),n.d(e,"desc",(function(){return o})),n.d(e,"author",(function(){return a})),n.d(e,"link",(function(){return r})),n.d(e,"preview",(function(){return s})),n.d(e,"extendCss",(function(){return l})),n.d(e,"printData",(function(){return p})),n.d(e,"json",(function(){return d}));var i="自定义渲染表格",o="不一样的表格显示效果",a="群友提供",r="https://github.com/CcSimple",s="/static/template4.png",l="",p={title:"XXXX有限公司",orderId:"XY202304001",workId:"GLSW2023001",work_info:[{workId:"GLSW2023001",order_date:"2023-06-03",customer:"广州戈蓝生物科技有限公司",quality:"做工精细注意细节",delivery_date:"2023-06-31"}],printDate:"2023/06/03 12:00:00",creater:"张三",checker:"李四",product_info:[{product_type:"精装盒",product_name:"Benggre臻护凝时皮肤管理套",product_size:"380*280*45",product_quantity:1e3,product_packing:"纸包",workmanship:"手工、粘、啤",yinshuase:"四色",wenjian:"新",yangpin:"有",remark:"不明白请及时问清楚",material:[{type_name:"面纸",name:"350克冰白珠光纸",quantity:1400,size:"787*880(各拼一个)",warkmanship:"哑胶、浮雕烫金、烫金、击凸、单面印"},{type_name:"内盒卡纸",name:"350克单铜",quantity:2300,size:"787*880(各拼一个)",warkmanship:""}]},{product_type:"精装盒",product_name:"Benggre肌肤水润嫩滑肌套",product_size:"380*280*45",product_quantity:1e3,product_packing:"纸包",workmanship:"哑胶、浮雕烫金、烫金、击凸、手工、粘、啤、单面印",yinshuase:"四色",wenjian:"新",yangpin:"有",remark:"不明白请及时问清楚",material:[{type_name:"面纸",name:"350克冰白珠光纸",quantity:1400,size:"787*880(各拼一个)",warkmanship:"哑胶、浮雕烫金、烫金、击凸、单面印"},{type_name:"内盒卡纸",name:"350克单铜",quantity:2300,size:"787*880(各拼一个)",warkmanship:""}]}],order_remark:"Benggre臻护凝时皮肤管理套 (尺寸:380*280*45数量1000个)2、Benggre肌肤水润嫩滑肌套 (尺寸:380*280*45数量1000个)3、Benggre光感焕肤套 (尺寸:340*260*45数量1000个)4、Benggre三纹鱼舒缓倍护能量套 (尺寸:380*280*45数量1000个):350克冰白珠光纸四色印刷,工艺烫金、佛雕烫金、激凸,内盒350克单铜过哑膜啤折盒,内有吸塑要放吸塑进去注意质量不要开胶烫金不清晰磨花等情况。跟进一下客户的纸箱"},d={panels:[{index:"0",name:"1",height:296,width:210,paperHeader:"66",paperFooter:813,printElements:[{options:{left:145,top:12.5,height:19.5,width:316.5,field:"title",testData:"xxxxx有限公司",fontSize:20.25,letterSpacing:6,fontWeight:"700",textContentVerticalAlign:"middle",hideTitle:!0,title:"企业名称",right:461.25,bottom:33,vCenter:303,hCenter:23.25,coordinateSync:!1,widthHeightSync:!1,qrCodeLevel:0,textAlign:"center"},printElementType:{title:"企业名称",type:"text"}},{options:{left:507,top:15,height:42,width:42,field:"workId",testData:"MGPT2023002",fontSize:12,lineHeight:18,textType:"qrcode",title:"二维码",right:549,bottom:51,vCenter:528,hCenter:30,coordinateSync:!1,widthHeightSync:!1,qrCodeLevel:0},printElementType:{title:"二维码",type:"text"}},{options:{left:247.5,top:37.5,height:19.5,width:100.5,title:"工程单",right:347.25,bottom:42.75,vCenter:297,hCenter:37.875,coordinateSync:!1,widthHeightSync:!1,fontSize:18,fontWeight:"400",letterSpacing:9,textAlign:"center",textContentVerticalAlign:"middle",lineHeight:18,qrCodeLevel:0},printElementType:{title:"文本",type:"text"}},{options:{left:13.5,top:45,height:16,width:120,field:"orderId",testData:"XY20230602001",fontSize:6.75,textAlign:"center",textContentVerticalAlign:"middle",title:"订单编号",right:124.5,bottom:60.25,vCenter:64.5,hCenter:52.25,coordinateSync:!1,widthHeightSync:!1,qrCodeLevel:0},printElementType:{title:"订单编号",type:"text"}},{options:{left:7.5,top:61.5,height:9,width:577.5,right:96.75,bottom:64.5,vCenter:51.75,hCenter:60},printElementType:{title:"横线",type:"hline"}},{options:{left:28.5,top:70.5,height:36,width:538.5,field:"work_info",fields:[{text:"订单日期",field:"order_date"},{text:"工程单号",field:"workId"},{text:"客户名称",field:"customer"},{text:"交货日期",field:"delivery_date"},{text:"质量要求",field:"quality"}],right:578.5,bottom:109.5,vCenter:303.5,hCenter:91.5,coordinateSync:!1,widthHeightSync:!1,columns:[[{width:78.01380865921793,title:"订单日期",field:"order_date",checked:!0,columnId:"order_date",fixed:!1,rowspan:1,colspan:1,align:"center"},{width:82.37420460893856,title:"工程单号",field:"workId",checked:!0,columnId:"workId",fixed:!1,rowspan:1,colspan:1,align:"center"},{width:164.95573673184356,title:"客户名称",field:"customer",checked:!0,columnId:"customer",fixed:!1,rowspan:1,colspan:1,align:"left",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:90.0673840782123,title:"交货日期",field:"delivery_date",checked:!0,columnId:"delivery_date",fixed:!1,rowspan:1,colspan:1,align:"center"},{width:123.08886592178769,title:"质量要求",field:"quality",checked:!0,columnId:"quality",fixed:!1,rowspan:1,colspan:1,align:"left",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""}]]},printElementType:{title:"订单信息(表格)",type:"table",editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,isEnableEditField:!0,isEnableContextMenu:!0,isEnableInsertRow:!0,isEnableDeleteRow:!0,isEnableInsertColumn:!0,isEnableDeleteColumn:!0,isEnableMergeCell:!0}},{options:{left:25.5,top:123,height:126,width:546,tableFooterRepeat:"no",field:"product_info",fields:[{text:"类型",field:"product_type"}],right:573,bottom:248.25,vCenter:300,hCenter:185.25,coordinateSync:!1,widthHeightSync:!1,tableHeaderRepeat:"none",tableBorder:"noBorder",tableHeaderBorder:"noBorder",tableHeaderCellBorder:"noBorder",tableBodyRowBorder:"noBorder",tableBodyCellBorder:"noBorder",tableFooterBorder:"noBorder",tableFooterCellBorder:"noBorder",columns:[[{width:546,title:"类型",field:"product_type",checked:!0,columnId:"product_type",fixed:!1,rowspan:1,colspan:1,align:"left",renderFormatter:"function(value,row,index,options){\n let rowTemplate = '';\n rowTemplate += `\n
            \n
            \n 产品类型:\n ${row.product_type}\n
            \n
            \n 产品名称:\n ${row.product_name}\n
            \n
            \n 产品尺寸:\n ${row.product_size}\n
            \n
            \n 订单数量:\n ${row.product_quantity}\n
            \n
            \n 包装方式:\n ${row.product_packing}\n
            \n
            \n 印刷色:\n ${row.yinshuase}\n
            \n
            \n 文件:\n ${row.wenjian}\n
            \n
            \n 样品:\n ${row.yangpin}\n
            \n
            \n 印后工艺:\n ${row.workmanship}\n
            \n
            \n 注意事项:\n ${row.remark}\n
            \n
            \n
            \n
            类型
            \n
            材料名称
            \n
            尺寸
            \n
            数量
            \n
            材料工艺
            \n
            `;\n for (var i = 0; i < row.material?.length; i++) {\n rowTemplate += `\n
            \n
            ${row.material[i].type_name}
            \n
            ${row.material[i].name}
            \n
            ${row.material[i].size}
            \n
            ${row.material[i].quantity}
            \n
            ${row.material[i].warkmanship}
            \n
            \n `;\n }\n rowTemplate += `
            `;\n return rowTemplate;\n}",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""}]]},printElementType:{title:"产品资料",type:"table",editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,isEnableEditField:!0,isEnableContextMenu:!0,isEnableInsertRow:!0,isEnableDeleteRow:!0,isEnableInsertColumn:!0,isEnableDeleteColumn:!0,isEnableMergeCell:!0}},{options:{left:22.5,top:265.5,height:177,width:538.5,right:567,bottom:522.75,vCenter:297.75,hCenter:434.25},printElementType:{title:"矩形",type:"rect"}},{options:{left:30,top:268.5,height:27,width:82.5,title:"订单备注",right:117.75,bottom:501,vCenter:76.5,hCenter:487.5,coordinateSync:!1,widthHeightSync:!1,hideTitle:!0,fontSize:12,textContentVerticalAlign:"middle",qrCodeLevel:0},printElementType:{title:"文本",type:"text"}},{options:{left:36,top:304.5,height:124.5,width:511.5,right:553.5,bottom:509.25,vCenter:297.75,hCenter:432.75,field:"order_remark",coordinateSync:!1,widthHeightSync:!1,hideTitle:!0,fontFamily:"SimSun",letterSpacing:2.25,qrCodeLevel:0},printElementType:{title:"文本",type:"text"}},{options:{left:307.5,top:450,height:16,width:120,field:"creater",testData:"李四",fontSize:6.75,textAlign:"left",textContentVerticalAlign:"middle",title:"制单人",right:419.25,bottom:598,vCenter:359.25,hCenter:590},printElementType:{title:"制单人",type:"text"}},{options:{left:429,top:450,height:16,width:120,field:"checker",testData:"赵五",fontSize:6.75,textContentVerticalAlign:"middle",title:"审核",right:526.5,bottom:269.5,vCenter:466.5,hCenter:261.5,coordinateSync:!1,widthHeightSync:!1,qrCodeLevel:0},printElementType:{title:"审核员",type:"text"}},{options:{left:7.5,top:814.5,height:16,width:168,field:"printDate",testData:"2022-01-01 09:00",fontSize:6.75,textAlign:"left",textContentVerticalAlign:"middle",title:"打印时间",right:147,bottom:833.5,vCenter:77.25,hCenter:825.5},printElementType:{title:"打印时间",type:"text"}}],paperNumberLeft:300,paperNumberTop:816,paperNumberContinue:!0,watermarkOptions:{content:"",fillStyle:"rgba(184, 184, 184, 0.3)",fontSize:"14px",rotate:25,width:200,height:200,timestamp:!0,format:"YYYY-MM-DD HH:mm"}}]};e["default"]={preview:s,name:i,desc:o,author:a,link:r,extendCss:l,printData:p,json:d}},b3a1:function(t,e,n){"use strict";(function(t){n("7db0"),n("b0c0"),n("d3b7"),n("25f0");e["a"]=function(){function e(){this.name="fontSize"}return e.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},e.prototype.createTarget=function(){var e=[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72],n='\n ';return e.forEach((function(t){n+='\n "})),this.target=t('
            \n
            \n 字体大小\n
            \n
            \n \n
            \n
            '),this.target.find(".auto-submit").append(t(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}()}).call(this,n("1157"))},b635:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n("4474");n.d(e,"c",(function(){return i["b"]})),n.d(e,"a",(function(){return i["a"]}));n("e562"),n("568c"),n("f893"),n("f45d");var o=n("9224"),a=function(){console.log("disAutoConnect"),window.autoConnect=!1,window.hiwebSocket&&window.hiwebSocket.hasIo()&&window.hiwebSocket.stop()},r={disAutoConnect:a,install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$hiPrint",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n||a();var o=t.prototype||t.config.globalProperties;o[e]=i["b"],o.$print=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i["a"],e=arguments.length>1?arguments[1]:void 0;i["b"].init({providers:[new t]});for(var n=new i["b"].PrintTemplate({template:e}),o=arguments.length,a=new Array(o>2?o-2:0),r=2;r0&&void 0!==arguments[0]?arguments[0]:i["a"],e=arguments.length>1?arguments[1]:void 0;i["b"].init({providers:[new t]});for(var n=new i["b"].PrintTemplate({template:e}),o=arguments.length,a=new Array(o>2?o-2:0),r=2;r'},type:"html"},{tid:"defaultModule.customText",title:"自定义文本",customText:"自定义文本",custom:!0,type:"text"}]),new t.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"},{tid:"defaultModule.barcode",title:"条形码",type:"barcode"},{tid:"defaultModule.qrcode",title:"二维码",type:"qrcode"}])])};return{addElementTypes:n}}}},cb87:function(t,e,n){"use strict";n.r(e),n.d(e,"name",(function(){return i})),n.d(e,"desc",(function(){return o})),n.d(e,"author",(function(){return a})),n.d(e,"link",(function(){return r})),n.d(e,"preview",(function(){return s})),n.d(e,"printData",(function(){return l})),n.d(e,"json",(function(){return p}));var i="一行多组",o="条码、标签A4纸铺满打印demo",a="54xavier",r="https://ccsimple.gitee.io/vue-plugin-hiprint/",s="/static/template2.png",l={table:[{name:"Apple iPhone 13 Pro Max",type:"Mobile Phone",barcode:"190199829853"},{name:"Samsung Galaxy S21 Ultra",type:"Mobile Phone",barcode:"8801643871977"},{name:"Sony WH-1000XM4 Wireless Headphones",type:"Headphones",barcode:"027242919905"},{name:"Lenovo ThinkPad X1 Carbon Gen 9",type:"Laptop",barcode:"195235458521"},{name:"Apple iPad Air",type:"Tablet",barcode:"190199855659"},{name:"Dell XPS 13",type:"Laptop",barcode:"884116382030"},{name:"Amazon Echo Dot (3rd Gen)",type:"Smart Speaker",barcode:"841667155635"},{name:"Google Nest Hub",type:"Smart Display",barcode:"193575001505"},{name:"Samsung QN90A Neo QLED TV",type:"Television",barcode:"887276496535"},{name:"LG CX OLED TV",type:"Television",barcode:"719192633020"},{name:"PlayStation 5",type:"Gaming Console",barcode:"711719541042"},{name:"Xbox Series X",type:"Gaming Console",barcode:"889842687482"},{name:"Apple Watch Series 7",type:"Smartwatch",barcode:"190199874322"},{name:"Fitbit Charge 5",type:"Fitness Tracker",barcode:"811138039822"},{name:"Bose QuietComfort 35 II",type:"Headphones",barcode:"017817770613"},{name:"Logitech MX Master 3",type:"Computer Mouse",barcode:"097855149969"},{name:"Nintendo Switch",type:"Gaming Console",barcode:"04549688180"},{name:"HP OfficeJet Pro 9015e All-in-One Printer",type:"Printer",barcode:"194721013844"},{name:"Canon EOS R5",type:"Mirrorless Camera",barcode:"013803338279"},{name:"Sony WH-1000XM3 Wireless Headphones",type:"Headphones",barcode:"027242908676"},{name:"Bose SoundLink Revolve+",type:"Bluetooth Speaker",barcode:"017817744171"},{name:"Nest Learning Thermostat",type:"Smart Thermostat",barcode:"813917021952"},{name:"LG C1 OLED TV",type:"Television",barcode:"719192641615"},{name:"Samsung Galaxy Tab S7",type:"Tablet",barcode:"887276447402"},{name:"Dyson V11 Absolute Cordless Vacuum",type:"Vacuum Cleaner",barcode:"885609020334"},{name:"GoPro HERO10 Black",type:"Action Camera",barcode:"818279029168"},{name:"Microsoft Surface Laptop 4",type:"Laptop",barcode:"889842724245"},{name:"Apple AirPods Pro",type:"Wireless Earbuds",barcode:"190199246850"},{name:"Sony A7S III",type:"Mirrorless Camera",barcode:"027242919925"},{name:"Samsung Galaxy Watch 4",type:"Smartwatch",barcode:"887276531088"},{name:"Bose SoundSport Wireless Earbuds",type:"Wireless Earbuds",barcode:"017817731355"},{name:"NVIDIA GeForce RTX 3080",type:"Graphics Card",barcode:"812674023590"},{name:"Sony WH-CH710N Wireless Headphones",type:"Headphones",barcode:"027242917711"},{name:"Bose QuietComfort Earbuds",type:"Wireless Earbuds",barcode:"017817788293"},{name:"Apple MacBook Pro 16-inch",type:"Laptop",barcode:"190199397010"},{name:"Samsung Galaxy Note 20 Ultra",type:"Mobile Phone",barcode:"887276395219"},{name:"Google Pixel 6",type:"Mobile Phone",barcode:"842776101253"},{name:"Microsoft Xbox Wireless Controller",type:"Gaming Controller",barcode:"889842493038"},{name:"Logitech G502 HERO Gaming Mouse",type:"Gaming Mouse",barcode:"097855135391"},{name:"Sony WF-1000XM4 Wireless Earbuds",type:"Wireless Earbuds",barcode:"027242920023"}]},p={panels:[{index:0,height:297,width:210,paperHeader:0,paperFooter:842,printElements:[{options:{left:20,top:20,height:56,width:555,field:"table",tableHeaderRepeat:"none",tableBorder:"noBorder",tableBodyRowBorder:"noBorder",tableBodyCellBorder:"noBorder",gridColumns:2,gridColumnsGutter:3,fields:[{text:"商品名称",field:"name"},{text:"商品编码",field:"code"}],columns:[[{title:"商品名称",field:"name",checked:!0,renderFormatter:"function(value,row,index,options){return `商品名:${row.name || '测试商品名'}
            条码:${row.barcode || '123456'}`}"},{title:"商品条码",field:"barcode",checked:!0,tableTextType:"barcode"}]]},printElementType:{title:"表格",type:"table"}}],paperNumberLeft:565.5,paperNumberTop:819}]};e["default"]={preview:s,name:i,desc:o,author:a,link:r,printData:l,json:p}},cc13:function(t,e,n){"use strict";n.r(e),n.d(e,"name",(function(){return i})),n.d(e,"desc",(function(){return o})),n.d(e,"author",(function(){return a})),n.d(e,"link",(function(){return r})),n.d(e,"preview",(function(){return s})),n.d(e,"printData",(function(){return l})),n.d(e,"json",(function(){return p}));var i="DM码实现",o="通过HTML元素实现DM码",a="54xavier",r="https://ccsimple.gitee.io/vue-plugin-hiprint/",s="/static/template5.png",l={DMCode1:"123456",DMCode2:"234567"},p={panels:[{index:0,name:1,height:297,width:210,paperHeader:0,paperFooter:842,printElements:[{options:{left:0,top:0,height:1,width:1,formatter:'function(t, e, printData) {\n var script = document.createElement("script");\n script.setAttribute("type", "text/javascript");\n script.setAttribute("src", "https://datalog.github.io/demo/datamatrix-svg/datamatrix.min.js");\n return script;\n }'},printElementType:{title:"DATAMatrix依赖",type:"html"}},{options:{left:0,top:0,height:1,width:1,formatter:'function(t, e, printData) {\n var script = document.createElement("script");\n script.setAttribute("type", "text/javascript");\n script.setAttribute("src", "https://cdnjs.cloudflare.com/ajax/libs/bwip-js/4.0.0/bwip-js-min.js");\n return script;\n }'},printElementType:{title:"bwip-js依赖",type:"html"}},{options:{left:12,top:12,height:200,width:200,formatter:'function(t, e, printData) {\n if (window.DATAMatrix) {\n var svgNode = DATAMatrix({msg: printData?.DMCode1 || "testData", dim: 267});\n return svgNode;\n } else {\n return "
            点击打印预览查看
            ";\n }\n }',coordinateSync:!1,widthHeightSync:!1},printElementType:{title:"html",type:"html"}},{options:{left:230,top:12,height:200,width:200,formatter:'function(t, e, printData) {\n if (window.bwipjs) {\n var canvas = document.createElement("canvas");\n var _bwip = bwipjs.toCanvas(canvas, {\n bcid: "datamatrix",\n text: printData?.DMCode2 || "testData",\n scale: 3,\n width: 30,\n height: 30,\n });\n return ``;\n } else {\n return "
            点击打印预览查看
            ";\n }\n }',right:566.24609375,bottom:221.24609375,vCenter:466.24609375,hCenter:121.24609375,coordinateSync:!1,widthHeightSync:!1},printElementType:{title:"html",type:"html"}},{options:{left:12,top:212,height:12,width:200,title:"datamatrix-svg",textAlign:"center",right:119.75,bottom:294.24609375,vCenter:82.75,hCenter:288.24609375,coordinateSync:!1,widthHeightSync:!1,qrCodeLevel:0},printElementType:{title:"自定义文本",type:"text"}},{options:{left:230,top:212,height:12,width:200,title:"bwip-js",textAlign:"center",right:494,bottom:327.24609375,vCenter:457,hCenter:321.24609375,coordinateSync:!1,widthHeightSync:!1,qrCodeLevel:0},printElementType:{title:"自定义文本",type:"text"}},{options:{left:12,top:230,height:12,width:418,title:"说明:此处模版以不可见 html 元素加载 datamatrix-svg 及 bwip-js ,故第一次打开无法显示预览,但后续的 print api 能够正常显示,你可以在你的项目中全局加载所需依赖,保证设计、预览时能加载到,即可删除用于引入依赖的html元素。使用 print2 需要在 electron-hiprint 项目渲染层中添加该依赖,否则客户端首次打印都无法正常渲染对应的元素"},printElementType:{title:"说明",type:"text"}}],paperNumberLeft:565.5,paperNumberTop:819,paperNumberContinue:!0,watermarkOptions:{}}]};e["default"]={preview:s,name:i,desc:o,author:a,link:r,printData:l,json:p}},cc1f:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("a-modal",{attrs:{visible:t.visible,maskClosable:!1,width:t.width+"mm"},on:{cancel:t.hideModal}},[e("a-spin",{staticStyle:{"min-height":"100px"},attrs:{spinning:t.spinning}},[e("div",{attrs:{id:"preview_content_custom"}})]),e("template",{slot:"title"},[e("a-space",[e("div",{staticStyle:{"margin-right":"20px"}},[t._v("打印预览")]),e("a-button",{attrs:{loading:t.waitShowPrinter,type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.print.apply(null,arguments)}}},[t._v("打印")]),e("a-button",{attrs:{type:"primary",icon:"printer"},on:{click:function(e){return e.stopPropagation(),t.toPdf.apply(null,arguments)}}},[t._v("pdf")])],1)],1),e("template",{slot:"footer"},[e("a-button",{key:"close",attrs:{type:"info"},on:{click:t.hideModal}},[t._v(" 关闭 ")])],1)],2)},o=[],a=n("0caa"),r=a["a"],s=(n("48b5"),n("2877")),l=Object(s["a"])(r,i,o,!1,null,"104b3565",null);e["a"]=l.exports},cf05:function(t,e,n){t.exports=n.p+"static/img/logo.82b9c7a5.png"},cf45:function(t,e,n){"use strict";n.r(e),n.d(e,"name",(function(){return i})),n.d(e,"desc",(function(){return o})),n.d(e,"author",(function(){return a})),n.d(e,"link",(function(){return r})),n.d(e,"preview",(function(){return s})),n.d(e,"printData",(function(){return l})),n.d(e,"json",(function(){return p}));var i="合并示例",o="首列合并示例",a="CcSimple",r="https://github.com/CcSimple",s="/static/template3.png",l={table:[{code:2223068061,uName:"张三",tName:"李丽",id:217001,name2:"普通课程名称 1",type:"学位课",time:48,score:3,score2:75,start:"20年秋季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:258905,name2:"普通课程名称 2",type:"学位课",time:32,score:2,score2:84,start:"21年春季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:217502,name2:"普通课程名称 3",type:"学位课",time:16,score:1,score2:91,start:"20年秋季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:258904,name2:"高级不普通的课程名称 1",type:"学位课",time:32,score:2,score2:86,start:"20年秋季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:258903,name2:"高级不普通的课程名称 2",type:"学位课",time:48,score:3,score2:90,start:"20年秋季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:259307,name2:"高级不普通的课程名称 3",type:"学位课",time:32,score:2,score2:69,start:"20年秋季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:258906,name2:"高级不普通的课程名称 4",type:"学位课",time:32,score:2,score2:91,start:"21年春季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:217503,name2:"普通的课程名称 6",type:"学位课",time:32,score:2,score2:80,start:"21年春季",tName2:"张丽莎",type2:"考试"},{code:2223068061,uName:"张三",tName:"李丽",id:216001,name2:"普通的课程名称 7",type:"必修环节",time:16,score:1,score2:79,start:"21年春季",tName2:"张丽莎",type2:"考查"},{code:2223068061,uName:"张三",tName:"李丽",id:258919,name2:"普通的课程名称 8",type:"必修环节",time:0,score:6,score2:0,start:"21年秋季",tName2:"张丽莎",type2:""},{code:2223068061,uName:"张三",tName:"李丽",id:258915,name2:"高级不普通的课程名称 6",type:"选修课",time:16,score:1,score2:87,start:"20年秋季",tName2:"张丽莎",type2:"考查"},{code:2223068061,uName:"张三",tName:"李丽",id:258911,name2:"高级不普通的课程名称 7",type:"选修课",time:32,score:2,score2:91,start:"20年秋季",tName2:"张丽莎",type2:"考查"},{code:2223068061,uName:"张三",tName:"李丽",id:258907,name2:"高级不普通的课程名称 8",type:"选修课",time:32,score:2,score2:82,start:"20年秋季",tName2:"张丽莎",type2:"考试"}]},p={panels:[{index:0,name:1,height:296.6,width:210,paperHeader:24,paperFooter:805.5,printElements:[{options:{left:15,top:42,height:64.5,width:555,field:"table",coordinateSync:!1,widthHeightSync:!1,right:565,bottom:96,vCenter:290,hCenter:69,tableHeaderRowHeight:30,tableBodyRowHeight:30,rowsColumnsMerge:"function (data, col, colIndex, rowIndex) {\n console.log('data', data);\n console.log('col', col);\n console.log('colIndex', colIndex);\n console.log('rowIndex', rowIndex);\n // 返回一个数组,参数一为行(rowspan)合并数,参数二为列(colspan)合并数, 被合并的行或者列值设为0\n if (rowIndex >= 0 && rowIndex < 8) {\n return colIndex == 0 ? [rowIndex == 0 ? 8 - 0 : 0, 1] : [1, 1];\n } else if (rowIndex >= 8 && rowIndex < 10) {\n return colIndex == 0 ? [rowIndex == 8 ? 10 - 8 : 0, 1] : [1, 1];\n } else if (rowIndex >= 10 && rowIndex < 13) {\n return colIndex == 0 ? [rowIndex == 10 ? 13 - 10 : 0, 1] : [1, 1];\n } else {\n return [1, 1]\n }\n}",rowsColumnsMergeClean:!0,tableHeaderRepeat:"first",columns:[[{width:51.517525000000006,title:"课程
            类别",field:"type",checked:!0,columnId:"type",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:125.68322499999994,title:"课程编号",field:"id",checked:!0,columnId:"id",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:212.86675000000005,title:"课程名称",field:"name2",checked:!0,columnId:"name2",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:55.02175000000007,title:"学时",field:"time",checked:!0,columnId:"time",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:54.910749999999936,title:"学分",field:"score",checked:!0,columnId:"score",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:100,title:"开课时间",field:"start",checked:!0,columnId:"start",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:100,title:"任课老师",field:"tName2",checked:!0,columnId:"tName2",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:100,title:"考核成绩",field:"score2",checked:!0,columnId:"score2",fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""},{width:100,title:"备注",checked:!0,fixed:!1,rowspan:1,colspan:1,align:"center",tableColumnHeight:"30",tableTextType:"text",tableBarcodeMode:"CODE128A",tableQRCodeLevel:0,tableSummaryTitle:!0,tableSummary:""}]]},printElementType:{title:"订单数据",type:"table",editable:!0,columnDisplayEditable:!0,columnDisplayIndexEditable:!0,columnTitleEditable:!0,columnResizable:!0,columnAlignEditable:!0,isEnableEditField:!0,isEnableContextMenu:!0,isEnableInsertRow:!0,isEnableDeleteRow:!0,isEnableInsertColumn:!0,isEnableDeleteColumn:!0,isEnableMergeCell:!0}}],paperNumberLeft:565.5,paperNumberTop:814.5,watermarkOptions:{}}]};e["default"]={preview:s,name:i,desc:o,author:a,link:r,printData:l,json:p}},cf8f:function(t,e,n){"use strict";n("7438")},d312:function(t,e,n){"use strict";n("4809")},d90a:function(t){t.exports=JSON.parse('{"请选择字段":"Por favor, selecciona un campo","计数":"Recuento","合计":"Suma","平均值":"Promedio","最小值":"Mínimo","最大值":"Máximo","此格式不支持该文本":"Este formato no es compatible con este texto","二维码生成失败":"Error al generar código QR","字体行高":"Altura de fuente","默认":"Predeterminado","字体":"Fuente","宋体":"SimSun","微软雅黑":"Microsoft YaHei","字体大小":"Tamaño de fuente","字体粗细":"Grosor de fuente","更细":"Más fino","粗体":"Negrita","粗体+":"Más negrita","字间距":"Espacio entre letras","左右对齐":"Justificado","居左":"Izquierda","居中":"Centrado","居右":"Derecha","两端对齐":"Justificado","标题显示隐藏":"Visualización de título","显示":"Mostrar","隐藏":"Ocultar","表格边框":"Borde de tabla","有边框":"Sí","无边框":"No","表头边框":"Borde de encabezado","左边框":"Izquierda","右边框":"Derecha","左右边框":"Izquierda y derecha","上边框":"Superior","下边框":"Inferior","上下边框":"Superior e inferior","表头单元格边框":"Borde de celda de encabezado","表尾边框":"Borde de pie de página","表尾单元格边框":"Borde de celda de pie de página","表头行高":"Altura de fila de encabezado","表头字体大小":"Tamaño de fuente de encabezado","表头字体粗细":"Grosor de fuente de encabezado","表体单元格边框":"Borde de celda de cuerpo","表体行高":"Altura de fila de cuerpo","表头背景":"Fondo de encabezado","线宽":"Ancho de línea","边框大小":"Tamaño de borde","条形码格式":"Tipo de código de barras","商品条码":"Código de barras de producto","条形码":"Código de barras","物流":"Logística","邮政和快递编码":"Código postal y de mensajería","医疗产品编码":"Código de producto médico","不常用编码":"Código inusual","附加组件":"Componente adicional","实验编码":"Código experimental","条码类型":"Tipo de código de barras","二维码类型":"Tipo de código QR","二维码容错率":"Nivel de corrección de errores de código QR","字体颜色":"Color de fuente","文本修饰":"Decoración de texto","下划线":"Subrayado","上划线":"Tachado","穿梭线":"Tachado","字段名":"Nombre de campo","请输入字段名":"Introduce el nombre del campo","标题":"Título","请输入标题":"Introduce el título","测试数据":"Datos de prueba","仅字段名称存在时有效":"Válido solo cuando existe el nombre de campo","位置坐标":"Coordenada de posición","X位置(左)":"Posición X (izquierda)","Y位置(上)":"Posición Y (superior)","同步":"Sincronizar","不同步":"No sincronizar","宽高大小":"Ancho y alto","宽":"Ancho","高":"Alto","图片地址":"URL de imagen","请输入图片地址":"Introduce la URL de la imagen","选择":"Elegir","图片缩放":"Escala de imagen","等比":"Proporcional","裁切":"Recortar","填充":"Rellenar","原始尺寸":"Tamaño original","颜色":"Color","边框颜色":"Color de borde","水印功能":"Marca de agua","水印内容":"Contenido de la marca de agua","旋转角度":"Ángulo de rotación","水平密度":"Densidad horizontal","垂直密度":"Densidad vertical","水印时间":"Hora de la marca de agua","时间格式":"Formato de hora","页码格式":"Formato del número de página","显示页码":"Mostrar número de página","页码续排":"Continuar con el número de página","续排":"Continuar","重排":"Reiniciar","每行缩进":"Sangría","显示规则":"Regla de visualización","始终隐藏":"Ocultar siempre","首页":"Primera página","奇数页":"Páginas impares","偶数页":"Páginas pares","尾页":"Última página","强制分页":"Forzar salto de página","是":"Sí","否":"No","打印规则":"Regla de impresión","保持奇数":"Mantener impares","保持偶数":"Mantener pares","分页规则":"Regla de salto de página","不分页":"Sin salto de página","移除段落左侧空白":"Eliminar espacio en blanco izquierdo","移除":"Eliminar","不移除":"No eliminar","首页页尾":"Pie de página de primera página","尾页页尾":"Pie de página de última página","偶数页页尾":"Pie de página en páginas pares","奇数页页尾":"Pie de página en páginas impares","位置固定":"Posición fija","拖动方向":"Dirección de arrastre","横向":"Horizontal","竖向":"Vertical","左偏移":"Desplazamiento izquierdo","偏移量":"Desplazamiento","最低高度":"Altura mínima","文本过短或为空时的高度":"Altura cuando el texto es demasiado corto o está vacío","隐藏规则":"Regla para ocultar","表体行边框":"Borde de fila de cuerpo","元素层级":"Índice Z","边框设置":"Ajustes de borde","实线":"Sólido","虚线":"Discontinuo","左内边距":"Relleno izquierdo","上内边距":"Relleno superior","右内边距":"Relleno derecho","下内边距":"Relleno inferior","样式":"Estilo","边框样式":"Estilo de borde","长虚线":"Discontinuo largo","短虚线":"Discontinuo corto","背景颜色":"Color de fondo","纸张方向(仅自定义纸质有效)":"Orientación del papel (solo papel personalizado)","纵向":"Vertical","上下对齐":"Alineación vertical","垂直居中":"Centrado vertical","底部":"Inferior","文本换行":"Ajuste de texto","不换行":"Sin ajuste","不换行&隐藏":"Sin ajuste y ocultar","不换行&省略":"Sin ajuste y puntos suspensivos","打印类型":"Tipo de impresión","文本":"Texto","二维码":"Código QR","字段类型":"Tipo de campo","默认(文本)":"Predeterminado (texto)","序号":"Índice","图片":"Imagen","单元格高度":"Altura de celda","条形码、二维码以及图片有效":"Código de barras, código QR e imagen son válidos","底部聚合标题":"Título de resumen","底部聚合文本":"Texto de resumen","聚合类型":"Tipo de resumen","底部聚合合并列数":"Columnas combinadas de resumen","合并列数":"Columnas combinadas","底部聚合类型左右对齐":"Alineación de resumen","整数":"Entero","保留%s位":"Mantener %s decimales","底部聚合小数":"Decimales en resumen","转大小写":"Mayúsculas o minúsculas","底部聚合类型":"Tipo de resumen","不聚合":"Sin resumen","仅文本":"Solo texto","顶部偏移":"Desplazamiento superior","一行多组":"Varios grupos en una línea","一行二列":"Una línea dos columnas","一行三列":"Una línea tres columnas","一行四列":"Una línea cuatro columnas","一行多组间隔":"Espaciado de varios grupos en una línea","表格头显示":"Visualización de encabezado de tabla","每页显示":"Mostrar por página","首页显示":"Mostrar en primera página","不显示":"No mostrar","数据类型":"Tipo de dato","日期时间":"Fecha y hora","布尔":"Booleano","格式":"Formato","格式化函数":"Función de formato","样式函数":"Función de estilo","行/列合并函数":"Función combinar fila/columna","跨页合并是否清除":"¿Borrar combinación entre páginas?","表格脚函数":"Función de pie de tabla","分组字段函数":"Función de campo de agrupación","分组头格式化函数":"Función de formato de encabezado de grupo","分组头信息":"Información de encabezado de grupo","分组脚格式化函数":"Función de formato de pie de grupo","分组脚信息":"Información de pie de grupo","多组表格脚函数":"Función de pie de tabla de varios grupos","行样式函数":"Función de estilo de fila","单元格左右对齐":"Alineación de celda","单元格上下对齐":"Alineación vertical de celda","上":"Superior","中":"Centro","表格头单元格左右对齐":"Alineación de celda de encabezado","单元格样式函数":"Función de estilo de celda","表格头样式函数":"Función de estilo de encabezado","单元格格式化函数":"Función de formato de celda","单元格渲染函数":"Función de representación de celda","自动补全":"Autocompletar","每页最大行数":"Filas máximo por página","表格脚显示":"Visualización de pie de tabla","最后显示":"Mostrar en última página","没有足够空间进行表格分页,请调整页眉/页脚线":"No hay suficiente espacio para la paginación de tablas, ajuste la línea de encabezado/pie de página","没有足够空间,显示下方内容, 可分页高度":"No hay suficiente espacio, muestre el contenido a continuación, se puede paginar la altura:","列属性":"Propiedad de columna","在上方插入行":"Insertar fila encima","在下方插入行":"Insertar fila debajo","向左方插入列":"Insertar columna a la izquierda","向右方插入列":"Insertar columna a la derecha","删除行":"Eliminar fila","删除列":"Eliminar columna","对齐":"Alinear","左":"Izquierda","左右居中":"Centrar","右":"Derecha","下":"Inferior","合并单元格":"Combinar celda","解开单元格":"Descombinar celda","条形码生成失败":"Error al generar código de barras","请检查 hiprint.init 的 provider 是否配置了":"Verifique si se ha configurado el proveedor de hiprint.init","已移除\'tableCustom\',请替换使用\'table\'详情见更新记录":"Se ha eliminado \'tableCustom\', reemplácelo por \'table\', consulte el registro de actualización para obtener detalles","确定":"Confirmar","删除":"Eliminar","连接客户端失败":"Error al conectarse al cliente","基础":"Básico","边框":"Borde","列":"Columna","高级":"Avanzado","面板排列":"Disposición del panel","排列方式":"Método de disposición","垂直间距%s":"Espaciado Vertical %s","水平间距%s":"Espaciado Horizontal %s","边框圆角":"Radio de Borde","显示码值":"Mostrar Valor del Código"}')},d950:function(t,e,n){var i={"./cn.json":"f0f4","./cn_tw.json":"83d3","./de.json":"2508","./en.json":"e088","./es.json":"d90a","./fr.json":"2394","./it.json":"06b7","./ja.json":"19d0","./ru.json":"626a"};function o(t){var e=a(t);return n(e)}function a(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="d950"},de64:function(t,e,n){"use strict";(function(t){n("caad"),n("14d9"),n("e9c4"),n("b64b"),n("d3b7"),n("25f0"),n("2532");var i,o=n("8c16"),a=n("a6b2"),r=n("b635"),s=n("9a4b"),l=n("6465"),p=n("3567"),d=n("e375");e["a"]={name:"printCustom",components:{printPreview:o["a"],jsonView:a["a"]},data:function(){return{template:null,count:1,curPaper:{type:"other",width:80,height:60},paperTypes:{A3:{width:420,height:296.6},A4:{width:210,height:296.6},A5:{width:210,height:147.6},B3:{width:500,height:352.6},B4:{width:250,height:352.6},B5:{width:250,height:175.6}},paperPopVisible:!1,paperWidth:"80",paperHeight:"60"}},computed:{curPaperType:function(){var t="other",e=this.paperTypes;for(var n in e){var i=e[n],o=this.curPaper,a=o.width,r=o.height;i.width===a&&i.height===r&&(t=n)}return t}},mounted:function(){this.init(),this.otherPaper()},methods:{init:function(){r["c"].init({providers:[p["a"]]}),t(".hiprintEpContainer").empty(),r["c"].PrintElementTypeManager.build(".hiprintEpContainer","taskProviderModule"),t("#hiprint-printTemplate").empty();var e=this.$ls.get("KEY_TEMPLATE_TASKS",l["a"]);this.template=i=new r["c"].PrintTemplate({template:e,settingContainer:"#PrintElementOptionSetting",paginationContainer:".hiprint-printPagination"}),i.design("#hiprint-printTemplate")},setPaper:function(t,e){try{Object.keys(this.paperTypes).includes(t)?(this.curPaper={type:t,width:e.width,height:e.height},i.setPaper(e.width,e.height)):(this.curPaper={type:"other",width:e.width,height:e.height},i.setPaper(e.width,e.height))}catch(n){this.$message.error("操作失败: ".concat(n))}},otherPaper:function(){var t={};t.width=this.paperWidth,t.height=this.paperHeight,this.paperPopVisible=!1,this.setPaper("other",t)},preView:function(){var t=this.curPaper.width;this.$refs.preView.show(i,d["a"],t)},print:function(){this.$createElement;if(window.hiwebSocket.opened){var t=i.getPrinterList();return console.log(t),void this.tasksPrint()}this.$error({title:"客户端未连接",content:function(t){return t("div",["连接【",hiwebSocket.host,"】失败!",t("br"),"请确保目标服务器已",t("a",{attrs:{href:"https://gitee.com/CcSimple/electron-hiprint/releases",target:"_blank"}},["下载"]),"并",t("a",{attrs:{href:"hiprint://",target:"_blank"}},["运行"]),"打印服务!"])}})},tasksPrint:function(){var t=new s["a"];t.setConcurrency(1);for(var e=[],n=this,i="open".concat(Date.now()),o=function(o){var a="task".concat(o);e.push((function(e){var r={count:o.toString()};n.realPrint(t,e,a,o,r,i)}))},a=1;a<=this.count;a++)o(a);t.addMultiple(e),this.openNotification(t,i)},realPrint:function(t,e,n,i,o,a){var s=this;s.$notification.info({key:n,placement:"topRight",duration:null,message:"正在准备打印第 ".concat(i," 张"),description:"队列运行中..."});var p=s.$ls.get("KEY_TEMPLATE_TASKS",l["a"]),d=new r["c"].PrintTemplate({template:p});d.print2(o,{printer:"",title:n}),d.on("printSuccess",(function(){var i=t.tasks.list.length>1?"准备打印下一张":"已完成打印";s.$notification.success({key:n,placement:"topRight",message:n+" 打印成功",description:i}),e(),t.isBusy()||s.$notification.close(a)})),d.on("printError",(function(){s.$notification.close(n),e(),s.$message.error("打印失败,已加入重试队列中"),t.add(s.realPrint(t,e,n,i,o))}))},openNotification:function(t,e){var n=this;n.$notification.open({key:e,message:"队列运行中...",duration:0,placement:"topLeft",description:"点击关闭所有任务",btn:function(i){return i("a-button",{props:{type:"danger",size:"small"},on:{click:function(){n.$notification.close(e),t.removeAll(),n.$message.info("已移除所有任务")}}},"关闭任务")}})},save:function(){var t=i.getJson(),e=this.$ls.get("KEY_TEMPLATE_TASKS",l["a"]);console.log(t),console.log(JSON.stringify(t)),this.$ls.set("KEY_TEMPLATE_TASKS",e),this.$message.info("保存成功")},clearPaper:function(){try{i.clear()}catch(t){this.$message.error("操作失败: ".concat(t))}}}}}).call(this,n("1157"))},e088:function(t){t.exports=JSON.parse('{"请选择字段":"Please select field","计数":"Count","合计":"Sum","平均值":"Average","最小值":"Min","最大值":"Max","此格式不支持该文本":"This format does not support this text","二维码生成失败":"QR code generation failed","字体行高":"Font Height","默认":"Default","字体":"Font","宋体":"SimSun","微软雅黑":"Microsoft YaHei","字体大小":"Font Size","字体粗细":"Font Weight","更细":"Lighter","粗体":"Bold","粗体+":"Bolder","字间距":"Letter Spacing","左右对齐":"Justified","居左":"Left","居中":"Center","居右":"Right","两端对齐":"Justified","标题显示隐藏":"Title Display","显示":"Show","隐藏":"Hide","表格边框":"Table Border","有边框":"Yes","无边框":"No","表头边框":"Header Border","左边框":"Left","右边框":"Right","左右边框":"Left & Right","上边框":"Top","下边框":"Bottom","上下边框":"Top & Bottom","表头单元格边框":"Header Cell Border","表尾边框":"Footer Border","表尾单元格边框":"Footer Cell Border","表头行高":"Header Row Height","表头字体大小":"Header Font Size","表头字体粗细":"Header Font Weight","表体单元格边框":"Body Cell Border","表体行高":"Body Row Height","表头背景":"Header Background","线宽":"Line Width","边框大小":"Border Size","条形码格式":"Barcode Type","商品条码":"Goods Barcode","条形码":"Barcode","物流":"Logistics","邮政和快递编码":"Postal and Courier Code","医疗产品编码":"Medical Product Code","不常用编码":"Uncommon Code","附加组件":"Additional Component","实验编码":"Experimental Code","条码类型":"Barcode Type","二维码类型":"QRCode Type","二维码容错率":"QRCode ErrorCorrectionLevel","字体颜色":"Font Color","文本修饰":"Text Decoration","下划线":"Underline","上划线":"Overline","穿梭线":"Line Through","字段名":"Field","请输入字段名":"Please enter field","标题":"Title","请输入标题":"Please enter title","测试数据":"Test Data","仅字段名称存在时有效":"Only valid when field name exists","位置坐标":"Position Coordinate","X位置(左)":"X Position(Left)","Y位置(上)":"Y Position(Top)","同步":"Sync","不同步":"Unsync","宽高大小":"Width & Height","宽":"Width","高":"Height","图片地址":"Image URL","请输入图片地址":"Please enter image URL","选择":"Choose","图片缩放":"Image Scale","等比":"Proportional","裁切":"Crop","填充":"Fill","原始尺寸":"Original Size","颜色":"Color","边框颜色":"Border Color","水印功能":"Watermark","水印内容":"Watermark Content","旋转角度":"Rotate Angle","水平密度":"Horizontal Density","垂直密度":"Vertical Density","水印时间":"Watermark Time","时间格式":"Time Format","页码格式":"Page Number Format","显示页码":"Show Page Number","页码续排":"Page Number Continue","续排":"Continue","重排":"Reset","每行缩进":"Indent","显示规则":"Display Rule","始终隐藏":"Always Hide","首页":"First Page","奇数页":"Odd Page","偶数页":"Even Page","尾页":"Last Page","强制分页":"Force Page Break","是":"Yes","否":"No","打印规则":"Print Rule","保持奇数":"Keep Odd","保持偶数":"Keep Even","分页规则":"Page Break Rule","不分页":"No Page Break","移除段落左侧空白":"Remove Left Blank","移除":"Remove","不移除":"No Remove","首页页尾":"First Page","尾页页尾":"Last Page","偶数页页尾":"Even Page","奇数页页尾":"Odd Page","位置固定":"Fixed Position","拖动方向":"Drag Direction","横向":"Horizontal","竖向":"Vertical","左偏移":"Left Offset","偏移量":"Offset","最低高度":"Min Height","文本过短或为空时的高度":"Height when text is too short or empty","隐藏规则":"Hide Rule","表体行边框":"Body Row Border","元素层级":"Zindex","边框设置":"Border Setting","实线":"Solid","虚线":"Dashed","左内边距":"Left Padding","上内边距":"Top Padding","右内边距":"Right Padding","下内边距":"Bottom Padding","样式":"Style","边框样式":"Border Style","长虚线":"Long Dashed","短虚线":"Short Dashed","背景颜色":"Background Color","纸张方向(仅自定义纸质有效)":"Paper Orientation (Only Custom Paper)","纵向":"Portrait","上下对齐":"Vertical Align","垂直居中":"Middle","底部":"Bottom","文本换行":"Text Wrap","不换行":"No Wrap","不换行&隐藏":"No Wrap & Hide","不换行&省略":"No Wrap & Ellipsis","打印类型":"Print Type","文本":"Text","二维码":"QRCode","字段类型":"Field Type","默认(文本)":"Default(Text)","序号":"Index","图片":"Image","单元格高度":"Cell Height","条形码、二维码以及图片有效":"Barcode, QRCode and Image are valid","底部聚合标题":"Summary Title","底部聚合文本":"Summary Text","聚合类型":"Summary Type","底部聚合合并列数":"Summary Colspan","合并列数":"Colspan","底部聚合类型左右对齐":"Summary Align","整数":"Integer","保留%s位":"Keep %s Decimal","底部聚合小数":"Summary Decimal","底部聚合格式化函数":"Summary Format Function","转大小写":"UpperCase or LowerCase","底部聚合类型":"Summary Type","不聚合":"No Summary","仅文本":"Text Only","顶部偏移":"Top Offset","一行多组":"Multi Group","一行二列":"One Line Two Column","一行三列":"One Line Three Column","一行四列":"One Line Four Column","一行多组间隔":"Multi Group Spacing","表格头显示":"Table Header Display","每页显示":"Display Per Page","首页显示":"Display On First Page","不显示":"No Display","数据类型":"Data Type","日期时间":"DateTime","布尔":"Boolean","格式":"Format","格式化函数":"Format Function","样式函数":"Style Function","行/列合并函数":"Row/Column Merge Function","跨页合并是否清除":"Clear Page Break Merge","表格脚函数":"Table Footer Function","分组字段函数":"Group Field Function","分组头格式化函数":"Group Header Format Function","分组头信息":"Group Header Info","分组脚格式化函数":"Group Footer Format Function","分组脚信息":"Group Footer Info","多组表格脚函数":"Multi Group Table Footer Function","行样式函数":"Row Style Function","单元格左右对齐":"Cell Align","单元格上下对齐":"Cell Vertical Align","上":"Top","中":"Middle","表格头单元格左右对齐":"Header Cell Align","单元格样式函数":"Cell Style Function","表格头样式函数":"Header Style Function","单元格格式化函数":"Cell Format Function","单元格渲染函数":"Cell Render Function","自动补全":"Auto Complete","每页最大行数":"Max Rows Per Page","表格脚显示":"Table Footer Display","最后显示":"Display On Last Page","没有足够空间进行表格分页,请调整页眉/页脚线":"There is not enough space for table pagination, please adjust the header/footer line","没有足够空间,显示下方内容, 可分页高度":"Not enough space, display the content below, the height can be paginated:","列属性":"Column Property","在上方插入行":"Insert Row Above","在下方插入行":"Insert Row Below","向左方插入列":"Insert Column Left","向右方插入列":"Insert Column Right","删除行":"Delete Row","删除列":"Delete Column","对齐":"Align","左":"Left","左右居中":"Center","右":"Right","下":"Bottom","合并单元格":"Merge Cell","解开单元格":"Unmerge Cell","条形码生成失败":"Barcode generation failed","请检查 hiprint.init 的 provider 是否配置了":"Please check if the provider of hiprint.init is configured","已移除\'tableCustom\',请替换使用\'table\'详情见更新记录":"The \'tableCustom\' has been removed, please replace it with \'table\', see the update log for details","确定":"Confirm","删除":"Delete","连接客户端失败":"Failed to connect to the client","基础":"Basic","边框":"Border","列":"Column","高级":"Advanced","面板排列":"Panel Arrangement","排列方式":"Arrangement Method","垂直间距%s":"Vertical Spacing %s","水平间距%s":"Horizontal Spacing %s","边框圆角":"Border Radius","显示码值":"Display Code value"}')},e375:function(t,e,n){"use strict";e["a"]={count:"1"}},e562:function(t,e,n){(function(t){(function(t){function e(t,e){try{if(t.focus(),i()||n())try{t.contentWindow.document.execCommand("print",!1,null)}catch(o){t.contentWindow.print()}else t.contentWindow.print();e.callback&&e.callback()}catch(a){console.log(a)}}function n(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode}function i(){return!n()&&!!window.StyleMedia}function o(t,e,n){void 0===n&&(n=0);for(var i=t.getElementsByTagName("img"),a=!0,r=0;r