hoeditor-web 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -585,4 +585,4 @@ var Ur=Rr("19e5"),Hr=Rr("24e8"),Wr=Rr("7a4d"),zr=Rr("b4c1"),Vr=Rr("99fc"),Kr="bt
585
585
  * (c) 2015-present Evan You
586
586
  * @license MIT
587
587
  */
588
- function _typeof(Tr){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Tr){return typeof Tr}:function(Tr){return Tr&&"function"===typeof Symbol&&Tr.constructor===Symbol&&Tr!==Symbol.prototype?"symbol":typeof Tr},_typeof(Tr)}function _defineProperty(Tr,Dr,Rr){return Dr in Tr?Object.defineProperty(Tr,Dr,{value:Rr,enumerable:!0,configurable:!0,writable:!0}):Tr[Dr]=Rr,Tr}function _toConsumableArray(Tr){return _arrayWithoutHoles(Tr)||_iterableToArray(Tr)||_nonIterableSpread()}function _arrayWithoutHoles(Tr){if(Array.isArray(Tr)){for(var Dr=0,Rr=new Array(Tr.length);Dr<Tr.length;Dr++)Rr[Dr]=Tr[Dr];return Rr}}function _iterableToArray(Tr){if(Symbol.iterator in Object(Tr)||"[object Arguments]"===Object.prototype.toString.call(Tr))return Array.from(Tr)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function reflectionIsSupported(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function copyReflectionMetadata(Tr,Dr){forwardMetadata(Tr,Dr),Object.getOwnPropertyNames(Dr.prototype).forEach((function(Rr){forwardMetadata(Tr.prototype,Dr.prototype,Rr)})),Object.getOwnPropertyNames(Dr).forEach((function(Rr){forwardMetadata(Tr,Dr,Rr)}))}function forwardMetadata(Tr,Dr,Rr){var Ur=Rr?Reflect.getOwnMetadataKeys(Dr,Rr):Reflect.getOwnMetadataKeys(Dr);Ur.forEach((function(Ur){var Hr=Rr?Reflect.getOwnMetadata(Ur,Dr,Rr):Reflect.getOwnMetadata(Ur,Dr);Rr?Reflect.defineMetadata(Ur,Hr,Tr,Rr):Reflect.defineMetadata(Ur,Hr,Tr)}))}var en={__proto__:[]},tn=en instanceof Array;function createDecorator(Tr){return function(Dr,Rr,Ur){var Hr="function"===typeof Dr?Dr:Dr.constructor;Hr.__decorators__||(Hr.__decorators__=[]),"number"!==typeof Ur&&(Ur=void 0),Hr.__decorators__.push((function(Dr){return Tr(Dr,Rr,Ur)}))}}function mixins(){for(var Tr=arguments.length,Dr=new Array(Tr),Rr=0;Rr<Tr;Rr++)Dr[Rr]=arguments[Rr];return Kr.a.extend({mixins:Dr})}function isPrimitive(Tr){var Dr=_typeof(Tr);return null==Tr||"object"!==Dr&&"function"!==Dr}function collectDataFromConstructor(Tr,Dr){var Rr=Dr.prototype._init;Dr.prototype._init=function(){var Dr=this,Rr=Object.getOwnPropertyNames(Tr);if(Tr.$options.props)for(var Ur in Tr.$options.props)Tr.hasOwnProperty(Ur)||Rr.push(Ur);Rr.forEach((function(Rr){Object.defineProperty(Dr,Rr,{get:function get(){return Tr[Rr]},set:function set(Dr){Tr[Rr]=Dr},configurable:!0})}))};var Ur=new Dr;Dr.prototype._init=Rr;var Hr={};return Object.keys(Ur).forEach((function(Tr){void 0!==Ur[Tr]&&(Hr[Tr]=Ur[Tr])})),Hr}var rn=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(Tr){var Dr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Dr.name=Dr.name||Tr._componentTag||Tr.name;var Rr=Tr.prototype;Object.getOwnPropertyNames(Rr).forEach((function(Tr){if("constructor"!==Tr)if(rn.indexOf(Tr)>-1)Dr[Tr]=Rr[Tr];else{var Ur=Object.getOwnPropertyDescriptor(Rr,Tr);void 0!==Ur.value?"function"===typeof Ur.value?(Dr.methods||(Dr.methods={}))[Tr]=Ur.value:(Dr.mixins||(Dr.mixins=[])).push({data:function data(){return _defineProperty({},Tr,Ur.value)}}):(Ur.get||Ur.set)&&((Dr.computed||(Dr.computed={}))[Tr]={get:Ur.get,set:Ur.set})}})),(Dr.mixins||(Dr.mixins=[])).push({data:function data(){return collectDataFromConstructor(this,Tr)}});var Ur=Tr.__decorators__;Ur&&(Ur.forEach((function(Tr){return Tr(Dr)})),delete Tr.__decorators__);var Hr=Object.getPrototypeOf(Tr.prototype),Wr=Hr instanceof Kr.a?Hr.constructor:Kr.a,zr=Wr.extend(Dr);return forwardStaticMembers(zr,Tr,Wr),reflectionIsSupported()&&copyReflectionMetadata(zr,Tr),zr}var nn={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(Tr,Dr,Rr){Object.getOwnPropertyNames(Dr).forEach((function(Ur){if(!nn[Ur]){var Hr=Object.getOwnPropertyDescriptor(Tr,Ur);if(!Hr||Hr.configurable){var Wr=Object.getOwnPropertyDescriptor(Dr,Ur);if(!tn){if("cid"===Ur)return;var zr=Object.getOwnPropertyDescriptor(Rr,Ur);if(!isPrimitive(Wr.value)&&zr&&zr.value===Wr.value)return}0,Object.defineProperty(Tr,Ur,Wr)}}}))}function vue_class_component_esm_Component(Tr){return"function"===typeof Tr?componentFactory(Tr):function(Dr){return componentFactory(Dr,Tr)}}vue_class_component_esm_Component.registerHooks=function registerHooks(Tr){rn.push.apply(rn,_toConsumableArray(Tr))};var an=vue_class_component_esm_Component,sn="__reactiveInject__";function Inject(Tr){return createDecorator((function(Dr,Rr){"undefined"===typeof Dr.inject&&(Dr.inject={}),Array.isArray(Dr.inject)||(Dr.inject[Rr]=Tr||Rr)}))}function produceProvide(Tr){var provide=function(){var Dr=this,Rr="function"===typeof Tr?Tr.call(this):Tr;for(var Ur in Rr=Object.create(Rr||null),Rr[sn]=this[sn]||{},provide.managed)Rr[provide.managed[Ur]]=this[Ur];var _loop_1=function(Tr){Rr[provide.managedReactive[Tr]]=Hr[Tr],Object.defineProperty(Rr[sn],provide.managedReactive[Tr],{enumerable:!0,get:function(){return Dr[Tr]}})},Hr=this;for(var Ur in provide.managedReactive)_loop_1(Ur);return Rr};return provide.managed={},provide.managedReactive={},provide}function needToProduceProvide(Tr){return"function"!==typeof Tr||!Tr.managed&&!Tr.managedReactive}function Provide(Tr){return createDecorator((function(Dr,Rr){var Ur=Dr.provide;needToProduceProvide(Ur)&&(Ur=Dr.provide=produceProvide(Ur)),Ur.managed[Rr]=Tr||Rr}))}var cn="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function applyMetadata(Tr,Dr,Rr){if(cn&&!Array.isArray(Tr)&&"function"!==typeof Tr&&"undefined"===typeof Tr.type){var Ur=Reflect.getMetadata("design:type",Dr,Rr);Ur!==Object&&(Tr.type=Ur)}}function Prop(Tr){return void 0===Tr&&(Tr={}),function(Dr,Rr){applyMetadata(Tr,Dr,Rr),createDecorator((function(Dr,Rr){(Dr.props||(Dr.props={}))[Rr]=Tr}))(Dr,Rr)}}function Watch(Tr,Dr){void 0===Dr&&(Dr={});var Rr=Dr.deep,Ur=void 0!==Rr&&Rr,Hr=Dr.immediate,Wr=void 0!==Hr&&Hr;return createDecorator((function(Dr,Rr){"object"!==typeof Dr.watch&&(Dr.watch=Object.create(null));var Hr=Dr.watch;"object"!==typeof Hr[Tr]||Array.isArray(Hr[Tr])?"undefined"===typeof Hr[Tr]&&(Hr[Tr]=[]):Hr[Tr]=[Hr[Tr]],Hr[Tr].push({handler:Rr,deep:Ur,immediate:Wr})}))}function Ref(Tr){return createDecorator((function(Dr,Rr){Dr.computed=Dr.computed||{},Dr.computed[Rr]={cache:!1,get:function(){return this.$refs[Tr||Rr]}}}))}var un,HoDocvue_type_template_id_f60e2e72_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.docClassNames},[Rr("div",{ref:"editorArea",staticClass:"editors"},[Tr.drawPageLength>0?Rr("div",{staticClass:"editor",on:{click:function(Dr){return Tr.setActiveDocIndex(Tr.hoEditorId)}}},[Tr._l(Tr.drawPageCount.count,(function(Dr){return[Rr("HoPage",{key:Dr-1,attrs:{"data-id":Dr-1,index:Dr-1,docIndex:Tr.docIndex,canvasWidth:Tr.canvasParams.width,canvasHeight:Tr.canvasParams.height,currentActivePages:Tr.activePageIndex.index,hoEditorId:Tr.hoEditorId,hoEditorFactoryIdList:Tr.hoEditorFactoryIdList,mouseMoveNodes:Tr.mouseMoveNodes,viewableAreaObserver:Tr.viewableAreaObserver,inViewPages:Tr.inViewPages,canvasHeadFootPos:Tr.canvasHeadFootPos,poperTipPos:Tr.poperTipPos},on:{pageReady:Tr.pageReady,canvasRightClick:Tr.mouseRightClickEvent},scopedSlots:Tr._u([{key:"hoPageHead",fn:function(){return[Tr._t("hoDocHead")]},proxy:!0},{key:"hoPageFoot",fn:function(){return[Tr._t("hoDocFoot")]},proxy:!0}],null,!0)})]}))],2):Tr._e()]),"datePoper"===Tr.poperType||"selectPoper"===Tr.poperType?Rr("PoperSelectModal",{attrs:{poperType:Tr.poperType,poperSelectList:Tr.poperSelectList,poperPos:Tr.poperPos,hoEditorId:Tr.hoEditorId},on:{poperClose:Tr.poperClose}}):Tr._e(),Rr("PoperMark",{directives:[{name:"show",rawName:"v-show",value:"datePoper"===Tr.poperType||"selectPoper"===Tr.poperType||"table-cell-poper"===Tr.poperType,expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),"table-cell-poper"===Tr.poperType?Rr("TableCellPoper",{attrs:{poperNode:Tr.nodeValue,poperPos:Tr.poperPos},on:{poperClose:Tr.poperClose}}):Tr._e(),Rr("HoToPage",{attrs:{hoEditorId:Tr.hoEditorId,inViewPages:Tr.inViewPages}}),Rr("PoperTipText",{attrs:{isPoperText:Tr.isPoperText,poperText:Tr.poperText,poperPos:Tr.poperTextPos},on:{poperTextClose:Tr.poperTextClose}}),Rr("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return Tr.isCreateRightMenuModal=!1},expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:Tr.isCreateRightMenuModal,expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[Tr.showCommentsBtn?Rr("li",{staticClass:"mouse-menu-item",on:{click:Tr.hideComments}},[Tr._v(Tr._s(Tr.isHideComments?"显示":"隐藏")+"批注")]):Tr._e(),Rr("li",{staticClass:"mouse-menu-item"},[Tr._v(" 编辑器内核版本:   "),Rr("span",{staticStyle:{"font-size":"14px",color:"#0a77e3"}},[Tr._v("v "+Tr._s(Tr.version))])])])],1)},dn=[],hn=(Rr("caad"),Rr("2532"),Rr("4e82"),Rr("5319"),function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"hoPage",class:Tr.pageClassNames,style:{height:Tr.canvasHeight+"px",width:Tr.canvasWidth+"px"}},[Rr("canvas",{ref:"domcanvas",class:Tr.domCanvasName,attrs:{width:Tr.doubleCanvasWidth,height:Tr.doubleCanvasHeight}}),Rr("canvas",{ref:"selectcanvas",staticClass:"selectcanvas",attrs:{width:Tr.doubleCanvasWidth,height:Tr.doubleCanvasHeight},on:{contextmenu:function(Dr){return Tr.canvasRightClick.apply(null,arguments)}}}),"header"===Tr.isHeadFoot||"footer"===Tr.isHeadFoot?Rr("ho-head-foot",{attrs:{headerFooterPosition:Tr.canvasHeadFootPos,isHeadFoot:Tr.isHeadFoot},scopedSlots:Tr._u([{key:"head",fn:function(){return[Tr._t("hoPageHead")]},proxy:!0},{key:"foot",fn:function(){return[Tr._t("hoPageFoot")]},proxy:!0}],null,!0)}):Tr._e()],1)}),pn=[],_n=(Rr("1276"),Rr("1da1")),gn=(Rr("96cf"),Rr("e260"),Rr("4ec9"),Rr("d3b7"),Rr("3ca3"),Rr("ddb0"),Rr("2ca0"),Rr("a434"),Rr("6d0b")),mn=Rr("7450"),vn=Rr("d22d"),yn=Rr("53b1"),bn=Rr("562e"),wn=Rr("91a4"),xn=Rr("2381"),Cn=Rr("2072"),Pn=Rr("8905"),En=Rr("eb7b"),Sn=Rr("26a9"),Tn=Rr("8d1d"),Dn=Rr("cf50"),kn=function(){function DrawSelectLevel(Tr,Dr,Rr,Ur,Hr){Object(Xr["a"])(this,DrawSelectLevel),this._hoEditorFactoryID=Tr,this._selectCanvas=Rr,this._pageIndex=Dr,this._docIndex=Ur,this._drawPageIndex=Hr,this._selectStage=null,this._mouseDownCount=0,this._oldRange=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,this._shapesColor=new Map}return Object(Yr["a"])(DrawSelectLevel,[{key:"bindStage",value:function bindStage(){var Tr=this;if(!this._selectStage){var Dr,Rr,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._selectCanvas.width=Ur.pageProperty.canvasParams.width,this._selectCanvas.height=Ur.pageProperty.canvasParams.height,this._selectStage=new createjs.Stage(this._selectCanvas),this._selectStage.scaleX=Dn["a"].instance().scaleXY,this._selectStage.scaleY=Dn["a"].instance().scaleXY;var Hr=Ur.drawTree.drawPages[this._pageIndex];null!==(Dr=Hr.drawDomLevel)&&void 0!==Dr&&Dr.stage&&(this._selectStage.nextStage=null===(Rr=Hr.drawDomLevel)||void 0===Rr?void 0:Rr.stage),Hr.setEnableMouseOver(5),this._selectStage.addChild(Hr.selectContainer),Ur.drawTree.paintStatus!==mn["b"].psPrint&&Ur.drawTree.paintStatus!==mn["b"].psPreview&&(this._selectStage.addChild(Hr.headerLeftTag),this._selectStage.addChild(Hr.headerRightTag),this._selectStage.addChild(Hr.footerLeftTag),this._selectStage.addChild(Hr.footerRightTag)),this._selectStage.addEventListener("stagemousedown",(function(Dr){switch(Ur.drawTree.paintStatus){case mn["b"].psPreview:Tr.mouseDownPreview(Dr);break;case mn["b"].psPrint:break;default:Tr.mouseDown(Dr);break}})),this._selectStage.addEventListener("stagemouseup",(function(Dr){switch(Ur.drawTree.paintStatus){case mn["b"].psPreview:Tr.mouseUpPreview(Dr);break;case mn["b"].psPrint:break;default:Tr.mouseup(Dr);break}})),this._selectStage.addEventListener("stagemousemove",(function(Dr){switch(Ur.drawTree.paintStatus){case mn["b"].psPreview:Tr.mouseMovePreview(Dr);break;case mn["b"].psPrint:break;default:Tr.mousemove(Dr);break}})),this._selectStage.update()}}},{key:"clearStage",value:function clearStage(){this._selectStage&&(this._selectStage.enableMouseOver(-1),this._selectStage.enableDOMEvents(!1),this._selectStage.removeAllEventListeners(),this._selectStage.removeAllChildren(),this._selectStage.canvas=null,this._selectStage=null,this._selectCanvas.width=0,this._selectCanvas.height=0)}},{key:"mouseDownPreview",value:function mouseDownPreview(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];if(Dr.printStatus.printRange==xn["b"].prCaret){var Ur=new createjs.Point(Tr.localX,Tr.localY),Hr=Rr.drawMainDoc;Hr&&(Ur.y<Hr.dTop&&(Ur.y=0),Dr.printStatus.drawPrintCaret.Position=[Rr.pageIndex,Ur.y])}else if(Dr.printStatus.printRange==xn["b"].prSelected){var Wr=new createjs.Point(Tr.localX,Tr.localY);Dr.printStatus.drawPrintSelected.mousePressed=!0;var zr=Dr.docTree.ctlKeyPressed(gn["e"].ckCtrl)?1:0;Dr.printStatus.drawPrintSelected.addPrintArea(Rr.pageIndex,new Pn["b"](Wr),zr)}}},{key:"mouseMovePreview",value:function mouseMovePreview(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.printStatus.printRange==xn["b"].prSelected&&Dr.printStatus.drawPrintSelected.mousePressed){var Rr,Ur=new createjs.Point(Tr.localX,Tr.localY);null===(Rr=Dr.printStatus.drawPrintSelected.selectedArea)||void 0===Rr||Rr.setEndPoint(Ur),Dr.printStatus.drawPrintSelected.paintArea()}}},{key:"mouseUpPreview",value:function mouseUpPreview(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.printStatus.printRange==xn["b"].prSelected){var Rr,Ur=new createjs.Point(Tr.localX,Tr.localY);Dr.printStatus.drawPrintSelected.mousePressed=!1,null===(Rr=Dr.printStatus.drawPrintSelected.selectedArea)||void 0===Rr||Rr.setEndPoint(Ur)}}},{key:"mouseDblClick",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr,Qr,Zr,en,tn,rn,nn,an,sn,cn,un,dn,hn,pn,_n,gn,mn,xn,Pn,Dn,kn,On,In,Mn,Nn,Ln;return regeneratorRuntime.wrap((function _callee$(An){while(1)switch(An.prev=An.next){case 0:if(Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex],Tr.currentTarget!==this.stage){An.next=43;break}if(Ur=Dr.drawTree.activePage,Hr=Ur?Ur.pageIndex:-1,Wr=null,Ur&&Ur.drawDomLevel&&Ur.activeDrawRect&&(Wr=Ur.activeDrawRect),Dr.drawTree.selectRange.clearAllSelectShape(),Dr.drawTree.selectRange.beginRangeSelect=!1,Dr.drawTree.activePage=Rr,Dr.drawTree.inViewPages.indexOf(this._pageIndex)<0&&Dr.drawTree.inViewPages.push(this._pageIndex),Rr.drawDomLevel){An.next=13;break}return An.abrupt("return",!1);case 13:if(zr=Rr.drawDomLevel.getDrawPlaceByPos(Tr.stageX,Tr.stageY),Vr=Wr==zr,Rr.activeDrawRect=zr,Wr===zr){An.next=20;break}return Kr=new Cn["a"](Hr,this._pageIndex,Wr,zr),An.next=20,Dr.drawTree.pageAreaChanged(Kr);case 20:if($r=Dr.drawTree.getStagePosition(Rr,zr,Tr.stageX,Tr.stageY),!$r){An.next=43;break}if(Vr||!$r.page){An.next=28;break}if(Dr.docTree.curDomRange.setSamePath($r.path),0!==zr.children.length){An.next=26;break}return An.abrupt("return",!0);case 26:return Dr.drawTree.moveCaretToPath($r.path),An.abrupt("return",!0);case 28:if(Gr=Dr.docTree.findNodePositionByPath($r.path),!Gr||!Gr.node){An.next=43;break}if(Xr=Gr.node.prevSibling(),Xr&&(Yr=Dr.docTree.curDomRange.clone(),Qr=Dr.docTree.getNodeLastPath(Xr),Zr=Dr.docTree.getNodeLastPath(Gr.node),en=new yn["a"](Dr.hoEditorFactoryId,Qr,Zr),tn=new vn["a"](Yr,en),Dr.docTree.selectChange(tn),Dr.docTree.curDomRange=en),Gr.node.nodeType!==wn["b"].ntMedicalExpression&&Gr.node.nodeType!==wn["b"].ntControl&&(null===(Jr=Gr.node.parentNode)||void 0===Jr?void 0:Jr.nodeType)!==wn["b"].ntField&&Gr.node.nodeType!==wn["b"].ntSign||(rn=new bn["a"](Gr.node,"dblclick",this._pageIndex),Dr.docTree.nodeNeedModify(rn)),!(Gr.node.parentNode instanceof En["a"])){An.next=43;break}if(nn=Gr.node.parentNode,an=nn.table.colInfos[Gr.node.parentNode.row.indexOf(Gr.node.parentNode)],an.isAllowEdit){An.next=38;break}return An.abrupt("return");case 38:if(sn=nn.table.rowInfos[Gr.node.parentNode.table.rows.indexOf(Gr.node.parentNode.row)],sn.isAllowEdit&&!sn.rowProperty.repeatAsTitleAtPageTop){An.next=41;break}return An.abrupt("return");case 41:if(cn=an.colProperty,cn.editorProperty===Sn["e"].DateTime||cn.editorProperty===Sn["e"].DownList)un=new bn["a"](Gr.node,"dblclick",this._pageIndex),Dr.docTree.nodeNeedModify(un);else if(nn.cellProperty.editorProperty===Sn["e"].DateTime||nn.cellProperty.editorProperty===Sn["e"].DownList)dn=new bn["a"](Gr.node,"dblclick",this._pageIndex),Dr.docTree.nodeNeedModify(dn);else if(nn.table.tableProperty.isAutoChangeLine&&(hn=nn.table.drawTable.getDrawTableByPageIndex(Rr.pageIndex),hn&&(pn=nn.drawCell.getDrawPageCell(hn),pn))){for(_n=pn.globalToLocal(Tr.stageX,Tr.stageY),0,gn=0,mn=nn.drawCell.drawPageCells.indexOf(pn),xn=0;xn<mn;xn++)nn.drawCell.drawPageCells[xn].docHeight,gn+=nn.drawCell.drawPageCells[xn].dHeight;if(Pn=nn.drawCell.drawLines[nn.drawCell.drawLines.length-1],Pn.dTop+Pn.docHeight<gn+_n.y){for(Dn=_n.y+gn-(Pn.dTop+Pn.dHeight),kn=nn.table.tableProperty.autoLineHeightPx,On=Math.floor(Dn/kn),In="",Mn=0;Mn<On;Mn++)In+="\n";""!=In&&(Dr.docTree.curDomRange.clone(),Nn=Dr.docTree.getNodeLastPath(nn.childNodes[nn.childNodes.length-1]),Ln=new yn["a"](Dr.hoEditorFactoryId,Nn,Nn),Dr.drawTree.moveCaretToPath(Nn),Dr.docTree.curDomRange=Ln,Dr.docController.insertPlainTextAfterPath(Nn,In))}}case 43:return An.abrupt("return",!0);case 44:case"end":return An.stop()}}),_callee,this)})));function mouseDblClick(Dr){return Tr.apply(this,arguments)}return mouseDblClick}()},{key:"mouseDownHandle",value:function mouseDownHandle(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];if(!Rr.drawDomLevel)return!1;if(Tr.currentTarget===this.stage){var Ur;Dr.drawTree.selectRange.clearAllSelectShape(),Dr.drawTree.selectRange.beginRangeSelect=!0,null!==(Ur=Dr.drawTree.activePage)&&void 0!==Ur&&Ur.activeDrawRect.rootPath.startsWith(gn["h"])&&(Dr.drawTree.activePage=Rr),Dr.drawTree.inViewPages.indexOf(this._pageIndex)<0&&Dr.drawTree.inViewPages.push(this._pageIndex),this._oldRange=Dr.docTree.curDomRange.clone();var Hr=Dr.drawTree.getStagePosition(Rr,Rr.activeDrawRect,Tr.stageX,Tr.stageY);if(Hr){var Wr=Dr.docTree.curOnDragNode;if(Wr){var zr=Wr.getNodePath();if(zr!==Hr.path)for(var Vr=Wr.drawNodes[0],Kr=Vr.children.length-1;Kr>=0;Kr--)Vr.children[Kr].name!==Wr.id&&Vr.children.splice(Kr,1);Dr.docTree.curOnDragNode=null,Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(Rr.pageIndex)}var $r=Dr.drawTree.curOnSelectedComment;if($r){var Gr=$r.eNode.drawNodes[0],Jr=Dr.drawPageTree.getMainRootArea(Gr);if(!Jr)return!1;for(var Xr=0;Xr<Jr.children.length;Xr++){var Yr=Jr.children[Xr];Yr instanceof createjs.Shape&&$r.id===Yr.name&&(Yr.alpha=.5),Yr instanceof createjs.Container&&$r.id===Yr.name&&Yr.children.forEach((function(Tr){"back"===Tr.name&&(Tr.alpha=.5)}))}Dr.drawTree.curOnSelectedComment=null,Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(Rr.pageIndex)}Dr.drawTree.selectRange.spStart=Hr,Dr.drawTree.selectRange.spEnd=Hr,Dr.docTree.curDomRange.setSamePath(Hr.path),Dr.drawTree.moveCaretToPath(Hr.path)}}return!0}},{key:"mouseDown",value:function mouseDown(Tr){var Dr=this,Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.structureConvert._superiorSign;if(Ur.length>0&&(Rr.drawTree.paintStatus===mn["b"].psEdit||Rr.drawTree.paintStatus===mn["b"].psReview)){if(this._pageIndex<Ur[1])return!1;if(this._pageIndex=Ur[1]){var Hr=Rr.drawPageTree.drawMainDocs[this._pageIndex].globalToLocal(Tr.stageX,Tr.stageY);if(Hr.y<Ur[2])return!1}}if(0===Tr.nativeEvent.button){this._mouseDownCount+=1;setTimeout((function(){Dr._mouseDownCount=0}),300);if(2===this._mouseDownCount)return this.mouseDblClick(Tr),this._mouseDownCount=0,Rr.drawTree.selectRange.beginRangeSelect=!1,!0;this.mouseDownHandle(Tr)}else 2===Tr.nativeEvent.button&&(Rr.drawTree.selectRange.beginRangeSelect=!1);return!0}},{key:"mousemove",value:function mousemove(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];if(!Rr.drawDomLevel)return!1;if(Dr.drawTree.activePage!==Rr&&(Dr.drawTree.activePage=Rr),Dr.drawTree.inViewPages.indexOf(this._pageIndex)<0&&Dr.drawTree.inViewPages.push(this._pageIndex),Dr.drawTree.selectRange.beginRangeSelect&&1===(parseInt(Tr.nativeEvent.buttons)&&1)){var Ur;null!==(Ur=Dr.drawTree.activePage)&&void 0!==Ur&&Ur.activeDrawRect.rootPath.startsWith(gn["h"])&&Dr.drawTree.activePage!==Rr&&(Dr.drawTree.activePage=Rr);var Hr=Dr.drawTree.getStagePosition(Rr,Rr.activeDrawRect,Tr.stageX,Tr.stageY);Hr&&(Dr.docTree.curDomRange.endPath=Hr.path,Dr.drawTree.selectRange.spEnd=Hr,Dr.drawTree.drawSelectRange())}}},{key:"mouseup",value:function mouseup(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.drawTree.selectRange){var Rr=Dr.drawTree.selectRange.spStart,Ur=Dr.drawTree.selectRange.spEnd;if(Dr.drawTree.selectRange.beginRangeSelect){if(Rr&&Rr.page&&Ur.dline===Rr.dline&&Ur.index===Rr.index&&Ur.path===Rr.path)Dr.docTree.curDomRange.setSamePath(Rr.path),-1===Ur.index?Dr.drawTree.moveCaretToDitem(Rr.page,Rr.dline,Rr.index):Dr.drawTree.moveCaretToPath(Rr.path);else if(Dr.drawTree.activePage&&Dr.drawTree.moveEditTo(Dr.drawTree.activePage.pageIndex,0,0),Dr.formatPainter.inuse)return Dr.drawTree.selectRange.beginRangeSelect=!1,void Dr.formatPainter.useFormatPainter();var Hr=new vn["a"](this._oldRange,Dr.docTree.curDomRange);Dr.docTree.selectChange(Hr)}if(Dr.drawTree.selectRange.beginRangeSelect=!1,Rr){var Wr=Dr.docTree.findNodePositionByPath(Rr.path);if(Wr&&Wr.node){var zr=parseInt(Tr.nativeEvent.button),Vr=0===zr?"leftclick":2===zr?"rightclick":"centerclick",Kr=new bn["a"](Wr.node,Vr,Rr.page?Rr.page.pageIndex:this._pageIndex);Dr.docTree.nodeNeedModify(Kr)}}}}},{key:"stage",get:function get(){return this._selectStage}},{key:"shapesColor",get:function get(){return this._shapesColor}},{key:"selectCanvas",get:function get(){return this._selectCanvas}}]),DrawSelectLevel}(),On=Rr("59dd");(function(Tr){Tr[Tr["dpNone"]=0]="dpNone",Tr[Tr["dpHeader"]=1]="dpHeader",Tr[Tr["dpMain"]=2]="dpMain",Tr[Tr["dpFooter"]=3]="dpFooter"})(un||(un={}));var In=function(){function DrawDomLevel(Tr,Dr,Rr){Object(Xr["a"])(this,DrawDomLevel),this._hoEditorFactoryID=Tr,this._pageIndex=Dr,this._domCanvas=Rr,this._domStage=null,this._headerTop=0,this._mainDocTop=0,this._footerTop=0}return Object(Yr["a"])(DrawDomLevel,[{key:"footerTop",get:function get(){return this._footerTop},set:function set(Tr){this._footerTop=Tr}},{key:"bindStage",value:function bindStage(Tr){if(this._domStage)Tr&&this._domStage.update();else{var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._domCanvas.width=Dr.pageProperty.canvasParams.width,this._domCanvas.height=Dr.pageProperty.canvasParams.height,this._domStage=new createjs.Stage(this._domCanvas),this._domStage.scaleX=Dn["a"].instance().scaleXY,this._domStage.scaleY=Dn["a"].instance().scaleXY;var Rr=Dr.drawTree.drawPages[this._pageIndex];this._domStage.addChild(Rr.drawDocContainer),Rr.paintBackGround(),Dr.subDocManger.paintSubDoc(Rr.pageIndex,On["a"].hftHead),Dr.subDocManger.repaintPageMarkNodes(Rr.drawHeader,On["a"].hftHead),Dr.subDocManger.paintSubDoc(Rr.pageIndex,On["a"].hftFoot),Dr.subDocManger.repaintPageMarkNodes(Rr.drawFooter,On["a"].hftFoot),Rr.drawHeader.x=Dr.pageProperty.leftMarginPixes,Rr.drawMainDoc.x=Dr.pageProperty.leftMarginPixes,Rr.drawFooter.x=Dr.pageProperty.leftMarginPixes,Rr.drawDocContainer.addChild(Rr.drawMainDoc)}}},{key:"clearStage",value:function clearStage(){if(this._domStage){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.drawTree.drawPages[this._pageIndex];this._domStage.enableMouseOver(-1),this._domStage.enableDOMEvents(!1),this._domStage.removeAllEventListeners(),this._domStage.removeAllChildren(),this._domStage.canvas=null,this._domStage=null,this._domCanvas.width=0,this._domCanvas.height=0}}},{key:"stage",get:function get(){return this._domStage}},{key:"mainDocTop",get:function get(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawTree.drawPages[this._pageIndex];return Math.max(Dr.drawHeader.dHeight,Dr.drawHeader.docHeight)},set:function set(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];this._mainDocTop=Tr,Rr.drawMainDoc&&(Rr.drawMainDoc.y=Tr)}},{key:"getDrawPlaceByPos",value:function getDrawPlaceByPos(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.drawTree.drawPages[this._pageIndex],Hr=Dr/Dn["a"].instance().scaleXY;return Hr>=0&&Hr<=this._mainDocTop?Ur.drawHeader:Hr>this._mainDocTop&&Hr<this._footerTop?Ur.drawMainDoc:Ur.drawFooter}},{key:"domCanvas",get:function get(){return this._domCanvas}}]),DrawDomLevel}(),HoHeadFootvue_type_template_id_5d96d796_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",[Rr("ul",{staticClass:"ho-headfoot-list ho-head-list",style:Tr.headTop},[Rr("li",{staticClass:"ho-headfoot-item"},[Tr._v("页眉")]),Rr("span",{staticStyle:{flex:"1"}}),Tr._t("head")],2),Rr("ul",{staticClass:"ho-headfoot-list ho-head-list",style:Tr.footerTop},[Rr("li",{staticClass:"ho-headfoot-item"},[Tr._v("页脚")]),Rr("span",{staticStyle:{flex:"1"}}),Tr._t("foot")],2)])},Mn=[],Nn=function(Tr){Object(Qr["a"])(HoHeadFoot,Tr);var Dr=Object(Zr["a"])(HoHeadFoot);function HoHeadFoot(){return Object(Xr["a"])(this,HoHeadFoot),Dr.apply(this,arguments)}return Object(Yr["a"])(HoHeadFoot,[{key:"headTop",get:function get(){return"top: "+(this.headerFooterPosition.headerY+1)+"px;border-top: 2px dotted #66b3ff;"}},{key:"footerTop",get:function get(){return"bottom: "+(this.headerFooterPosition.footerY+1)+"px;border-bottom: 2px dotted #66b3ff;"}}]),HoHeadFoot}(Kr.a);__decorate([Prop()],Nn.prototype,"headerFooterPosition",void 0),__decorate([Prop()],Nn.prototype,"isHeadFoot",void 0),Nn=__decorate([an({name:"HoHeadFoot"})],Nn);var Ln=Nn,An=Ln;Rr("5892");function normalizeComponent(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr){var Kr,$r="function"===typeof Tr?Tr.options:Tr;if(Dr&&($r.render=Dr,$r.staticRenderFns=Rr,$r._compiled=!0),Ur&&($r.functional=!0),Wr&&($r._scopeId="data-v-"+Wr),zr?(Kr=function(Tr){Tr=Tr||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,Tr||"undefined"===typeof __VUE_SSR_CONTEXT__||(Tr=__VUE_SSR_CONTEXT__),Hr&&Hr.call(this,Tr),Tr&&Tr._registeredComponents&&Tr._registeredComponents.add(zr)},$r._ssrRegister=Kr):Hr&&(Kr=Vr?function(){Hr.call(this,($r.functional?this.parent:this).$root.$options.shadowRoot)}:Hr),Kr)if($r.functional){$r._injectStyles=Kr;var Gr=$r.render;$r.render=function renderWithStyleInjection(Tr,Dr){return Kr.call(Dr),Gr(Tr,Dr)}}else{var Jr=$r.beforeCreate;$r.beforeCreate=Jr?[].concat(Jr,Kr):[Kr]}return{exports:Tr,options:$r}}var Rn=normalizeComponent(An,HoHeadFootvue_type_template_id_5d96d796_scoped_true_render,Mn,!1,null,"5d96d796",null),Fn=Rn.exports,jn=function(Tr){Object(Qr["a"])(HoPage,Tr);var Dr=Object(Zr["a"])(HoPage);function HoPage(){var Tr;return Object(Xr["a"])(this,HoPage),Tr=Dr.apply(this,arguments),Tr.isHeadFoot="",Tr}return Object(Yr["a"])(HoPage,[{key:"pageClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-container edit-container-margin":"edit-container"}},{key:"doubleCanvasHeight",get:function get(){return this.canvasHeight}},{key:"doubleCanvasWidth",get:function get(){return this.canvasWidth}},{key:"domCanvasName",get:function get(){return this.currentActivePages===this.index?"domcanvas domcanvas-selected":"domcanvas"}},{key:"inViewPagesChange",value:function inViewPagesChange(Tr){-1===Tr.indexOf(this.index)?this.selectcanvas.removeEventListener("dblclick",this.addEventerDblClick,!0):this.selectcanvas.addEventListener("dblclick",this.addEventerDblClick,!0)}},{key:"mounted",value:function mounted(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId),Rr=new In(this.hoEditorId,this.index,this.domcanvas),Ur=new kn(this.hoEditorId,this.index,this.selectcanvas,this.docIndex,this.index),Hr=Dr.drawTree.drawPages[this.index];Hr.init(Rr,Ur),this.$emit("pageReady",Hr),this.$nextTick((function(){var Dr;return null===(Dr=Tr.viewableAreaObserver)||void 0===Dr?void 0:Dr.observe(Tr.hoPage)}))}},{key:"addEventerDblClick",value:function addEventerDblClick(){var Tr=Tn["a"].instance().getFactory(this.hoEditorId).vueController.getCaretPosition(),Dr="";Tr&&(Dr=Tr.split("/")[0]),this.isHeadFoot=Dr}},{key:"canvasRightClick",value:function canvasRightClick(Tr){this.$emit("canvasRightClick",Tr)}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr;null===(Tr=this.viewableAreaObserver)||void 0===Tr||Tr.unobserve(this.hoPage)}}]),HoPage}(Kr.a);__decorate([Prop()],jn.prototype,"canvasWidth",void 0),__decorate([Prop()],jn.prototype,"canvasHeight",void 0),__decorate([Prop()],jn.prototype,"index",void 0),__decorate([Prop()],jn.prototype,"hoEditorId",void 0),__decorate([Prop()],jn.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],jn.prototype,"docIndex",void 0),__decorate([Prop()],jn.prototype,"currentActivePages",void 0),__decorate([Prop()],jn.prototype,"mouseMoveNodes",void 0),__decorate([Prop()],jn.prototype,"viewableAreaObserver",void 0),__decorate([Prop()],jn.prototype,"inViewPages",void 0),__decorate([Prop()],jn.prototype,"canvasHeadFootPos",void 0),__decorate([Prop()],jn.prototype,"poperTipPos",void 0),__decorate([Ref()],jn.prototype,"hoPage",void 0),__decorate([Ref()],jn.prototype,"domcanvas",void 0),__decorate([Ref()],jn.prototype,"selectcanvas",void 0),__decorate([Watch("inViewPages")],jn.prototype,"inViewPagesChange",null),jn=__decorate([an({name:"HoPage",components:{HoHeadFoot:Fn}})],jn);var Bn=jn,Un=Bn,Hn=(Rr("01ea"),normalizeComponent(Un,hn,pn,!1,null,"32825c78",null)),Wn=Hn.exports,HoToPagevue_type_template_id_2e02cb8f_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Tr.visible?Rr("div",{staticClass:"ho-to-page",style:{right:Tr.styleRight,bottom:Tr.styleBottom},on:{click:function(Dr){return Dr.stopPropagation(),Tr.handleClick.apply(null,arguments)}}},[Tr._t("default",(function(){return[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M536.797267 281.753035c-4.232394-6.344498-10.273994-11.05887-17.347087-13.536294-3.714602-1.481747-7.735172-2.266623-12.144598-2.266623l-0.183172 0-1.147126-0.12075c-0.575098 0-1.026376 0.090051-1.601474 0.150426-4.229325 0-8.18645 0.7552-11.69332 2.145873-7.312546 2.508123-13.385868 7.312546-17.223267 13.355169l-254.17698 254.752078c-5.952572 5.921873-9.18622 13.990642-9.18622 22.691815 0 9.66922 4.110621 19.24839 11.17962 26.318412 7.010671 6.980995 16.075117 10.850116 25.501814 10.850116 8.702196 0 16.861016-3.325745 23.024389-9.457396 0.242524-0.302899 0.544399-0.544399 0.847298-0.847298 0.63445-0.544399 1.388627-1.24127 1.721201-1.783623l195.588607-195.256032 0.393973 469.799876c-0.151449 1.026376-0.151449 1.962701-0.091074 2.870374l0.060375 1.088798c0 17.675568 15.47239 31.513738 35.233456 31.513738 19.942191 0 36.07666-14.140045 36.07666-31.513738l0.364297-473.759047 195.34506 194.98281c0.632403 0.787946 1.328251 1.452071 2.084475 2.087545l0.846274 0.816598c6.104021 6.131651 14.262842 9.457396 22.961968 9.457396 9.428743 0 18.49319-3.868097 25.504884-10.850116 14.07967-14.048971 14.987343-36.016285 1.991354-49.010227L536.797267 281.753035z"}}),Rr("path",{attrs:{d:"M887.66338 129.97933 124.346541 129.97933c-17.706267 0-32.073486 14.382569-32.073486 32.028461 0 17.675568 14.367219 32.05916 32.073486 32.05916l763.317862 0c17.677615 0 32.060183-14.383592 32.060183-32.05916C919.723563 144.361899 905.342018 129.97933 887.66338 129.97933"}})])]}))],2):Tr._e()},qn=[],zn={name:"HoToPage",props:{visibilityHeight:{type:Number,default:200},inViewPages:[Array],target:{type:String,default:".ho-editor-list"},right:{type:Number,default:40},bottom:{type:Number,default:40},hoEditorId:[String]},data:function data(){return{visible:!1,container:null,throttledScrollHandler:null}},computed:{styleBottom:function styleBottom(){return"".concat(this.bottom,"px")},styleRight:function styleRight(){return"".concat(this.right,"px")}},watch:{inViewPages:function inViewPages(){1===this.inViewPages.filter((function(Tr){return 0===Tr})).length?this.visible=!1:this.visible=!0}},created:function created(){this.initScrollPolyfill()},mounted:function mounted(){this.init()},methods:{handleClick:function handleClick(){this.toScroll()},toScroll:function toScroll(){var Tr,Dr=Tn["a"].instance().getFactory(this.hoEditorId),Rr=Dr.domController.getPageProperty(),Ur=Rr.heightPixes+10,Hr=1;null===(Tr=this.container)||void 0===Tr||Tr.scrollTo({top:Ur*(Hr-1),left:0,behavior:"smooth"})},init:function init(){this.container=document.querySelector(this.target)},initScrollPolyfill:function initScrollPolyfill(){window.scrollTo||(window.scrollTo=function(Tr,Dr){window.pageXOffset=Tr,window.pageYOffset=Dr}),window.scrollBy||(window.scrollBy=function(Tr,Dr){window.pageXOffset+=Tr,window.pageYOffset+=Dr}),document.body.scrollTo||(Element.prototype.scrollTo=function(Tr,Dr){this.scrollLeft=Tr,this.scrollTop=Dr}),document.body.scrollBy||(Element.prototype.scrollBy=function(Tr,Dr){this.scrollLeft+=Tr,this.scrollTop+=Dr})}}},Vn=zn,Kn=(Rr("ca95"),normalizeComponent(Vn,HoToPagevue_type_template_id_2e02cb8f_render,qn,!1,null,null,null)),$n=Kn.exports,Gn=$n,Jn=Rr("6ae4"),PoperSelectvue_type_template_id_79fdead8_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[Rr("div",{staticStyle:{height:"0",overflow:"hidden"}},[Rr("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("defs",[Rr("g",{attrs:{id:"selected"}},[Rr("path",{attrs:{d:"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636",fill:"#2175FF"}})])])])]),Tr.isCanSearch&&!Tr.mutexSelect?Rr("div",{staticStyle:{padding:"5px"}},[Rr("el-input",{attrs:{placeholder:Tr.currentListNameText+"搜索",size:"mini"},on:{input:Tr.searchList},model:{value:Tr.input,callback:function(Dr){Tr.input=Dr},expression:"input"}})],1):Tr._e(),"selectPoper"===Tr.poperType&&Tr.currentList.length>=0?Rr("div",{staticClass:"select-poper"},[Rr("div",{staticClass:"list-box"},[0==Tr.currentList.length?Rr("ul",{staticClass:"list"},[Rr("li",{staticStyle:{"text-align":"center"}},[Tr._v("无选项")])]):Tr._e(),Tr.isAllowMultiSelect&&!Tr.mutexSelect&&Tr.currentList.length>0?Rr("el-checkbox-group",{on:{change:Tr.selectItemsChange},model:{value:Tr.selectedIds,callback:function(Dr){Tr.selectedIds=Dr},expression:"selectedIds"}},[Rr("RecycleScroller",{staticClass:"scroller",attrs:{items:Tr.currentList,"item-size":32,"key-field":"id"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){var Ur=Dr.item;return[Ur.title?Rr("p",{staticClass:"poper-select-title"},[Tr._v(Tr._s(Ur.text))]):Tr._e(),Ur.title?Tr._e():Rr("el-checkbox",{key:Ur.id,attrs:{label:Ur.id}},[Tr._v(" "+Tr._s(Ur.text&&-1!==Ur.text.indexOf("<元素>")?Ur.text.split("<元素>")[0]:Ur.text.split("<搜索>")[0])+" ")])]}}],null,!1,1647146796)})],1):Tr._e(),Tr.isAllowMultiSelect&&Tr.mutexSelect&&Tr.currentList.length>0?[Rr("el-checkbox-group",{on:{change:Tr.mutexSelectItemsChange},model:{value:Tr.mutexSelectedIds,callback:function(Dr){Tr.mutexSelectedIds=Dr},expression:"mutexSelectedIds"}},[Tr._l(Tr.currentList,(function(Dr,Ur){return[Ur>=1&&Dr.type!=Tr.currentList[Ur-1].type?Rr("p",{staticClass:"el-checkbox-mutex-line"}):Tr._e(),Rr("el-checkbox",{key:Dr.id,attrs:{label:Dr.id,disabled:""!==Tr.mutexType&&Tr.mutexType!=Dr.type}},[Tr._v(" "+Tr._s(Dr.text&&-1!==Dr.text.indexOf("<元素>")?Dr.text.split("<元素>")[0]:Dr.text.split("<搜索>")[0])+" ")])]}))],2)]:Tr._e(),!Tr.isAllowMultiSelect&&Tr.currentList.length>0?Rr("el-radio-group",{on:{change:Tr.selectItemsChange},model:{value:Tr.selectedId,callback:function(Dr){Tr.selectedId=Dr},expression:"selectedId"}},Tr._l(Tr.currentList,(function(Dr){return Rr("el-radio",{key:Dr.id,attrs:{label:Dr.id}},[Tr._v(" "+Tr._s(Dr.text&&-1!==Dr.text.indexOf("<元素>")?Dr.text.split("<元素>")[0]:Dr.text.split("<搜索>")[0])+" ")])})),1):Tr._e(),Tr.selectedList.length>0&&Tr.isAllowMultiSelect&&!Tr.mutexSelect&&Tr.isCanSearch?Rr("transition-group",{staticClass:"list",attrs:{name:"drag",tag:"ul"}},[Rr("li",{key:"已选择",staticStyle:{position:"absolute",top:"0px","z-index":"111",background:"#fff"}},[Tr._v("已选择"+Tr._s(Tr.currentListNameText))]),Tr._l(Tr.selectedList,(function(Dr,Ur){return[Rr("li",{key:Dr.id,staticClass:"drag-item selected",attrs:{draggable:""},on:{dragenter:function(Dr){return Tr.dragenter(Dr,Ur)},dragover:function(Dr){return Tr.dragover(Dr,Ur)},dragstart:function(Dr){return Tr.dragstart(Ur)}}},[Rr("span",[Tr._v(Tr._s(Dr.text&&-1!==Dr.text.indexOf("<元素>")?Dr.text.split("<元素>")[0]:Dr.text.split("<搜索>")[0]))]),Rr("i",{staticClass:"el-icon-delete",on:{click:function(Rr){return Tr.deleteItems(Dr,Ur)}}})])]}))],2):Tr._e()],2)]):Tr._e(),"selectPoper"===Tr.poperType&&Tr.isAllowMultiSelect?Rr("footer",[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureSelect}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.cancelSelect}},[Tr._v("清空")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1):Tr._e(),"datePoper"===Tr.poperType?Rr("div",{staticClass:"date-poper"},[Tr.dateTimeStyle.includes("dd")?Rr("DatePanel",{attrs:{value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.dateTimeStyle.includes("MM")&&!Tr.dateTimeStyle.includes("dd")?Rr("DatePanel",{attrs:{dateType:"month",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.dateTimeStyle.includes("yyyy")&&!Tr.dateTimeStyle.includes("MM")?Rr("DatePanel",{attrs:{dateType:"year",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.dateTimeStyle.includes("HH")?Rr("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[Rr("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:Tr.timeStyle,"value-format":Tr.timeStyle,size:"mini"},model:{value:Tr.time,callback:function(Dr){Tr.time=Dr},expression:"time"}})],1):Tr._e(),Rr("footer",[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureDate}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.currentDateTime}},[Tr._v("此刻")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)],1):Tr._e()])},Xn=[],Yn=(Rr("cca6"),Rr("d81d"),Rr("9685")),Qn=Rr("f7fa"),Zn=function(Tr){Object(Qr["a"])(AppendToBodyMixins,Tr);var Dr=Object(Zr["a"])(AppendToBodyMixins);function AppendToBodyMixins(){return Object(Xr["a"])(this,AppendToBodyMixins),Dr.apply(this,arguments)}return Object(Yr["a"])(AppendToBodyMixins,[{key:"mounted",value:function mounted(){var Tr=this;this.$nextTick((function(){var Dr=document.querySelector("body");Dr.append?Dr.append(Tr.$el):Dr.appendChild(Tr.$el)}))}}]),AppendToBodyMixins}(Kr.a);Zn=__decorate([an],Zn);var ei=Rr("4b89"),ti={dataSourceEnabled:!0,dataSource:"",format:"",visitPath:"",isReadOnly:!1,autoUpdate:!1,executeStatus:0},ri={inputFieldType:0,id:"",innerCode:"",labelText:"",text:"",name:"",tipText:"",readOnlyStatus:ei["e"].false,fixedWidth:0,canModifyContent:!0,isAllowDelete:!1,enableGlobalColor:!1,defaultValue:"",downListProperty:new ei["c"],dataVerifyFormat:new ei["b"],bandDataSource:ti,customProperty:new Object,alignWithBlocked:!1,innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,keyValue:""},DatePanelvue_type_template_id_7e43cc0e_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"component-date",class:Tr.customClass},[Rr("div",{staticClass:"my-vue-date2 "},[Rr("div",{staticClass:"date-header"},[Rr("i",{staticClass:"el-icon-d-arrow-left last",on:{click:Tr.last}}),Rr("p",[Rr("span",{directives:[{name:"show",rawName:"v-show",value:"year"===Tr.type,expression:"type === 'year'"}]},[Tr._v(Tr._s(Tr.yearTitle)+" 年")]),Rr("span",{directives:[{name:"show",rawName:"v-show",value:"year"!==Tr.type,expression:"type !== 'year'"}],on:{click:Tr.showYear}},[Tr._v(Tr._s(Tr.year)+" 年")]),Rr("span",{directives:[{name:"show",rawName:"v-show",value:"date"===Tr.type,expression:"type === 'date'"}],on:{click:Tr.showMonth}},[Tr._v(Tr._s(Tr.month)+" 月")])]),Rr("i",{staticClass:"el-icon-d-arrow-right next",on:{click:Tr.next}})]),Rr("ul",{directives:[{name:"show",rawName:"v-show",value:"year"===Tr.type,expression:"type === 'year'"}],staticClass:"years"},Tr._l(Tr.yearList,(function(Dr){return Rr("li",{key:Dr+Math.random(0,1),class:Tr.nowYear==Dr?"active":"",on:{click:function(Rr){return Rr.stopPropagation(),Tr.getYear(Dr)}}},[Tr._v(Tr._s(Dr))])})),0),Rr("ul",{directives:[{name:"show",rawName:"v-show",value:"month"===Tr.type,expression:"type === 'month'"}],staticClass:"years "},Tr._l(12,(function(Dr){return Rr("li",{key:Dr,class:Tr.month==Dr?"active":"",on:{click:function(Rr){return Rr.stopPropagation(),Tr.getMonth(Dr)}}},[Tr._v(Tr._s(Dr)+"月")])})),0),Rr("table",{directives:[{name:"show",rawName:"v-show",value:"date"===Tr.type&&"date"===Tr.dateType,expression:"type === 'date' && dateType === 'date'"}],attrs:{colspan:"0",rowspan:"0"}},[Tr._m(0),Tr._l(Tr.rows,(function(Dr,Ur){return Rr("tr",{key:Ur},Tr._l(Dr,(function(Dr,Ur){return Rr("td",{key:Ur,class:Dr.date==Tr.nowDate?"today":""},[Rr("span",{staticClass:"date-item",class:{grey:"last"==Dr.month||"next"==Dr.month,active:Dr.date===Tr.date},attrs:{title:Dr.date},on:{dblclick:function(Rr){return Tr.getDate(Dr,Rr,"dblclick")},click:function(Rr){return Tr.getDate(Dr,Rr)}}},[Tr._v(Tr._s(Dr.text))])])})),0)}))],2)])])},ni=[function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("tr",[Rr("th",[Tr._v("日")]),Rr("th",[Tr._v("一")]),Rr("th",[Tr._v("二")]),Rr("th",[Tr._v("三")]),Rr("th",[Tr._v("四")]),Rr("th",[Tr._v("五")]),Rr("th",[Tr._v("六")])])}],ii={name:"DatePanel",props:{customClass:{type:String,default:""},value:{type:String,default:""},dateType:{type:String,default:"date"}},data:function data(){return{type:"",yearList:[],year:0,month:0,dateText:0,dateLength:0,startDay:0,rows:[],date:[],nowMonth:0,nowDate:"",weekIndex:"",nowYear:0,separator:"/"}},computed:{yearTitle:function yearTitle(){return this.yearList[0]+"-"+this.yearList[11]}},watch:{value:function value(Tr){this.init()}},mounted:function mounted(){this.type=this.dateType,this.yearList=[],this.init()},methods:{init:function init(){var Tr=this.value.replace(/[^\d]/g,"/"),Dr=Tr?new Date(Tr):new Date;this.year=Dr.getFullYear(),this.month=Dr.getMonth()+1,this.dateText=Dr.getDate(),this.nowMonth=this.month,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.dateLength=this.getDateLength(this.month),this.nowDate=this.format(this.year+this.separator+this.month+this.separator+Dr.getDate());for(var Rr=0;Rr<12;Rr++)this.yearList.push(this.year+Rr);this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows()},showYear:function showYear(){this.type="year"},getYear:function getYear(Tr){"year"===this.type&&(this.nowYear=Tr,this.year=Tr,this.yearDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},showMonth:function showMonth(){this.type="month"},getMonth:function getMonth(Tr){"month"===this.type&&(this.month=Tr,this.monthDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},getDateLength:function getDateLength(Tr){return 1==Tr||3==Tr||5==Tr||7==Tr||8==Tr||10==Tr||12==Tr?31:2==Tr?this.year%4===0&&this.year%100!==0||this.year%400===0?29:28:30},getRows:function getRows(){var Tr,Dr=[],Rr=0,Ur=this.month-1==0?12:this.month-1,Hr=this.getDateLength(Ur);if(0!=this.startDay)for(var Wr=this.startDay;Wr>0;Wr--){var zr={};zr.text=Hr-Wr+1,zr.month="last",Tr=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(Hr-Wr+1):this.year-1+this.separator+"12"+this.separator+(Hr-Wr+1),zr.date=this.format(Tr),Dr.push(zr)}else for(var Vr=7;Vr>0;Vr--){var Kr={};Kr.text=Hr-Vr+1,Kr.month="last",Tr=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(Hr-Vr+1):this.year-1+this.separator+"12"+this.separator+(Hr-Vr+1),Kr.date=this.format(Tr),Dr.push(Kr)}for(var $r=0;$r<this.getDateLength(this.month);$r++){var Gr={};Gr.text=$r+1,Gr.month="now",Gr.date=this.format(this.year+this.separator+this.month+this.separator+($r+1)),Dr.push(Gr)}for(var Jr=this.startDay+this.getDateLength(this.month);Jr<42;Jr++){var Xr={};Rr+=1,Xr.text=Rr,Xr.month="next",Tr=this.month<12?this.year+this.separator+(this.month+1)+this.separator+Rr:this.year+1+this.separator+1+this.separator+Rr,Xr.date=this.format(Tr),Dr.push(Xr)}for(var Yr=[],Qr=0;Qr<42;Qr+=7)Yr.push(Dr.splice(0,7));this.rows=Yr,"year"===this.type?"date"!==this.dateType&&"month"!==this.dateType||(this.type="month"):"month"===this.type&&"date"===this.dateType&&(this.type="date")},last:function last(){if("date"===this.type||"week"===this.type)this.month>1?this.month-=1:(this.month=12,this.year-=1),this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows();else if("year"===this.type){this.year-=11,this.yearList=[];for(var Tr=0;Tr<12;Tr++)this.yearList.push(this.year+Tr)}else"month"===this.type&&(this.year-=1)},hasChoosed:function hasChoosed(Tr){if(Tr===this.date)return!0},next:function next(){if("date"===this.type||"week"===this.type)this.month<12?this.month+=1:(this.month=1,this.year+=1),this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows();else if("year"===this.type){this.year+=11,this.yearList=[];for(var Tr=0;Tr<12;Tr++)this.yearList.push(this.year+Tr)}else"month"===this.type&&(this.year+=1)},getDate:function getDate(Tr,Dr,Rr){this.type,this.date=Tr.date,this.dateText=Tr.text,this.$emit("getValue",{value:Tr.date,type:Rr})},getWeek:function getWeek(Tr){if("week"===this.type){this.weekIndex=this.rows[Tr][3].date;this.rows[Tr][0].date,this.rows[Tr][6].date;var Dr=this.getWeekNumber(new Date(this.rows[Tr][3].date)),Rr=new Date(this.rows[Tr][3].date).getMonth(),Ur=new Date(this.rows[Tr][3].date);1===Dr&&11===Rr&&(Ur.setHours(0,0,0,0),Ur.setDate(Ur.getDate()+3-(Ur.getDay()+6)%7));var Hr=Ur.getFullYear(),Wr="".concat(Hr," 第 ").concat(Dr>9?Dr:"0"+Dr," 周"),zr={text:Wr,date:this.rows[Tr][3].date,range:[this.rows[Tr][0].date,this.rows[Tr][6].date]};this.$emit("getValue",zr)}},getWeekNumber:function getWeekNumber(Tr){var Dr=new Date(Tr.getTime());Dr.setHours(0,0,0,0),Dr.setDate(Dr.getDate()+3-(Dr.getDay()+6)%7);var Rr=new Date(Dr.getFullYear(),0,4);return 1+Math.round(((Dr.getTime()-Rr.getTime())/864e5-3+(Rr.getDay()+6)%7)/7)},format:function format(Tr){var Dr=Tr.split(this.separator);return Dr[1]=Dr[1]>9?Dr[1]:"0"+Dr[1],Dr[2]=Dr[2]>9?Dr[2]:"0"+Dr[2],Dr.join(this.separator)}}},ai=ii,oi=(Rr("a3ea"),normalizeComponent(ai,DatePanelvue_type_template_id_7e43cc0e_render,ni,!1,null,null,null)),si=oi.exports,li=Rr("053b"),ci=Rr("110d"),ui=Rr("e508"),di=(Rr("a899"),Rr("39c3")),hi=function(Tr){Object(Qr["a"])(PoperSelectModal,Tr);var Dr=Object(Zr["a"])(PoperSelectModal);function PoperSelectModal(){var Tr;return Object(Xr["a"])(this,PoperSelectModal),Tr=Dr.apply(this,arguments),Tr.textParam=Object.assign({},ri),Tr.isCanSearch=!1,Tr.mutexSelect=!1,Tr.input="",Tr.currentListNameText="",Tr.currentList=[],Tr.selectedIds=[],Tr.mutexSelectedIds=[],Tr.mutexType="",Tr.selectedId="",Tr.selectedList=[],Tr.posStyle={left:"",right:"",top:"",bottom:""},Tr.dateFormat=Jn["d"],Tr.computedPoperPosition=Jn["a"],Tr.date="",Tr.time="",Tr.dateStyle="",Tr.timeStyle="",Tr.dateTimeStyle="",Tr.dragIndex=0,Tr.enterIndex=0,Tr.endPath="",Tr.poppernIstance=null,Tr}return Object(Yr["a"])(PoperSelectModal,[{key:"isAllowMultiSelect",get:function get(){var Tr=this.getCurrentPoperNode();return Tr instanceof Qn["a"]?Tr.allowMultiSelect:Tr instanceof ei["f"]&&Tr.downListProperty.allowMultiSelected}},{key:"selectedListChange",value:function selectedListChange(Tr,Dr){(0===Tr.length&&Dr.length>0||Tr.length>0&&0===Dr.length)&&this.poppernIstance&&this.poppernIstance.update()}},{key:"created",value:function created(){var Tr,Dr=this;null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.addEventListener("scroll",this.handleClose,!0),window.addEventListener("keydown",this.arrowKeysController);var Rr=Tn["a"].instance().getFactory(this.hoEditorId);this.endPath=Rr.docTree.curDomRange.normalize().endPath;var Ur=this.getCurrentPoperNode();if("datePoper"===this.poperType){var Hr;if(Ur instanceof Yn["a"]){var Wr;this.dateTimeStyle=Ur.controlStyle;var zr=null===(Wr=Ur.controlStyle)||void 0===Wr?void 0:Wr.replace(/\hh/g,"HH");(zr.includes("yyyy")||zr.includes("MM"))&&zr.includes("HH")?(this.dateStyle=zr.split(" ")[0]?zr.split(" ")[0]:"yyyy/MM/dd",this.timeStyle=zr.split(" ")[1]?zr.split(" ")[1]:"HH:mm:ss"):((zr.includes("yyyy")||zr.includes("MM"))&&(this.dateStyle=zr),(zr.includes("HH")||zr.includes("mm"))&&(this.timeStyle=zr));var Vr=Ur.text.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,"");Vr&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(Vr=Object(Jn["d"])(new Date,"yyyy")+"/"+Vr),Vr&&":"===Vr[Vr.length-1]&&(Vr=Vr.substr(0,Vr.length-1)),Vr&&(Object(Jn["i"])(Vr)||Object(Jn["i"])("2021/10/08 "+Vr))?(zr.includes("yyyy")||zr.includes("MM"))&&(zr.includes("HH")||zr.includes("mm"))?(this.date=Vr.split(" ")[0],this.time=Vr):((zr.includes("yyyy")||zr.includes("MM"))&&(this.date=Vr),(zr.includes("HH")||zr.includes("mm"))&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd ")+Vr)):(this.date=Object(Jn["d"])(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd "+this.timeStyle)))}this.date=null===(Hr=this.date)||void 0===Hr?void 0:Hr.replace(/[^\d]/g,"/");var Kr=0;(Ur.controlStyle.includes("yyyy")||Ur.controlStyle.includes("MM"))&&(Kr=300),(Ur.controlStyle.includes("HH")||Ur.controlStyle.includes("mm"))&&(Kr=90),(Ur.controlStyle.includes("yyyy")||Ur.controlStyle.includes("MM"))&&(Ur.controlStyle.includes("HH")||Ur.controlStyle.includes("mm"))&&(Kr=350),this.posStyle=this.computedPoperPosition(Kr,this.poperPos)}else{var $r,Jr=[];Ur instanceof Qn["a"]?(Jr=Ur.keyValue?Ur.keyValue.split(","):[],this.mutexSelect=Ur.mutexSelect):Ur instanceof ei["f"]&&(Jr=Ur.keyValue?Ur.keyValue.split(","):[],this.mutexSelect=!!Ur.downListProperty.mutexSelect),null===($r=this.poperSelectList)||void 0===$r||$r.forEach((function(Tr,Rr){Tr.id?Tr.id=String(Tr.id):Tr.id="DL"+(new Date).getTime()+Rr,Tr.default=!1,Jr.length>0&&1===Jr.filter((function(Dr){return Tr.id==Dr})).length&&(Tr.default=!0,Dr.isAllowMultiSelect&&Dr.poperSelectList.length>=20&&(Dr.selectedList[Jr.indexOf(Tr.id)]=Tr),Dr.mutexType=String(Tr.type),Dr.selectedIds.push(Tr.id),Dr.mutexSelectedIds.push(Tr.id),Dr.selectedId=Tr.id)})),this.currentListNameText=Ur.name,this.poperSelectList&&this.poperSelectList.length>=20&&(this.isCanSearch=!0),this.currentList=Object(Gr["a"])(this.poperSelectList)}}},{key:"mounted",value:function mounted(){var Tr=this,Dr={getBoundingClientRect:Object(Jn["g"])(this.poperPos)};this.poppernIstance=Object(di["a"])(Dr,this.poperSelectedModal,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","top-start","right-start","left-start"],padding:10}}]}),setTimeout((function(){Tr.poppernIstance&&Tr.poppernIstance.update()}),0)}},{key:"arrowKeysController",value:function arrowKeysController(Tr){}},{key:"getCurrentPoperNode",value:function getCurrentPoperNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorId),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.endPath))||void 0===Tr?void 0:Tr.node;if(Ur instanceof li["a"]||Ur instanceof ei["f"]){var Hr=Ur.parentNode;Dr=Hr instanceof ei["f"]?Hr:Ur}else if(Ur instanceof ci["a"]){var Wr=Ur.parentNode;Wr instanceof ei["f"]&&(Dr=Wr)}else(Ur instanceof Yn["a"]||Ur instanceof Qn["a"])&&(Dr=Ur);return Dr}},{key:"getTime",value:function getTime(Tr){this.date=Tr.value,"dblclick"==Tr.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId),Rr=this.getCurrentPoperNode(),Ur=this.dateFormat(new Date,Rr.controlStyle),Hr={id:Rr.id,name:Rr.name,text:Ur,title:Rr.title,tipText:Rr.tipText,isAllowDelete:Rr.isAllowDelete,isReadOnly:Rr.isReadOnly,controlStyle:Rr.controlStyle};Dr.vueController.updateDateTime(JSON.stringify(Hr)),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"sureDate",value:function sureDate(){var Tr="";if(this.date){if(Tr=this.date,this.time){var Dr=this.time.replace(/[年|月|-]/g,"/").replace(/[时|分]/g,":").replace(/[秒]/g,"");Dr.includes("/")?Tr+=" "+Dr.split(" ")[1]:Tr+=" "+Dr}}else Tr="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);var Rr=this.getCurrentPoperNode();Tr=this.dateFormat(Tr,Rr.controlStyle);var Ur={id:Rr.id,name:Rr.name,text:Tr,title:Rr.title,tipText:Rr.tipText,isAllowDelete:Rr.isAllowDelete,isReadOnly:Rr.isReadOnly,controlStyle:Rr.controlStyle},Hr=Tn["a"].instance().getFactory(this.hoEditorId);Hr.vueController.updateDateTime(JSON.stringify(Ur)),this.handleClose()}},{key:"searchList",value:function searchList(Tr){var Dr=[];Tr?this.poperSelectList.forEach((function(Rr){-1!==Rr.text.indexOf(Tr)&&Dr.push(Rr)})):Dr=Object(Gr["a"])(this.poperSelectList),this.currentList=Object(Gr["a"])(Dr)}},{key:"deleteItems",value:function deleteItems(Tr,Dr){var Rr=0;this.poperSelectList.forEach((function(Dr,Ur){Dr.id==Tr.id&&(Rr=Ur)})),Tr.default=!1,this.poperSelectList.splice(Rr,1,Tr),this.currentList=this.currentList.filter((function(Dr){return Dr.id!==Tr.id})),this.selectedIds=this.selectedIds.filter((function(Dr){return Dr!==Tr.id})),this.selectedList=this.selectedList.filter((function(Dr){return Dr.id!==Tr.id})),this.isCanSearch&&this.searchList(this.input)}},{key:"mutexSelectItemsChange",value:function mutexSelectItemsChange(Tr){var Dr=this;Tr.length>0?(this.poperSelectList.forEach((function(Rr){Tr.includes(Rr.id)?(Rr.default=!0,Dr.mutexType=String(Rr.type)):Rr.default=!1})),this.currentList=Object(Gr["a"])(this.poperSelectList)):0===Tr.length&&(this.poperSelectList.forEach((function(Tr){Tr.default=!1,Dr.mutexType=""})),this.currentList=Object(Gr["a"])(this.poperSelectList))}},{key:"selectItemsChange",value:function selectItemsChange(Tr){var Dr=this;if(this.isAllowMultiSelect)this.poperSelectList.forEach((function(Rr){Tr.includes(Rr.id)?(Rr.default=!0,Dr.isCanSearch&&0==Dr.selectedList.filter((function(Tr){return Tr.id==Rr.id})).length&&Dr.selectedList.push(Rr)):(Rr.default=!1,Dr.isCanSearch&&(Dr.selectedList=Dr.selectedList.filter((function(Tr){return Tr.id!=Rr.id}))))})),this.currentList=Object(Gr["a"])(this.poperSelectList),this.isCanSearch&&this.searchList(this.input);else{var Rr={},Ur=0;this.poperSelectList.forEach((function(Dr,Hr){Dr.default=!1,Dr.id==Tr&&(Rr=Dr,Ur=Hr)})),Rr.default=!Rr.default,this.poperSelectList.splice(Ur,1,Rr),this.currentList=Object(Gr["a"])(this.poperSelectList),this.sureSelect()}}},{key:"selectItems",value:function selectItems(Tr,Dr){var Rr=this;this.isAllowMultiSelect?(this.poperSelectList.forEach((function(Dr){Dr.id==Tr.id&&(Dr.default=!Dr.default),Dr.default?Rr.isCanSearch&&0==Rr.selectedList.filter((function(Tr){return Tr.id==Dr.id})).length&&Rr.selectedList.push(Dr):Rr.isCanSearch&&(Rr.selectedList=Rr.selectedList.filter((function(Tr){return Tr.id!=Dr.id})))})),this.currentList=Object(Gr["a"])(this.poperSelectList),this.isCanSearch&&this.searchList(this.input)):(this.poperSelectList.forEach((function(Tr){Tr.default=!1})),Tr.default=!Tr.default,this.poperSelectList.splice(Dr,1,Tr),this.currentList=Object(Gr["a"])(this.poperSelectList),this.sureSelect())}},{key:"cancelSelect",value:function cancelSelect(){this.poperSelectList.forEach((function(Tr){Tr.default=!1})),this.currentList=Object(Gr["a"])(this.poperSelectList),this.selectedList=[],this.isAllowMultiSelect&&this.isCanSearch&&this.searchList(this.input),this.mutexSelectedIds=[],this.selectedIds=[],this.selectedId="",this.mutexType=""}},{key:"sureSelect",value:function sureSelect(){var Tr=this,Dr="",Rr="",Ur=this.getCurrentPoperNode(),Hr=this.isAllowMultiSelect&&this.isCanSearch?this.selectedList:this.poperSelectList.filter((function(Tr){return Tr.default})),Wr=Hr.length;0===Wr?(Ur instanceof Qn["a"]||Ur instanceof ei["f"])&&(Dr=Ur.name?Ur.name:" "):Hr.forEach((function(Tr,Wr){Wr<Hr.length-1?(Ur.customProperty&&Ur.customProperty.hasThirdData&&Tr.value?Dr+=Tr.value+",":Dr+=Tr.text+",",Rr+=Tr.id+","):(Ur.customProperty&&Ur.customProperty.hasThirdData&&Tr.value?Dr+=Tr.value:Dr+=Tr.text,Rr+=Tr.id)}));var zr=Tn["a"].instance().getFactory(this.hoEditorId);if(Ur instanceof Qn["a"]){var Vr=this.getCurrentPoperNode(),Kr={id:Vr.id,name:Vr.name,text:Dr,keyValue:Rr,title:"下拉选择框",tipText:Vr.tipText,isAllowDelete:Vr.isAllowDelete,isReadOnly:Vr.isReadOnly,allowMultiSelect:Vr.allowMultiSelect,innerIdentifier:Vr.innerIdentifier,dataMetaIdentifier:Vr.dataMetaIdentifier,identifierFormat:Vr.identifierFormat,readType:Vr.readType,mutexSelect:Vr.mutexSelect};zr.vueController.updateDownList(JSON.stringify(Kr),this.poperSelectList)}else Ur instanceof ei["f"]&&(Dr=Dr.replace(/,/g,Ur.downListProperty.splitCharacter),Ur.text=Dr,Ur.keyValue=Rr,Object.keys(this.textParam).map((function(Dr){Tr.textParam[Dr]=Ur[Dr]})),this.textParam.downListProperty.allowMultiSelected?zr.vueController.updateTextInputField(this.textParam):zr.elementController.updateTextInputFieldValue(Ur,Dr,void 0,Rr));1===Hr.length&&-1!==Hr[0].text.indexOf("<元素>")?setTimeout((function(){Tr.handleClose()}),200):this.handleClose()}},{key:"shuffle",value:function shuffle(){}},{key:"dragstart",value:function dragstart(Tr){this.dragIndex=Tr}},{key:"dragenter",value:function dragenter(Tr,Dr){if(Tr.preventDefault(),this.dragIndex!==Dr){var Rr=this.selectedList[this.dragIndex];this.selectedList.splice(Number(this.dragIndex),1),this.selectedList.splice(Dr,0,Rr),this.dragIndex=Dr}}},{key:"dragover",value:function dragover(Tr){Tr.preventDefault()}},{key:"listenScroller",value:function listenScroller(Tr){}},{key:"handleClose",value:function handleClose(){var Tr=this;this.$nextTick((function(){return Tr.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr;null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.removeEventListener("scroll",this.handleClose,!0),window.removeEventListener("keydown",this.arrowKeysController)}}]),PoperSelectModal}(mixins(Zn));__decorate([Prop({default:""})],hi.prototype,"poperType",void 0),__decorate([Prop()],hi.prototype,"poperPos",void 0),__decorate([Prop()],hi.prototype,"poperSelectList",void 0),__decorate([Prop()],hi.prototype,"hoEditorId",void 0),__decorate([Ref()],hi.prototype,"poperSelectedModal",void 0),__decorate([Ref()],hi.prototype,"selectPoperList",void 0),__decorate([Watch("selectedList")],hi.prototype,"selectedListChange",null),hi=__decorate([an({name:"PoperSelectModal",components:{DatePanel:si,RecycleScroller:ui["a"]}})],hi);var pi=hi,fi=pi,_i=(Rr("9e74"),normalizeComponent(fi,PoperSelectvue_type_template_id_79fdead8_scoped_true_render,Xn,!1,null,"79fdead8",null)),gi=_i.exports,PoperMarkvue_type_template_id_12c8c810_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"poper-mark"})},mi=[],vi=function(Tr){Object(Qr["a"])(PoperMark,Tr);var Dr=Object(Zr["a"])(PoperMark);function PoperMark(){return Object(Xr["a"])(this,PoperMark),Dr.apply(this,arguments)}return PoperMark}(Kr.a);vi=__decorate([an({name:"PoperMark"})],vi);var yi=vi,bi=yi,wi=(Rr("2ed0"),normalizeComponent(bi,PoperMarkvue_type_template_id_12c8c810_render,mi,!1,null,null,null)),xi=wi.exports,TableCellPopervue_type_template_id_43382d6b_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"cell-poper-selected-modal animation-in",style:Tr.posStyle},[Rr("div",{staticStyle:{height:"0",overflow:"hidden"}},[Rr("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("defs",[Rr("g",{attrs:{id:"selected"}},[Rr("path",{attrs:{d:"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636",fill:"#2175FF"}})])])])]),Tr.isCanSearch?Rr("el-input",{attrs:{placeholder:"可搜索",size:"mini"},on:{input:Tr.searchList},model:{value:Tr.input,callback:function(Dr){Tr.input=Dr},expression:"input"}}):Tr._e(),1===Tr.editorProperty?Rr("div",{staticClass:"select-poper"},[Rr("ul",{staticClass:"list"},[Tr._l(Tr.currentList,(function(Dr,Ur){return Rr("li",{key:Dr.id,class:Dr.default?"selected":"",on:{click:function(Rr){return Tr.selectItems(Dr,Ur)}}},[Rr("span",[Tr._v(Tr._s(Dr.text.split("<元素>")[0]))]),Rr("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#selected"}})])])})),0===Tr.currentList.length?Rr("li",{staticStyle:{"text-align":"center"}},[Tr._v("无选项")]):Tr._e()],2),Tr.isAllowMultiSelect?Rr("footer",{style:{bottom:Tr.isAllowMultiSelect?"-34px":"0px"}},[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureSelect}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(Dr){Tr.selected=[]}}},[Tr._v("清空")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1):Tr._e()]):Tr._e(),2===Tr.editorProperty?Rr("div",{staticClass:"date-poper"},[Tr.inputStyle.includes("dd")?Rr("DatePanel",{attrs:{value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.inputStyle.includes("MM")&&!Tr.inputStyle.includes("dd")?Rr("DatePanel",{attrs:{dateType:"month",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.inputStyle.includes("yyyy")&&!Tr.inputStyle.includes("MM")?Rr("DatePanel",{attrs:{dateType:"year",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.inputStyle.includes("HH")?Rr("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[Rr("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:Tr.timeStyle,"value-format":Tr.timeStyle,size:"mini"},model:{value:Tr.time,callback:function(Dr){Tr.time=Dr},expression:"time"}})],1):Tr._e(),Rr("footer",[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureDate}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.currentDateTime}},[Tr._v(Tr._s(-1!==Tr.inputStyle.indexOf("HH")?"此刻":"今天"))]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(Dr){return Tr.handleClose("cancel")}}},[Tr._v("取消")])],1)],1):Tr._e()],1)},Ci=[],Pi=function(Tr){Object(Qr["a"])(getCellNodeMixins,Tr);var Dr=Object(Zr["a"])(getCellNodeMixins);function getCellNodeMixins(){return Object(Xr["a"])(this,getCellNodeMixins),Dr.apply(this,arguments)}return Object(Yr["a"])(getCellNodeMixins,[{key:"getCellNode",value:function getCellNode(Tr){var Dr=null,Rr=function isFn(Tr){null!==(null===Tr||void 0===Tr?void 0:Tr.parentNode)&&null!==Tr&&void 0!==Tr&&Tr.parentNode&&(Tr.parentNode instanceof En["a"]?Dr=Tr.parentNode:isFn(Tr.parentNode))};return Tr instanceof En["a"]?Tr:(Rr(Tr),Dr)}}]),getCellNodeMixins}(Kr.a);Pi=__decorate([an],Pi);var Ei=function(Tr){Object(Qr["a"])(TableCellPoper,Tr);var Dr=Object(Zr["a"])(TableCellPoper);function TableCellPoper(){var Tr;return Object(Xr["a"])(this,TableCellPoper),Tr=Dr.apply(this,arguments),Tr.isCanSearch=!1,Tr.input="",Tr.poperList=[],Tr.currentList=[],Tr.posStyle={left:"",right:"",top:"",bottom:""},Tr.dateFormat=Jn["d"],Tr.computedPoperPosition=Jn["a"],Tr.endPath="",Tr}return Object(Yr["a"])(TableCellPoper,[{key:"colProperty",get:function get(){var Tr=this.getcellNodes();return null===Tr?null:Tr.table.colInfos[Tr.row.indexOf(Tr)].colProperty}},{key:"cellProperty",get:function get(){var Tr=this.getcellNodes();return null===Tr||null!==this.colProperty&&0!==this.colProperty.editorProperty?null:Tr.cellProperty}},{key:"isAllowMultiSelect",get:function get(){return null===this.colProperty?null!==this.cellProperty&&!(this.cellProperty.editorProperty!==Sn["e"].DownList||!this.cellProperty.downListProperty.allowMultiSelected):!(this.colProperty.editorProperty!==Sn["e"].DownList||!this.colProperty.downListProperty.allowMultiSelected)||0===this.colProperty.editorProperty&&(null!==this.cellProperty&&!(this.cellProperty.editorProperty!==Sn["e"].DownList||!this.cellProperty.downListProperty.allowMultiSelected))}},{key:"editorProperty",get:function get(){return null!==this.colProperty&&0!==this.colProperty.editorProperty?this.colProperty.editorProperty:null!==this.cellProperty?this.cellProperty.editorProperty:0}},{key:"created",value:function created(){var Tr,Dr=this.getActiveDocId(),Rr=Tn["a"].instance().getFactory(Dr);this.endPath=Rr.docTree.curDomRange.normalize().endPath,null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.addEventListener("scroll",this.handleClose,!0),null===this.colProperty||this.colProperty.editorProperty!==Sn["e"].DateTime&&this.colProperty.editorProperty!==Sn["e"].DownList?null!==this.cellProperty&&this.cellProperty.editorProperty!==Sn["e"].None&&this.initTalbePoper(this.cellProperty):this.initTalbePoper(this.colProperty)}},{key:"getcellNodes",value:function getcellNodes(){var Tr,Dr=this.getActiveDocId(),Rr=Tn["a"].instance().getFactory(Dr),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.endPath))||void 0===Tr?void 0:Tr.node;return this.getCellNode(Ur)}},{key:"initTalbePoper",value:function initTalbePoper(Tr){var Dr=this;if(Tr.editorProperty===Sn["e"].DateTime){var Rr,Ur;this.inputStyle=null===(Rr=Tr.dateTimeProperty.inputStyle)||void 0===Rr?void 0:Rr.replace(/\hh/g,"HH");var Hr="";Hr=this.poperNode?this.poperNode:this.dateFormat(new Date,this.inputStyle),(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&this.inputStyle.includes("HH")?(this.dateStyle=this.inputStyle.split(" ")[0]?this.inputStyle.split(" ")[0]:"yyyy/MM/dd",this.timeStyle=this.inputStyle.split(" ")[1]?this.inputStyle.split(" ")[1]:"HH:mm:ss"):((this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.dateStyle=this.inputStyle),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(this.timeStyle=this.inputStyle)),Hr=Hr.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,""),Hr&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(Hr=Object(Jn["d"])(new Date,"yyyy")+"/"+Hr),Hr&&":"===Hr[Hr.length-1]&&(Hr=Hr.substr(0,Hr.length-1)),Hr&&(Object(Jn["i"])(Hr)||Object(Jn["i"])("2021/10/08 "+Hr))?(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))?(this.date=Hr.split(" ")[0],this.time=Hr):((this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.date=Hr),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd ")+Hr)):(this.date=Object(Jn["d"])(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd "+this.timeStyle))),this.date=null===(Ur=this.date)||void 0===Ur?void 0:Ur.replace(/[^\d]/g,"/");var Wr=0;(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(Wr=300),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(Wr=90),(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(Wr=350),this.posStyle=this.computedPoperPosition(Wr,this.poperPos)}else if(Tr.editorProperty===Sn["e"].DownList){var zr,Vr=[];if(this.poperNode){var Kr=",";[",","、","/","-"].forEach((function(Tr){Dr.poperNode.includes(Tr)&&(Kr=Tr)})),Vr=this.poperNode.split(Kr)}this.poperList=Tr.downListProperty.listItems?Object(Gr["a"])(JSON.parse(Tr.downListProperty.listItems)):[],null===(zr=this.poperList)||void 0===zr||zr.forEach((function(Tr){Tr.default=!1,1===Vr.filter((function(Dr){return Tr.text.split("<元素>")[0]==Dr})).length&&(Tr.default=!0)})),this.currentList=Object(Gr["a"])(this.poperList),this.poperList.length>20&&(this.isCanSearch=!0);var $r=36*this.poperList.length+36;if(this.isAllowMultiSelect&&($r+=36),this.isCanSearch&&($r+=28),$r<360){var Jr=this.computedPoperPosition($r,this.poperPos);delete Jr["height"],this.posStyle=Jr}else{var Xr=this.computedPoperPosition(360,this.poperPos);delete Xr["height"],this.posStyle=Xr}}}},{key:"getTime",value:function getTime(Tr){this.date=Tr.value,"dblclick"==Tr.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var Tr=this.dateFormat(new Date,this.inputStyle),Dr=this.getcellNodes();null===Dr||void 0===Dr||Dr.setCellText(Tr),this.handleClose()}},{key:"sureDate",value:function sureDate(){var Tr="";if(this.date){if(Tr=this.date,this.time){var Dr=this.time.replace(/['年'|'月'|'-']/g,"/").replace(/['时'|'分']/g,":").replace(/['秒']/g,"");Dr.includes("/")?Tr+=" "+Dr.split(" ")[1]:Tr+=" "+Dr}}else Tr="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);Tr=this.dateFormat(Tr,this.inputStyle);var Rr=this.getcellNodes();null===Rr||void 0===Rr||Rr.setCellText(Tr),this.handleClose()}},{key:"searchList",value:function searchList(Tr){var Dr=[];Tr?this.poperList.map((function(Rr){-1!==Rr.value.indexOf(Tr)&&Dr.push(Rr)})):Dr=Object(Gr["a"])(this.poperList),this.currentList=Object(Gr["a"])(Dr)}},{key:"selectItems",value:function selectItems(Tr,Dr){this.isAllowMultiSelect?(this.poperList.forEach((function(Dr){Dr.id===Tr.id&&(Dr.default=!Dr.default)})),this.currentList=Object(Gr["a"])(this.poperList),this.searchList(this.input)):(this.poperList.forEach((function(Tr){Tr.default=!1})),Tr.default=!Tr.default,this.poperList.splice(Dr,1,Tr),this.currentList=Object(Gr["a"])(this.poperList),this.sureSelect())}},{key:"sureSelect",value:function sureSelect(){var Tr=this,Dr="",Rr=this.poperList.filter((function(Tr){return Tr.default})),Ur=Rr.length;Ur>0&&(Rr.map((function(Ur,Hr){var Wr,zr;Hr<Rr.length-1?(zr=null!==Tr.colProperty&&0!==Tr.colProperty.editorProperty?Tr.colProperty:Tr.cellProperty,Dr+=Ur.text+(null===(Wr=zr)||void 0===Wr?void 0:Wr.downListProperty.splitCharacter)):Dr+=Ur.text;return Ur})),""===Dr.replace(/\s*/g,"")&&(Dr=" "));var Hr=this.getcellNodes();null===Hr||void 0===Hr||Hr.setCellText(Dr),this.handleClose()}},{key:"handleClose",value:function handleClose(){var Tr=this;this.$nextTick((function(){return Tr.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr;null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.removeEventListener("scroll",this.handleClose,!0)}}]),TableCellPoper}(mixins(Zn,Pi));__decorate([Prop()],Ei.prototype,"poperNode",void 0),__decorate([Prop()],Ei.prototype,"poperPos",void 0),__decorate([Inject("getActiveDocId")],Ei.prototype,"getActiveDocId",void 0),Ei=__decorate([an({name:"TableCellPoper",components:{DatePanel:si}})],Ei);var Si=Ei,Ti=Si,Di=(Rr("87d2"),normalizeComponent(Ti,TableCellPopervue_type_template_id_43382d6b_scoped_true_render,Ci,!1,null,"43382d6b",null)),ki=Di.exports;const Oi="function"===typeof window.WeakMap&&"function"===typeof window.Map,Ii=function(){if(Oi)return window.WeakMap;function getIndex(Tr,Dr){let Rr=-1;return Tr.some((Tr,Ur)=>{let Hr=Tr[0]===Dr;return Hr&&(Rr=Ur),Hr}),Rr}return class{constructor(){this.__entries__=[]}get(Tr){let Dr=getIndex(this.__entries__,Tr);return this.__entries__[Dr][1]}set(Tr,Dr){let Rr=getIndex(this.__entries__,Tr);~Rr?this.__entries__[Rr][1]=Dr:this.__entries__.push([Tr,Dr])}delete(Tr){let Dr=this.__entries__,Rr=getIndex(Dr,Tr);~Rr&&Dr.splice(Rr,1)}has(Tr){return!!~getIndex(this.__entries__,Tr)}}}(),Mi=function(){return Oi?window.Map:class extends Ii{get size(){return this.__entries__.length}clear(){this.__entries__.splice(0,this.__entries__.length)}entries(){return this.__entries__.slice()}keys(){return this.__entries__.map(Tr=>Tr[0])}values(){return this.__entries__.map(Tr=>Tr[1])}forEach(Tr,Dr=null){for(const Rr of this.__entries__)Tr.call(Dr,Rr[1],Rr[0])}}}();var Ni=function(){return window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now()}();const Li="function"===typeof window.MutationObserver,Ai=function(){return window.requestAnimationFrame?window.requestAnimationFrame:Tr=>setTimeout(()=>Tr(Ni()),1e3/60)}();function debounce(Tr,Dr=0){let Rr=!1;return function(...Ur){!1!==Rr&&clearTimeout(Rr),Rr=setTimeout(()=>{Rr=!1,Tr.apply(this,Ur)},Dr)}}class IntersectionObserverController_IntersectionObserverController{constructor(Tr=50,Dr=!1){this._idleTimeout=Tr,this._trackHovers=Dr,this._cycleStartTime=-1,this._isUpdateScheduled=!1,this._repeatCycle=!1,this._hoverInitiated=!1,this._mutationsObserver=null,this._isListening=!1,this._observers=[],this.startUpdateCycle=this.startUpdateCycle.bind(this),this.scheduleUpdate=this.scheduleUpdate.bind(this),this._onMutation=this._onMutation.bind(this),this._repeatHandler=debounce(this.scheduleUpdate,200),this._onMouseOver=debounce(this.startUpdateCycle,200)}get idleTimeout(){return this._idleTimeout}set idleTimeout(Tr){this._idleTimeout=Tr}connect(Tr){this.isConnected(Tr)||this._observers.push(Tr),this._isListening||this._initListeners()}disconnect(Tr){let Dr=this._observers,Rr=Dr.indexOf(Tr);~Rr&&Dr.splice(Rr,1),!Dr.length&&this._isListening&&this._removeListeners()}isConnected(Tr){return!!~this._observers.indexOf(Tr)}_updateObservers(){let Tr=!1;for(const Dr of this._observers)Dr.updateObservations()&&(Tr=!0),Dr.hasEntries()&&Dr.notifySubscriber();return Tr}startUpdateCycle(){this._cycleStartTime=Ni(),this.scheduleUpdate()}scheduleUpdate(Tr){let Dr="number"===typeof Tr;if(Dr){const Tr=this._updateObservers();if(this._isUpdateScheduled=!1,!this._wasCycleStarted())return;Tr?this.startUpdateCycle():this._hasIdleTimeEnded()?this._onCycleEnded():this.scheduleUpdate()}else this._isUpdateScheduled||(Ai(this.scheduleUpdate),this._isUpdateScheduled=!0)}_hasIdleTimeEnded(){return Ni()-this._cycleStartTime>this._idleTimeout}_wasCycleStarted(){return-1!==this._cycleStartTime}_onCycleEnded(){this._cycleStartTime=-1,this._repeatCycle&&(this._cycleStartTime=0,this._repeatHandler())}_initListeners(){this._isListening||(this._isListening=!0,window.addEventListener("resize",this.startUpdateCycle,!0),window.addEventListener("scroll",this.scheduleUpdate,!0),this._trackHovers&&this._addHoverListener(),Li?(this._mutationsObserver=new MutationObserver(this._onMutation),this._mutationsObserver.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(this._repeatCycle=!0,window.addEventListener("click",this.startUpdateCycle,!0),this.startUpdateCycle()))}_removeListeners(){this._isListening&&(window.removeEventListener("resize",this.startUpdateCycle,!0),window.removeEventListener("scroll",this.scheduleUpdate,!0),this._removeHoverListener(),Li?this._mutationsObserver&&(this._mutationsObserver.disconnect(),this._mutationsObserver=null):(this._repeatCycle=!1,window.removeEventListener("click",this.startUpdateCycle,!0)),this._isListening=!1)}enableHover(){this._trackHovers=!0,this._isListening&&this._addHoverListener()}disableHover(){this._trackHovers=!1,this._removeHoverListener()}isHoverEnabled(){return this._trackHovers}_addHoverListener(){this._hoverInitiated||(window.addEventListener("mouseover",this._onMouseOver,!0),this._hoverInitiated=!0)}_removeHoverListener(){this._hoverInitiated&&(window.removeEventListener("mouseover",this._onMouseOver,!0),this._hoverInitiated=!1)}_onMutation(Tr){const Dr=Tr.every(Tr=>"attributes"!==Tr.type);Dr?this.scheduleUpdate():this.startUpdateCycle()}}function mapToClientRect(Tr){const Dr={};for(const Rr of Object.keys(Tr))Dr[Rr]={value:Tr[Rr]};return Object.defineProperties({},Dr)}function createRectangle(Tr=0,Dr=0,Rr=0,Ur=0){return{left:Tr,top:Dr,width:Rr,height:Ur,bottom:Dr+Ur,right:Tr+Rr}}function getRectangle(Tr){return Tr===document.documentElement?createRectangle(0,0,Tr.clientWidth,Tr.clientHeight):Tr.getBoundingClientRect()}function getArea(Tr){return Tr.width*Tr.height}function isEmpty(Tr){return 0===Tr.height&&0===Tr.width}function isEqual(Tr,Dr){return Tr.top===Dr.top&&Tr.left===Dr.left&&Tr.right===Dr.right&&Tr.bottom===Dr.bottom}class IntersectionObserverEntry_IntersectionObserverEntry{constructor(Tr,Dr,Rr,Ur,Hr,Wr){Object.defineProperties(this,{boundingClientRect:{value:Dr},intersectionRatio:{value:Ur},intersectionRect:{value:mapToClientRect(Rr)},rootBounds:{value:mapToClientRect(Hr)},target:{value:Tr},time:{value:Wr}})}}const Ri=createRectangle();function isDetached(Tr,Dr){const Rr=document.documentElement;return Tr!==Rr&&!Rr.contains(Tr)||!Tr.contains(Dr)}function computeIntersection(Tr,Dr){const Rr=Math.max(Dr.left,Tr.left),Ur=Math.min(Dr.right,Tr.right),Hr=Math.max(Dr.top,Tr.top),Wr=Math.min(Dr.bottom,Tr.bottom),zr=Ur-Rr,Vr=Wr-Hr;return createRectangle(Rr,Hr,zr,Vr)}function getIntersection(Tr,Dr,Rr,Ur){let Hr=Ur,Wr=Dr.parentNode,zr=!1;while(!zr){let Dr=null;Wr===Tr||1!==Wr.nodeType?(zr=!0,Dr=Rr):"visible"!==window.getComputedStyle(Wr).overflow&&(Dr=getRectangle(Wr)),Dr&&(Hr=computeIntersection(Hr,Dr)),Wr=Wr.parentNode}return Hr}class IntersectionObservation_IntersectionObservation{constructor(Tr,Dr){this.target=Tr,this.observer=Dr,this.prevTargetRect=Ri,this.prevThreshold=0,this.prevRatio=0}updateIntersection(Tr,Dr){let Rr,Ur=getRectangle(this.target),Hr=this.getIntersectionData(Tr,Dr,Ur),Wr=+Hr.exists,zr=Hr.ratio!==this.prevRatio,Vr=!isEqual(Ur,this.prevTargetRect);if(Hr.exists&&!isEmpty(Ur)&&(Wr=this.observer.getThresholdGreaterThan(Hr.ratio)),Rr=Wr!==this.prevThreshold,this.prevTargetRect=Ur,this.prevThreshold=Wr,this.prevRatio=Hr.ratio,Hr.exists||(Hr.ratio=0,Hr.rect=Ri),Rr){const Tr=new IntersectionObserverEntry_IntersectionObserverEntry(this.target,Ur,Hr.rect,Hr.ratio,Dr,Ni());this.observer.queueEntry(Tr)}return{ratioChanged:zr,thresholdChanged:Rr,targetRectChanged:Vr}}getIntersectionData(Tr,Dr,Rr){const Ur=this.target;Rr||(Rr=getRectangle(this.target)),Dr||(Dr=getRectangle(Tr));let Hr=isDetached(Tr,Ur),Wr=Hr?Ri:getIntersection(Tr,Ur,Dr,Rr),zr=!Hr&&Wr.width>=0&&Wr.height>=0,Vr=getArea(Wr)/getArea(Rr)||0;return{rect:Wr,ratio:Vr,exists:zr}}}function parseThresholds(Tr=0){let Dr=Tr;return Array.isArray(Tr)?Tr.length||(Dr=[0]):Dr=[Tr],Dr.map(Tr=>{if(Tr=Number(Tr),!window.isFinite(Tr))throw new TypeError("The provided double value is non-finite.");if(Tr<0||Tr>1)throw new RangeError("Threshold values must be between 0 and 1.");return Tr}).sort()}function parseMargins(Tr="0px"){if(Tr=(Tr+"").split(/\s+/),Tr.length>4)throw new Error("Extra text found at the end of rootMargin.");Tr[0]=Tr[0]||"0px",Tr[1]=Tr[1]||Tr[0],Tr[2]=Tr[2]||Tr[0],Tr[3]=Tr[3]||Tr[1];const Dr=Tr.join(" "),Rr=Tr.map(Tr=>{let[,Dr,Rr]=/^(-?\d*\.?\d+)(px|%)$/.exec(Tr)||[];const Ur="px"===Rr;if(Dr=parseFloat(Dr),!window.isFinite(Dr))throw new Error("rootMargin must be specified in pixels or percent.");return Ur||(Dr/=100),{value:Dr,pixels:Ur}});return{rawData:Dr,parsedData:Rr}}function applyMargins(Tr,Dr){Dr=Dr.map((Dr,Rr)=>{let Ur=Dr.value;return Dr.pixels||(Ur*=Rr%2?Tr.width:Tr.height),Ur});const Rr={top:Tr.top-Dr[0],right:Tr.right+Dr[1],bottom:Tr.bottom+Dr[2],left:Tr.left-Dr[3]};return Rr.width=Rr.right-Rr.left,Rr.height=Rr.bottom-Rr.top,Rr}class _IntersectionObserver_IntersectionObserver{constructor(Tr,Dr={},Rr,Ur){if("function"!==typeof Tr)throw new TypeError("The callback provided as parameter 1 is not a function.");if("object"!==typeof Dr)throw new TypeError("parameter 2 is not an object.");if("root"in Dr&&!(Dr.root instanceof Element))throw new TypeError("member root is not of type Element.");const Hr=parseThresholds(Dr.threshold),Wr=parseMargins(Dr.rootMargin);this.root=Dr.root||null,this.rootMargin=Wr.rawData,this.thresholds=Object.freeze(Hr),this._root=Dr.root||document.documentElement,this._callback=Tr,this._rootMargin=Wr.parsedData,this._targets=new Mi,this._quedEntries=[],this._publicObserver=Ur||this,this.controller=Rr}observe(Tr){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(Tr instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let Dr=this._targets;Dr.has(Tr)||(Dr.set(Tr,new IntersectionObservation_IntersectionObservation(Tr,this)),this.controller.isConnected(this)||this.controller.connect(this),this.controller.startUpdateCycle())}unobserve(Tr){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(Tr instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let Dr=this._targets;Dr.has(Tr)&&Dr.delete(Tr),Dr.size||this.disconnect()}disconnect(){this._targets.clear(),this.controller.disconnect(this)}takeRecords(){return this._quedEntries.splice(0)}notifySubscriber(){const Tr=this.takeRecords(),Dr=this._publicObserver;Tr.length&&this._callback.call(Dr,Tr,Dr)}queueEntry(Tr){this._quedEntries.push(Tr)}hasEntries(){return!!this._quedEntries.length}updateObservations(){let Tr=this._root,Dr=this.getRootRect(),Rr=!1;return this._targets.forEach(Ur=>{const Hr=Ur.updateIntersection(Tr,Dr);(Hr.ratioChanged||Hr.targetRectChanged)&&(Rr=!0)}),Rr}getThresholdGreaterThan(Tr){let Dr=this.thresholds,Rr=Dr.length,Ur=0;while(Ur<Rr&&Dr[Ur]<=Tr)++Ur;return Ur}getRootRect(){let Tr=getRectangle(this._root);return applyMargins(Tr,this._rootMargin)}}const Fi=new IntersectionObserverController_IntersectionObserverController,ji=new Ii;class IntersectionObserver_IntersectionObserver{constructor(Tr,Dr){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");const Rr=new _IntersectionObserver_IntersectionObserver(Tr,Dr,Fi,this);Object.defineProperties(this,{root:{value:Rr.root},thresholds:{value:Rr.thresholds},rootMargin:{value:Rr.rootMargin}}),ji.set(this,Rr)}static get idleTimeout(){return Fi.idleTimeout}static set idleTimeout(Tr){if("number"!==typeof Tr)throw new TypeError('type of "idleTimeout" value must be a number.');if(typeof Tr<0)throw new TypeError('"idleTimeout" value must be greater than 0.');Fi.idleTimeout=Tr}static get trackHovers(){return Fi.isHoverEnabled()}static set trackHovers(Tr){if("boolean"!==typeof Tr)throw new TypeError('type of "trackHovers" value must be a boolean.');Tr?Fi.enableHover():Fi.disableHover()}}["observe","unobserve","disconnect","takeRecords"].forEach(Tr=>{IntersectionObserver_IntersectionObserver.prototype[Tr]=function(){return ji.get(this)[Tr](...arguments)}});var Bi=IntersectionObserver_IntersectionObserver;let Ui;Ui="function"===typeof window.IntersectionObserver?window.IntersectionObserver:Bi;var Hi=Ui,Wi=Rr("2bc5"),qi=Rr("1551"),zi="2.0.8",PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"show",rawName:"v-show",value:Tr.isShow,expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:Tr.handleClose,expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:Tr.posStyle,on:{mouseenter:Tr.mouseEnter,mouseleave:Tr.mouseLeave}},Tr._l(Tr.poperText,(function(Dr){return Rr("div",{key:Dr+Math.random(0,1),staticClass:"poper-text"},[Tr._v(" "+Tr._s(Dr)+" ")])})),0)},Vi=[],Ki=(Rr("a630"),function(Tr){Object(Qr["a"])(PoperTipText,Tr);var Dr=Object(Zr["a"])(PoperTipText);function PoperTipText(){var Tr;return Object(Xr["a"])(this,PoperTipText),Tr=Dr.apply(this,arguments),Tr.posStyle={left:"",right:"",top:"",bottom:""},Tr.poperDirection="top",Tr.isShow=!1,Tr.isEnter=!1,Tr.poperTimer=null,Tr.poppernIstance=null,Tr.generateGetBoundingClientRect=function(Tr,Dr){var Rr=Array.from(document.querySelectorAll(".edit-area"))[Tr.docIndex],Ur=Array.from(Rr.querySelectorAll(".selectcanvas"))[Tr.pageIndex],Hr=Ur.getBoundingClientRect(),Wr=Hr.left+Tr.x,zr=Hr.top+Tr.y;return function(){return{width:Tr.width,height:Tr.height,top:zr-Tr.height,right:Wr,bottom:zr+Tr.height,left:Wr}}},Tr}return Object(Yr["a"])(PoperTipText,[{key:"isPoperTextChange",value:function isPoperTextChange(){var Tr=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.isPoperText?this.poperTimer=setTimeout((function(){Tr.isShow=Tr.isPoperText}),600):this.isEnter||(this.poperTimer=setTimeout((function(){Tr.isShow=Tr.isPoperText}),300))}},{key:"positionChange",value:function positionChange(Tr){"[]"!==JSON.stringify(this.poperText)&&this.init()}},{key:"init",value:function init(){if(void 0!=this.poperPos.docIndex){var Tr={getBoundingClientRect:this.generateGetBoundingClientRect(this.poperPos)};this.poppernIstance=Object(di["a"])(Tr,this.poperTextNode,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","top-start","right-start","left-start"],padding:10}}]})}}},{key:"mounted",value:function mounted(){window.addEventListener("scroll",this.handleClose,!0),"[]"!==JSON.stringify(this.poperText)&&null==this.poppernIstance&&this.init()}},{key:"mouseEnter",value:function mouseEnter(){this.isEnter=!0}},{key:"mouseLeave",value:function mouseLeave(){var Tr=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.poperTimer=setTimeout((function(){Tr.isEnter=!1,Tr.isShow=!1,Tr.handleClose()}),300)}},{key:"handleClose",value:function handleClose(){this.$emit("poperTextClose"),this.poppernIstance=null}},{key:"beforeDestroy",value:function beforeDestroy(){document.removeEventListener("scroll",this.handleClose,!0)}}]),PoperTipText}(mixins(Zn)));__decorate([Prop()],Ki.prototype,"poperPos",void 0),__decorate([Prop()],Ki.prototype,"poperText",void 0),__decorate([Prop()],Ki.prototype,"isPoperText",void 0),__decorate([Ref()],Ki.prototype,"poperTextNode",void 0),__decorate([Watch("isPoperText")],Ki.prototype,"isPoperTextChange",null),__decorate([Watch("poperPos",{deep:!0})],Ki.prototype,"positionChange",null),Ki=__decorate([an({name:"PoperTipText"})],Ki);var $i=Ki,Gi=$i,Ji=(Rr("f96b"),normalizeComponent(Gi,PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render,Vi,!1,null,"3fa4e4d3",null)),Xi=Ji.exports,Yi=Xi,Qi=function(Tr){Object(Qr["a"])(HoDoc,Tr);var Dr=Object(Zr["a"])(HoDoc);function HoDoc(){var Tr;return Object(Xr["a"])(this,HoDoc),Tr=Dr.apply(this,arguments),Tr.dateFormat=Jn["d"],Tr.canvasParams={width:794*Dn["a"].instance().scaleXY%2>=1?794*Dn["a"].instance().scaleXY+1:794*Dn["a"].instance().scaleXY,height:1122*Dn["a"].instance().scaleXY%2>=1?1122*Dn["a"].instance().scaleXY+1:1122*Dn["a"].instance().scaleXY},Tr.canvasHeadFootPos={headerY:48,footerY:48},Tr.poperTipPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},Tr.drawing=!1,Tr.nodeValue="",Tr.poperType="",Tr.poperTextPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},Tr.drawPageCount={count:-1},Tr.poperSelectList=[],Tr.activePageIndex={index:-1},Tr.viewableAreaObserver=null,Tr.inViewPages=[0],Tr.paginationCount=200,Tr.drawPageLength=0,Tr.isCreateRightMenuModal=!1,Tr.version=zi,Tr.isHideComments=!1,Tr.showCommentsBtn=!1,Tr.domRange={startPath:"",endPath:""},Tr.poperText=[],Tr.isPoperText=!1,Tr.poperId=[],Tr}return Object(Yr["a"])(HoDoc,[{key:"docClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-area edit-area-padding":"edit-area"}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(){this.$emit("drawPagesLengthChange",this.drawPageCount.count),this.drawPageLength=this.drawPageCount.count}},{key:"activePageIndexChange",value:function activePageIndexChange(){this.$emit("setActivePageIndex",this.activePageIndex.index)}},{key:"poperTipPosChange",value:function poperTipPosChange(Tr){if(Tr){var Dr=Tn["a"].instance().getFactory(this.hoEditorId);if(5===Dr.drawTree.paintStatus)return;if('[""]'===JSON.stringify(this.mouseMoveNodes.tipText))return;if(0===this.mouseMoveNodes.tipText.length)return;0===this.mouseMoveNodes.moveType?(this.isPoperText=!0,this.poperText=this.mouseMoveNodes.tipText,this.poperId=this.mouseMoveNodes.id,this.poperTextPos=_objectSpread2(_objectSpread2({},Tr),{},{docIndex:this.docIndex})):this.isPoperText=!1}}},{key:"isUseTipTextChange",value:function isUseTipTextChange(){var Tr=Tn["a"].instance().getFactory(this.hoEditorId);Tr.nodeMouseMove.isUseTipText=this.isUseTipText}},{key:"created",value:function created(){var Tr=Tn["a"].instance().getFactory(this.hoEditorId);Tr.hoEditorFactoryIndex=this.docIndex,Tr.docTree.initBlankDoc(),this.mouseMoveNodes=Tr.nodeMouseMove,window.addEventListener("keydown",(function(Dr){Tr.docTree.updateCtlKey(Dr)})),window.addEventListener("keyup",(function(Dr){Tr.docTree.updateCtlKey(Dr)}))}},{key:"mounted",value:function mounted(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId);Dr.pageProperty.canvasParams=this.canvasParams,Dr.nodeMouseMove.poperTipPos=this.poperTipPos,Dr.nodeMouseMove.isUseTipText=this.isUseTipText,Dr.pageProperty.canvasHeadFootPos=this.canvasHeadFootPos,Dr.drawPageTree.initDoc(),Dr.drawTree.drawPageCount=this.drawPageCount,Dr.drawTree.activePageIndex=this.activePageIndex,this.drawing=!1;var Rr=this.hoEditorFactoryIdList.length;0===this.docIndex&&Dr.drawTree.buildDrawTree(Dr.docTree.headerNodes[0],Dr.drawTree.headerDNodes[0]),this.docIndex===Rr-1&&Dr.drawTree.buildDrawTree(Dr.docTree.footerNodes[0],Dr.drawTree.footerDNodes[0]),Dr.drawTree.buildDrawTree(Dr.docTree.mainNodes,Dr.drawTree.mainDNodes),Dr.drawTree.addPage(),Dr.drawTree.drawPageCount.count=Dr.drawTree.drawPages.length,Dr.docTree.addEventListener(bn["a"].eventName,(function(Dr){return Tr.mouseClickEvent(Dr)})),Dr.drawPageTree.changeInViewPage()}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr,Dr=this,Rr=Tn["a"].instance().getFactory(this.hoEditorId);null===(Tr=this.viewableAreaObserver)||void 0===Tr||Tr.disconnect(),Rr.docTree.removeEventListener(bn["a"].eventName,(function(Tr){return Dr.mouseClickEvent(Tr)}))}},{key:"pageIntersectionObserver",value:function pageIntersectionObserver(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId);this.viewableAreaObserver=new Hi((function(Rr){if(Rr){var Ur=Object(Gr["a"])(Dr.drawTree.inViewPages);Rr.forEach((function(Tr){var Rr=Number(Tr.target.dataset.id),Hr=Dr.drawTree.drawPages[Rr],Wr=Dr.drawTree.drawPages.length;Hr&&Hr.needUpdateStage&&Hr.drawDomLevel&&(Dr.drawPageTree.updateDrawPage(Hr.pageIndex),Hr.needUpdateStage=!1),0===Tr.intersectionRatio?Ur=Ur.filter((function(Tr){return Hr&&Tr!==Hr.pageIndex})):!Ur.includes(Hr.pageIndex)&&Ur.push(Hr.pageIndex),Ur=Ur.filter((function(Tr){return Tr<Wr})).sort()})),Tr.inViewPages=Object(Gr["a"])(Ur),Dr.drawTree.inViewPages=Object(Gr["a"])(Ur),Dr.drawPageTree.changeInViewPage()}}),{root:null,rootMargin:"0px",threshold:[0,1]})}},{key:"setActiveDocIndex",value:function setActiveDocIndex(Tr){Tr!==this.activeDocId&&this.$emit("setActiveDocIndex",this.hoEditorId)}},{key:"poperClose",value:function poperClose(){this.poperType="",this.nodeValue=""}},{key:"mouseClickEvent",value:function mouseClickEvent(Tr){var Dr=this,Rr=Tn["a"].instance().getFactory(this.hoEditorId);if(4===Rr.drawTree.paintStatus||5===Rr.drawTree.paintStatus)return!1;if(!Tr.clickType||"move"===Tr.clickType)return!1;var Ur=Tr.node;if(this.poperClose(),Ur&&null!==Ur&&Ur instanceof wn["a"]){var Hr=Tr.pageIndex;"dblclick"===Tr.clickType?setTimeout((function(){Dr.dblclickModal(Ur,"dblclick",Hr)}),150):"leftclick"===Tr.clickType&&this.$emit("setFontStyles")}return!0}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.activeDocId),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.domRange.endPath))||void 0===Tr?void 0:Tr.node;if(Ur)return Ur.parentNode instanceof ei["f"]?Dr=Ur.parentNode:(Ur instanceof Wi["a"]||Ur instanceof Qn["a"])&&(Dr=Ur),Dr}},{key:"dblclickModal",value:function dblclickModal(Tr,Dr,Rr){var Ur=this;if(this.poperType)return!1;if("dblclick"!==Dr)return!1;var Hr=Tn["a"].instance().getFactory(this.activeDocId);if(this.domRange={startPath:Hr.docTree.curDomRange.normalize().startPath,endPath:Hr.docTree.curDomRange.normalize().endPath},Tr instanceof Wi["a"])this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"sign"});else if(Tr instanceof Yn["a"]){if(Tr.isReadOnly&&""!==Tr.text.replace(/\s*/g,""))return!1;this.computedPoperPosition(Tr,Rr),this.poperType="datePoper"}else if(Tr instanceof Qn["a"]){if(Tr.isReadOnly&&""!==Tr.text.replace(/\s*/g,""))return!1;var Wr=function callback(Dr){Ur.computedPoperPosition(Tr,Rr),Array.isArray(Dr)&&Dr.length>0?Ur.poperSelectList=Dr:Ur.poperSelectList=Tr.downListContent?Tr.downListContent:[],Ur.poperType="selectPoper"};Tr.customProperty&&1==Tr.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"downlist",callback:Wr}):Wr(void 0)}else if((Tr instanceof ci["a"]||Tr instanceof li["a"])&&Tr.parentNode instanceof ei["f"]){var zr=Tr.parentNode;if(0===Number(zr.inputFieldType))return this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"text"}),this.setUpdateNodeValue(this.getCurrentSelectNode()),!1;if(0===zr.readOnlyStatus&&""!==zr.text.replace(/\s*/g,""))return!1;if(2===Number(zr.inputFieldType))this.poperType="datePoper";else if(1===Number(zr.inputFieldType)){var Vr=function _callback(Dr){Ur.computedPoperPosition(Tr,Rr),Array.isArray(Dr)&&Dr.length>0?Ur.poperSelectList=Dr:Ur.poperSelectList=JSON.parse(zr.downListProperty.listItems),Ur.poperType="selectPoper"};zr.customProperty&&1==zr.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"textlist",callback:Vr}):Vr(void 0)}}else Tr.parentNode instanceof En["a"]?this.handleCellNode(Tr,Tr.parentNode,Rr):this.setDblclickNodeValue(Tr,"dblclick")}},{key:"handleCellNode",value:function handleCellNode(Tr,Dr,Rr){var Ur,Hr=Dr.table.colInfos[Dr.row.indexOf(Dr)].colProperty,Wr=Dr.cellProperty,zr=!0;if(null!==Hr&&0===Hr.editorProperty&&null!==Wr&&0!==Wr.editorProperty)if(1===Wr.editorProperty&&1===JSON.parse(null===(Ur=Wr.downListProperty)||void 0===Ur?void 0:Ur.listItems).length){var Vr,Kr=JSON.parse(null===(Vr=Wr.downListProperty)||void 0===Vr?void 0:Vr.listItems);Dr.setCellText(Kr[0].text),zr=!1}else if(2===Wr.editorProperty&&Wr.dateTimeProperty.isAutoInputCurDate){var $r=this.dateFormat(new Date,Wr.dateTimeProperty.inputStyle);Dr.setCellText($r),zr=!1}zr&&(Tr instanceof ci["a"]?this.nodeValue=Tr.text:Tr instanceof qi["a"]&&(this.nodeValue=""),this.poperType="table-cell-poper",this.computedPoperPosition(Tr,Rr))}},{key:"computedPoperPosition",value:function computedPoperPosition(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this.hoEditorId),Ur=Tr.drawNodes[0],Hr=Rr.drawTree.getDrawLineByDNode(Ur),Wr=Hr.localToGlobal(Ur.x,0===Ur.y?Hr.dHeight:Ur.y);this.poperPos={x:Wr.x/Dn["a"].instance().scaleXY,y:Wr.y/Dn["a"].instance().scaleXY+5,width:Ur.dWidth?Ur.dWidth:0,height:Hr.dHeight,pageIndex:Dr,docIndex:this.docIndex?this.docIndex:0}}},{key:"mouseRightClickEvent",value:function mouseRightClickEvent(Tr){var Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorId),Ur={clientX:Tr.clientX||Tr.pageX,clientY:Tr.clientY||Tr.pageY};if(0!==Rr.drawTree.paintStatus&&1!==Rr.drawTree.paintStatus){var Hr=Tn["a"].instance().getFactory(this.hoEditorId);return this.isCreateRightMenuModal=!0,Hr.drawTree.paintStatus!==mn["b"].psReview&&(this.isHideComments=Hr.isHideComments,this.showCommentsBtn=!0),void Object(Jn["c"])(Ur.clientX,Ur.clientY,this.rightMenuModal)}var Wr=Rr.vueController.getCaretPosition(),zr=null===(Dr=Rr.vueController.findNodebyPath(Wr))||void 0===Dr?void 0:Dr.node;zr&&null!==zr&&zr instanceof wn["a"]&&this.setRightClickNodeValue(zr),Rr.drawTree.selectRange.beginRangeSelect=!1,this.$emit("rightClickEvent",Ur)}},{key:"hideComments",value:function hideComments(){this.isCreateRightMenuModal=!1;var Tr=Tn["a"].instance().getFactory(this.hoEditorId);Tr.vueController.hideComments(!Tr.isHideComments)}},{key:"poperTextClose",value:function poperTextClose(){this.isPoperText=!1}},{key:"pageReady",value:function pageReady(Tr){try{null===this.viewableAreaObserver&&this.pageIntersectionObserver();var Dr=Tn["a"].instance().getFactory(this.hoEditorId);this.drawing=!0,Dr.drawTree.paintHeader(Tr.pageIndex),Dr.drawTree.paintFooter(Tr.pageIndex),Tr.reFreshBounds(),Dr.drawPageTree.changeInViewPage(),Tr.drawDomLevel&&Dr.drawPageTree.updateDrawPage(Tr.pageIndex)}finally{this.drawing=!1}}}]),HoDoc}(Kr.a);__decorate([Prop()],Qi.prototype,"docIndex",void 0),__decorate([Prop()],Qi.prototype,"hoEditorId",void 0),__decorate([Prop()],Qi.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],Qi.prototype,"activeDocId",void 0),__decorate([Prop()],Qi.prototype,"editJson",void 0),__decorate([Ref()],Qi.prototype,"editorArea",void 0),__decorate([Ref()],Qi.prototype,"rightMenuModal",void 0),__decorate([Prop()],Qi.prototype,"isUseTipText",void 0),__decorate([Watch("drawPageCount",{deep:!0})],Qi.prototype,"drawPagesLengthChange",null),__decorate([Inject("setRightClickNodeValue")],Qi.prototype,"setRightClickNodeValue",void 0),__decorate([Inject("setDblclickNodeValue")],Qi.prototype,"setDblclickNodeValue",void 0),__decorate([Inject("setUpdateNodeValue")],Qi.prototype,"setUpdateNodeValue",void 0),__decorate([Watch("activePageIndex",{deep:!0})],Qi.prototype,"activePageIndexChange",null),__decorate([Watch("poperTipPos",{deep:!0})],Qi.prototype,"poperTipPosChange",null),__decorate([Watch("isUseTipText")],Qi.prototype,"isUseTipTextChange",null),Qi=__decorate([an({name:"HoDoc",components:{HoPage:Wn,HoToPage:Gn,PoperMark:xi,PoperTipText:Yi,PoperSelectModal:gi,TableCellPoper:ki}})],Qi);var Zi,ea=Qi,ta=ea,ra=(Rr("560f"),normalizeComponent(ta,HoDocvue_type_template_id_f60e2e72_render,dn,!1,null,null,null)),na=ra.exports,ia=Rr("3fe7"),aa=Rr("8d8b"),oa=Rr("3835"),sa=Rr("1367"),la=Rr("bd18"),ca=Rr("65aa"),ua=Rr("20d3"),da=Rr("5964"),ha=Rr("e2ed"),pa=Rr("7d22"),fa=Rr("49d1"),_a=function(){function DrawPageTree(Tr){Object(Xr["a"])(this,DrawPageTree),this._oldPageCount=0,this._hoEditorFactoryID=Tr,this._drawFooters=[],this._drawHeaders=[],this._drawMainDocs=[],this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}return Object(Yr["a"])(DrawPageTree,[{key:"drawHeaders",get:function get(){return this._drawHeaders},set:function set(Tr){this._drawHeaders=Tr}},{key:"drawFooters",get:function get(){return this._drawFooters},set:function set(Tr){this._drawFooters=Tr}},{key:"drawMainDocs",get:function get(){return this._drawMainDocs},set:function set(Tr){this._drawMainDocs=Tr}},{key:"initDoc",value:function initDoc(){var Tr=new la["a"](this._hoEditorFactoryID,"header/0",0),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.x=Dr.pageProperty.leftMarginPixes,this._drawHeaders.push(Tr);var Rr=new sa["a"](this._hoEditorFactoryID,"footer/0",0);Rr.x=Dr.pageProperty.leftMarginPixes,this._drawFooters.push(Rr);var Ur=new ca["a"](this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(Ur),this.calcMainDocPosition(0),Dr.drawTree.inViewPages=[0]}},{key:"getMainDoc",value:function getMainDoc(Tr){if(Tr<this._drawMainDocs.length)return this._drawMainDocs[Tr];if(Tr===this._drawMainDocs.length){var Dr=new ca["a"](this._hoEditorFactoryID,"main",0,0);return this.calcMainDocPosition(Tr),Dr}throw new Error("需要按顺序创建mainDoc")}},{key:"getPrevDrawArea",value:function getPrevDrawArea(Tr){var Dr=Tr;if(Tr instanceof ca["a"]){var Rr=this._drawMainDocs.indexOf(Tr);if(Rr<this._drawMainDocs.length-1)Dr=this._drawMainDocs[Rr+1];else{var Ur=new ca["a"](this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(Ur),this.calcMainDocPosition(Rr+1),Dr=Ur}}return Dr}},{key:"getNextDrawArea",value:function getNextDrawArea(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Tr;if(Tr instanceof ca["a"]){var Hr=this._drawMainDocs.indexOf(Tr);if(Hr<this._drawMainDocs.length-1)Ur=this._drawMainDocs[Hr+1];else{var Wr=new ca["a"](this._hoEditorFactoryID,"main",Hr+1,0);this._drawMainDocs.push(Wr),this.calcMainDocPosition(Hr+1,Dr);while(Rr.drawTree.drawPages.length<this._drawMainDocs.length)Rr.drawTree.addPage(),Rr.drawTree.drawPageCount.count=Rr.drawTree.drawPages.length;Ur=Wr}}return Ur}},{key:"paint",value:function paint(Tr,Dr,Rr,Ur){new Array;var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof da["a"])this.paintDrawPageCell(Tr,Dr,Rr,Ur);else{var Wr=Ur,zr=Tr;this._oldPageCount=Hr.drawTree.drawPages.length;var Vr=1/0,Kr=Dr[Rr],$r=0;if(Kr instanceof pa["a"]){if(Kr.drawPageTables.length>0)Kr.drawPageTables[Kr.drawPageTables.length-1];else if(null,Rr>0){var Gr,Jr=Dr[Rr-1];Gr=Jr instanceof pa["a"]?Jr.drawPageTables[Jr.drawPageTables.length-1]:Jr;var Xr=this.getMainRootArea(Gr);Xr===zr&&($r=Gr.y+Gr.dHeight+Gr.paragraphNode.combineParagraph.lineSpace,Gr instanceof ha["a"]&&Gr.endRow==Gr.table.rowCount-1&&Gr.isEndRowFinished()&&($r-=Gr.paragraphNode.combineParagraph.lineSpace))}}else Kr,$r=Kr.y;if(zr.allowAcrossPage&&(Vr=zr.maxHeight-$r),zr){var Yr=this.getMainRootArea(zr);if(Yr){var Qr=Rr,Zr=new Map;try{this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1;while(Qr<=Ur){var en=Dr[Qr];en.paragraphNode.printAsSinglePage&&en.paragraphNode.drawlines[0]===en&&$r>0&&zr instanceof ca["a"]&&(this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr,!0),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r)),(en instanceof pa["a"]&&Vr<Hr.defaultLineHeight||en instanceof ua["a"]&&Vr<en.dHeight)&&(en instanceof ua["a"]&&Vr>=Hr.defaultLineHeight&&zr.contains(en)&&zr.removeChild(en),zr instanceof ca["a"]&&(this.afterAreaFinishPaint(zr),this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r)));var tn=Dr[Qr],rn=tn.paragraphNode.combineParagraph;if(tn instanceof pa["a"]){var nn=tn.drawPageTables.length>0&&tn.isFinishedPaint();if(nn)Qr<Wr&&(Wr=Qr>0?Qr-1:0);else{while(!nn){var an=0;if(tn.drawPageTables.length>0){var sn=tn.drawPageTables[tn.drawPageTables.length-1];an=sn.isEndRowFinished()?sn.endRow+1:sn.endRow,$r=0}zr.allowAcrossPage&&(Vr=zr.maxHeight-$r),Vr<fa["d"]&&zr instanceof ca["a"]&&(zr.endDline=Qr-1,this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r));var cn=tn.paintTable(zr,$r,Vr,an);if(cn&&($r=cn.y+cn.dHeight,zr.allowAcrossPage?Vr=zr.maxHeight-$r:Yr.docHeight=$r),nn=tn.isFinishedPaint(),!nn){if(!(zr instanceof ca["a"]))break;this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r,Zr.set(zr.index,!0))}}$r+=rn.lineSpace}}else tn.dHeight>Vr&&$r>0&&zr instanceof ca["a"]&&(zr.endDline=Qr-1,this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r)),(Qr>Rr||Qr===Rr&&!zr.contains(tn))&&(zr.addChild(tn),tn.y=$r),$r=tn.y+tn.dHeight+tn.paragraphNode.combineParagraph.lineSpace,Yr.docHeight=$r,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r);if(Qr>=Ur)break;Qr+=1}var un=Math.min(Qr,Ur,Wr);if(zr instanceof ca["a"]&&un===Dr.length-1){zr.endDline=un;var dn=this._drawMainDocs.indexOf(zr);return this._drawMainDocs.splice(dn+1,this._drawMainDocs.length),Hr.drawTree.drawPages.splice(dn+1,this._drawMainDocs.length),Hr.drawTree.drawPageCount.count=Hr.drawTree.drawPages.length,this.afterAreaFinishPaint(zr),this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),void(Hr.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,Hr.drawTree.updatePageCountNodes()))}if(zr===Yr&&Qr===this.drawMainDocs.length-1&&Wr===Qr)return this.afterAreaFinishPaint(zr),this._startNeedUpdatePage=Math.min(zr.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.index,this._endNeedUpdatePage),void(Hr.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,Hr.drawTree.updatePageCountNodes()));var hn,pn=Dr[un],_n=Hr.drawTree.getDlineDrawRootLists(pn)[0],gn=_n.drawRoots;un=_n.index,zr instanceof ca["a"]&&(Yr=zr);var mn=Zr.get(Yr.index);if(mn){var vn=this._drawMainDocs.indexOf(Yr);Yr=vn===this._drawMainDocs.length-1?this.getNextDrawArea(Yr):this._drawMainDocs[vn+1]}if(pn=gn[un],pn instanceof pa["a"]){var yn=pn.getDrawTableByPageIndex(Yr.index);hn=yn||pn.drawPageTables[0]}else hn=pn;this.update(Yr,gn,hn,un,un)}finally{for(var bn=this._endNeedUpdatePage;bn>=this._startNeedUpdatePage;bn--)this.updateDrawPage(bn);this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}}}}}},{key:"paintDrawPageCell",value:function paintDrawPageCell(Tr,Dr,Rr,Ur){var Hr=Ur,Wr=Tr,zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Vr=zr.drawTree.drawPages.length;try{var Kr=Dr[Rr],$r=0;if(Kr instanceof pa["a"]){if(Kr.drawPageTables.length>0)Kr.drawPageTables[Kr.drawPageTables.length-1];else if(null,Rr>0){var Gr=Dr[Rr-1];if(Gr instanceof pa["a"]){var Jr=Gr.drawPageTables[Gr.drawPageTables.length-1];$r=Jr.y+Jr.dHeight}else $r=Gr.y+Gr.dHeight+Gr.paragraphNode.combineParagraph.lineSpace}}else Kr,$r=Kr.y;if(!Wr)return;var Xr=this.getMainRootArea(Wr);if(!Xr)return;var Yr=Xr.dHeight-Wr.localToLocal(0,0,Xr).y;Wr.maxHeight=Yr;var Qr=1/0;Wr.allowAcrossPage&&Xr.allowAcrossPage&&(Qr=Wr.maxHeight-$r);var Zr=Rr,en=!1;while(Zr<=Ur){var tn=Dr[Zr];(tn instanceof pa["a"]&&Qr<zr.defaultLineHeight||tn instanceof ua["a"]&&Qr<tn.dHeight)&&(tn instanceof ua["a"]&&Qr>=zr.defaultLineHeight&&Wr.contains(tn)&&Wr.removeChild(tn),en=!0);var rn=Dr[Zr];rn.paragraphNode.combineParagraph;if(rn instanceof pa["a"]){var nn=rn.drawPageTables.length>0&&rn.isFinishedPaint();if(nn)Zr<Hr&&(Hr=Zr>0?Zr-1:0);else{while(!nn){var an=0;if(rn.drawPageTables.length>0){var sn=rn.drawPageTables[rn.drawPageTables.length-1];an=sn.isEndRowFinished()?sn.endRow+1:sn.endRow}var cn=rn.paintTable(Wr,$r,Qr,an);cn&&($r=cn.y+cn.dHeight,Wr.allowAcrossPage&&Xr.allowAcrossPage&&(Qr=Wr.maxHeight-$r)),nn=rn.isFinishedPaint()}$r+=rn.paragraphNode.combineParagraph.lineSpace}}else{if(rn.dHeight>Qr&&$r>0){var un=zr.drawTree.getParentDrawArea(Wr);if(!un)throw new Error("无法绘制表格,找不到当前表格的父区域");var dn=Wr.drawPageTable,hn=dn.table.drawTable.drawPageTables.indexOf(dn),pn=null;hn>0&&(pn=dn.table.drawTable.drawPageTables[hn-1]);var _n=dn.getMainRestHeight();Wr.drawPageTable.table.drawTable.drawUpdate(un,pn,dn.y,_n);break}(Zr>Rr||Zr===Rr&&!Wr.contains(rn))&&(Wr.addChild(rn),rn.y=$r),$r=rn.y+rn.dHeight+rn.paragraphNode.combineParagraph.lineSpace,Wr.allowAcrossPage&&Xr.allowAcrossPage&&(Qr=Wr.maxHeight-$r)}if(Zr>=Ur)break;Zr+=1}var gn,mn=Math.min(Zr,Ur,Hr),vn=Dr[mn],yn=zr.drawTree.getDlineDrawRootLists(vn)[0],bn=yn.drawRoots;if(mn=yn.index,en){var wn=this._drawMainDocs.indexOf(Xr);wn===this._drawMainDocs.length-1?Xr=this.getNextDrawArea(Xr):(this.updateDrawPage(Wr.index),Xr=this._drawMainDocs[wn+1])}if(vn=bn[mn],vn instanceof pa["a"]){var xn=vn.getDrawTableByPageIndex(Xr.index);gn=xn||vn.drawPageTables[0]}else gn=vn;this.update(Xr,bn,gn,mn,mn)}finally{zr.drawTree.drawPages.length!==Vr&&zr.drawTree.updatePageCountNodes()}}},{key:"update",value:function update(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr){var zr=-1===this._startNeedUpdatePage&&-1===this._endNeedUpdatePage;try{0===this._oldPageCount&&(this._oldPageCount=Wr.drawTree.drawPages.length);var Vr=Ur,Kr=!1,$r=0;if(Vr===Hr&&Dr[Vr]instanceof pa["a"]&&(Kr=!0,Vr<Dr.length-1)){var Gr,Jr=Dr[Vr+1];Gr=Jr instanceof pa["a"]?Jr.drawPageTables[0]:Jr,$r=Gr.y}var Xr=Dr.length-1,Yr=Rr.y;Rr instanceof ha["a"]&&!Tr.contains(Rr)&&(Yr=0);var Qr=1/0;Tr.allowAcrossPage&&(Qr=Tr.maxHeight-Yr);var Zr=null;if(Tr instanceof ca["a"]){var en=this._drawMainDocs.indexOf(Tr);en>0&&(Zr=this._drawMainDocs[en-1])}do{if(!Tr)return;if(Tr.update(Zr,Dr,Vr,Yr,Qr),this.afterAreaFinishPaint(Tr),this._startNeedUpdatePage=Math.min(Tr.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(Tr.index,this._endNeedUpdatePage),Vr=Tr.endDline,Kr&&Vr>Hr+1){var tn=Dr[Hr+1],rn=void 0;if(rn=tn instanceof pa["a"]?tn.drawPageTables[0]:tn,rn.y===$r)return}if(Tr.isEndLineFinished()&&(Vr+=1),Tr instanceof ca["a"]&&(Vr<=Xr&&(Zr=Tr,Tr=this.getNextDrawArea(Tr),Yr=0,Tr.allowAcrossPage&&(Qr=Tr.maxHeight)),Vr===Dr.length-1)){var nn=this._drawMainDocs.indexOf(Tr);this._drawMainDocs.splice(nn+1,this._drawMainDocs.length),Wr.drawTree.drawPages.splice(nn+1,this._drawMainDocs.length),Wr.drawTree.drawPageCount.count=Wr.drawTree.drawPages.length}}while(Vr<=Xr);if(Tr instanceof ca["a"]&&Xr===Dr.length-1){var an=this._drawMainDocs.indexOf(Tr);this._drawMainDocs.splice(an+1,this._drawMainDocs.length),Wr.drawTree.drawPages.splice(an+1,this._drawMainDocs.length)}Wr.drawTree.drawPageCount.count=Wr.drawTree.drawPages.length,this.afterAreaFinishPaint(Tr),this._startNeedUpdatePage=Math.min(Tr.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(Tr.index,this._endNeedUpdatePage)}finally{if(this._oldPageCount!==Wr.drawTree.drawPages.length&&Wr.drawTree.updatePageCountNodes(),zr){for(var sn=this._endNeedUpdatePage;sn>=this._startNeedUpdatePage;sn--)this.updateDrawPage(sn);this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}}}}},{key:"calcMainDocPosition",value:function calcMainDocPosition(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.subDocManger.getSubDocIndex(Tr,On["a"].hftHead),Hr=Object(oa["a"])(Ur,2),Wr=Hr[0],zr=(Hr[1],Rr.subDocManger.getSubDocIndex(Tr,On["a"].hftFoot)),Vr=Object(oa["a"])(zr,2),Kr=Vr[0],$r=(Vr[1],Wr),Gr=Kr;Dr&&(this._drawHeaders.length>Tr&&this._drawHeaders[Tr]&&($r=Tr),this._drawFooters.length>Tr&&this._drawFooters[Tr]&&(Gr=Tr));var Jr=this._drawHeaders[$r],Xr=Jr?Jr.actualHeight+Rr.pageProperty.headerYPixes:0,Yr=this._drawFooters[Gr],Qr=Yr?Yr.actualHeight+Rr.pageProperty.footerYPixes:0,Zr=this._drawMainDocs[Tr];if(Zr){var en=Math.max(Rr.pageProperty.topMarginPixes,Xr),tn=Math.max(Rr.pageProperty.bottomMarginPixes,Qr);Zr.x=Rr.pageProperty.leftMarginPixes,Zr.y=en,Zr.maxHeight=Rr.pageProperty.heightPixes-en-tn,Zr.dHeight=Rr.pageProperty.heightPixes-en-tn}}},{key:"getMainRootArea",value:function getMainRootArea(Tr){var Dr=Tr;while(Dr){if(Dr instanceof ca["a"]||Dr instanceof la["a"]||Dr instanceof sa["a"])return Dr;Dr=Dr.parent}return null}},{key:"getDrawPageBySelectContainer",value:function getDrawPageBySelectContainer(Tr){return Tr&&Tr.id>=0&&Tr.id<this.drawMainDocs.length?Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[Tr.id]:null}},{key:"getFirstDrawArea",value:function getFirstDrawArea(Tr){if(Tr.startsWith("main"))return this._drawMainDocs[0];var Dr=Tr.split("/"),Rr=0;if(Dr.length>1&&!isNaN(parseInt(Dr[1]))&&(Rr=parseInt(Dr[1])),Tr.startsWith("header"))return this._drawHeaders[Rr];if(Tr.startsWith("footer"))return this._drawFooters[Rr];throw new Error("错误码的绘制路径".concat(Tr))}},{key:"clearAreas",value:function clearAreas(Tr){for(var Dr=0;Dr<Tr.length;Dr++)Tr[Dr]&&Tr[Dr].clear();Tr.length=0}},{key:"clear",value:function clear(){this.clearAreas(this._drawFooters),this.clearAreas(this._drawHeaders),this.clearAreas(this._drawMainDocs)}},{key:"dispalyComments",value:function dispalyComments(Tr,Dr){var Rr=Dr.areaComments;if(Rr.size>0){var Ur=function changeComment(Tr,Rr){for(var Ur=Dr.children,Hr=0;Hr<Ur.length;Hr++){var Wr=Ur[Hr];Wr.name===Rr.id&&(Tr?Wr instanceof createjs.Container?Wr.alpha=1:Wr.alpha=.5:Wr.alpha=.01)}};Rr.forEach((function(Dr){Ur(Tr,Dr)}))}}},{key:"afterAreaFinishPaint",value:function afterAreaFinishPaint(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.drawTree.paintStatus!==mn["b"].psReview&&(Dr.drawTree.paintStatus!==mn["b"].psEdit&&Dr.drawTree.paintStatus!==mn["b"].psReadOnly||Dr.isHideComments)||Tr.drawComments();var Rr=!1;Dr.drawTree.paintStatus!==mn["b"].psReview&&(Dr.drawTree.paintStatus!==mn["b"].psEdit&&Dr.drawTree.paintStatus!==mn["b"].psReadOnly||Dr.isHideComments)||(Rr=!0),this.dispalyComments(Rr,Tr);var Ur=Tr.rootPath;if(Ur.startsWith("main"))Dr.drawTree.repaintPageMarkNodes(Dr.drawTree.drawPages[Tr.index],Tr.rootPath);else{var Hr=Dr.subDocManger.getHeaderFooterType(Tr.rootPath);Dr.subDocManger.repaintPageMarkNodes(Tr,Hr)}}},{key:"updateDrawPage",value:function updateDrawPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[Tr];Rr&&(Rr.needUpdateStage=!0,Rr.drawDomLevel&&Rr.drawDomLevel.stage&&Dr.drawTree.inViewPages.indexOf(Rr.pageIndex)>=0&&(Rr.drawDomLevel.stage.update(),Rr.needUpdateStage=!1),Rr.drawSelectLevel&&Rr.drawSelectLevel.stage&&Dr.drawTree.inViewPages.indexOf(Rr.pageIndex)>=0&&(Rr.drawSelectLevel.stage.update(),Rr.needUpdateStage=!1))}},{key:"stopPageEvent",value:function stopPageEvent(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawTree.drawPages.length-1;Dr>=0;Dr--){var Rr=Tr.drawTree.drawPages[Dr];Rr.drawDomLevel&&Rr.drawDomLevel.stage&&(Rr.drawDomLevel.stage.enableMouseOver(0),Rr.drawDomLevel.stage.removeAllEventListeners()),Rr.drawSelectLevel&&Rr.drawSelectLevel.stage&&(Rr.drawSelectLevel.stage.enableMouseOver(0),Rr.drawSelectLevel.stage.removeAllEventListeners())}}},{key:"getSubDocDrawarea",value:function getSubDocDrawarea(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr===On["a"].hftHead?Rr.drawPageTree.drawHeaders[Tr]:Rr.drawPageTree.drawFooters[Tr]}},{key:"updatePageWidthHeight",value:function updatePageWidthHeight(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.pageProperty.widthPixes,Rr=Dr-Tr.pageProperty.leftMarginPixes-Tr.pageProperty.rightMarginPixes,Ur=0;Ur<this._drawHeaders.length;Ur++){var Hr=this._drawHeaders[Ur];Hr&&(Hr.docWidth=Rr)}for(var Wr=0;Wr<this.drawFooters.length;Wr++){var zr=this.drawFooters[Wr];zr&&(zr.docWidth=Rr)}for(var Vr=0;Vr<Tr.drawTree.drawPages.length;Vr++){var Kr=Tr.drawTree.drawPages[Vr];Kr.storeDrawFooter.docWidth=Rr,Kr.storeDrawHeader.docWidth=Rr}for(var $r=0;$r<this._drawMainDocs.length;$r++){var Gr=this._drawMainDocs[$r];Gr&&(Gr.docWidth=Rr)}}},{key:"changeInViewPage",value:function changeInViewPage(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=0;Dr<Tr.drawTree.drawPages.length;Dr++){var Rr=Tr.drawTree.drawPages[Dr];Tr.drawTree.inViewPages.indexOf(Rr.pageIndex)<0&&(Rr.drawSelectLevel&&Rr.drawSelectLevel.stage&&(Rr.drawSelectLevel.stage._nextStage=null,Rr.drawSelectLevel.clearStage()),Rr.drawDomLevel&&Rr.drawDomLevel.stage&&Rr.drawDomLevel.clearStage())}for(var Ur=0;Ur<Tr.drawTree.inViewPages.length;Ur++){var Hr=Tr.drawTree.drawPages[Tr.drawTree.inViewPages[Ur]];Hr.drawDomLevel&&!Hr.drawDomLevel.stage&&(Hr.drawDomLevel.bindStage(),this.updateDrawPage(Hr.pageIndex)),Hr.drawSelectLevel&&!Hr.drawSelectLevel.stage&&Hr.drawSelectLevel.bindStage()}}},{key:"getDrawPageByDNode",value:function getDrawPageByDNode(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=this.getMainRootArea(Tr);return Rr?Dr.drawTree.drawPages[Rr.index]:null}},{key:"getDrawPageBySelectShape",value:function getDrawPageBySelectShape(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=this.getMainRootArea(Tr);return Rr?Dr.drawTree.drawPages[Rr.index]:null}}]),DrawPageTree}(),ga=(Rr("fb6a"),Rr("4e47")),ma=Rr("b7de");(function(Tr){Tr[Tr["detOver"]=0]="detOver",Tr[Tr["detOut"]=1]="detOut",Tr[Tr["detClick"]=2]="detClick",Tr[Tr["detDblclick"]=3]="detDblclick"})(Zi||(Zi={}));var va=function(){function NodeMouseMoveEvent(Tr){Object(Xr["a"])(this,NodeMouseMoveEvent),this._pageIndex=0,this._moveType=Zi.detOut,this._hoEditorFactoryID=Tr,this._tipText=[],this._id=[]}return Object(Yr["a"])(NodeMouseMoveEvent,[{key:"pageIndex",get:function get(){return this._pageIndex}},{key:"moveType",get:function get(){return this._moveType}},{key:"id",get:function get(){return this._id}},{key:"tipText",get:function get(){return this._tipText}},{key:"position",get:function get(){return this._position}},{key:"deleterIndex",get:function get(){return this._deleterIndex}},{key:"poperTipPos",get:function get(){return this._poperTipPos},set:function set(Tr){this._poperTipPos!==Tr&&(this._poperTipPos=Tr)}},{key:"isUseTipText",get:function get(){return this._isUseTipText},set:function set(Tr){this._isUseTipText!==Tr&&(this._isUseTipText=Tr)}},{key:"setNode",value:function setNode(Tr,Dr){this._creatorIndex=-1,this._deleterIndex=-1,this._tipText=[],this._id=[];var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof ci["a"]){if(Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus===mn["b"].psReview){if(this._creatorIndex=Rr.docTree.styles[Tr.styleIndex].creatorIndex,this._deleterIndex=Rr.docTree.styles[Tr.styleIndex].deleterIndex,void 0!==this._creatorIndex&&this._creatorIndex>=0){var Ur=Rr.docTree.userHistories[this._creatorIndex];this._moveType=Dr,this._tipText.push("".concat(Ur.editDate," ").concat(Ur.name,"创建")),this._id.push(Ur.id),this.computedPosition(Tr.drawNodes[0])}if(void 0!==this._deleterIndex&&this._deleterIndex>=0){var Hr=Rr.docTree.userHistories[this._deleterIndex];this._moveType=Dr,this._tipText.push("".concat(Hr.editDate," ").concat(Hr.name,"删除")),this._id.push(Hr.id),this.computedPosition(Tr.drawNodes[0])}}else if(this._isUseTipText&&0!==this._deleterIndex&&Tr.parentNode&&Tr.parentNode instanceof ei["f"]&&(0===Rr.drawTree.paintStatus||1===Rr.drawTree.paintStatus||4===Rr.drawTree.paintStatus)){if(this._moveType=Dr,Tr.parentNode.tipText){var Wr=JSON.stringify(Tr.parentNode.tipText);Wr=Wr.slice(1,Wr.length-1);var zr=Wr.split("\\n").filter((function(Tr){return Tr}));this._tipText=zr}else this._tipText.push("");this._id.push(Tr.parentNode.id),this.computedPosition(Tr.drawNodes[0])}}else if(Tr instanceof li["a"]){if(this._isUseTipText&&0!==this._deleterIndex&&Tr.parentNode&&Tr.parentNode instanceof ei["f"]&&(0===Rr.drawTree.paintStatus||1===Rr.drawTree.paintStatus||4===Rr.drawTree.paintStatus)){if(this._moveType=Dr,Tr.parentNode.tipText){var Vr=JSON.stringify(Tr.parentNode.tipText);Vr=Vr.slice(1,Vr.length-1);var Kr=Vr.split("\\n").filter((function(Tr){return Tr}));this._tipText=Kr}else this._tipText.push("");this._id.push(Tr.parentNode.id),this.computedPosition(Tr.drawNodes[0])}}else if(this._isUseTipText&&(0===Rr.drawTree.paintStatus||1===Rr.drawTree.paintStatus||4===Rr.drawTree.paintStatus)&&Tr instanceof ei["f"]){if(this._moveType=Dr,Tr.tipText){var $r=JSON.stringify(Tr.tipText);$r=$r.slice(1,$r.length-1);var Gr=$r.split("\\n").filter((function(Tr){return Tr}));this._tipText=Gr}else this._tipText.push("");this._id.push(Tr.id),this.computedPosition(Tr.drawNodes[0])}}},{key:"NodeClick",value:function NodeClick(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof ga["a"]&&Dr===Zi.detClick){var Ur=Rr.drawTree.getDrawLineByDNode(Tr.drawNodes[0]),Hr=new ma["a"](Tr,"click");Rr.docTree.nodeClick(Hr),Tr.drawNodes[0].parent=Ur}}},{key:"computedPosition",value:function computedPosition(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.getDrawLineByDNode(Tr);if(Rr){var Ur=Rr.localToGlobal(Tr.x,0===Tr.y?Rr.dHeight:Tr.y);this._pageIndex=Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex,this._poperTipPos.width=Tr.dWidth?Tr.dWidth:0,this._poperTipPos.height=Rr.dHeight,this._poperTipPos.pageIndex=this._pageIndex,this._poperTipPos.moveType=this._moveType,this._poperTipPos.y=Ur.y/Dn["a"].instance().scaleXY+5,this._poperTipPos.x=Ur.x/Dn["a"].instance().scaleXY}}}]),NodeMouseMoveEvent}();va.eventName="nodeMouseMove";var ya=Rr("0684"),ba=function(){function Option(Tr){Object(Xr["a"])(this,Option),this._reviewLev1Color="#F19191",this._reviewLev2Color="#8198F7",this._reviewLev3Color="#7FD27F",this._fieldColor="#DFFFFF",this._dateTimeColor="#FBFAD0",this._downListColor="#D2ECB1",this._hoEditorFactoryID=Tr}return Object(Yr["a"])(Option,[{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID},set:function set(Tr){this._hoEditorFactoryID=Tr}},{key:"reviewLev1Color",get:function get(){return this._reviewLev1Color},set:function set(Tr){this._reviewLev1Color=Tr}},{key:"reviewLev2Color",get:function get(){return this._reviewLev2Color},set:function set(Tr){this._reviewLev2Color=Tr}},{key:"reviewLev3Color",get:function get(){return this._reviewLev3Color},set:function set(Tr){this._reviewLev3Color=Tr}},{key:"fieldColor",get:function get(){return this._fieldColor},set:function set(Tr){this._fieldColor=Tr}},{key:"dateTimeColor",get:function get(){return this._dateTimeColor},set:function set(Tr){this._dateTimeColor=Tr}},{key:"downListColor",get:function get(){return this._downListColor},set:function set(Tr){this._downListColor=Tr}},{key:"setReviewLevelColor",value:function setReviewLevelColor(Tr,Dr,Rr,Ur,Hr,Wr){Tr&&(this._reviewLev1Color=Tr),Dr&&(this._reviewLev2Color=Dr),Rr&&(this._reviewLev3Color=Rr),Ur&&(this._fieldColor=Ur),Hr&&(this._dateTimeColor=Hr),Wr&&(this._downListColor=Wr)}},{key:"getColorByLevel",value:function getColorByLevel(Tr){return 10===Tr?this._fieldColor:11===Tr?this._dateTimeColor:12===Tr?this._downListColor:1===Tr?this._reviewLev1Color:2===Tr?this._reviewLev2Color:3===Tr?this._reviewLev3Color:"transparent"}}]),Option}(),wa=function(){function TimeStamp(Tr){Object(Xr["a"])(this,TimeStamp),this._hoEditorFactoryID=Tr,this._last=(new Date).valueOf()}return Object(Yr["a"])(TimeStamp,[{key:"update",value:function update(){this._last=(new Date).valueOf()}},{key:"timeOut",value:function timeOut(Tr){return(new Date).valueOf()-this._last>(Tr||1e3)}}]),TimeStamp}(),xa=Rr("454b"),Ca=(Rr("25f0"),function(){function GenerateCode(Tr){Object(Xr["a"])(this,GenerateCode),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(GenerateCode,[{key:"generateID",value:function generateID(Tr){void 0===Tr&&(Tr="");var Dr=new Date,Rr=Dr.getFullYear().toString(),Ur=(Dr.getMonth()+1).toString(),Hr=Dr.getDate().toString(),Wr=Dr.getHours().toString(),zr=Dr.getMinutes().toString(),Vr=Dr.getSeconds().toString();1===Ur.length&&(Ur="0"+Ur),1===Hr.length&&(Hr="0"+Hr),1===Wr.length&&(Wr="0"+Wr),1===zr.length&&(zr="0"+zr),1===Vr.length&&(Vr="0"+Vr);var Kr=Math.floor(1e6*Math.random()).toString(),$r=Tr+Rr+Ur+Hr+Wr+zr+Vr+Kr;return $r}},{key:"generateTime",value:function generateTime(){var Tr=new Date,Dr=Tr.getFullYear().toString(),Rr=(Tr.getMonth()+1).toString(),Ur=Tr.getDate().toString(),Hr=Tr.getHours().toString(),Wr=Tr.getMinutes().toString(),zr=Tr.getSeconds().toString();1===Rr.length&&(Rr="0"+Rr),1===Ur.length&&(Ur="0"+Ur),1===Hr.length&&(Hr="0"+Hr),1===Wr.length&&(Wr="0"+Wr),1===zr.length&&(zr="0"+zr);var Vr=Dr+"-"+Rr+"-"+Ur+" "+Hr+":"+Wr+":"+zr;return Vr}}]),GenerateCode}()),Pa=(Rr("9e1f"),Rr("450d"),Rr("6ed5")),Ea=Rr.n(Pa),Sa=(Rr("8a79"),Rr("cc71"),Rr("c5d0"),Rr("b680"),Rr("498a"),Rr("1157")),Ta=Rr.n(Sa),Da=Rr("3365"),ka=Rr("c7e5"),Oa=Rr("80c7"),Ia=function(){function HTMLconverter2(Tr){var Dr=this;Object(Xr["a"])(this,HTMLconverter2),this._hoEditorFactoryID=Tr,this.convert=new Map,0===this.convert.size&&(this.convert=new Map,this.convert.set("div",(function(Tr,Rr){return Dr.TransHTML(Tr,Rr)})),this.convert.set("p",(function(Tr,Rr){return Dr.TransHTMLP(Tr,Rr)})),this.convert.set("br",(function(Tr,Rr){return Dr.TransHTMLP(Tr,Rr)})),this.convert.set("span",(function(Tr,Rr){return Dr.TransHTMLSPAN(Tr,Rr)})),this.convert.set("font",(function(Tr,Rr){return Dr.TransHTMLSPAN(Tr,Rr)})),this.convert.set("table",(function(Tr,Rr){return Dr.TransHTMLTABLE(Tr,Rr)})),this.convert.set("#text",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("b",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("strong",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("em",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("i",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("sup",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("sub",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("u",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("s",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("img",(function(Tr,Rr){return Dr.TransHTMLIMG(Tr,Rr)})))}return Object(Yr["a"])(HTMLconverter2,[{key:"Exec",value:function Exec(Tr,Dr){var Rr=new Array;return Rr.push.apply(Rr,Object(Gr["a"])(this.TransHTML(Tr,Dr))),Rr}},{key:"TransHTML",value:function TransHTML(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Hr=new Array;if(0==Tr.childNodes.length){var Wr=this.HTMLStyleToCombineStyle(Ur),zr=Rr.docTree.styleCompare(Wr),Vr=new ci["a"](this._hoEditorFactoryID,Rr.docTree.activeNodes,null,wn["b"].ntText,Ta()(Tr).text(),zr);return Hr.push(Vr),Hr}for(var Kr=0;Kr<Tr.childNodes.length;Kr++){var $r=this.convert.get(Tr.childNodes[Kr].nodeName.toLowerCase());if($r&&Hr.push.apply(Hr,Object(Gr["a"])($r(Tr.childNodes[Kr],JSON.stringify(Ur)))),"p"===Tr.childNodes[Kr].nodeName.toLowerCase()&&Tr.childNodes[Kr+1]&&"p"!==Tr.childNodes[Kr+1].nodeName.toLowerCase()){var Jr=Object(Tr.childNodes[Kr]);Jr.className&&"MsoNormal"===Jr.className&&Hr[Hr.length-1]instanceof qi["a"]&&Hr.splice(Hr.length-1,1)}if("p"===Tr.childNodes[Kr].nodeName.toLowerCase()&&Tr.childNodes[Kr-1]&&"p"!==Tr.childNodes[Kr-1].nodeName.toLowerCase()){var Xr=Object(Tr.childNodes[Kr]);Xr.className&&"MsoNormal"===Xr.className&&Hr[0]instanceof qi["a"]&&Hr.splice(0,1)}}for(var Yr=0;Yr<Hr.length;Yr++){var Qr=Hr[Yr];if(Qr instanceof fa["c"]&&Qr.parentNode instanceof ei["f"])return Ea.a.alert("不能在文本域中插入表格"),[]}return Hr}},{key:"StyleToJSON",value:function StyleToJSON(Tr){if(""==Tr)return{};if(Tr.startsWith("{"))return JSON.parse(Tr);var Dr=Tr;Dr.endsWith(";")&&(Dr=Dr.substr(0,Dr.length-1)),Dr=Dr.split("\n").join(""),Dr=Dr.split('"').join(""),Dr=Dr.split(";").join('",\n"'),Dr=Dr.split(":").join('":"'),Dr=Dr.split("-").join("_"),Dr='{"'.concat(Dr,'"}');var Rr=JSON.parse(Dr);return Rr}},{key:"colorRGB2Hex",value:function colorRGB2Hex(Tr){var Dr=Tr.split(","),Rr=parseInt(Dr[0].split("(")[1]),Ur=parseInt(Dr[1]),Hr=parseInt(Dr[2].split(")")[0]),Wr="#"+((1<<24)+(Rr<<16)+(Ur<<8)+Hr).toString(16).slice(1);return Wr}},{key:"HTMLStyleToCombineStyle",value:function HTMLStyleToCombineStyle(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.styles[0].clone();if(Tr["font_size"]){Rr.size=Number(Tr["font_size"])||Rr.size;var Ur=Tr["font_size"],Hr=Ur.match(/^(.*)(px|pt)$/);if(Hr){var Wr=parseFloat(Hr[1]);"px"==Hr[2]&&(Wr=Math.round(25.4*Dr.unitConvert.pxConversionMm(Wr,!0))),Rr.size=Wr}}if(Tr["font_family"]&&""!==Object(Sa["trim"])(Tr["font_family"].toString())?Rr.font=Tr["font_family"]:Rr.font=Rr.combineStyle.font,Tr["font_weight"]&&(Rr.bold=!0),Tr["font_style"]&&"normal"!==Object(Sa["trim"])(Tr["font_style"].toString())&&(Rr.italic=!0),Tr["text_decoration"]){var zr=Tr["text_decoration"];Rr.underline=-1!=zr.indexOf("underline"),Rr.strikeout=-1!=zr.indexOf("line_through")}if(Tr["vertical_align"]){var Vr=Tr["vertical_align"];"super"==Vr?Rr.script=Da["b"].sstsup:"sub"==Vr&&(Rr.script=Da["b"].sstsub)}if(Tr["background_color"]){Rr.backColor=Tr["background_color"];var Kr=Tr["background_color"];Kr.indexOf("rgb")>=0&&(Rr.backColor=this.colorRGB2Hex(Kr))}if(Tr["background"]){Rr.backColor=Tr["background"];var $r=Tr["background"];$r.indexOf("rgb")>=0&&(Rr.backColor=this.colorRGB2Hex($r))}if(Tr["color"]){Rr.color=Tr["color"];var Gr=Tr["color"];Gr.indexOf("rgb")>=0&&(Rr.color=this.colorRGB2Hex(Gr))}return Rr}},{key:"parseHtmlString",value:function parseHtmlString(Tr){return this.Exec(Ta()(Tr)[0],"")}},{key:"HTMLStyleToParsStyle",value:function HTMLStyleToParsStyle(Tr){var Dr=new ka["c"](this._hoEditorFactoryID);if(Tr["text_align"]){var Rr=Tr["text_align"];Dr.align="center"==Rr?ka["a"].alcenter:"left"==Rr?ka["a"].alleft:"right"==Rr?ka["a"].alright:"justify"==Rr?ka["a"].alSpaceEqually:Dr.align}if(Tr["line_height"]){var Ur=Tr["line_height"];Dr.lineSpace=Number(Ur.substr(0,Ur.indexOf("%")))/100}if(Tr["mso_para_margin_left"]){var Hr=Tr["mso_para_margin_left"],Wr=Hr.match(/^(.*)gd$/);Wr&&Wr[1]&&(Dr.leftMargin=Number(Wr[1]))}if(Tr["text_indent"]){var zr=Tr["text_indent"],Vr=zr.match(/^(.*)gd$/);Vr&&Vr[1]&&(Dr.leftMargin=Number(Vr[1]))}return Dr}},{key:"mergestyle",value:function mergestyle(Tr,Dr){var Rr={},Ur={};return""!=Tr&&(Rr=this.StyleToJSON(Tr)),""!=Dr&&(Ur=this.StyleToJSON(Dr)),Object.assign(Ur,Rr)}},{key:"TransHTMLIMG",value:function TransHTMLIMG(Tr,Dr){var Rr=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Ur=(Ta()(Tr).attr("src"),new Oa["a"](this._hoEditorFactoryID,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,null,wn["b"].ntImage,Tn["a"].instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"),Ta()(Tr).attr("src")||"",Rr.height||20,Rr.width||20));return[Ur]}},{key:"generateTableProperty",value:function generateTableProperty(Tr){Ta()(Tr).attr;var Dr=new Sn["j"]("");return Dr.tightLineSpace=Dr["tightLineSpace"]||!1,Dr.layoutFullLine=Dr["layoutFullLine"]||!1,Dr.continuePrintBorders=Dr["continuePrintBorders"]||!1,Dr.canDeleteTable=Dr["canDeleteTable"]||!1,Dr.canDeleteRow=Dr["canDeleteRow"]||!1,Dr.canAddRow=Dr["canAddRow"]||!1,Dr.canAdjustRowWidth=Dr["canAdjustRowWidth"]||!1,Dr.canAdjustRowHeight=Dr["canAdjustRowHeight"]||!1,Dr.isAutoChangeLine=Dr["isAutoChangeLine"]||!1,Dr.autoLineHeight=Dr["autoLineHeight"]||.53,Dr}},{key:"SetTableProperty",value:function SetTableProperty(Tr,Dr){for(var Rr,Ur=Ta()(Tr).children(),Hr=new Array,Wr=new Array,zr=0,Vr=0;Vr<Ur.length;Vr++){for(var Kr=Ta()(Ur[Vr]).children(),$r=0;$r<Kr.length;$r++){var Gr=new Sn["i"](""),Jr=new fa["b"](Dr,Gr),Xr=Ta()(Kr[Vr]).css("height");if(Xr&&"0px"!=Xr){var Yr=parseFloat(Xr.substring(0,Xr.indexOf("pt")));Yr=parseFloat((96*Yr/72).toFixed(2)),Jr.rowHeight=Yr}Hr.push(Jr);var Qr=Ta()(Kr[$r]).children();Qr.length>zr&&(zr=Qr.length,Rr=Kr[$r])}if(!Rr)throw new Error("表格中没有发现列");for(var Zr=Ta()(Rr).children(),en=0;en<Zr.length;en++){var tn=Ta()(Zr[en]).css("width"),rn=parseFloat(tn.substring(0,tn.indexOf("pt")));rn=parseFloat((96*rn/72).toFixed(2));var nn=new Sn["c"](""),an=new fa["a"](Dr,rn,nn);Wr.push(an)}Dr.rowInfos=Hr,Dr.colInfos=Wr}}},{key:"TransHTMLTABLE",value:function TransHTMLTABLE(Tr,Dr){this.mergestyle(Ta()(Tr).attr("style")||"",Dr);for(var Rr=Ta()(Tr).children(),Ur=new Array,Hr=0,Wr=0,zr=0;zr<Rr.length;zr++){var Vr=Ta()(Rr[zr]).children();Hr+=Vr.length;for(var Kr=0;Kr<Vr.length;Kr++){var $r=new Array,Jr=Ta()(Vr[Kr]).children();Wr=Math.max(Jr.length,Wr),$r.push.apply($r,Object(Gr["a"])(Jr)),Ur.push($r)}}var Xr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),Yr=new fa["c"](this._hoEditorFactoryID,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,Xr,Hr,Wr,this.generateTableProperty(Tr));if(this.SetTableProperty(Tr,Yr),0==Ur.length)return[];for(var Qr=0;Qr<Hr;Qr++)for(var Zr=0;Zr<Wr;Zr++){var en=Ur[Qr][Zr];if(en){var tn=parseInt(Ta()(en).attr("rowSpan")||"1"),rn=parseInt(Ta()(en).attr("colSpan")||"1");if(rn>1){var nn,an=new Array(rn-1);if((nn=Ur[Qr]).splice.apply(nn,[Zr+1,0].concat(an)),tn>1)for(var sn=Qr+1;sn<Qr+tn;sn++){var cn,un=new Array(rn);(cn=Ur[sn]).splice.apply(cn,[Zr,0].concat(un))}}else if(tn>1)for(var dn=Qr+1;dn<Qr+tn;dn++){var hn,pn=new Array(rn);(hn=Ur[dn]).splice.apply(hn,[Zr,0].concat(pn))}}}for(var _n=function getitem(Tr,Dr){return Tr<Ur.length&&Dr<Ur[Tr].length?Ur[Tr][Dr]:void 0},gn=0;gn<Hr;gn++)for(var mn=0;mn<Wr;mn++){var vn=_n(gn,mn);vn?this.copyCellNode(vn,Yr,gn,mn):Yr.rows[gn][mn]=void 0}return Yr.node2DrawNode(),[Yr]}},{key:"TransHTMLSPAN",value:function TransHTMLSPAN(Tr,Dr){var Rr=this.mergestyle(Ta()(Tr).attr("style")||"",Dr);if(0==Tr.childNodes.length){var Ur=this.generateTextNode(Ta()(Tr).text(),Rr);return Ur?[Ur]:[]}for(var Hr=new Array,Wr=0;Wr<Tr.childNodes.length;Wr++){var zr=this.convert.get(Tr.childNodes[Wr].nodeName.toLowerCase());zr&&Hr.push.apply(Hr,Object(Gr["a"])(zr(Tr.childNodes[Wr],JSON.stringify(Rr))))}return Hr}},{key:"TransHTMLP",value:function TransHTMLP(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Hr=new Array,Wr=this.HTMLStyleToParsStyle(Ur);0===Wr.lineSpace&&(Wr.lineSpace=void 0);var zr=Rr.docTree.styleCompare(Wr),Vr=new qi["a"](this._hoEditorFactoryID,Rr.docTree.activeNodes,Rr.docTree.getParentNode(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),zr);if(Hr.push(Vr),0==Tr.childNodes.length){if("br"===Tr.nodeName.toLowerCase())return Hr;var Kr=this.generateTextNode(Ta()(Tr).text(),Ur);return Kr?[Kr]:[]}for(var $r=0;$r<Tr.childNodes.length;$r++){var Jr=this.convert.get(Tr.childNodes[$r].nodeName.toLowerCase());Jr&&Hr.push.apply(Hr,Object(Gr["a"])(Jr(Tr.childNodes[$r],JSON.stringify(Ur))))}return Hr}},{key:"TransHTMLText",value:function TransHTMLText(Tr,Dr){var Rr=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Ur=Tr.nodeName.toLowerCase();if("b"==Ur||"strong"==Ur)Rr["font_weight"]="bold";else if("em"==Ur||"i"==Ur)Rr["font_style"]="italic";else if("sup"==Ur){var Hr=Rr["vertical_align"]||"";-1==Hr.indexOf("sub")&&(Rr["vertical_align"]=(""==Hr?"":Hr+" ")+"super")}else if("sub"==Ur){var Wr=Rr["vertical_align"]||"";-1==Wr.indexOf("sub")&&(Rr["vertical_align"]=(""==Wr?"":Wr+" ")+"sub")}else if("u"==Ur){var zr=Rr["text_decoration"]||"";-1==zr.indexOf("underline")&&(Rr["text_decoration"]=(""==zr?"":zr+" ")+"underline")}else if("s"==Ur){var Vr=Rr["text_decoration"]||"";-1==Vr.indexOf("line_through")&&(Rr["text_decoration"]=(""==Vr?"":Vr+" ")+"line_through")}if(0==Tr.childNodes.length){var Kr=this.generateTextNode(Ta()(Tr).text(),Rr);return Kr?[Kr]:[]}for(var $r=new Array,Jr=0;Jr<Tr.childNodes.length;Jr++){var Xr=this.convert.get(Tr.childNodes[Jr].nodeName.toLowerCase());Xr&&$r.push.apply($r,Object(Gr["a"])(Xr(Tr.childNodes[Jr],JSON.stringify(Rr))))}return $r}},{key:"generateTextNode",value:function generateTextNode(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(""==Tr.split("\n").join(""))return null;if(""==Tr.trim())return null;var Ur=this.HTMLStyleToCombineStyle(Dr),Hr=Rr.docTree.styleCompare(Ur),Wr=new ci["a"](this._hoEditorFactoryID,Rr.docTree.activeNodes,Rr.docTree.getParentNode(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),wn["b"].ntText,Tr,Hr);return Wr}},{key:"copyCellNode",value:function copyCellNode(Tr,Dr,Rr,Ur){var Hr=Dr.rows[Rr][Ur];if(Hr){var Wr;Hr.rowSpan=parseInt(Ta()(Tr).attr("rowSpan")||"1")||1,Hr.colSpan=parseInt(Ta()(Tr).attr("colSpan")||"1")||1;var zr=this.mergestyle(Ta()(Tr).attr("style")||"","");zr["mso_diagonal_down"]&&"none"!=zr["mso_diagonal_down"]&&(Hr.crossLineType=En["b"].ct02),zr["mso_diagonal_up"]&&"none"!=zr["mso_diagonal_up"]&&(Hr.crossLineType=En["b"].ct13),"top"==Ta()(Tr).attr("valign")?Hr.cellProperty.align=Sn["k"].vatop:"bottom"==Ta()(Tr).attr("valign")?Hr.cellProperty.align=Sn["k"].vabottom:Hr.cellProperty.align=Sn["k"].vacenter;for(var Vr=Array(),Kr=0;Kr<Tr.childNodes.length;Kr++){var $r=this.convert.get(Tr.childNodes[Kr].nodeName.toLowerCase());$r&&Vr.push.apply(Vr,Object(Gr["a"])($r(Tr.childNodes[Kr],"")))}Hr.childNodes.splice(0,Hr.childNodes.length),Vr.forEach((function(Tr){Tr.parentNode=Hr,Tr instanceof qi["a"]&&Tr.drawlines.forEach((function(Tr){Tr.dWidth=Dr.colInfos[Ur].colWidth}))})),(Wr=Hr.childNodes).push.apply(Wr,Vr),Hr.cell2DrawNode(Rr,Ur)}}}]),HTMLconverter2}(),Ma=Rr("53ca"),Na=(Rr("7db0"),Rr("4d63"),Rr("e6cf"),Rr("98fc")),La=Rr.n(Na),Aa=Rr("38f6"),Ra=Rr("9fab"),Fa=Rr("b673"),ja=Rr("905c"),Ba=Rr("f635"),Ua=Rr("5073"),Ha=Rr("1460"),Wa=Rr("f1a6"),qa=Rr("8d79"),za=Rr("9f19"),Va=Rr("c1cd"),Ka=Rr("6f33"),$a=Rr("8ef2"),Ga=Rr("0aab"),Ja=Rr("d5e7"),Xa=Rr("8841"),Ya=Rr("49e9"),Qa=Rr("2273");Rr("841c");function xmlBeauty(Tr){for(var Dr=Tr.replace(/</g,"~::~<").replace(/xmlns:/g,"~::~xmlns:").replace(/xmlns=/g,"~::~xmlns=").split("~::~"),Rr=Dr.length,Ur=!1,Hr=0,Wr="",zr=["\n"],Vr=" ",Kr=0;Kr<100;Kr++)zr.push(zr[Kr]+Vr);for(var $r=null,Gr=0;Gr<Rr;Gr++)Dr[Gr].search(/<!/)>-1?(Wr+=zr[Hr]+Dr[Gr],Ur=!0,(Dr[Gr].search(/-->/)>-1||Dr[Gr].search(/\]>/)>-1||Dr[Gr].search(/!DOCTYPE/)>-1)&&(Ur=!1)):Dr[Gr].search(/-->/)>-1||Dr[Gr].search(/\]>/)>-1?(Wr+=Dr[Gr],Ur=!1):/^<\w/.exec(Dr[Gr-1])&&/^<\/\w/.exec(Dr[Gr])&&/^<[\w:\-.,]+/.exec(Dr[Gr-1])==($r=/^<\/[\w:\-.,]+/.exec(Dr[Gr]),null==$r?$r:$r[0].replace("/",""))?(Wr+=Dr[Gr],Ur||Hr--):Dr[Gr].search(/<\w/)>-1&&-1==Dr[Gr].search(/<\//)&&-1==Dr[Gr].search(/\/>/)?Wr=Wr+=Ur?Dr[Gr]:zr[Hr++]+Dr[Gr]:Dr[Gr].search(/<\w/)>-1&&Dr[Gr].search(/<\//)>-1?Wr=Wr+=Ur?Dr[Gr]:zr[Hr]+Dr[Gr]:Dr[Gr].search(/<\//)>-1?Wr=Wr+=Ur?Dr[Gr]:zr[--Hr]+Dr[Gr]:Dr[Gr].search(/\/>/)>-1?Wr=Wr+=Ur?Dr[Gr]:zr[Hr]+Dr[Gr]:Dr[Gr].search(/<\?/)>-1||Dr[Gr].search(/xmlns:/)>-1||Dr[Gr].search(/xmlns=/)>-1?Wr+=zr[Hr]+Dr[Gr]:Wr+=Dr[Gr];return"\n"==Wr[0]?Wr.slice(1):Wr}var Za,eo=Rr("2913"),to=Rr("d4b2"),ro=function(){function StructureConvert(Tr){Object(Xr["a"])(this,StructureConvert),this._comments=[],this._markNodes=[],this._superiorSign=[],this._hoEditorFactoryID=Tr,this._comments=[],this._markNodes=[],this._superiorSign=[]}return Object(Yr["a"])(StructureConvert,[{key:"nodes2Html",value:function nodes2Html(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.structureNode.Copy(Tr,null),Dr.structureNode.htmldata}},{key:"nodes2Text",value:function nodes2Text(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.structureNode.Copy(Tr,null),Dr.structureNode.textdata}},{key:"nodes2Json",value:function nodes2Json(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.structureNode.Copy(Tr,null),Dr.structureNode.jsondata}},{key:"htmlToNode",value:function htmlToNode(Tr){var Dr,Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=/<body[^>]*>([\s\S]+?)<\/body>/i,Hr=Ur.exec(Tr);if(!Hr)return[];Dr="<div>"+Hr[1]+"</div>";var Wr=[];if(Dr)for(var zr=Ta()(Dr).children(),Vr=0;Vr<zr.length;Vr++){var Kr=zr[Vr],$r=Ta()(Kr).prop("tagName").toLowerCase();if("p"==$r){var Gr=this.dealP(Kr),Jr=new qi["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,0),Xr=Jr.combineParagraph,Yr=this.dealStyle(Gr.style,"text-align");Yr&&(Xr.align="center"==Yr?ka["a"].alcenter:"left"==Yr?ka["a"].alleft:"right"==Yr?ka["a"].alright:"justify"==Yr?ka["a"].alSpaceEqually:Xr.align);var Qr=this.dealStyle(Gr.style,"line-height");Qr&&Qr.indexOf("%")>0&&(Xr.lineSpace=Number(Qr.substr(0,Qr.indexOf("%")))/100);var Zr=this.dealStyle(Gr.style,"mso-para-margin-left");if(Zr){var en=Zr.match(/^(.*)gd$/);en&&en[1]&&(Xr.leftMarginMm=Number(en[1]))}Wr.push(Jr);for(var tn=0;tn<Gr.children.length;tn++){var rn=Gr.children[tn];if(rn.text){var nn=rn.style;nn=nn.replace(/\r\n/g,""),nn=nn.replace(/\n/g,"");var an=new Da["c"](this._hoEditorFactoryID),sn=this.dealStyle(nn,"font-size");if(sn){var cn=sn.match(/^(.*)(px|pt)$/);if(cn){var un=parseFloat(cn[1]);"pt"==cn[2]&&(un=parseFloat((96*un/72).toFixed(2))),an.size=un}}var dn=this.dealStyle(nn,"font-family");dn&&(an.font=dn);var hn=this.dealStyle(nn,"font-weight");hn&&hn.indexOf("bold")>=0&&(an.bold=!0);var pn=this.dealStyle(nn,"font-style");pn&&pn.indexOf("italic")>=0&&(an.italic=!0);var _n=this.dealStyle(nn,"text-decoration");_n&&_n.indexOf("underline")>=0&&(an.underline=!0),_n&&_n.indexOf("line-through")>=0&&(an.strikeout=!0);var gn=this.dealStyle(nn,"vertical-align");gn&&gn.indexOf("super")>=0&&(an.script=2),gn&&gn.indexOf("sub")>=0&&(an.script=1);var mn=this.dealStyle(nn,"background");mn&&(mn.indexOf("rgb")>=0&&(mn=this.colorRGB2Hex(mn)),an.backColor=mn);var vn=this.dealStyle(nn,"color");vn&&(vn.indexOf("rgb")>=0&&(vn=this.colorRGB2Hex(vn)),an.color=vn);var yn=Rr.docTree.styleCompare(an),bn=new ci["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,wn["b"].ntText,rn.text,yn);Wr.push(bn)}}if(Vr==zr.length-1&&Ta()(Kr).html().indexOf("<o:p></o:p>")>0){var xn=new qi["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,0);Wr.push(xn)}}else if("table"==$r){var Cn=new qi["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,Rr.docTree.curParaNo);Wr.push(Cn),Wr.push(this.dealTable(Kr))}}return Wr}},{key:"dealTable",value:function dealTable(Tr){for(var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Ta()(Tr).find("tbody tr"),Ur=0,Hr=new Array,Wr=new Array,zr=new Array,Vr=0,Kr=new Map,$r=0;$r<Rr.length;$r++){var Gr=Ta()(Rr[$r]).children().length;Gr>Ur&&(Ur=Gr,Vr=$r)}new qi["a"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,Dr.docTree.curParaNo);for(var Jr=new Sn["j"](""),Xr=new fa["c"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,Rr.length,Ur,Jr),Yr=0;Yr<Rr.length;Yr++){var Qr=new Sn["i"](""),Zr=new fa["b"](Xr,Qr),en=Ta()(Rr[Yr]).css("height");if(en&&"0px"!=en){var tn=parseFloat(en.substring(0,en.indexOf("pt")));tn=parseFloat((96*tn/72).toFixed(2)),Zr.rowHeight=tn}Hr.push(Zr);for(var rn=Ta()(Rr[Yr]).children(),nn=0,an=0;an<rn.length;an++){if(Vr==Yr){var sn=Ta()(rn[an]).css("width"),cn=parseFloat(sn.substring(0,sn.indexOf("pt")));cn=parseFloat((96*cn/72).toFixed(2));var un=new Sn["c"](""),dn=new fa["a"](Xr,cn,un);Wr.push(dn)}var hn=Ta()(rn[an]).attr("colspan"),pn=Ta()(rn[an]).attr("rowspan");if(hn||pn){var _n=0;if(hn&&(_n=parseInt(hn)),pn){for(var gn=parseInt(pn),mn=0;mn<gn;mn++){for(var vn=0;vn<_n;vn++)this.arrayPush(Yr+mn,nn+vn,Ur,Yr+"-"+an,zr);0==_n&&this.arrayPush(Yr+mn,nn,Ur,Yr+"-"+an,zr)}nn+=0==_n?1:_n}else for(var yn=0;yn<_n;yn++)this.arrayPush(Yr,nn,Ur,Yr+"-"+an,zr),nn++}else this.arrayPush(Yr,nn,Ur,Yr+"-"+an,zr),nn++;Kr.set(Yr+"-"+an,rn[an])}}Xr.colInfos=Wr,Xr.rowInfos=Hr;for(var bn=new Map,wn=0;wn<zr.length;wn++)for(var xn=zr[wn],Cn=0;Cn<xn.length;Cn++){var Pn=zr[wn][Cn];if(bn.get(Pn))Xr.rows[wn][Cn]=void 0;else{var En=Kr.get(Pn),Dn=Ta()(En).css("border-left"),kn=Ta()(En).css("border-right"),On=Ta()(En).css("border-top"),In=Ta()(En).css("border-bottom"),Mn=Ta()(En).attr("colspan"),Nn=Ta()(En).attr("rowspan"),Ln=Xr.rows[wn][Cn],An=Nn?parseInt(Nn):1,Rn=Mn?parseInt(Mn):1;Ln.rowSpan=An,Ln.colSpan=Rn,Ln.borderVisible=["none"!=Dn,"none"!=kn,"none"!=On,"none"!=In];for(var Fn=Ta()(En).children(),jn=new Array,Bn=0;Bn<Fn.length;Bn++){var Un=Fn[Bn],Hn=this.htmlToNode("<body>"+Un.outerHTML+"</body>");jn=jn.concat(Hn)}for(var Wn=0;Wn<jn.length;Wn++)null===Ln||void 0===Ln||Ln.addChild(jn[Wn]);Ln.cell2DrawNode(wn,Cn),bn.set(Pn,Pn)}}return Xr.node2DrawNode(),Xr}},{key:"arrayPush",value:function arrayPush(Tr,Dr,Rr,Ur,Hr){for(Hr[Tr]||Hr.push(new Array);Dr<Rr;Dr++)if(!Hr[Tr][Dr]){Hr[Tr][Dr]=Ur;break}}},{key:"colorRGB2Hex",value:function colorRGB2Hex(Tr){var Dr=Tr.split(","),Rr=parseInt(Dr[0].split("(")[1]),Ur=parseInt(Dr[1]),Hr=parseInt(Dr[2].split(")")[0]),Wr="#"+((1<<24)+(Rr<<16)+(Ur<<8)+Hr).toString(16).slice(1);return Wr}},{key:"dealStyle",value:function dealStyle(Tr,Dr){if(!Tr)return"";for(var Rr=Tr.split(";"),Ur=0;Ur<Rr.length;Ur++){var Hr=Rr[Ur],Wr=Hr.split(":");if(Dr==Wr[0])return Wr[1]}return""}},{key:"dealP",value:function dealP(Tr){var Dr=Ta()(Tr).children(),Rr=Ta()(Tr).attr("style")||"",Ur=this.dealTagName(Dr,"");return{style:Rr,children:Ur}}},{key:"dealTagName",value:function dealTagName(Tr,Dr){for(var Rr=[],Ur=0;Ur<Tr.length;Ur++){var Hr=Tr[Ur],Wr=Ta()(Hr).prop("tagName").toLowerCase();"b"==Wr||"strong"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"font-weight:bold;")):"em"==Wr||"i"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"font-style:italic;")):"u"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"text-decoration: underline;")):"s"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"text-decoration: line-through;")):"sup"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"vertical-align:super;")):"sub"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"vertical-align:sub;")):"span"==Wr&&(Rr=Rr.concat(this.dealSpan(Hr,Dr)))}return Rr}},{key:"dealBaseTag",value:function dealBaseTag(Tr,Dr){var Rr=Ta()(Tr).children();return 0==Rr.length?[{style:Dr,text:Ta()(Tr).text()}]:this.dealTagName(Rr,Dr)}},{key:"dealSpan",value:function dealSpan(Tr,Dr){var Rr=(Ta()(Tr).attr("style")||"")+Dr;Rr.endsWith(";")||(Rr+=";");var Ur=Ta()(Tr).children();if(0==Ur.length)return[{style:Rr,text:Ta()(Tr).text()}];for(var Hr=Ta()(Tr).html(),Wr=[],zr=0;zr<Ur.length;zr++){var Vr=Ur[zr],Kr=Vr.outerHTML,$r=Hr.indexOf(Kr);$r>0&&(Wr.push({style:Rr,text:Hr.substr(0,$r)}),Hr=Hr.substr($r));var Gr=Ta()(Vr).prop("tagName").toLowerCase(),Jr=Rr;if("b"==Gr||"strong"==Gr)Jr+="font-weight:bold;";else if("em"==Gr||"i"==Gr)Jr+="font-style:italic;";else if("u"==Gr)Jr+="text-decoration: underline;";else if("s"==Gr)Jr+="text-decoration: line-through;";else if("sup"==Gr)Jr+="vertical-align:super;";else if("sub"==Gr)Jr+="vertical-align:sub;";else if("span"==Gr)Jr+=Ta()(Vr).attr("style");else if("o:p"==Gr){Hr="";continue}var Xr=Ta()(Kr).children();Xr&&Xr.length>0?Wr.push(this.dealTagName(Xr,Jr)[0]):Wr.push({style:Jr,text:Ta()(Vr).text()}),Hr=Hr.substr(Kr.length)}return Hr&&Wr.push({style:Rr,text:Hr}),Wr}},{key:"doc2Text",value:function doc2Text(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.headerNodes,Rr="",Ur=0;Ur<Dr.length;Ur++){var Hr=Dr[Ur];Hr.length>1&&(Rr+=this.nodes2Text(Hr))}for(var Wr=Tr.docTree.mainNodes,zr=this.nodes2Text(Wr),Vr=Tr.docTree.footerNodes,Kr="",$r=0;$r<Vr.length;$r++){var Gr=Vr[$r];Gr.length>1&&(Kr+=this.nodes2Text(Gr))}var Jr="";return Jr=Rr.length>0?Rr+"\n"+zr+"\n"+Kr:zr+"\n"+Kr,Jr}},{key:"doc2Html",value:function doc2Html(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr="",Rr=Tr.docTree.headerNodes,Ur=0;Ur<Rr.length;Ur++){var Hr=Rr[Ur];Dr+=this.nodes2Html(Hr)}var Wr=Tr.docTree.mainNodes;Dr+=this.nodes2Html(Wr);for(var zr=Tr.docTree.footerNodes,Vr=0;Vr<zr.length;Vr++){var Kr=zr[Vr];Dr+=this.nodes2Html(Kr)}return Dr}},{key:"doc2Xml",value:function doc2Xml(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Rr&&(this.getValidStyles(0),this.getValidStyles(1)),"json"===Tr){var Hr=JSON.parse("{}"),Wr=this.doc2Json("docProperty");Hr.docProperty=Wr;var zr=this.doc2Json("pageSettings");Hr.pageSettings=zr;var Vr=this.doc2Json("styles");Hr.styles=Vr;var Kr=this.doc2Json("comments");Hr.comments=Kr;var $r=this.doc2Json("userHistories");Hr.userHistories=$r;var Gr=this.doc2Json("header","json");Hr.headers=Gr;var Jr=this.doc2Json("main","json");Hr.main=Jr;var Xr=this.doc2Json("footer","json");return Hr.footer=Xr,Hr}var Yr='<?xml version="1.0" encoding="utf-8"?>';Yr+="<root xml:space='preserve'>";var Qr=new La.a({stripWhitespaces:!1,arrayAccessForm:"property"});Yr+="<docProperty>";var Zr=this.doc2Json("docProperty");Yr+=Qr.js2xml(Zr),Yr+="</docProperty>",Yr+="<pageSettings>";var en=this.doc2Json("pageSettings");Yr+=Qr.js2xml(en),Yr+="</pageSettings>",Yr+="<styles>";var tn=this.doc2Json("styles");Yr+=Qr.js2xml(tn),Yr+="</styles>",Yr+="<comments>";var rn=this.doc2Json("comments");Yr+=Qr.js2xml(rn),Yr+="</comments>",Yr+="<userHistories>";var nn=this.doc2Json("userHistories");return Yr+=Qr.js2xml(nn),Yr+="</userHistories>",Yr+="<headers>",Yr=this.doc2Json("header","xml",Yr),Yr+="</headers>",Yr+="<main>",Yr=this.doc2Json("main","xml",Yr),Yr+="</main>",Yr+="<footers>",Yr=this.doc2Json("footer","xml",Yr),Yr+="</footers>",Yr+="<docText>",Yr+=Ur.vueController.getMainDocText(),Yr+="</docText>",Yr+="</root>",Yr=Ur.unitConvert.replaceAll(Yr,"<TempNode>",""),Yr=Ur.unitConvert.replaceAll(Yr,"</TempNode>",""),Ur.isThrowError=!0,Dr?Yr:xmlBeauty(Yr)}},{key:"xml2Doc",value:function xml2Doc(Tr){Tr=this.replaceNodesName(Tr);var Dr=new La.a({stripWhitespaces:!1}),Rr=Dr.xml2js(Tr),Ur=JSON.parse(JSON.stringify(Rr));if(Ur.root||Ur.rvxml){if(Ur.root){var Hr=Ur.root,Wr=Hr.headers.header;void 0===Wr.length&&(Wr=Array(Hr.headers.header));for(var zr=new Array,Vr=0;Vr<Wr.length;Vr++){var Kr=parseInt(Wr[Vr].index),$r=Wr[Vr].node;void 0===$r.length&&($r=Array(Wr[Vr].node));for(var Gr=0;Gr<$r.length;Gr++){var Jr=$r[Gr];zr[Kr]||(zr[Kr]=new Array),zr[Kr][Gr]=Jr}}var Xr=Hr.footers.footer;void 0===Xr.length&&(Xr=Array(Hr.footers.footer));for(var Yr=new Array,Qr=0;Qr<Xr.length;Qr++){var Zr=parseInt(Xr[Qr].index),en=Xr[Qr].node;void 0===en.length&&(en=Array(Xr[Qr].node));for(var tn=0;tn<en.length;tn++){var rn=en[tn];Yr[Zr]||(Yr[Zr]=new Array),Yr[Zr][tn]=rn}}return this.json2Doc({docProperty:Hr.docProperty,pageSettings:Hr.pageSettings,comments:Hr.comments,userHistories:Hr.userHistories,styles:Hr.styles,main:Hr.main.node,header:zr,footer:Yr})}if(Ur.rvxml)Ur.rvxml;else;}}},{key:"replaceNodesName",value:function replaceNodesName(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|PupilMapNode|LightLocationMapNode|MenstrualHistoryNode|FetalHeartMapNode|PermanentTeethMapNode|PrimaryTeethMapNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode/g);return Tr=Tr.replace(Rr,"node"),Tr=Dr.unitConvert.replaceAll(Tr,"<TableFormula>","<node>"),Tr=Dr.unitConvert.replaceAll(Tr,"</TableFormula>","</node>"),Tr=Dr.unitConvert.replaceAll(Tr,"<End>","<node>"),Tr=Dr.unitConvert.replaceAll(Tr,"</End>","</node>"),Tr}},{key:"getValidStyles",value:function getValidStyles(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=[];0===Tr&&(Rr=Dr.docTree.styles),1===Tr&&(Rr=Dr.docTree.paragraphs);for(var Ur=Dr.docTree.mainNodes,Hr=Dr.docTree.headerNodes,Wr=Dr.docTree.footerNodes,zr=function forEachAllNodes(Dr,Rr,zr,Vr){var Kr=function updateNodesStyle(Dr){for(var Ur=0;Ur<Dr.length;Ur++){var Hr=Dr[Ur];if(0===Tr){if(Hr instanceof ci["a"]||Hr instanceof Xa["a"]||Hr instanceof li["a"]||Hr instanceof qi["a"])if(0===Rr){if(Number(Hr.styleIndex)===zr){Vr=!0;break}}else Number(Hr.styleIndex)>zr&&(Hr.styleIndex=Number(Hr.styleIndex)-1)}else if(Hr instanceof qi["a"])if(0===Rr){if(Number(Hr.paraNo)===zr){Vr=!0;break}}else Number(Hr.paraNo)>zr&&(Hr.paraNo=Number(Hr.paraNo)-1);Hr instanceof Va["a"]&&updateNodesStyle(Hr.childNodes)}};if("all"===Dr||"head"===Dr)for(var $r=0;$r<Hr.length;$r++){var Gr=Hr[$r];Array.isArray(Gr)&&Gr.length>0&&Kr(Gr)}if("all"!==Dr&&"main"!==Dr||Kr(Ur),"all"===Dr||"foot"===Dr)for(var Jr=0;Jr<Wr.length;Jr++){var Xr=Wr[Jr];Array.isArray(Xr)&&Xr.length>0&&Kr(Xr)}if(0===Rr)return Vr},Vr=Rr.length-1;Vr>0;Vr--){var Kr=!1;Kr=zr("foot",0,Vr,Kr),Kr||(Kr=zr("main",0,Vr,Kr)),Kr||(Kr=zr("head",0,Vr,Kr)),Kr||(Rr.splice(Vr,1),zr("all",1,Vr))}return Rr}},{key:"doc2Json",value:function doc2Json(Tr,Dr,Rr){var Ur=this,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=new La.a({stripWhitespaces:!1,arrayAccessForm:"property"});if("docProperty"===Tr){var zr=Hr.docTree.docProperty,Vr=JSON.parse(JSON.stringify(zr,gn["b"].whiteList()));return Vr}if("pageSettings"===Tr){var Kr=Hr.pageProperty,$r=JSON.parse(JSON.stringify(Kr,aa["a"].whiteList()));return $r}if("styles"===Tr){for(var Gr=[],Jr=Hr.docTree.styles,Xr=Jr[0].combineStyle,Yr=JSON.parse(JSON.stringify(Xr,Da["a"].whiteList())),Qr=1;Qr<Jr.length;Qr++){var Zr=Jr[Qr],en=Zr.combineStyle,tn=JSON.parse(JSON.stringify(en,Da["a"].whiteList()));void 0!==Zr.size&&Zr.size!==Xr.size||delete tn["size"],void 0!==Zr.font&&Zr.font!==Xr.font||delete tn["font"],void 0!==Zr.color&&Zr.color!==Xr.color||delete tn["color"],void 0!==Zr.backColor&&Zr.backColor!==Xr.backColor||delete tn["backColor"],void 0!==Zr.bold&&Zr.bold!==Xr.bold||delete tn["bold"],void 0!==Zr.italic&&Zr.italic!==Xr.italic||delete tn["italic"],void 0!==Zr.underline&&Zr.underline!==Xr.underline||delete tn["underline"],void 0!==Zr.strikeout&&Zr.strikeout!==Xr.strikeout||delete tn["strikeout"],void 0!==Zr.script&&Zr.script!==Xr.script||delete tn["script"],-1!==Zr.deleterIndex&&void 0!==Zr.deleterIndex&&Zr.deleterIndex!==Xr.deleterIndex||delete tn["deleterIndex"],-1!==Zr.creatorIndex&&void 0!==Zr.creatorIndex&&Zr.creatorIndex!==Xr.creatorIndex||delete tn["creatorIndex"],"0"!==Zr.commentID&&void 0!==Zr.commentID&&Zr.commentID!==Xr.commentID||delete tn["commentID"],Gr.push(tn)}for(var rn=[],nn=Hr.docTree.paragraphs,an=nn[0].combineStyle,sn=JSON.parse(JSON.stringify(an,ka["b"].whiteList())),cn=1;cn<nn.length;cn++){var un=nn[cn],dn=un.combineStyle,hn=JSON.parse(JSON.stringify(dn,ka["b"].whiteList()));void 0!==un.charSpace&&un.charSpace!==an.charSpace||delete hn["charSpace"],void 0!==un.lineSpace&&un.lineSpace!==an.lineSpace||delete hn["lineSpace"],void 0!==un.leftMargin&&un.leftMargin!==an.leftMarginMm||delete hn["leftMarginMm"],void 0!==un.rightMargin&&un.rightMargin!==an.rightMarginMm||delete hn["rightMarginMm"],void 0!==un.topMargin&&un.topMargin!==an.topMarginMm||delete hn["topMarginMm"],void 0!==un.bottomMargin&&un.bottomMargin!==an.bottomMarginMm||delete hn["bottomMarginMm"],void 0!==un.align&&un.align!==an.align||delete hn["align"],rn.push(hn)}return{defaultFont:Yr,fontStyle:Gr,defaultPara:sn,paraStyle:rn}}if("comments"===Tr){var pn=[],_n=Hr.drawTree.commentsMap;return _n.forEach((function(Tr){var Dr=JSON.parse(JSON.stringify(Tr,Ka["a"].whiteList()));pn.push(Dr)})),{comment:pn}}if("userHistories"===Tr){for(var mn=[],vn=Hr.docTree.userHistories,yn=0;yn<vn.length;yn++){var bn=vn[yn],wn=JSON.parse(JSON.stringify(bn,$a["b"].whiteList()));mn.push(wn)}return{userHistory:mn}}var xn=function doc2XmlJson(Tr,Hr){for(var zr=[],Vr=0;Vr<Tr.length;Vr++){var Kr=Tr[Vr],$r=void 0;$r="json"===Hr&&(Kr instanceof fa["c"]||Kr instanceof ei["f"])?Ur.delStyle(Kr.node2Json(void 0,void 0,"json")):Ur.delStyle(Kr.node2Json()),"xml"===Hr?Rr+=Wr.js2xml($r):zr.push($r)}if("json"===Dr)return zr};if("header"===Tr){for(var Cn=Hr.docTree.headerNodes,Pn=[],En=0;En<Cn.length;En++){var Sn=Cn[En];if(Sn&&Sn.length>0)if("xml"===Dr)Rr+="<header>",Rr+=Wr.js2xml({index:En}),xn(Sn,Dr),Rr+="</header>";else{var Dn={header:xn(Sn,"json")};Pn.push(Dn)}}if("xml"===Dr)return Rr;if("json"===Dr)return Pn}if("footer"===Tr){for(var kn=Hr.docTree.footerNodes,On=[],In=0;In<kn.length;In++){var Mn=kn[In];if(Mn&&Mn.length>0)if("xml"===Dr)Rr+="<footer>",Rr+=Wr.js2xml({index:In}),xn(Mn,Dr),Rr+="</footer>";else{var Nn={footer:xn(Mn,"json")};On.push(Nn)}}if("xml"===Dr)return Rr;if("json"===Dr)return On}if("main"===Tr){var Ln=Hr.docTree.mainNodes;if("xml"===Dr)return xn(Ln,Dr),Rr;var An=xn(Ln,"json");return An}}},{key:"json2Doc",value:function json2Doc(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Tr.docProperty;if(Rr){var Ur=Dr.docTree.docProperty;Ur.type=Number(Rr["type"]?Rr["type"]:gn["d"].etCaseHistory),Ur.title=Rr["title"],Ur.docID=Rr["docID"],Ur.patientID=Rr["patientID"],Ur.patientName=Rr["patientName"],Ur.lastEditTime=Rr["lastEditTime"],Ur.lastEditorID=Rr["lastEditorID"],Ur.lastEditorName=Rr["lastEditorName"]}var Hr=Tr.pageSettings;if(Hr){var Wr=Dr.pageProperty;Wr.printDirection=Number(Hr.printDirection),Wr.borderColor=Hr.borderColor,Wr.paintRowLine=Number(Hr.paintRowLine),Wr.pageSize=Hr.pageSize,Wr.widthMm=Number(Hr.widthMm),Wr.heightMm=Number(Hr.heightMm),Wr.source=Hr.source,Wr.topMarginMm=Number(Hr.topMarginMm),Wr.bottomMarginMm=Number(Hr.bottomMarginMm),Wr.leftMarginMm=Number(Hr.leftMarginMm),Wr.rightMarginMm=Number(Hr.rightMarginMm),Wr.headerYMm=Number(Hr.headerYMm)>=3?Number(Hr.headerYMm):3,Wr.footerYMm=Number(Hr.footerYMm)>=3?Number(Hr.footerYMm):3,Wr.showFirstPageFoot="true"===Hr.showFirstPageFoot,Wr.showFirstPageHead="true"===Hr.showFirstPageHead,Wr.pageNumber=Number(Hr.pageNumber),Wr.isHaveBgImage="true"===Hr.isHaveBgImage,Wr.fontFormat=Hr.fontFormat?Hr.fontFormat:"宋体",Wr.fontSize=Hr.fontSize?Number(Hr.fontSize):14,Wr.fontColor=Hr.fontColor?Hr.fontColor:"#000000",Wr.backColor=Hr.backColor?Hr.backColor:"transparent",Wr.paraAlign=Hr.paraAlign?Number(Hr.paraAlign):0,Wr.charSpace=Hr.charSpace?Number(Hr.charSpace):1,Wr.lineHeight=Hr.lineHeight?Number(Hr.lineHeight):1.25}for(var zr=0;zr<Dr.drawTree.drawPages.length;zr++)Dr.drawTree.drawPages[zr].reFreshBounds();this._comments=[];var Vr=Tr.comments;this._comments=Vr.comment,Dr.docTree.userHistories=[];for(var Kr=Tr.userHistories,$r=Kr.userHistory,Gr=0;Gr<$r.length;Gr++){var Jr=$r[Gr],Xr=new $a["b"](this._hoEditorFactoryID,$a["a"].hetCreate);Object.assign(Xr,Jr),Xr.permissionLevel=Number(Jr._permissionLevel),Dr.docTree.userHistories.push(Xr)}Dr.docTree.styles=[];var Yr=new Da["c"](this._hoEditorFactoryID);Dr.docTree.styles.push(Yr);var Qr=Tr.styles,Zr=Qr.font?Qr.font:Qr.fontStyle,en=Qr.para?Qr.para:Qr.paraStyle;if(Zr&&void 0===Zr.length&&(Zr=Array(Zr)),en&&void 0===en.length&&(en=Array(en)),Array.isArray(Zr)&&Zr.forEach((function(Tr){Tr&&"string"===typeof Tr.font&&""===Tr.font.replace(/^\s+|\s+$/g,"")&&(Tr.font="宋体")})),Zr){var tn=this.getDocStyles("font",Zr);Dr.docTree.styles=Dr.docTree.styles.concat(tn)}Dr.docTree.paragraphs=[];var rn=new ka["c"](this._hoEditorFactoryID);if(Dr.docTree.paragraphs.push(rn),en){var nn=this.getDocStyles("para",en);Dr.docTree.paragraphs=Dr.docTree.paragraphs.concat(nn)}var an=Tr.header,sn=new Array;if(an)for(var cn=0;cn<an.length;cn++){var un=an[cn];if(!Dr.docTree.headerNodes[cn]){var dn=new Array;Dr.docTree.headerNodes[cn]=dn}var hn=new Array;if(sn.push(hn),un)for(var pn=0;pn<un.length;pn++){var _n=un[pn];if(_n){var mn=Dr.structureConvert.convertNode(_n,Dr.docTree.headerNodes[cn],null,hn);if(mn&&(mn.rootPath="header/"+cn.toString(),hn.push(mn),cn>0&&0===pn&&mn instanceof qi["a"])){var vn=new Array;vn.push(mn),mn.rootNodes=vn,Dr.docTree.headerNodes[cn]=vn;var yn=new la["a"](this._hoEditorFactoryID,mn.rootPath,cn);Dr.drawPageTree.drawHeaders[cn]=yn,Dr.drawTree.headerDNodes[cn]=new Array,Dr.drawTree.initAreaFirstNode(vn,Dr.drawTree.headerDNodes[cn])}}}}var bn=Tr.footer,wn=new Array;if(bn)for(var xn=0;xn<bn.length;xn++){if(!Dr.docTree.footerNodes[xn]){var Cn=new Array;Dr.docTree.footerNodes[xn]=Cn}var Pn=bn[xn],En=new Array;if(wn.push(En),Pn)for(var Sn=0;Sn<Pn.length;Sn++){var Dn=Pn[Sn];if(Dn){var kn=Dr.structureConvert.convertNode(Dn,Dr.docTree.footerNodes[xn],null,En);if(kn&&(kn.rootPath="footer/"+xn.toString(),En.push(kn),xn>0&&0===Sn&&kn instanceof qi["a"])){var On=new Array;On.push(kn),kn.rootNodes=On,Dr.docTree.footerNodes[xn]=On;var In=new sa["a"](this._hoEditorFactoryID,kn.rootPath,xn);Dr.drawPageTree.drawFooters[xn]=In,Dr.drawTree.footerDNodes[xn]=new Array,Dr.drawTree.initAreaFirstNode(On,Dr.drawTree.footerDNodes[xn])}}}}for(var Mn=Tr.main,Nn=new Array,Ln=0;Ln<Mn.length;Ln++){var An=Mn[Ln];if(An){var Rn=Dr.structureConvert.convertNode(An,Dr.docTree.mainNodes,null,Nn);Rn&&Nn.push(Rn)}}var Fn=new Map;return Fn.set("header",sn),Fn.set("footer",wn),Fn.set("main",Nn),Fn}},{key:"getDocStyles",value:function getDocStyles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if("font"===Tr){for(var Ur=[],Hr=Rr.docTree.styles[0].combineStyle,Wr=0;Wr<Dr.length;Wr++){var zr=Dr[Wr],Vr=new Da["c"](this._hoEditorFactoryID);"undefined"!==typeof zr["size"]&&zr["size"]!==Hr.size.toString()&&(Vr.size=Number(zr["size"])),"undefined"!==typeof zr["font"]&&zr["font"]!==Hr.font&&(Vr.font=zr["font"]),"undefined"!==typeof zr["color"]&&zr["color"]!==Hr.color&&(Vr.color=zr["color"]),"undefined"!==typeof zr["backColor"]&&zr["backColor"]!==Hr.backColor&&(Vr.backColor=zr["backColor"]),"undefined"!==typeof zr["bold"]&&zr["bold"]!==Hr.bold.toString()&&(Vr.bold="true"===zr["bold"]),"undefined"!==typeof zr["italic"]&&zr["italic"]!==Hr.italic.toString()&&(Vr.italic="true"===zr["italic"]),"undefined"!==typeof zr["underline"]&&zr["underline"]!==Hr.underline.toString()&&(Vr.underline="true"===zr["underline"]),"undefined"!==typeof zr["strikeout"]&&zr["strikeout"]!==Hr.strikeout.toString()&&(Vr.strikeout="true"===zr["strikeout"]),"undefined"!==typeof zr["script"]&&zr["script"]!==Hr.script.toString()&&(Vr.script=Number(zr["script"])),"undefined"!==typeof zr["creatorIndex"]&&zr["creatorIndex"]!==Hr.creatorIndex.toString()&&(Vr.creatorIndex=Number(zr["creatorIndex"])),"undefined"!==typeof zr["deleterIndex"]&&zr["deleterIndex"]!==Hr.deleterIndex.toString()&&(Vr.deleterIndex=Number(zr["deleterIndex"])),"undefined"!==typeof zr["commentID"]&&zr["commentID"]!==Hr.commentID.toString()&&(Vr.commentID=zr["commentID"]),Ur.push(Vr)}return Ur}for(var Kr=Rr.docTree.paragraphs[0].combineStyle,$r=[],Gr=0;Gr<Dr.length;Gr++){var Jr=Dr[Gr],Xr=new ka["c"](this._hoEditorFactoryID);"undefined"!==typeof Jr["leftMarginMm"]&&Jr["leftMarginMm"]!==Kr.leftMarginMm.toString()&&(Xr.leftMargin=Number(Jr["leftMarginMm"])),"undefined"!==typeof Jr["rightMarginMm"]&&Jr["rightMarginMm"]!==Kr.rightMarginMm.toString()&&(Xr.rightMargin=Number(Jr["rightMarginMm"])),"undefined"!==typeof Jr["topMarginMm"]&&Jr["topMarginMm"]!==Kr.topMarginMm.toString()&&(Xr.topMargin=Number(Jr["topMarginMm"])),"undefined"!==typeof Jr["bottomMarginMm"]&&Jr["bottomMarginMm"]!==Kr.bottomMarginMm.toString()&&(Xr.bottomMargin=Number(Jr["bottomMarginMm"])),"undefined"!==typeof Jr["align"]&&Jr["align"]!==Kr.align.toString()&&(Xr.align=Number(Jr["align"])),"undefined"!==typeof Jr["charSpace"]&&Jr["charSpace"]!==Kr.charSpace.toString()&&(Xr.charSpace=Number(Jr["charSpace"])),"undefined"!==typeof Jr["lineSpace"]&&Jr["lineSpace"]!==Kr.lineSpace.toString()&&(Xr.lineSpace=Number(Jr["lineSpace"])),$r.push(Xr)}return $r}},{key:"convertNode",value:function convertNode(Tr,Dr,Rr,Ur,Hr){if(""!==Tr){if(Tr.nodeType=wn["b"][Tr.nodeType],Tr.nodeType==wn["b"].ntTable){if(Hr&&Rr instanceof ei["f"])return void Ea.a.alert("不允许将表格粘贴到文本域");var Wr=fa["c"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);return Wr}if(Tr.nodeType==wn["b"].ntParagraph)return qi["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntText)return ci["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntMedicalExpression){if("PupilMap"==Tr.expressType)return Aa["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("LightLocationMap"==Tr.expressType)return Ra["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("MenstrualHistory"==Tr.expressType)return Fa["b"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("FetalHeartMap"==Tr.expressType)return ja["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("PermanentTeethMap"==Tr.expressType)return Ba["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("PrimaryTeethMap"==Tr.expressType)return Ua["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr)}else if(Tr.nodeType==wn["b"].ntImage){if("Image"==Tr.imageType)return Oa["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("Barcode"==Tr.imageType)return Ha["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("Qrcode"==Tr.imageType)return Wa["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr)}else if(Tr.nodeType==wn["b"].ntControl){if("ctDateTime"==Tr.type)return Yn["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);if("ctDownList"==Tr.type)return Qn["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);if("ctRadioAndCheckBox"==Tr.type)return ga["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr)}else{if(Tr.nodeType==wn["b"].ntField)return ei["f"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);if(Tr.nodeType==wn["b"].ntSpecialChar)return za["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntMark)return li["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntPageCount)return Ga["b"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntPageNum)return Ja["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntTableFormula)return Qa["b"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntSeparateChar)return eo["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntLabel)return to["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntSign)return Wi["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr)}}}},{key:"delStyle",value:function delStyle(Tr){var Dr=this;return Tr["style"]&&delete Tr["style"],Object.keys(Tr).forEach((function(Rr){"object"==Object(Ma["a"])(Tr[Rr])&&null!=Tr[Rr]&&(Tr[Rr]=Dr.delStyle(Tr[Rr]))})),Tr}},{key:"mergeJson",value:function mergeJson(Tr){var Dr=JSON.parse(JSON.stringify(Tr).replace(/}{/,",").replace(/{,/,"{"));return this.delStyle(Dr)}},{key:"openFile",value:function openFile(Tr,Dr,Rr){var Ur=this;this._superiorSign=[];var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=new FileReader;Wr.readAsText(Tr,"UTF-8"),Wr.onload=function(Rr){var Wr,zr=Rr.target.result,Vr="";zr&&(Vr=zr.toString()),Wr="text/xml"==Tr.type?Hr.structureConvert.xml2Doc(Vr):Hr.structureConvert.json2Doc(JSON.parse(Vr)),Promise.resolve().then((function(){Hr.drawTree.updateDrawTreeFirstLine(),Ur.openJson2Doc(Wr,Dr)}))}}},{key:"loadFiles",value:function loadFiles(Tr){var Dr=new Array;return Tr.forEach((function(Tr){var Rr=new FileReader;Rr.readAsText(Tr,"UTF-8"),Rr.onload=function(Tr){var Rr=Tr.target.result,Ur="";Rr&&(Ur=Rr.toString(),Dr.push(Ur))}})),Dr}},{key:"openXml",value:function openXml(Tr,Dr,Rr){var Ur=this,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._superiorSign=[],Hr.isThrowError=!1;var Wr=Hr.structureConvert.xml2Doc(Tr);Promise.resolve().then((function(){Hr.drawTree.updateDrawTreeFirstLine(),Ur.openJson2Doc(Wr,Dr,Rr)}))}},{key:"openJson2Doc",value:function openJson2Doc(Tr,Dr,Rr){var Ur=this,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr&&Dr({text:Hr.vueController.getDocTitle(),count:0}),Tr){var Wr=function insertNode(Tr,Dr){var Rr=Tr[0];Rr instanceof qi["a"]&&0!==Rr.paraNo&&Dr instanceof qi["a"]&&(Dr.paraNo=Rr.paraNo);for(var Wr=1;Wr<Tr.length;Wr++){var zr=Tr[Wr];if(!(zr instanceof ci["a"]&&0===zr.text.length)){var Vr="";if(zr.parentNode){if(Vr=Hr.docTree.getNodeLastPath(zr.parentNode),zr.parentNode instanceof ei["f"]){var Kr=Hr.docTree.findNodePositionByPath(Vr);if(Kr&&Kr.node){var $r=Kr.node.previousLeaf();$r&&(Vr=Hr.docTree.getNodeLastPath($r))}}Hr.docTree.insertNodeAfterPath(Vr,zr)}else if(zr instanceof fa["c"]){var Gr=Tr[Wr+1];Vr=Hr.docTree.getNodeLastPath(Dr),Hr.docTree.insertNodeAfterPath(Vr,Gr),Hr.docTree.insertNodeAfterPath(Vr,zr),Wr+=1,Dr=Gr}else Vr=Hr.docTree.getNodeLastPath(Dr),Hr.docTree.insertNodeAfterPath(Vr,zr),Dr=zr;zr instanceof li["a"]&&Ur._markNodes.push(zr),zr instanceof Wi["a"]&&Hr.superiorSigns.length>0&&Hr.superiorSigns.includes(zr.customProperty.bce01)&&(Ur._superiorSign[0]=zr)}}},zr=Tr.get("header");if(zr)for(var Vr=0;Vr<zr.length;Vr++){var Kr=zr[Vr];if(Kr.length>0){var $r=Hr.docTree.headerNodes[Vr][0];Wr(Kr,$r);var Gr=Hr.docTree.headerNodes[Vr].length-1,Jr=Hr.docTree.getNodeLastPath(Hr.docTree.headerNodes[Vr][Gr]),Xr=new qa["a"](this._hoEditorFactoryID,gn["a"].daInsert,"header/"+Vr.toString()+"/0",Jr);Xr.repaintImmediate=!0,Hr.docTree.change(Xr),Vr<=Hr.drawTree.drawPages.length-1&&Hr.subDocManger.updateAllSameSubDoc(Vr,On["a"].hftHead,!0,!0)}}var Yr=Tr.get("footer");if(Yr)for(var Qr=0;Qr<Yr.length;Qr++){var Zr=Yr[Qr];if(Zr.length>0){var en=Hr.docTree.footerNodes[Qr][0];Wr(Zr,en);var tn=Hr.docTree.footerNodes[Qr].length-1,rn=Hr.docTree.getNodeLastPath(Hr.docTree.footerNodes[Qr][tn]),nn=new qa["a"](this._hoEditorFactoryID,gn["a"].daInsert,"footer/"+Qr.toString()+"/0",rn);nn.repaintImmediate=!0,Hr.docTree.change(nn),Qr<=Hr.drawTree.drawPages.length-1&&Hr.subDocManger.updateAllSameSubDoc(Qr,On["a"].hftFoot,!0,!0)}}var an=Tr.get("main"),sn=Hr.docTree.mainNodes[0];Rr&&an.length>1&&an[an.length-1]instanceof qi["a"]&&!(an[an.length-2]instanceof fa["c"])&&an.splice(an.length-1,1),Wr(an,sn);var cn=Hr.docTree.mainNodes.length-1,un=Hr.docTree.getNodeLastPath(Hr.docTree.mainNodes[cn]),dn=new qa["a"](this._hoEditorFactoryID,gn["a"].daInsert,"main/0",un);Hr.docTree.change(dn);var hn=[];hn=void 0===this._comments.length?Array(this._comments):this._comments;for(var pn,_n=function _loop(Tr){var Dr=hn[Tr],Rr=Ur._markNodes[0],Wr=Dr["id"];Ur._markNodes.forEach((function(Tr){Tr.text===Wr&&(Rr=Tr)}));var zr=new Ka["a"](Ur._hoEditorFactoryID,Wr,Dr["text"],Rr);zr.date=Dr["date"],zr.lineHeight=Number(Dr["lineHeight"]),zr.userID=Dr["userID"],zr.userName=Dr["userName"],Hr.drawTree.commentsMap.set(zr.id,zr);var Vr=Hr.drawPageTree.getMainRootArea(Rr.drawNodes[0]);null===Vr||void 0===Vr||Vr.areaComments.set(zr.id,zr)},bn=0;bn<hn.length;bn++)_n(bn);pn=Hr.docTree.mainNodes.length>1?Hr.docTree.mainNodes[1]:Hr.docTree.mainNodes[0];var wn=Hr.docTree.getNodeFirstPath(pn),xn=new yn["a"](this._hoEditorFactoryID,wn,wn);Hr.docTree.curDomRange=xn;var Cn=new vn["a"](xn,xn);Hr.docTree.selectChange(Cn),this._superiorSign.length>0&&(Hr.drawTree.paintStatus===mn["b"].psEdit||Hr.drawTree.paintStatus===mn["b"].psReview?Hr.vueController.hiddenMask(!1):Hr.vueController.hiddenMask(!0));var Pn=Hr.drawTree.formularNodes;Pn.forEach((function(Tr,Dr){if(Tr.formularType===Qa["a"].ftSum||Tr.formularType===Qa["a"].ftFormular||Tr.formularType===Qa["a"].ftBMI||Tr.formularType===Qa["a"].ftLaborProcess||Tr.formularType===Qa["a"].ftExpectedBirthDate||Tr.formularType===Qa["a"].ftPregnantWeeks){Tr.updateResult(),Tr.getParentCell().drawCell.needUpdate=!0;var Rr=Tr.previousLeaf();if(!Rr)throw new Error("错误的绘制位置");var Wr=Hr.docTree.getNodeLastPath(Rr),zr=new qa["a"](Ur._hoEditorFactoryID,gn["a"].daModifyStyle,Wr,Wr);zr.oldEndPath=Wr,zr.oldDrawLines=new Ya["a"](Ur._hoEditorFactoryID).getRangeDrawLines(Wr,Wr,!1),Hr.docTree.change(zr)}})),Dr&&Dr({text:Hr.vueController.getDocTitle(),count:0}),Hr.isThrowError=!0}}},{key:"loadDataSet",value:function loadDataSet(Tr){void 0===Tr.length&&(Tr=Array(Tr));for(var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.mainNodes,Ur=null,Hr=0;Hr<Rr.length;Hr++){var Wr=Rr[Hr];if(Wr instanceof fa["c"]){Ur=Wr;break}}if(Ur){for(var zr=0,Vr=0;Vr<Ur.rowInfos.length;Vr++){var Kr=Ur.rowInfos[Vr],$r=Kr.rowProperty;$r.repeatAsTitleAtPageTop||zr++}Tr.length-zr>0&&Ur.insertRows(Ur.rowCount,Tr.length-zr,Ur.rowCount-1);for(var Gr=-1,Jr=0;Jr<Tr.length;Jr++){var Xr=Ur.rowInfos[Jr],Yr=Xr.rowProperty;if(!Yr.repeatAsTitleAtPageTop){Gr++;var Qr=Tr[Gr];Xr.id=Qr[Object.keys(Qr)[0]],Xr.isAllowEdit=Qr[Object.keys(Qr)[1]];for(var Zr=0;Zr<Ur.colInfos.length;Zr++){if("operType"===Object.keys(Qr)[Zr+2])break;var en=Ur.rows[Jr][Zr];if(en){var tn=Ur.childNodes.indexOf(en);en.childNodes.splice(1,en.childNodes.length-1);var rn=new ci["a"](this._hoEditorFactoryID,Rr,en,wn["b"].ntText,Qr[Object.keys(Qr)[Zr+2]].toString(),0);en.drawCell.needUpdate=!0,rn&&en.childNodes.push(rn),Ur.rows[Jr][Zr]=en,Ur.childNodes[tn]=en}}}}Ur.update()}}},{key:"getRowsJsonData",value:function getRowsJsonData(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=JSON.parse(JSON.stringify(Tr));void 0===Rr.length&&(Rr=Array(Rr));for(var Ur=Dr.docTree.mainNodes,Hr=null,Wr=0;Wr<Ur.length;Wr++){var zr=Ur[Wr];if(zr instanceof fa["c"]){Hr=zr;break}}if(Hr){for(var Vr=Object.keys(Rr[0]),Kr=0;Kr<Rr.length;Kr++){for(var $r=Rr[Kr]["id"],Gr=-1,Jr=0;Jr<Hr.rowInfos.length;Jr++)if($r===Hr.rowInfos[Jr].id){Gr=0;for(var Xr=0;Xr<Hr.rows[Jr].length;Xr++){var Yr=Hr.rows[Jr][Xr];if(Yr){var Qr=Yr.getCellText(),Zr=Rr[Kr][Vr[Xr+2]];Qr!==Zr.toString()&&(Rr[Kr][Vr[Xr+2]]=Qr,Rr[Kr]["operType"]="edit")}}}-1===Gr&&(Rr[Kr]["operType"]="del")}for(var en=0;en<Hr.rowInfos.length;en++){var tn=Hr.rowInfos[en];if(!tn.rowProperty.repeatAsTitleAtPageTop&&"0"===tn.id){var rn=JSON.parse(JSON.stringify(Rr[0]));rn["id"]="0",rn["isAllowEdit"]=!0;for(var nn=0;nn<Hr.rows[en].length;nn++){var an=Hr.rows[en][nn];an&&(rn[Vr[nn+2]]=an.getCellText())}rn["operType"]="add",Rr[Rr.length]=rn}}}for(var sn="",cn=0;cn<Rr.length;cn++)sn+=JSON.stringify(Rr[cn]);return sn}}]),StructureConvert}(),no=(Rr("bf19"),Rr("ff91")),io=Rr("ca11");(function(Tr){Tr["ctText"]="text/plain",Tr["ctHTML"]="text/html",Tr["ctJSON"]="application/json"})(Za||(Za={}));var ao=function(){function NodeConvert(Tr){Object(Xr["a"])(this,NodeConvert),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(NodeConvert,[{key:"FromJSON",value:function FromJSON(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=new Array,Hr=new Array;"main"===Dr&&(Hr=Rr.docTree.mainNodes);for(var Wr=JSON.parse(Tr),zr=Rr.docTree.curDomRange.normalize().startPath,Vr=Rr.docTree.getParentNode(zr),Kr=Dr?Hr:Rr.docTree.curDomRange.normalize().npStart.roots,$r=0;$r<Wr.length;$r++){var Gr=Wr[$r];if(Gr){var Jr=Rr.structureConvert.convertNode(Gr,Kr,Dr?null:Vr,void 0,!0);if(!Jr)return[];if(Jr){if(Jr instanceof ci["a"]&&0===Jr.text.length)continue;Dr&&(Jr.rootPath=Dr),Ur.push(Jr),Dr&&Dr.split("/").length>1&&(Hr.push(Jr),Jr.rootNodes=Hr)}}}return Ur}},{key:"FromHTML",value:function FromHTML(Tr){var Dr,Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=/<body[^>]*>([\s\S]+?)<\/body>/i,Hr=Ur.exec(Tr);if(!Hr)return[];Dr="<div>"+Hr[1]+"</div>";var Wr=Rr.htmlConverter.Exec(Ta()(Dr)[0],"");return Wr}},{key:"FromText",value:function FromText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=new Array,Ur=Tr;if(Ur)for(var Hr=Ur.split(/[(\n\r)|(\r\n)|\r|\n]+/),Wr=0;Wr<Hr.length;Wr++)if(Hr[Wr]){if(Wr>0){var zr=new qi["a"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,0);Rr.push(zr)}var Vr=new ci["a"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,wn["b"].ntText,Hr[Wr],0);Rr.push(Vr)}return Rr}},{key:"toJSON",value:function toJSON(Tr,Dr,Rr){var Ur=this,Hr=new Array;return Tr[0].node instanceof qi["a"]&&0===Tr[0].node.paraNo&&Tr.splice(0,1),Tr.forEach((function(Wr,zr){if(Dr&&(Wr.node instanceof ei["f"]&&(Wr.node.text="",Wr.node.childNodes.splice(1,Wr.node.childNodes.length-2)),Wr.node instanceof Yn["a"]&&(Wr.node.text=""),Wr.node instanceof Qn["a"]&&(Wr.node.text="")),Wr.node instanceof ei["f"]||Wr.node instanceof ga["a"]||Wr.node instanceof Qn["a"]||Wr.node instanceof Yn["a"])Hr.push(Wr.node.node2Json(Wr.range,!0,Rr));else if(Wr.node instanceof li["a"]&&Wr.node.parentNode instanceof ei["f"]){var Vr=Tn["a"].instance().getFactory(Ur._hoEditorFactoryID),Kr=Vr.docTree.curDomRange.normalize();if(Wr.node.MarkNodeType===li["b"].mtStart){var $r=Wr.node.parentNode.childNodes[Wr.node.parentNode.childNodes.length-1].isTotalSelected(Kr,!0);$r&&Hr.push(Wr.node.node2Json(Wr.range,!0))}if(Wr.node.MarkNodeType===li["b"].mtEnd){var Gr=Wr.node.parentNode.childNodes[0].isTotalSelected(Kr,!0);Gr?Hr.push(Wr.node.node2Json(Wr.range,!0)):zr===Tr.length-1&&(Vr.docTree.curDomRange.endPath=Vr.docTree.getNodeLastPath(Wr.node.previousLeaf()))}}else Hr.push(Wr.node.node2Json(Wr.range,!0))})),this._jsondata=JSON.stringify(Hr),JSON.stringify(Hr)}},{key:"toTHML",value:function toTHML(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr&&this.toJSON(Tr);var Rr=JSON.parse(this._jsondata);return Rr?Dr.toHtmlConverter.Exec(this._hoEditorFactoryID,Rr):""}},{key:"toText",value:function toText(Tr){Tr&&this.toJSON(Tr);var Dr=JSON.parse(this._jsondata);if(!Dr)return"";var Rr="",Ur=function json2text(Tr){for(var Dr=0;Dr<Tr.length;Dr++){var Ur=Tr[Dr];Ur["nodeType"]&&(Ur.nodeType==wn["b"][wn["b"].ntText]?Rr+=Ur.text:Ur.nodeType==wn["b"][wn["b"].ntParagraph]?0!=Dr&&(Rr+="\n"):Ur.nodeType==wn["b"][wn["b"].ntControl]?Rr+=Ur.text:Ur.nodeType==wn["b"][wn["b"].ntField]?json2text(Ur.childNodes.item):Ur.nodeType==wn["b"][wn["b"].ntTable]?Array.isArray(Ur.childNodes.item)&&json2text(Ur.childNodes.item):"ntRow"==Ur.nodeType?(0!=Dr&&(Rr+="\n"),json2text(Ur.childNodes.item)):Ur.nodeType==wn["b"][wn["b"].ntCell]&&(0!=Dr&&(Rr+="\t"),json2text(Ur.childNodes.item)))}};return Ur(Dr),Rr}}]),NodeConvert}(),oo=function(){function StructureRecord(Tr,Dr,Rr,Ur){Object(Xr["a"])(this,StructureRecord),this._hoEditorFactoryID=Tr,this._node=Rr,this._path=Dr,this._range=Ur}return Object(Yr["a"])(StructureRecord,[{key:"node",get:function get(){return this._node}},{key:"range",get:function get(){return this._range}}]),StructureRecord}(),so=function(){function StructureNode(Tr){Object(Xr["a"])(this,StructureNode),this._hoEditorFactoryID=Tr,this._Convertor=new ao(this._hoEditorFactoryID)}return Object(Yr["a"])(StructureNode,[{key:"Convertor",get:function get(){return this._Convertor}},{key:"jsondata",get:function get(){return this._json}},{key:"htmldata",get:function get(){return this._html}},{key:"textdata",get:function get(){return this._text}},{key:"getPrevLastPath",value:function getPrevLastPath(Tr){var Dr=Tr.range();return Dr.from}},{key:"Copy",value:function Copy(Tr,Dr,Rr,Ur){var Hr,Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof yn["a"])Hr=Tr.normalize();else{var zr=Tr[0].range();Hr=new yn["a"](this._hoEditorFactoryID,zr.from,Wr.docTree.getNodeLastPath(Tr[Tr.length-1]))}var Vr=this.getAncestorsChild(Hr.startPath,Hr.endPath),Kr=Hr.startPath.split("/").slice(0,Vr.level+1).join("/"),$r=Hr.endPath.split("/").slice(0,Vr.level+1).join("/"),Gr=Wr.docTree.findNodePositionByPath(Kr).node,Jr=Wr.docTree.findNodePositionByPath($r).node;if(this._structoredNode||(this._structoredNode=new Array),this._structoredNode=[],Gr==Jr)this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Gr),Gr,{from:Hr.startPath,to:Hr.endPath}));else if(Gr instanceof En["a"]&&Jr instanceof En["a"]&&Gr.table==Jr.table)this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Gr.table),Gr.table,{from:Gr.range().from,to:Jr.range().to}));else{var Xr=Wr.docTree.getNodeLastPath(Gr);Xr!==Hr.startPath&&this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Gr),Gr,{from:Gr instanceof fa["c"]?Gr.range().from:Hr.startPath}));for(var Yr=Gr.nextSibling();;){if(!Yr)break;if(Yr==Jr){this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Jr),Jr,{to:Jr instanceof fa["c"]?Jr.range().to:Hr.endPath}));break}this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Yr),Yr)),Yr=Yr.nextSibling()}}if(this._json=this._Convertor.toJSON(this._structoredNode,Rr,Ur),this._html=this._Convertor.toTHML(),this._text=this._Convertor.toText(),!Dr)return this._json;Dr.setData(Za.ctJSON,this._json),Dr.setData(Za.ctHTML,this._html),Dr.setData(Za.ctText,this._text)}},{key:"Parse",value:function Parse(Tr,Dr,Rr){return Tr==Za.ctJSON?this._Convertor.FromJSON(Dr,Rr):Tr==Za.ctHTML?this._Convertor.FromHTML(Dr):this._Convertor.FromText(Dr)}},{key:"getAncestorsChild",value:function getAncestorsChild(Tr,Dr){var Rr,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Tr.split("/"),Wr=Dr.split("/");if(!io["a"].pathCanCompare(Tr,Dr))throw no["a"].PathNotAtSameRoot();var zr=0;while(Hr[zr]==Wr[zr])if(zr+=1,zr>Hr.length||zr>Wr.length)break;if(1===zr||2===zr&&"main"!==Hr[0]){var Vr=Ur.docTree.findNodePositionByPath(Hr.slice(0,zr+1).join("/")).node;if(!Vr)throw no["a"].NodeNotFound();Rr=Vr.parentNode?Vr.parentNode.childNodes:Vr.rootNodes}else{var Kr=Hr.slice(0,zr).join("/"),$r=Ur.docTree.findNodePositionByPath(Kr).node;if(!$r)throw no["a"].NodeNotFound();Rr=$r.childNodes}return{level:zr,child:Rr}}}]),StructureNode}(),lo=function(){function TestDataSet(Tr){Object(Xr["a"])(this,TestDataSet),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(TestDataSet,[{key:"getTestJsonData",value:function getTestJsonData(){var Tr=[{id:"1",isAllowEdit:!0,date:"20210130",name:"one",age:10,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"2",isAllowEdit:!0,date:"20210230",name:"two",age:20,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"3",isAllowEdit:!0,date:"20210330",name:"three",age:30,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"4",isAllowEdit:!0,date:"20210430",name:"four",age:40,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"5",isAllowEdit:!0,date:"20210530",name:"five",age:50,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"6",isAllowEdit:!0,date:"20210630",name:"six",age:60,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"7",isAllowEdit:!0,date:"20210730",name:"seven",age:70,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"8",isAllowEdit:!0,date:"20210830",name:"eight",age:80,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"9",isAllowEdit:!0,date:"20210930",name:"nine",age:90,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"10",isAllowEdit:!0,date:"20211030",name:"ten",age:100,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""}];return Tr}}]),TestDataSet}(),co=function(){function TOHTMLConverter(Tr){var Dr=this;Object(Xr["a"])(this,TOHTMLConverter),this._valign=["top","center","bottom"],this._hoEditorFactoryID=Tr,this.convert=new Map,this.convert.set(wn["b"][wn["b"].ntText],(function(Tr){return Dr.TransText(Tr)})),this.convert.set(wn["b"][wn["b"].ntControl],(function(Tr){return Dr.TransText(Tr)})),this.convert.set(wn["b"][wn["b"].ntField],(function(Tr){return Dr.TransField(Tr)})),this.convert.set(wn["b"][wn["b"].ntImage],(function(Tr){return Dr.TransImg(Tr)})),this.convert.set(wn["b"][wn["b"].ntParagraph],(function(Tr){return Dr.TransPara(Tr)})),this.convert.set(wn["b"][wn["b"].ntTable],(function(Tr){return Dr.TransTable(Tr)})),this.convert.set("ntRow",(function(Tr){return Dr.TaransRow(Tr)})),this.convert.set(wn["b"][wn["b"].ntCell],(function(Tr){return Dr.TransCell(Tr)}))}return Object(Yr["a"])(TOHTMLConverter,[{key:"nextnode",value:regeneratorRuntime.mark((function nextnode(Tr){var Dr,Rr;return regeneratorRuntime.wrap((function nextnode$(Ur){while(1)switch(Ur.prev=Ur.next){case 0:Rr=0;case 1:if(!(Rr<Tr.length)){Ur.next=17;break}case 2:return Ur.next=4,Tr[Rr];case 4:if(Dr=Ur.sent,-1!=Dr){Ur.next=9;break}return Ur.abrupt("continue",10);case 9:return Ur.abrupt("break",12);case 10:Ur.next=2;break;case 12:if(!Tr[Rr]["childNodes"]){Ur.next=14;break}return Ur.delegateYield(this.nextnode(Tr[Rr]["childNodes"]["item"]),"t0",14);case 14:Rr++,Ur.next=1;break;case 17:case"end":return Ur.stop()}}),nextnode,this)}))},{key:"Exec",value:function Exec(Tr,Dr){var Rr="";for(this.nodes=Dr,this.iterator=this.nextnode(Dr);;){var Ur=this.iterator.next();if(Ur.done)break;Rr+=this.Link(Ur.value)}return"<html><body>\x3c!--StartFragment--\x3e".concat(Rr,"\x3c!--EndFragment--\x3e</body></html>")}},{key:"Link",value:function Link(Tr){if(Tr){var Dr=this.convert.get(Tr.nodeType);return Dr&&Tr?Dr(Tr):""}return""}},{key:"TransBody",value:function TransBody(Tr){return""}},{key:"TransControl",value:function TransControl(Tr){var Dr=this.getNodesStyle(Tr),Rr="";return"ctDateTime"==Tr.type?(Rr+=Tr.text,'<span style="'.concat(Dr,'">').concat(Rr,"</span>")):("ctDownList"==Tr.type||Tr.type,"")}},{key:"TransText",value:function TransText(Tr){var Dr=this.getNodesStyle(Tr),Rr="";return Tr.nodeType==wn["b"][wn["b"].ntText]&&(Rr+=Tr.text),Tr.nodeType==wn["b"][wn["b"].ntControl]&&(Rr+=Tr.text),'<span style="'.concat(Dr,'">').concat(Rr,"</span>")}},{key:"TransField",value:function TransField(Tr){var Dr=this.iterator.next();return this.Link(Dr.value)}},{key:"TransImg",value:function TransImg(Tr){var Dr=this.ToHTMLStyle(Tr),Rr=Tr.imageDataBase64String;return'<img id="'.concat(Tr.id,'" style="').concat(Dr,'" src="').concat(Rr,'"/>')}},{key:"TransPara",value:function TransPara(Tr){for(var Dr=this.ToHTMLStyle(Tr),Rr="",Ur="";;){var Hr=this.iterator.next();if(Hr.done)break;if(Hr.value.nodeType==wn["b"][wn["b"].ntParagraph])return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if(Hr.value.nodeType==wn["b"][wn["b"].ntTable])return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if(Hr.value.nodeType==wn["b"][wn["b"].ntCell])return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if("ntRow"==Hr.value.nodeType)return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if("ntEnd"==Hr.value.nodeType)return Rr=""==Rr?"<span>&nbsp;</span>":Rr,Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur;Rr+=this.Link(Hr.value)}return Ur+='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur}},{key:"TransTable",value:function TransTable(Tr){for(var Dr=this.ToHTMLStyle(Tr),Rr="",Ur=0;Ur<Tr.childNodes.item.length;Ur++){var Hr=this.iterator.next();if(Hr.done)break;Hr.value["style"]=Tr.rowInfos.item[Ur],Hr.value["colInfos"]=Tr.colInfos,Rr+=this.Link(Hr.value)}return'<table style="'.concat(Dr,'" border="1" cellspacing="0" cellpadding="0">').concat(Rr,"</table>")}},{key:"TaransRow",value:function TaransRow(Tr){for(var Dr=this.ToHTMLStyle(Tr),Rr="",Ur=0;Ur<Tr.childNodes.item.length;Ur++){var Hr=this.iterator.next();if(Hr.done)break;Hr.value["style"]=Tr.colInfos.item[Ur],Rr+=this.Link(Hr.value)}return'<tr style="'.concat(Dr,'">').concat(Rr,"</tr>")}},{key:"TransCell",value:function TransCell(Tr){Tr.crossLineType!=En["b"][En["b"].ctNone]&&(Tr["style"]["crossLineType"]=Tr.crossLineType);var Dr='valign="'.concat(this._valign[Number(Sn["k"][Tr.cellProperty.align])],'"'),Rr='rowSpan="'.concat(Tr.rowSpan,'" colSpan="').concat(Tr.colSpan,'"'),Ur=this.ToHTMLStyle(Tr),Hr="",Wr=this.iterator.next();return Hr=this.Link(Wr.value),"<td ".concat(Rr," ").concat(Dr,' style="').concat(Ur,'">').concat(Hr,"</td>")}},{key:"ToHTMLStyle",value:function ToHTMLStyle(Tr){var Dr="";if(Tr["style"]){var Rr=Tr.style;if("ntRow"==Tr["nodeType"]){Dr+="margin: 0;";var Ur=Rr["rowHeight"]?"height:".concat(Rr.rowHeight,"px;"):"";Rr["rowProperty"]&&(Ur=Rr.rowProperty["rowHeight"]&&0!=Rr.rowProperty["rowHeight"]?"height:".concat(Rr.rowProperty.rowHeight,"cm;"):Ur),Dr+=Ur}else if(Tr["nodeType"]==wn["b"][wn["b"].ntCell]){if(Dr+="margin: 0;",Dr+=Rr["colWidth"]?"width:".concat(Rr.colWidth,"px;"):"",Rr["crossLineType"])switch(Rr.crossLineType){case En["b"][En["b"].ct02]:Dr+="mso-diagonal-down: 0.5pt solid windowtext;";break;case En["b"][En["b"].ct13]:Dr+="mso-diagonal-up: 0.5pt solid windowtext;";break}}else{var Hr=Tr.style,Wr=Hr._align;Dr+=ka["a"].alleft==Wr?"text-align:left;":"",Dr+=ka["a"].alright==Wr?"text-align:right;":"",Dr+=ka["a"].alcenter==Wr?"text-align:center;":"",Dr+="line-height:".concat(Hr._lineSpace||1,";"),Dr+="letter-spacing:".concat(Hr._charSpace||2,"px;"),Dr+="margin-left:".concat(Hr._leftMarginPixes||0,"px;"),Dr+="margin-right:".concat(Hr._rightMarginPixes||0,"px; "),Dr+="margin-top:".concat(Hr._topMarginPixes||0,"px;"),Dr+="margin-bottom:".concat(Hr._bottomMarginPixes||0,"px;")}Tr["width"]&&(Dr+="width:".concat(Tr.width,"px;")),Tr["height"]&&(Dr+="height:".concat(Tr.height,"px;"))}else Tr["width"]&&(Dr+="width:".concat(Tr.width,"px;")),Tr["height"]&&(Dr+="height:".concat(Tr.height,"px;")),Tr["nodeType"]==wn["b"][wn["b"].ntTable]&&(Dr+="border-collapse: collapse;");return Dr}},{key:"CombineStyleToHTMLStyle",value:function CombineStyleToHTMLStyle(Tr){var Dr="";Dr+="font-size:"+Tr.size+"px;",Dr+="font-family:"+Tr.font+";",Dr+=Tr.bold?"font-weight:bold;":"",Dr+=Tr.italic?"font-style:italic;":"";var Rr="";return Tr.underline&&(Rr="text-decoration:underline"),Tr.strikeout&&(Rr?Rr+=" line-through":Rr="text-decoration:line-through"),Dr+=Rr?Rr+";":"",Tr.script&&(Tr.script==Da["b"].sstsup?Dr+="vertical-align:super;":Tr.script==Da["b"].sstsub&&(Dr+="vertical-align:sub;")),Dr+="background-color:"+Tr.backColor+";",Dr+="color:"+Tr.color,Dr}},{key:"getNodesStyle",value:function getNodesStyle(Tr){var Dr,Rr="",Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.docTree.styles[Tr.styleIndex];return Dr=Hr?Hr.combineStyle:Ur.docTree.styles[0].combineStyle,Rr+=this.CombineStyleToHTMLStyle(Dr),Rr}}]),TOHTMLConverter}(),uo=Rr("e802"),ho=(Rr("2b3d"),Rr("c119")),po=Rr("dee7"),fo=Rr.n(po),_o=Rr("2026"),go=Rr("bc73"),mo=Rr("e3c0"),vo=Rr("ecd9"),bo=Rr("b790"),wo=function(){function VueController(Tr){Object(Xr["a"])(this,VueController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(VueController,[{key:"combineStyle",get:function get(){return this._combineStyle},set:function set(Tr){Tr!==this._combineStyle&&(this._combineStyle=Tr)}},{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID}},{key:"getCurTextStyle",value:function getCurTextStyle(){var Tr=new Da["c"](this._hoEditorFactoryID),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize(),Ur=Rr.npStart.node,Hr=Rr.npEnd.node;if(!Ur||!Hr)throw new Error("错误的选择范围".concat(Rr.startPath," ").concat(Rr.endPath));if(Ur===Hr&&Hr instanceof bo["a"]){var Wr=Hr.drawNodes[0];return this._combineStyle=Wr.textStyle,Tr.setTextStyle(Wr.textStyle),void(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(Tr))}var zr=Ur,Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.styles,Kr=0;if(zr&&Hr){do{if(zr){if(zr instanceof ci["a"]||zr instanceof Xa["a"]||zr instanceof li["a"]||zr instanceof qi["a"]){Kr=zr.styleIndex;break}zr=zr.nextLeaf()}}while(zr&&zr!==Hr.nextLeaf());Tr.copyProperty(Vr[Kr],Tr);var $r=Vr[0].combineStyle;Vr[Kr]&&($r=Vr[Kr].combineStyle);do{if(zr){if((zr instanceof ci["a"]||zr instanceof Xa["a"]||zr instanceof li["a"]||zr instanceof qi["a"])&&zr.styleIndex!==Kr){var Gr=Vr[zr.styleIndex].combineStyle;Gr.font!==$r.font&&""!==Tr.font&&(Tr.font=""),Gr.size!==$r.size&&0!==Tr.size&&(Tr.size=0),Gr.script!==$r.script&&Tr.script!==Da["b"].sstnormal&&(Tr.script=Da["b"].sstnormal),Gr.bold!==$r.bold&&!1!==Tr.bold&&(Tr.bold=!1),Gr.italic!==$r.italic&&!1!==Tr.italic&&(Tr.italic=!1),Gr.underline!==$r.underline&&!1!==Tr.underline&&(Tr.underline=!1),Gr.strikeout!==$r.strikeout&&!1!==Tr.strikeout&&(Tr.strikeout=!1),Gr.color!==$r.color&&""!==Tr.color&&(Tr.color=""),Gr.backColor!==$r.backColor&&""!==Tr.backColor&&(Tr.backColor="")}zr=zr.nextLeaf()}}while(zr&&zr!==Hr.nextLeaf()&&Hr.nextLeaf());this._combineStyle=Tr.combineStyle,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(Tr)}}},{key:"unDoOperate",value:function unDoOperate(){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.undoOperate()}},{key:"reDoOperate",value:function reDoOperate(){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.redoOperate()}},{key:"fontFormat",value:function fontFormat(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontFormat);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontFormat",Dr,Tr)}},{key:"clearFormat",value:function clearFormat(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.formatClearOrPainter(Tr,0)}},{key:"formatPainter",value:function formatPainter(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.formatPainter.startFormatPainter(Tr,Dr.docTree.curStyleIndex,Dr.docTree.curParaNo,!1);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange}},{key:"fontSize",value:function fontSize(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontSize);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontSize",Dr,Tr.toString())}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daModifyStyle,Dr,Rr,ho["b"].fontSizeEnlarge);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeEnlarge",Tr)}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daModifyStyle,Dr,Rr,ho["b"].fontSizeDecrease);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeDecrease",Tr)}},{key:"fontSuperScript",value:function fontSuperScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontSuperScript);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSuperScript",Dr,Tr)}},{key:"fontSubScript",value:function fontSubScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontSubScript);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSubScript",Dr,Tr)}},{key:"fontBold",value:function fontBold(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontBold);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontBold",Dr,Tr)}},{key:"fontItalic",value:function fontItalic(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontItalic);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontItalic",Dr,Tr)}},{key:"fontUnderline",value:function fontUnderline(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontUnderline);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontUnderline",Dr,Tr)}},{key:"fontStrikeout",value:function fontStrikeout(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontStrikeout);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontStrikeout",Dr,Tr)}},{key:"fontColor",value:function fontColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontColor);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontColor",Dr,Tr)}},{key:"fontBackColor",value:function fontBackColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontBackColor);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontBackColor",Dr,Tr)}},{key:"alignedLeft",value:function alignedLeft(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedLeft);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedLeft",Tr)}},{key:"alignedCenter",value:function alignedCenter(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedCenter);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedCenter",Tr)}},{key:"alignedRight",value:function alignedRight(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedRight);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedRight",Tr)}},{key:"alignedBothEnds",value:function alignedBothEnds(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedBothEnds);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedBothEnds",Tr)}},{key:"addIndent",value:function addIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].addIndent);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("addIndent",Tr)}},{key:"decreaseIndent",value:function decreaseIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].decreaseIndent);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("decreaseIndent",Tr)}},{key:"setLineHeight",value:function setLineHeight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daParaStyleChange,Rr,Ur,ho["b"].setLineHeight);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("lineHeight",Dr,Tr)}},{key:"insertTable",value:function insertTable(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertTable);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTable(Rr,Tr,Dr)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertRowAbove);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowAbove(Dr,Tr)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertRowBelow);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowBelow(Dr,Tr)}},{key:"insertTableColLeft",value:function insertTableColLeft(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertColLeft);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableColLeft(Dr,Tr)}},{key:"insertTableColRight",value:function insertTableColRight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertColRight);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableColRight(Dr,Tr)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableDeleteRows);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteRows(Tr)}},{key:"tableDeleteCols",value:function tableDeleteCols(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableDeleteCols);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteCols(Tr)}},{key:"tableMergerCells",value:function tableMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableMergerCells);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableMergerCells(Tr)}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableUnMergerCells);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableUnMergerCells(Tr)}},{key:"tableProperty",value:function tableProperty(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setTableProperty(Tr,Dr)}},{key:"rowProperty",value:function rowProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setRowProperty(Rr,Tr,Dr)}},{key:"colProperty",value:function colProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setColProperty(Rr,Tr,Dr)}},{key:"cellProperty",value:function cellProperty(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setCellProperty(Tr,Dr)}},{key:"insertMenstrualHistory",value:function insertMenstrualHistory(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Vr=zr.normalize().startPath,Kr=zr.normalize().endPath,$r=new ho["a"](gn["a"].daInsert,Vr,Kr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing($r)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory("add",zr,Dr,Rr,Ur,Hr,Wr)}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Kr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory("update",Wr,Tr,Dr,Rr,Ur,Hr)}},{key:"insertPupilMap",value:function insertPupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr){var Kr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,$r=Kr.normalize().startPath,Gr=Kr.normalize().endPath,Jr=new ho["a"](gn["a"].daInsert,$r,Gr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Jr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap("add",Kr,Dr,Rr,Ur,Hr,Wr,zr,Vr)}},{key:"updatePupilMap",value:function updatePupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daInsert,Kr,$r,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Gr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap("update",Vr,Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertLightLocation",value:function insertLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r){var Gr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Jr=Gr.normalize().startPath,Xr=Gr.normalize().endPath,Yr=new ho["a"](gn["a"].daInsert,Jr,Xr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Yr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation("add",Gr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r)}},{key:"updateLightLocation",value:function updateLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Gr=$r.normalize().startPath,Jr=$r.normalize().endPath,Xr=new ho["a"](gn["a"].daInsert,Gr,Jr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Xr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation("update",$r,Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daInsert,Kr,$r,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Gr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap("add",Vr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Vr=zr.normalize().startPath,Kr=zr.normalize().endPath,$r=new ho["a"](gn["a"].daInsert,Vr,Kr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing($r)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap("update",zr,Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Kr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPermanentTeethMap("add",Wr,Dr,Rr,Ur,Hr)}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPermanentTeethMap("update",Hr,Tr,Dr,Rr,Ur)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Kr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPrimaryTeethMap("add",Wr,Dr,Rr,Ur,Hr)}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPrimaryTeethMap("update",Hr,Tr,Dr,Rr,Ur)}},{key:"insertTextInputField",value:function insertTextInputField(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertTextInputField);if(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("add",Rr,Dr);return zr}return Ur}},{key:"updateTextInputField",value:function updateTextInputField(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].updateTextInputField);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("update",Dr,Tr)}},{key:"insertImage",value:function insertImage(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].insertImage);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertImage(Hr,Tr,Dr,Rr,Ur)}},{key:"insertBarcode",value:function insertBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr){var Kr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,$r=Kr.normalize().startPath,Gr=Kr.normalize().endPath,Jr=new ho["a"](gn["a"].daInsert,$r,Gr,ho["b"].insertBarcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Jr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("add",Kr,Dr,Rr,Ur,Hr,Wr,zr,Vr)}},{key:"updateBarcode",value:function updateBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daInsert,Kr,$r,ho["b"].updateBarcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Gr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("update",Vr,Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertQrcode",value:function insertQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr){var Qr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Zr=Qr.normalize().startPath,en=Qr.normalize().endPath,tn=new ho["a"](gn["a"].daInsert,Zr,en,ho["b"].insertQrcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(tn)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("add",Qr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr)}},{key:"updateQrcode",value:function updateQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr){var Yr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Qr=Yr.normalize().startPath,Zr=Yr.normalize().endPath,en=new ho["a"](gn["a"].daInsert,Qr,Zr,ho["b"].updateQrcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(en)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("update",Yr,Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertRadioAndCheckBox);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("add",Rr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].updateRadioAndCheckBox);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("update",Dr,Tr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"find",value:function find(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.find(Ur,Tr,Dr,Rr);return Hr}},{key:"replace",value:function replace(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.replace(zr,Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertDateTime",value:function insertDateTime(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertDateTime);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("add",Rr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDateTime",value:function updateDateTime(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].updateDateTime);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("update",Dr,Tr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertDownList",value:function insertDownList(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Hr=Ur.normalize().startPath,Wr=Ur.normalize().endPath,zr=new ho["a"](gn["a"].daInsert,Hr,Wr,ho["b"].insertDownList);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(zr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("add",Ur,Dr,Rr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDownList",value:function updateDownList(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].updateDownList);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("update",Rr,Tr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertSpecialChars",value:function insertSpecialChars(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertSpecialChars);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertSpecialChars(Tr,Rr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"openLocalFiles",value:function openLocalFiles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.isThrowError=!1;var Ur=Rr.docTree.curDomRange,Hr=Ur.normalize().startPath,Wr=Ur.normalize().endPath,zr=new ho["a"](gn["a"].daInsert,Hr,Wr,ho["b"].openLocalFiles);Rr.docTree.changing(zr)&&(Rr.docController.initBlankDoc(),Rr.drawTree.inViewPages=[0],Rr.openXmled=!0,Rr.structureConvert.openFile(Tr,Dr))}},{key:"openLocalFilesTest",value:function openLocalFilesTest(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc(),Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.openFile(Tr,Dr,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=JSON.parse(JSON.stringify(Tr));Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(Dr)}},{key:"saveAsFile",value:function saveAsFile(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Rr.isThrowError=!1,!Dr){Rr.contentIsModify.isModify=!1;var Ur=Rr.undoService.stack;if(Ur.length>0){var Hr=Ur[Ur.length-1],Wr=Hr.undoUnits,zr=Wr[Wr.length-1];Rr.lastSaveTime=zr.opTime}else Rr.lastSaveTime=new Date(Date.now())}var Vr=Rr.docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daUnkown,Kr,$r,ho["b"].saveAsFile);if(Rr.docTree.changing(Gr)){var Jr="";return"xml"===Tr&&(Jr=Rr.structureConvert.doc2Xml("xml",void 0,!0)),"plain"===Tr&&(Jr=Rr.structureConvert.doc2Text()),"html"===Tr&&this.saveAsPDF("","html"),"json"===Tr&&(Jr=Rr.structureConvert.doc2Xml("json",void 0,!0),Jr=fo.a.pd.json(Jr)),Jr}return""}},{key:"getDocTitle",value:function getDocTitle(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.title}},{key:"getDocProperty",value:function getDocProperty(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty}},{key:"getDocXml",value:function getDocXml(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml("xml",Tr,Dr);return Rr}},{key:"getDocJson",value:function getDocJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(Tr);return Dr}},{key:"setPageProperty",value:function setPageProperty(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.setPageProperty(Tr);for(var Rr=0;Rr<Dr.drawTree.drawPages.length;Rr++)Dr.drawTree.drawPages[Rr].reFreshBounds();Dr.drawTree.drawPages.length>1||Dr.drawTree.mainDNodes.length>1||Dr.drawTree.mainDNodes[0]instanceof pa["a"]||Dr.drawTree.mainDNodes[0]instanceof ua["a"]&&Dr.drawTree.mainDNodes[0].drawItems.length>0||Dr.drawTree.headerDNodes.length>=1&&Dr.drawTree.headerDNodes[0].length>1||Dr.drawTree.footerDNodes.length>=1&&Dr.drawTree.footerDNodes[0].length>1?this.rebuildAll(!0):Dr.drawTree.updateDrawTreeFirstLine()}},{key:"insertComment",value:function insertComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertComment);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertComment(Tr,Dr)}},{key:"deleteComment",value:function deleteComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daDelete,Rr,Ur,ho["b"].deleteComment);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.deleteComment(Tr)}},{key:"insertPageNum",value:function insertPageNum(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].insertPageNum);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPageNum(Tr,Hr,Dr,Rr,Ur)}},{key:"newFile",value:function newFile(Tr){"caseHistory"===Tr&&(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.type=gn["d"].etCaseHistory),"form"===Tr&&(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.type=gn["d"].etForm);var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daUnkown,Rr,Ur,ho["b"].newFile);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc()}},{key:"editComment",value:function editComment(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daUpdate,Ur,Hr,ho["b"].editComment);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.editComment(Tr,Dr)}},{key:"insertTableFormula",value:function insertTableFormula(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Hr=Ur.normalize().startPath,Wr=Ur.normalize().endPath,zr=new ho["a"](gn["a"].daInsert,Hr,Wr,ho["b"].insertTableFormula);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(zr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableFormula(Ur,Tr,Dr,Rr)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=new ba(this.hoEditorFactoryID);Rr.setReviewLevelColor(Tr.reviewLev1Color,Tr.reviewLev2Color,Tr.reviewLev3Color,Tr.fieldColor,Tr.dateTimeColor,Tr.downListColor),Dr.option=Rr}},{key:"setUserLoginInfo",value:function setUserLoginInfo(Tr,Dr,Rr,Ur){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setUserLoginInfo(Tr,Dr,Rr,Ur)}},{key:"setEditorStatus",value:function setEditorStatus(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.isHideComments=!0,Rr.drawTree.paintStatus=Tr,2===Tr?Dr&&(Rr.printStatus.printRange=Dr):(Rr.printStatus.printRange=2,Rr.printStatus.drawPrintRecord.clear(),Rr.printStatus.clearArea());var Ur=0;4===Tr&&(Ur=50,Rr.isHideComments=!1),Ur!==Rr.pageProperty.commentWidthMm&&Rr.vueController.setPageProperty(JSON.stringify({commentWidthMm:Ur})),Rr.structureConvert._superiorSign.length>0&&(1===Tr||4===Tr?this.hiddenMask(!1):this.hiddenMask(!0))}},{key:"hiddenMask",value:function hiddenMask(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr)for(var Rr=0;Rr<Dr.drawTree.drawPages.length;Rr++){for(var Ur=Dr.drawTree.drawPages[Rr],Hr=0;Hr<Ur.selectContainer.children.length;Hr++)Ur.selectContainer.children[Hr].name&&Ur.selectContainer.children[Hr].name.indexOf("mask")>=0&&Ur.selectContainer.children.splice(Hr,1);Dr.drawPageTree.updateDrawPage(Rr)}else{var Wr=Dr.structureConvert._superiorSign,zr=Wr[0],Vr=Dr.drawPageTree.getMainRootArea(zr.drawNodes[0]);if(Vr&&Vr instanceof ca["a"]){var Kr=Dr.pageProperty.widthPixes+1,$r=Dr.pageProperty.heightPixes,Gr=Dr.drawPageTree.drawMainDocs.indexOf(Vr),Jr=function paintMask(Tr,Rr){for(var Ur=Dr.drawTree.drawPages[Tr],Hr=Ur.selectContainer,Wr=0;Wr<Hr.children.length;Wr++)Hr.children[Wr].name&&Hr.children[Wr].name.indexOf("mask")>=0&&Hr.children.splice(Wr,1);var zr=new createjs.Shape;zr.graphics.clear(),zr.graphics.beginFill("#000000").drawRect(0,0,Kr,Rr).closePath(),zr.x=0,zr.y=0,zr.alpha=.1,zr.name=Rr<$r?"mask0":"mask"+(Tr+1).toString(),Hr.addChild(zr),Dr.drawPageTree.updateDrawPage(Tr)};if(Gr>0)for(var Xr=0;Xr<Gr;Xr++)Jr(Xr,$r);var Yr=zr.drawNodes[0],Qr=Dr.drawTree.getDrawLineByDNode(Yr),Zr=Dr.drawPageTree.drawHeaders[0].actualHeight;Wr[1]=Gr;var en=Qr.localToGlobal(Yr.x,Yr.y),tn=Vr.globalToLocal(en.x,en.y);Wr[2]=tn.y,Jr(Gr,tn.y+Zr+Yr.y)}}}},{key:"pageProperty",value:function pageProperty(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).pageProperty}},{key:"generateID",value:function generateID(Tr){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID(Tr)}},{key:"printToPDF",value:function printToPDF(Tr){xn["a"].printToPDF(this._hoEditorFactoryID)}},{key:"printPromisePDF",value:function printPromisePDF(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.printController.printPromisePDF(Tr,Dr,Rr)}},{key:"saveAsPDF",value:function saveAsPDF(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.printController.saveAsPDF(Tr,Dr)}},{key:"rebuildAll",value:function rebuildAll(Tr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(Tr)}},{key:"moveCaretToPath",value:function moveCaretToPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.drawTree.moveCaretToPath(Tr),Dr.docTree.curDomRange.setSamePath(Tr)}},{key:"getCaretPosition",value:function getCaretPosition(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange;return Dr.endPath}},{key:"findNodebyPath",value:function findNodebyPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.findNodePositionByPath(Tr);if(Rr)return Rr;Ea.a.alert("根据路径"+Tr+"未找到文档节点")}},{key:"getDomRange",value:function getDomRange(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();return Dr}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"setDomRange",value:function setDomRange(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.docTree.curDomRange,Hr=new yn["a"](Rr.hoEditorFactoryId,Tr,Dr),Wr=Hr.npStart.node,zr=Hr.npEnd.node;if(!Wr||!zr)throw new Error("错误的选择范围".concat(Tr," ").concat(Dr));Rr.docTree.curDomRange=Hr;var Vr=new vn["a"](Ur,Hr);Rr.docTree.selectChange(Vr)}},{key:"insertText",value:function insertText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.keyBoardInput(Tr)}},{key:"deleteText",value:function deleteText(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.docController.keyBoardDelete("Backspace")}},{key:"getTextStyles",value:function getTextStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.styles;return Dr}},{key:"getParaStyles",value:function getParaStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.paragraphs;return Dr}},{key:"clearUndos",value:function clearUndos(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.undoService.clear()}},{key:"iteratesDocTree",value:function iteratesDocTree(Tr){for(var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=function iteratesNodes(Dr){for(var Rr=0;Rr<Dr.length;Rr++){var Ur=Dr[Rr];Ur instanceof Va["a"]?iteratesNodes(Ur.childNodes):Tr(Ur)}},Ur=Dr.docTree.headerNodes,Hr=Dr.docTree.mainNodes,Wr=Dr.docTree.footerNodes,zr=0;zr<Ur.length;zr++)Rr(Ur[zr]);Rr(Hr);for(var Vr=0;Vr<Wr.length;Vr++)Rr(Wr[Vr])}},{key:"hasComment",value:function hasComment(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawTree.commentsMap;return Dr.size>0}},{key:"hideComments",value:function hideComments(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=0;Tr||(Rr=50),this.setPageProperty(JSON.stringify({commentWidthMm:Rr}));var Ur=Dr.drawTree.commentsMap;if(Dr.isHideComments=Tr,Ur.size>0){var Hr=function changeComments(Tr,Rr){var Ur=Dr.drawPageTree.getMainRootArea(Rr.eNode.drawNodes[0]);if(Ur){for(var Hr=Ur.children,Wr=Hr.length-1;Wr>=0;Wr--){var zr=Hr[Wr];zr.name===Rr.id&&(Tr?zr.alpha=.01:zr instanceof createjs.Container?zr.alpha=1:zr.alpha=.5)}Dr.drawPageTree.updateDrawPage(Ur.index)}};Ur.forEach((function(Dr){Hr(Tr,Dr)}))}}},{key:"getNodeByID",value:function getNodeByID(Tr,Dr){var Rr=null,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=function iteratesNodes(Tr){for(var Ur=0;Ur<Tr.length;Ur++){var Hr=Tr[Ur];if((Hr instanceof Ha["a"]||Hr instanceof Wa["a"]||Hr instanceof Oa["a"]||Hr instanceof Xa["a"]||Hr instanceof ei["f"])&&Hr.id===Dr){Rr=Hr;break}Hr instanceof Va["a"]&&iteratesNodes(Hr.childNodes)}};if("header"===Tr)for(var Wr=Ur.docTree.headerNodes,zr=0;zr<Wr.length;zr++)if(Wr[zr]&&(Hr(Wr[zr]),Rr))break;if("main"===Tr){var Vr=Ur.docTree.mainNodes;Hr(Vr)}if("footer"===Tr)for(var Kr=Ur.docTree.footerNodes,$r=0;$r<Kr.length;$r++)if(Kr[$r]&&(Hr(Kr[$r]),Rr))break;if("all"===Tr){for(var Gr=Ur.docTree.headerNodes,Jr=0;Jr<Gr.length;Jr++)if(Gr[Jr]&&(Hr(Gr[Jr]),Rr))break;if(!Rr){var Xr=Ur.docTree.mainNodes;Hr(Xr)}if(!Rr)for(var Yr=Ur.docTree.footerNodes,Qr=0;Qr<Yr.length;Qr++)if(Yr[Qr]&&(Hr(Yr[Qr]),Rr))break}return Rr}},{key:"getNodesByName",value:function getNodesByName(Tr,Dr,Rr){var Ur=[],Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=function iteratesNodes(Tr){for(var Hr=0;Hr<Tr.length;Hr++){var Wr=Tr[Hr];if((Wr instanceof Xa["a"]||Wr instanceof ei["f"])&&Wr.name===Rr&&(Ur.push(Wr),!Dr))break;Wr instanceof Va["a"]&&iteratesNodes(Wr.childNodes)}};if("header"===Tr)for(var zr=Hr.docTree.headerNodes,Vr=0;Vr<zr.length;Vr++)if(Wr(zr[Vr]),!Dr&&Ur.length>0)break;if("main"===Tr){var Kr=Hr.docTree.mainNodes;Wr(Kr)}if("footer"===Tr)for(var $r=Hr.docTree.footerNodes,Gr=0;Gr<$r.length;Gr++)if(Wr($r[Gr]),!Dr&&Ur.length>0)break;if("all"===Tr){for(var Jr=Hr.docTree.headerNodes,Xr=0;Xr<Jr.length;Xr++)if(Wr(Jr[Xr]),!Dr&&Ur.length>0)break;if(Dr||!Dr&&0===Ur.length){var Yr=Hr.docTree.mainNodes;Wr(Yr)}if(Dr||!Dr&&0===Ur.length)for(var Qr=Hr.docTree.footerNodes,Zr=0;Zr<Qr.length;Zr++)if(Wr(Qr[Zr]),!Dr&&Ur.length>0)break}return Ur}},{key:"insertHtmlText",value:function insertHtmlText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.htmlConverter.parseHtmlString(Tr);Dr.docController.parseNodeData(Rr)}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.modifyRedraw(Tr,Dr)}},{key:"deleteRedraw",value:function deleteRedraw(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.deleteRedraw(Tr)}},{key:"insertRedraw",value:function insertRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.insertRedraw(Tr,Dr)}},{key:"fullRedraw",value:function fullRedraw(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.drawTree.rebuildAllDrawLine(!1)}},{key:"updateStyles",value:function updateStyles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr=Rr.structureConvert.replaceNodesName(Dr);var Ur=new La.a({stripWhitespaces:!1}),Hr=Ur.xml2js(Dr),Wr=JSON.parse(JSON.stringify(Hr));if(Wr.root){var zr=Wr.root.docProperty.docId,Vr=Wr.root.styles,Kr=Array(Vr.defaultFont),$r=Rr.structureConvert.getDocStyles("font",Kr),Gr=Vr.font?Vr.font:Vr.fontStyle;if(Gr){void 0===Gr.length&&(Gr=Array(Gr));for(var Jr=0;Jr<Gr.length;Jr++){var Xr=Gr[Jr];0===Xr.length&&(Gr[Jr]=Vr.defaultFont)}var Yr=Rr.structureConvert.getDocStyles("font",Gr);$r=$r.concat(Yr)}var Qr=Array(Vr.defaultPara),Zr=Rr.structureConvert.getDocStyles("para",Qr),en=Vr.para?Vr.para:Vr.paraStyle;if(en){void 0===en.length&&(en=Array(en));var tn=Rr.structureConvert.getDocStyles("para",en);Zr=Zr.concat(tn)}var rn=function iteratesNode(Tr){for(var Dr=0;Dr<Tr.length;Dr++){var Ur=Tr[Dr];if("ntField"!==Ur.nodeType&&"ntCell"!==Ur.nodeType||Ur.childNodes&&Ur.childNodes.node&&Ur.childNodes.node.length>0&&iteratesNode(Ur.childNodes.node),"ntTable"===Ur.nodeType&&Ur.childNodes&&Ur.childNodes.item){var Hr=Ur.childNodes.item;void 0===Hr.length&&(Hr=Array(Ur.childNodes.item));for(var Wr=0;Wr<Hr.length;Wr++){var zr=Hr[Wr];if(zr.childNodes&&zr.childNodes.node){var Vr=zr.childNodes.node;void 0===Vr.length&&(Vr=Array(zr.childNodes.node)),iteratesNode(Vr)}}}if(Ur.styleIndex){var Kr=Number(Ur.styleIndex);if("ntParagraph"===Ur.nodeType){var Gr=Zr[Kr];Ur.styleIndex=Rr.docTree.styleCompare(Gr);var Jr=Number(Ur.textStyleNo||0),Xr=$r[Jr];Ur.textStyleNo=Rr.docTree.styleCompare(Xr)}else{var Yr=$r[Kr];Ur.styleIndex=Rr.docTree.styleCompare(Yr)}}}return Tr};if("header"===Tr){var nn=Wr.root.headers.header;void 0===nn.length&&(nn=Array(Wr.root.headers.header));var an=nn[0],sn=an.node;return void 0===sn.length&&(sn=Array(nn[0].node)),rn(sn),[sn,zr]}if("footer"===Tr){var cn=Wr.root.footers.footer;void 0===cn.length&&(cn=Array(Wr.root.footers.footer));var un=cn[0],dn=un.node;return void 0===dn.length&&(dn=Array(cn[0].node)),rn(dn),[dn,zr]}var hn=Wr.root.main.node;return void 0===hn.length&&(hn=Array(Wr.root.main.node)),rn(hn),[hn,zr]}}},{key:"showCellAdress",value:function showCellAdress(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docTree.mainNodes.forEach((function(Rr){if(Rr instanceof fa["c"]){for(var Ur=0;Ur<Rr.rowCount;Ur++)for(var Hr=0;Hr<Rr.colCount;Hr++){var Wr=Rr.rows[Ur][Hr];if(Wr)for(var zr=0,Vr=Wr.drawCell.drawPageCells.length;zr<Vr;zr++)Wr.drawCell.drawPageCells[zr].paintCellAdress(Tr)}for(var Kr=0,$r=Rr.drawTable.drawPageTables.length;Kr<$r;Kr++){var Gr=Dr.drawPageTree.getDrawPageByDNode(Rr.drawTable.drawPageTables[Kr]);Gr&&(Gr.needUpdateStage=!0,Dr.drawPageTree.updateDrawPage(Gr.pageIndex))}}}))}},{key:"insertXml",value:function insertXml(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=this.updateStyles(Dr,Tr),zr=JSON.stringify(Wr[0]),Vr=Wr[1],Kr=Hr.drawTree.drawPages.length,$r="main";"header"===Dr&&($r="header/"+Kr.toString()),"footer"===Dr&&($r="footer/"+Kr.toString());var Gr=Hr.structureNode.Parse(Za.ctJSON,zr,$r);if(Ur&&"main"===Dr&&Gr.length>1&&Gr[Gr.length-1]instanceof qi["a"]&&!(Gr[Gr.length-2]instanceof fa["c"])&&Gr.splice(Gr.length-1,1),"main"!==Dr){var Jr=new Array;if("header"===Dr){var Xr="header/"+Kr.toString(),Yr=new la["a"](this._hoEditorFactoryID,Xr,Kr);Hr.drawPageTree.drawHeaders[Kr]=Yr,Hr.drawTree.headerDNodes[Kr]=new Array;var Qr=new qi["a"](this._hoEditorFactoryID,Jr,null,0);Jr.push(Qr),Qr.rootPath=Xr,Qr.rootNodes=Jr,Hr.docTree.headerNodes[Kr]=Jr,Hr.drawTree.initAreaFirstNode(Jr,Hr.drawTree.headerDNodes[Kr]),Hr.docTree.curDomRange.setSamePath(Xr+"/0"),Gr[0]instanceof qi["a"]&&(Hr.docTree.headerNodes[Kr][0].paraNo=Gr[0].paraNo,Hr.docTree.headerNodes[Kr][0].styleIndex=Gr[0].styleIndex,Gr.splice(0,1)),Hr.docController.parseNodeData(Gr)}else if("footer"===Dr){var Zr="footer/"+Kr.toString(),en=new sa["a"](this._hoEditorFactoryID,Zr,Kr);Hr.drawPageTree.drawFooters[Kr]=en,Hr.drawTree.footerDNodes[Kr]=new Array;var tn=new qi["a"](this._hoEditorFactoryID,Jr,null,0);Jr.push(tn),tn.rootPath=Zr,tn.rootNodes=Jr,Hr.docTree.footerNodes[Kr]=Jr,Hr.drawTree.initAreaFirstNode(Jr,Hr.drawTree.footerDNodes[Kr]),Hr.docTree.curDomRange.setSamePath($r+"/0"),Gr[0]instanceof qi["a"]&&(Hr.docTree.footerNodes[Kr][0].paraNo=Gr[0].paraNo,Hr.docTree.footerNodes[Kr][0].styleIndex=Gr[0].styleIndex,Gr.splice(0,1)),Hr.docController.parseNodeData(Gr)}}else{var rn=Hr.docTree.mainNodes,nn=Hr.docTree.getNodeLastPath(rn[rn.length-1]);Rr||1!==Hr.docTree.mainNodes.length||(Hr.docTree.mainNodes[0].docId=Vr&&""!==Vr?Vr:Hr.gernerateCode.generateID("DocId"),Gr[0]instanceof qi["a"]&&(Hr.docTree.mainNodes[0].paraNo=Gr[0].paraNo,Hr.docTree.mainNodes[0].styleIndex=Gr[0].styleIndex,Gr.splice(0,1))),Rr&&(Gr[0].printAsSinglePage=Rr,Gr[0].docId=Vr&&""!==Vr?Vr:Hr.gernerateCode.generateID("DocId")),Hr.docTree.curDomRange.setSamePath(nn),Hr.docController.parseNodeData(Gr)}}},{key:"mergeDocs",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr,Dr,Rr,Ur){return regeneratorRuntime.wrap((function _callee$(Hr){while(1)switch(Hr.prev=Hr.next){case 0:return Dr?(this.insertXml(Tr,"header"),this.insertXml(Tr,"footer"),this.insertXml(Tr,"main",Dr,Ur)):this.insertXml(Tr,"main",void 0,Ur),Rr&&Rr(),Hr.abrupt("return",!0);case 3:case"end":return Hr.stop()}}),_callee,this)})));function mergeDocs(Dr,Rr,Ur,Hr){return Tr.apply(this,arguments)}return mergeDocs}()},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.headerNodes[0],Rr=Tr.docTree.getNodeLastPath(Dr[Dr.length-1]),Ur=new yn["a"](this._hoEditorFactoryID,"header/0/0",Rr),Hr=Tr.structureNode.Copy(Ur,null),Wr=this.getSubDocImg(Tr.drawTree.activePageIndex.index,On["a"].hftHead);return[Hr,Wr]}},{key:"insertHeaderJson",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee2(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr;return regeneratorRuntime.wrap((function _callee2$(Qr){while(1)switch(Qr.prev=Qr.next){case 0:return Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=0,Ur=Dr.docTree.headerNodes[Rr],Hr=Dr.docTree.getNodeLastPath(Ur[Ur.length-1]),Wr="header/"+Rr.toString()+"/0",zr=new yn["a"](this._hoEditorFactoryID,Wr,Hr),Qr.next=8,Dr.docController.deleteRange(zr,!0);case 8:for(Dr.docTree.curDomRange.setSamePath(Wr),Vr=Dr.structureNode.Parse(Za.ctJSON,Tr),Vr[0]instanceof qi["a"]&&(Ur[0].paraNo=Vr[0].paraNo,Vr.splice(0,1)),Dr.docController.parseNodeData(Vr),Kr=0;Kr<Dr.docTree.headerNodes.length;Kr++)$r=Dr.docTree.headerNodes[Kr],$r.length>0&&(Dr.drawTree.headerDNodes.length>0&&(Gr=Dr.drawTree.headerDNodes[0],Gr instanceof ua["a"]&&(Gr.dWidth=Gr.paragraphNode.getParagraphLeftWidth()[1]-Gr.paragraphNode.combineParagraph.leftMarginPixes-Gr.paragraphNode.combineParagraph.rightMarginPixes)),Jr=$r[0].getNodePath(),Xr=Dr.docTree.getNodeLastPath($r[$r.length-1]),Yr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,Jr,Xr),Yr.oldEndPath=Xr,Yr.oldDrawLines=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines(Jr,Xr,!0),Dr.docTree.change(Yr),Dr.subDocManger.updateAllSameSubDoc(Kr,On["a"].hftHead,!1,!1));case 13:case"end":return Qr.stop()}}),_callee2,this)})));function insertHeaderJson(Dr){return Tr.apply(this,arguments)}return insertHeaderJson}()},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.footerNodes[0],Rr=Tr.docTree.getNodeLastPath(Dr[Dr.length-1]),Ur=new yn["a"](this._hoEditorFactoryID,"footer/0/0",Rr),Hr=Tr.structureNode.Copy(Ur,null),Wr=this.getSubDocImg(Tr.drawTree.activePageIndex.index,On["a"].hftFoot);return[Hr,Wr]}},{key:"insertFooterJson",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee3(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr;return regeneratorRuntime.wrap((function _callee3$(Xr){while(1)switch(Xr.prev=Xr.next){case 0:return Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.footerNodes[0],Ur=Dr.docTree.getNodeLastPath(Rr[Rr.length-1]),Hr=new yn["a"](this._hoEditorFactoryID,"footer/0/0",Ur),Xr.next=6,Dr.docController.deleteRange(Hr,!0);case 6:for(Dr.docTree.curDomRange.setSamePath("footer/0/0"),Wr=Dr.structureNode.Parse(Za.ctJSON,Tr),Wr[0]instanceof qi["a"]&&(Rr[0].paraNo=Wr[0].paraNo,Wr.splice(0,1)),Dr.docController.parseNodeData(Wr),zr=0;zr<Dr.docTree.footerNodes.length;zr++)Vr=Dr.docTree.footerNodes[zr],Vr.length>0&&(Dr.drawTree.footerDNodes.length>0&&(Kr=Dr.drawTree.footerDNodes[0],Kr instanceof ua["a"]&&(Kr.dWidth=Kr.paragraphNode.getParagraphLeftWidth()[1]-Kr.paragraphNode.combineParagraph.leftMarginPixes-Kr.paragraphNode.combineParagraph.rightMarginPixes)),$r=Vr[0].getNodePath(),Gr=Dr.docTree.getNodeLastPath(Vr[Vr.length-1]),Jr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,$r,Gr),Jr.oldEndPath=Gr,Jr.oldDrawLines=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines($r,Gr,!0),Dr.docTree.change(Jr),Dr.subDocManger.updateAllSameSubDoc(zr,On["a"].hftFoot,!1,!1));case 11:case"end":return Xr.stop()}}),_callee3,this)})));function insertFooterJson(Dr){return Tr.apply(this,arguments)}return insertFooterJson}()},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.docTree.curDomRange.isEmpty)return"";var Rr=Dr.structureNode.Copy(Dr.docTree.curDomRange,null,Tr);return Rr}},{key:"insertSelectedJson",value:function insertSelectedJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if("object"===Object(Ma["a"])(JSON.parse(Tr))){var Rr=Dr.structureNode.Parse(Za.ctJSON,Tr);Dr.docController.parseNodeData(Rr)}else Dr.docController.keyBoardInput(Tr)}},{key:"openXml",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee4(Tr,Dr,Rr,Ur){var Hr,Wr,zr,Vr,Kr;return regeneratorRuntime.wrap((function _callee4$($r){while(1)switch($r.prev=$r.next){case 0:if(!1!==Ur){$r.next=2;break}return $r.abrupt("return");case 2:if(Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=Hr.docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].openXml),Hr.openXmled=!0,!Hr.docTree.changing(Kr)){$r.next=15;break}return $r.next=11,Hr.docController.initBlankDoc();case 11:if(Hr.drawTree.inViewPages=[0],!(Tr>"")){$r.next=15;break}return $r.next=15,Hr.structureConvert.openXml(Tr,Dr,Rr);case 15:case"end":return $r.stop()}}),_callee4,this)})));function openXml(Dr,Rr,Ur,Hr){return Tr.apply(this,arguments)}return openXml}()},{key:"getSubDocImg",value:function getSubDocImg(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.subDocManger.getSubDocCopyDrawArea(Tr,Dr);if(Ur&&!Ur.stage&&(Ur=Dr===On["a"].hftHead?Rr.drawTree.drawPages[Tr].drawHeader:Rr.drawTree.drawPages[Tr].drawFooter),Ur&&Ur.stage&&Ur.stage.canvas){var Hr=Math.max(Math.min(Ur.docHeight,Ur.maxHeight),Ur.dHeight)*Dn["a"].instance().scaleXY,Wr=Ur.stage.canvas.getContext("2d");if(Wr){var zr=Wr.getImageData(0,Ur.y*Dn["a"].instance().scaleXY,Rr.pageProperty.widthPixes*Dn["a"].instance().scaleXY,Hr),Vr=document.createElement("canvas");Vr.width=Rr.pageProperty.widthPixes*Dn["a"].instance().scaleXY,Vr.height=Hr;var Kr=Vr.getContext("2d");if(Kr)return Kr.putImageData(zr,0,0),Vr.toDataURL()}}return""}},{key:"getRangeText",value:function getRangeText(Tr){Tr=Tr.normalize();var Dr="",Rr=[],Ur=Tr.npStart.childIndex,Hr=Tr.npEnd.childIndex,Wr=function getNodeText(Tr){var Dr="";return Tr instanceof Xa["a"]&&(Dr=Tr.text),Tr instanceof ei["f"]?Dr=Tr.getFieldText():Tr instanceof En["a"]?Dr=Tr.getCellText():Tr instanceof qi["a"]&&(Dr="\n"),Dr};if(Tr.npStart.node===Tr.npEnd.node)return Dr=Tr.npStart.node instanceof ci["a"]?Tr.npStart.node.text.substring(Ur+1,Hr+1):Wr(Tr.npStart.node),Dr;Rr=yn["a"].getSelectDomNodesForUpdate(this._hoEditorFactoryID,Tr.startPath,Tr.endPath);for(var zr=0;zr<Rr.length;zr++){var Vr=Rr[zr];Vr instanceof ci["a"]?zr===Rr.length-1&&Vr instanceof ci["a"]?Dr+=Vr.text.substring(0,Hr+1):Dr+=Vr.text:Dr+=Wr(Vr)}return Dr}},{key:"deleteNode",value:function deleteNode(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr){if(Tr.parentNode&&Tr.parentNode instanceof En["a"]){var Rr=Tr.parentNode.delCellNodeText();if(!Rr)return}if(Tr instanceof En["a"]){var Ur=Tr.delCellNodeText();if(!Ur)return}var Hr=Tr.previousLeaf(),Wr=Dr.docTree.getNodeLastPath(Hr),zr=Dr.docTree.getNodeLastPath(Tr);if(Tr instanceof Wi["a"]){var Vr=Tr.nextLeaf();if(""!==Tr.imgSrc&&Tr.isTemplate&&!(Hr instanceof Wi["a"])&&!(Vr instanceof Wi["a"])){var Kr=new Wi["a"](this._hoEditorFactoryID,Tr.rootNodes,Tr.parentNode,wn["b"].ntSign,0,0,""===Tr.name?"签名":Tr.name,Tr.signType,Tr.signFormat,"","",Tr.signTimeFormat,"",0,0,{},!0,Tr.connectMode,Tr.isFront,Tr.allowEditSignTime);return Dr.undoService.begin(),Dr.undoService.add(new go["a"](this._hoEditorFactoryID,Tr,zr)),Dr.undoService.add(new vo["a"](this._hoEditorFactoryID,Wr,Kr)),void Dr.undoService.commit()}if(Hr instanceof Wi["a"]){if(Dr.drawTree.paintStatus!==mn["b"].psDesign&&Tr.isTemplate)return void Ea.a.alert("该签名元素不允许删除!","系统提示");var $r=Dr.docTree.getNodeLastPath(Hr.previousLeaf()),Gr=new Wi["a"](this._hoEditorFactoryID,Hr.rootNodes,Hr.parentNode,wn["b"].ntSign,1,Hr.type,""===Hr.name?"签名":Hr.name,Hr.signType,Hr.signFormat,Hr.signor,Hr.signTime,Hr.signTimeFormat,Hr.imgSrc,Hr.imgWidth,Hr.imgHeight,Hr.customProperty,Hr.isTemplate,Hr.connectMode,Hr.isFront,Hr.allowEditSignTime);return Dr.undoService.begin(),Dr.undoService.add(new mo["a"](this._hoEditorFactoryID,$r,zr)),Dr.undoService.add(new vo["a"](this._hoEditorFactoryID,$r,Gr)),void Dr.undoService.commit()}}Dr.undoService.begin(),Dr.undoService.add(new go["a"](this._hoEditorFactoryID,Tr)),Dr.undoService.commit(),Dr.drawTree.moveCaretToPath(Wr)}}},{key:"insertSeparateChar",value:function insertSeparateChar(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertSeparateChar);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertSeparateChar(Rr,Tr,Dr)}},{key:"textToLabel",value:function textToLabel(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();Dr.isEmpty||Dr.npStart&&Dr.npEnd&&Dr.npStart.node&&Dr.npEnd.node&&Tr.docController.textToLabel(Dr)}},{key:"labelToText",value:function labelToText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.labelToText(Tr)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=[],Rr="",Ur=Tr.docTree.headerNodes,Hr=Tr.docTree.mainNodes,Wr=Tr.docTree.footerNodes,zr=function loopFieldNodes(Tr){for(var Ur=0;Ur<Tr.length;Ur++){var Hr=Tr[Ur],Wr=Hr.dataVerifyFormat;Wr.mustInputValue&&""===Hr.text?(Rr="必须输入,不能为空",Dr.push([Hr,Rr])):Wr.dataFormat===ei["a"].text?(Wr.minLength>0&&Hr.text.length<Wr.minLength&&(Rr="内容不能少于"+Wr.minLength.toString()+"个字符",Dr.push([Hr,Rr])),Wr.maxLength>0&&Hr.text.length>Wr.maxLength&&(Rr="内容不能多于"+Wr.maxLength.toString()+"个字符",Dr.push([Hr,Rr]))):Object(_o["a"])(Hr.text)?Wr.onlyInputInt?Number(Hr.text)%1!==0?(Rr="数值必须为整数",Dr.push([Hr,Rr])):(0!==Wr.maxValue&&Number(Hr.text)>Wr.maxValue&&(Rr="数值不能大于"+Wr.maxValue.toString(),Dr.push([Hr,Rr])),0!==Wr.minValue&&Number(Hr.text)<Wr.minValue&&(Rr="数值不能小于"+Wr.minValue.toString(),Dr.push([Hr,Rr]))):0!==Wr.maxSmallBits&&Hr.text.split(".")[1].length>Wr.maxSmallBits&&(Rr="小数位数不能多于"+Wr.maxSmallBits.toString()+"位",Dr.push([Hr,Rr])):(Rr="内容必须为数值",Dr.push([Hr,Rr]))}},Vr=0;Vr<Ur.length;Vr++){var Kr=Ur[Vr],$r=Kr[0].getNodePath(),Gr=Tr.docTree.getNodeLastPath(Kr[Kr.length-1]),Jr=yn["a"].getRangeTextInputField(this._hoEditorFactoryID,$r,Gr,!1);zr(Jr)}var Xr=Hr[0].getNodePath(),Yr=Tr.docTree.getNodeLastPath(Hr[Hr.length-1]),Qr=yn["a"].getRangeTextInputField(this._hoEditorFactoryID,Xr,Yr,!1);zr(Qr);for(var Zr=0;Zr<Wr.length;Zr++){var en=Wr[Zr],tn=en[0].getNodePath(),rn=Tr.docTree.getNodeLastPath(en[en.length-1]),nn=yn["a"].getRangeTextInputField(this._hoEditorFactoryID,tn,rn,!1);zr(nn)}return Dr}},{key:"insertEmptySignNode",value:function insertEmptySignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Kr=Vr.docTree.curDomRange.normalize(),$r=Kr.normalize().startPath,Gr=Kr.normalize().endPath,Jr=new ho["a"](gn["a"].daInsert,$r,Gr,ho["b"].insertSign);Vr.docTree.changing(Jr)&&Vr.docController.insertEmptySignNode(Kr,Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertSignNode",value:function insertSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Gr=$r.docTree.curDomRange.normalize(),Jr=Gr.normalize().startPath,Xr=Gr.normalize().endPath,Yr=new ho["a"](gn["a"].daInsert,Jr,Xr,ho["b"].insertSign);$r.docTree.changing(Yr)&&$r.docController.insertSignNode(Gr,Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateSignNode",value:function updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.docController.updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateSignTime",value:function updateSignTime(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.updateSignTime(Tr,Dr)}},{key:"forceDelete",value:function forceDelete(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize(),Rr=Dr.startPath,Ur=Dr.endPath;Tr.undoService.begin(),Tr.undoService.add(new mo["a"](this._hoEditorFactoryID,Rr,Ur,!0)),Tr.undoService.commit()}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(Tr,Dr){if(Tr&&Tr instanceof ga["a"]&&Tr.isEditText&&0!==Dr.trim().length){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.docTree.getNodeLastPath(Tr.previousLeaf()),Hr=Rr.docTree.getNodeLastPath(Tr),Wr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,Ur,Hr);Wr.oldEndPath=Hr,Wr.afterChangePath=Hr,Wr.oldDrawLines=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines(Ur,Hr,!0),Tr.appendText=Dr,Rr.docTree.change(Wr),Rr.drawTree.moveCaretToPath(Hr),Rr.docTree.curDomRange.setSamePath(Hr)}}},{key:"delCurPage",value:function delCurPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[Tr],Ur=Dr.drawPageTree.drawMainDocs[Tr];Rr&&Ur||Ea.a.alert("删除页的索引传入有误:"+Tr.toString());var Hr,Wr="",zr="";if(Tr===Dr.drawTree.drawPages.length-1&&0!==Tr){var Vr=Dr.drawTree.drawPages[Tr-1],Kr=Dr.drawPageTree.drawMainDocs[Tr-1],$r=Kr.localToGlobal(Dr.pageProperty.widthPixes,Dr.pageProperty.heightPixes);Hr=Dr.drawTree.getStagePosition(Vr,Kr,$r.x,$r.y)}else Hr=Dr.drawTree.getStagePosition(Rr,Ur,0,0);if(Hr){var Gr=Hr.dline;Wr=Gr instanceof ua["a"]?Hr.path:Gr.table.paragraphNode.getNodePath()}var Jr=Ur.localToGlobal(Dr.pageProperty.widthPixes,Dr.pageProperty.heightPixes),Xr=Dr.drawTree.getStagePosition(Rr,Ur,Jr.x,Jr.y);if(Xr){var Yr=Xr.dline;zr=Yr instanceof ua["a"]?Xr.path:Yr.table.getNodePath()}Dr.undoService.begin(),Dr.undoService.add(new mo["a"](this._hoEditorFactoryID,Wr,zr,!0)),Dr.undoService.commit()}},{key:"getMainDocText",value:function getMainDocText(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.mainNodes,Rr="",Ur=function loopChildNodes(Tr){Tr.forEach((function(Tr){Tr instanceof ci["a"]||Tr instanceof Xa["a"]?Rr+=Tr.text:Tr instanceof Va["a"]?loopChildNodes(Tr.childNodes):Tr instanceof qi["a"]&&(Rr+="\n")}))};return Ur(Dr),Rr=Rr.replace(/</g,"&lt;"),Rr=Rr.replace(/>/g,"&gt;"),Rr=Rr.replace(/&/g,"&amp;"),Rr=Rr.replace(/\'/g,"&#39;"),Rr=Rr.replace(/\"/g,"&quot;"),Rr}},{key:"cancelDel",value:function cancelDel(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize(),Rr=Dr.startPath,Ur=Dr.endPath,Hr=yn["a"].getSelectDomNodes(this._hoEditorFactoryID,Rr,Ur,!0),Wr=Object(oa["a"])(Hr,3),zr=Wr[0],Vr=(Wr[1],Wr[2],zr.length-1);Vr>=0;Vr--){var Kr=zr[Vr];if(Kr instanceof ci["a"]){var $r=Tr.docTree.styles[Kr.styleIndex];$r=$r||Tr.docTree.styles[0],void 0!==$r.deleterIndex&&-1!==$r.deleterIndex&&($r.deleterIndex=-1,$r.strikeout=!1,Kr.styleIndex=Tr.docTree.styleCompare($r))}}var Gr=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines(Rr,Ur,!0),Jr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,Rr,Ur);Jr.oldEndPath=Ur,Jr.oldDrawLines=Gr,Tr.docTree.change(Jr)}},{key:"isModifyDoc",value:function isModifyDoc(){var Tr=!0,Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.lastSaveTime,Ur=Dr.undoService.stack;if(Ur.length>0){var Hr=Ur[Ur.length-1],Wr=Hr.undoUnits,zr=Wr[Wr.length-1];Tr=zr.opTime!==Rr}else Tr=!1;return Tr}},{key:"getAllElements",value:function getAllElements(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=[],Rr=function getAllNodes(Tr){for(var Rr=0;Rr<Tr.length;Rr++){var Ur=Tr[Rr];if((Ur instanceof ei["f"]||Ur instanceof Qn["a"]||Ur instanceof Yn["a"])&&1===Ur.readType){var Hr={id:"",name:"",text:"",json:"",innerIdentifier:""};Hr.id=Ur.id,Hr.name=Ur.name,Hr.text=Ur.text,Hr.innerIdentifier=Ur.innerIdentifier,Hr.json=JSON.stringify(Ur.node2Json(void 0,!0)),Dr.push(Hr)}Ur instanceof Va["a"]&&getAllNodes(Ur.childNodes)}},Ur=Tr.docTree.headerNodes,Hr=0;Hr<Ur.length;Hr++)Ur[Hr]&&Rr(Ur[Hr]);var Wr=Tr.docTree.mainNodes;Rr(Wr);for(var zr=Tr.docTree.footerNodes,Vr=0;Vr<zr.length;Vr++)zr[Vr]&&Rr(zr[Vr]);return Dr}},{key:"getSysElements",value:function getSysElements(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=[],Rr=[],Ur=[],Hr=function getAllNodes(Tr,Dr){for(var Rr=0;Rr<Tr.length;Rr++){var Ur=Tr[Rr];if((Ur instanceof Qn["a"]||Ur instanceof Yn["a"]||Ur instanceof ei["f"]&&0===Ur.childNodes.filter((function(Tr){return Tr instanceof ei["f"]})).length)&&1===Ur.readType){var Hr={id:"",name:"",text:"",json:"",innerIdentifier:"",controlStyle:""};Hr.id=Ur.id,Hr.name=Ur.name,Hr.text=Ur.text,Hr.innerIdentifier=Ur.innerIdentifier,Ur instanceof Yn["a"]&&(Hr.controlStyle=Ur.controlStyle),Dr.push(Hr)}Ur instanceof Va["a"]&&getAllNodes(Ur.childNodes,Dr)}},Wr=Tr.docTree.headerNodes,zr=0;zr<Wr.length;zr++)Wr[zr]&&Hr(Wr[zr],Dr);var Vr=Tr.docTree.mainNodes;Hr(Vr,Rr);for(var Kr=Tr.docTree.footerNodes,$r=0;$r<Kr.length;$r++)Kr[$r]&&Hr(Kr[$r],Ur);return{header:Dr,main:Rr,footer:Ur}}},{key:"updateElementById",value:function updateElementById(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=this.getNodeByID("all",Tr);if(!Ur)throw new Error("根据元素id:"+Tr+"未找到对应的元素");if(!(Ur instanceof ei["f"]||Ur instanceof Yn["a"]||Ur instanceof Qn["a"]))throw new Error("根据元素id:"+Tr+"定位到的元素非可回填元素");var Hr=Rr.docTree.getNodeLastPath(Ur.previousLeaf()),Wr=Ur;Ur instanceof ei["f"]&&(Wr=ei["f"].json2Node(this._hoEditorFactoryID,Dr,Ur.rootNodes,Ur.parentNode)),Ur instanceof Yn["a"]&&(Wr=Yn["a"].json2Node(this._hoEditorFactoryID,Dr,Ur.rootNodes,Ur.parentNode)),Ur instanceof Qn["a"]&&(Wr=Qn["a"].json2Node(this._hoEditorFactoryID,Dr,Ur.rootNodes,Ur.parentNode)),Ur.isAllowDelete=!0,Rr.undoService.begin(),Rr.undoService.add(new go["a"](this._hoEditorFactoryID,Ur,Hr,"update")),Rr.undoService.add(new vo["a"](this._hoEditorFactoryID,Hr,Wr)),Rr.undoService.commit();var zr=Rr.docTree.getNodeLastPath(Wr);Rr.drawTree.moveCaretToPath(zr)}},{key:"updateElementText",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee5(Tr,Dr,Rr){var Ur;return regeneratorRuntime.wrap((function _callee5$(Hr){while(1)switch(Hr.prev=Hr.next){case 0:if(Ur=this.getNodeByID(Tr,Dr),!Ur){Hr.next=21;break}if(!(Ur instanceof Yn["a"]||Ur instanceof Qn["a"]||Ur instanceof ei["f"])){Hr.next=18;break}if(1!==Ur.readType){Hr.next=15;break}if(!(Ur instanceof ei["f"])){Hr.next=7;break}return Hr.next=7,Ur.setFieldText(Rr);case 7:if(!(Ur instanceof Yn["a"])){Hr.next=10;break}return Hr.next=10,Ur.setDateTimeText(Rr);case 10:if(!(Ur instanceof Qn["a"])){Hr.next=13;break}return Hr.next=13,Ur.setDownListText(Rr);case 13:Hr.next=16;break;case 15:throw new Error("根据元素id:"+Dr+"定位到的元素非可回填元素");case 16:Hr.next=19;break;case 18:throw new Error("根据元素id:"+Dr+"定位到的元素非可回填元素");case 19:Hr.next=22;break;case 21:throw new Error("根据元素id:"+Dr+"未找到对应的元素");case 22:case"end":return Hr.stop()}}),_callee5,this)})));function updateElementText(Dr,Rr,Ur){return Tr.apply(this,arguments)}return updateElementText}()},{key:"updateFirstPageHeader",value:function updateFirstPageHeader(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawPageTree.drawHeaders[0];Tr.subDocManger.updateAllSameSubDoc(Dr.index,On["a"].hftHead,!1,!1)}},{key:"rebuildArea",value:function rebuildArea(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.drawTree.rebuildArea(Tr,Dr,Rr)}},{key:"getUserInfoes",value:function getUserInfoes(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).userInfo}},{key:"hoLocalStorage",value:function hoLocalStorage(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).hoLocalStorage}},{key:"redrawPage",value:function redrawPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr>=0&&Tr<Dr.drawTree.drawPages.length&&Dr.drawPageTree.updateDrawPage(Tr)}},{key:"createPNG",value:function createPNG(){var Tr=this,Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages,Ur=document.createElement("div");Ur.id="hoImageFileBox",Rr.forEach((function(Tr){var Dr;Tr.drawDomLevel&&!Tr.drawDomLevel.stage&&(Tr.drawDomLevel.bindStage(),Tr.needUpdateStage=!0),Tr.needUpdateStage&&Tr.drawDomLevel&&Tr.drawDomLevel.stage&&(Tr.drawDomLevel.stage.update(),Tr.needUpdateStage=!1);var Rr=document.createElement("img"),Hr=null===(Dr=Tr.drawDomLevel)||void 0===Dr?void 0:Dr.domCanvas;Rr.src=Hr.toDataURL("image/jpeg",1),Ur.appendChild(Rr)})),Ur.id="hoImageFileBox";var Hr=document.createElement("button");Hr.id="hoDownLoadImageBtn",Hr.style.position="fixed",Hr.style.left="20px",Hr.style.top="200px",Hr.style.padding="10px 20px",Hr.style.background="#f2f4f7",Hr.style.border="none",Hr.style.outline="none",document.body.appendChild(Hr),document.body.appendChild(Ur),document.querySelector("#hoDownLoadImageBtn").onclick=function(){Tr.downLoadPNGHTML()}}},{key:"createPDF",value:function createPDF(){var Tr=this,Dr=document.createElement("button");Dr.id="hoDownLoadPDFBtn",Dr.style.position="fixed",Dr.style.left="20px",Dr.style.top="300px",Dr.style.padding="10px 20px",Dr.style.background="transparent",Dr.style.border="none",Dr.style.outline="none",document.body.appendChild(Dr),document.querySelector("#hoDownLoadPDFBtn").onclick=function(){Tr.saveAsPDF()}}},{key:"downLoadPNGHTML",value:function downLoadPNGHTML(){var Tr=document.querySelector("#hoImageFileBox"),Dr=this.getDocTitle()?this.getDocTitle():"电子病历文档",Rr='\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <style>\n body, html {\n margin: 0;\n background: #f2f4f7;\n text-align: center;\n }\n img {\n margin: 10px auto;\n display: block;\n border: 0;\n box-shadow: rgb(158 161 165 / 40%) 0px 2px 12px 0px;\n }\n </style>\n </head>\n <body>'.concat(null===Tr||void 0===Tr?void 0:Tr.innerHTML,"</body>\n </html>\n "),Ur=window.URL.createObjectURL(new Blob([Rr],{type:"text/html"})),Hr=document.createElement("a");Hr.style.display="none",Hr.href=Ur,Hr.setAttribute("download",Dr+".html"),document.body.appendChild(Hr),Hr.click(),setTimeout((function(){Hr.remove(),document.body.removeChild(Tr),document.body.removeChild(document.querySelector("#hoDownLoadImageBtn"))}),300)}},{key:"moveCaretToElement",value:function moveCaretToElement(Tr,Dr){var Rr=this.getNodeByID(Tr,Dr);if(Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.docTree.curDomRange,Wr=Ur.docTree.getNodeLastPath(Rr.previousLeaf()),zr=Ur.docTree.getNodeLastPath(Rr),Vr=zr;Rr instanceof ei["f"]&&(Wr=Ur.docTree.getNodeLastPath(Rr.childNodes[0]),zr=Ur.docTree.getNodeLastPath(Rr.childNodes[Rr.childNodes.length-1].previousLeaf()),Vr=Rr.childNodes[1]instanceof li["a"]?Wr:zr),Ur.drawTree.moveCaretToPath(Vr);var Kr=new yn["a"](this.hoEditorFactoryID,Wr,zr);Ur.docTree.curDomRange=Kr;var $r=new vn["a"](Hr,Kr);Ur.docTree.selectChange($r)}}}]),VueController}(),xo=function(){function BaseController(Tr){Object(Xr["a"])(this,BaseController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(BaseController,[{key:"unDoOperate",value:function unDoOperate(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.unDoOperate()}},{key:"reDoOperate",value:function reDoOperate(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.reDoOperate()}},{key:"setUserLoginInfo",value:function setUserLoginInfo(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.setUserLoginInfo(Tr,Dr,Rr,Ur)}},{key:"setEditorStatus",value:function setEditorStatus(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.setEditorStatus(Tr,Dr)}},{key:"generateID",value:function generateID(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.vueController.generateID(Tr)}},{key:"rebuildAll",value:function rebuildAll(Tr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(Tr)}},{key:"getTextStyles",value:function getTextStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.docTree.styles}},{key:"getParaStyles",value:function getParaStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.docTree.paragraphs}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.modifyRedraw(Tr,Dr)}},{key:"deleteRedraw",value:function deleteRedraw(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.deleteRedraw(Tr)}},{key:"insertRedraw",value:function insertRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.insertRedraw(Tr,Dr)}},{key:"fullRedraw",value:function fullRedraw(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.drawTree.rebuildAllDrawLine(!1)}},{key:"copy",value:function copy(){}}]),BaseController}(),Co=function(){function DomController(Tr){Object(Xr["a"])(this,DomController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(DomController,[{key:"newFile",value:function newFile(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.newFile(Tr)}},{key:"openLocalFiles",value:function openLocalFiles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.openLocalFiles(Tr,Dr)}},{key:"saveAsFile",value:function saveAsFile(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.vueController.saveAsFile(Tr);return Rr}},{key:"setPageProperty",value:function setPageProperty(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.setPageProperty(Tr)}},{key:"getPageProperty",value:function getPageProperty(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.vueController.pageProperty()}},{key:"openLocalFilesTest",value:function openLocalFilesTest(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc(),Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.openFile(Tr,Dr,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=JSON.parse(JSON.stringify(Tr));Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(Dr)}},{key:"getDocXml",value:function getDocXml(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.vueController.saveAsFile("xml");return Dr}},{key:"getDocJson",value:function getDocJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(Tr);return Dr}},{key:"iteratesDocTree",value:function iteratesDocTree(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.iteratesDocTree(Tr)}},{key:"insertText",value:function insertText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.keyBoardInput(Tr)}},{key:"deleteRange",value:function deleteRange(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.deleteRange(Tr,!1)}},{key:"insertXml",value:function insertXml(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertXml(Tr,"main")}},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.vueController.saveHeaderAsJson();return Dr[0]}},{key:"insertHeaderJson",value:function insertHeaderJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertHeaderJson(Tr)}},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.vueController.saveFooterAsJson();return Dr[0]}},{key:"insertFooterJson",value:function insertFooterJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertFooterJson(Tr)}},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.vueController.saveSelectedAsJson(Tr);return Rr}},{key:"insertSelectedJson",value:function insertSelectedJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertSelectedJson(Tr)}},{key:"openXml",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr,Dr){var Rr;return regeneratorRuntime.wrap((function _callee$(Ur){while(1)switch(Ur.prev=Ur.next){case 0:if(void 0!==Dr&&!0!==Dr){Ur.next=4;break}return Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur.next=4,Rr.vueController.openXml(Tr,void 0,void 0,Dr);case 4:case"end":return Ur.stop()}}),_callee,this)})));function openXml(Dr,Rr){return Tr.apply(this,arguments)}return openXml}()},{key:"mergeDocs",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee2(Tr,Dr){var Rr,Ur;return regeneratorRuntime.wrap((function _callee2$(Hr){while(1)switch(Hr.prev=Hr.next){case 0:return Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr.next=3,Rr.vueController.mergeDocs(Tr,Dr);case 3:return Ur=Hr.sent,Hr.abrupt("return",Ur);case 5:case"end":return Hr.stop()}}),_callee2,this)})));function mergeDocs(Dr,Rr){return Tr.apply(this,arguments)}return mergeDocs}()},{key:"loadFileList",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee3(Tr){var Dr,Rr;return regeneratorRuntime.wrap((function _callee3$(Ur){while(1)switch(Ur.prev=Ur.next){case 0:Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=0;case 2:if(!(Rr<Tr.length)){Ur.next=13;break}if(0!=Rr){Ur.next=8;break}return Ur.next=6,Dr.vueController.openXml(Tr[Rr].xml);case 6:Ur.next=10;break;case 8:return Ur.next=10,this.mergeDocs(Tr[Rr].xml,Tr[Rr].isMerge);case 10:Rr++,Ur.next=2;break;case 13:case"end":return Ur.stop()}}),_callee3,this)})));function loadFileList(Dr){return Tr.apply(this,arguments)}return loadFileList}()},{key:"getLogs",value:function getLogs(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.undoService.getModifyHistory()}},{key:"registOnNodeInsertByID",value:function registOnNodeInsertByID(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.onInsertNodeByID=Tr}},{key:"delCurPage",value:function delCurPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.delCurPage(Tr)}},{key:"isModifyDoc",value:function isModifyDoc(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.vueController.isModifyDoc()}}]),DomController}(),Po=function(){function EditController(Tr){Object(Xr["a"])(this,EditController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(EditController,[{key:"fontFormat",value:function fontFormat(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontFormat(Tr)}},{key:"fontSize",value:function fontSize(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontSize(Tr)}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.fontSizeEnlarge()}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.fontSizeDecrease()}},{key:"fontSuperScript",value:function fontSuperScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontSuperScript(Tr)}},{key:"fontSubScript",value:function fontSubScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontSubScript(Tr)}},{key:"fontBold",value:function fontBold(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontBold(Tr)}},{key:"fontItalic",value:function fontItalic(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontItalic(Tr)}},{key:"fontUnderline",value:function fontUnderline(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontUnderline(Tr)}},{key:"fontStrikeout",value:function fontStrikeout(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontStrikeout(Tr)}},{key:"fontColor",value:function fontColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontColor(Tr)}},{key:"fontBackColor",value:function fontBackColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontBackColor(Tr)}},{key:"alignedLeft",value:function alignedLeft(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedLeft()}},{key:"alignedCenter",value:function alignedCenter(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedCenter()}},{key:"alignedRight",value:function alignedRight(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedRight()}},{key:"alignedBothEnds",value:function alignedBothEnds(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedBothEnds()}},{key:"addIndent",value:function addIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.addIndent()}},{key:"decreaseIndent",value:function decreaseIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.decreaseIndent()}},{key:"setLineHeight",value:function setLineHeight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.setLineHeight(Tr)}},{key:"find",value:function find(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.vueController.find(Tr,Dr,Rr);return Hr}},{key:"replace",value:function replace(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);zr.vueController.replace(Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertHtmlText",value:function insertHtmlText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertHtmlText(Tr)}},{key:"clearUndos",value:function clearUndos(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.undoService.clear()}},{key:"editKeyCopy",value:function editKeyCopy(Tr){if(Tr&&Tr.clipboardData){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docTree.curDomRange.isEmpty||Dr.structureNode.Copy(Dr.docTree.curDomRange,Tr.clipboardData,void 0,"copy"),Tr.preventDefault()}}},{key:"editKeyPaste",value:function editKeyPaste(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.drawTree.paintStatus!==mn["b"].psReadOnly&&Dr.drawTree.paintStatus!==mn["b"].psPreview&&Dr.drawTree.paintStatus!==mn["b"].psPrint){var Rr=Dr.docTree.curDomRange.startPath,Ur=Dr.docTree.getParentNode(Rr);if(!(Ur instanceof ei["f"])||Ur.canModifyContent){var Hr,Wr="",zr="",Vr="";if(Tr instanceof DataTransfer&&(Wr=Tr.getData("application/json"),zr=Tr.getData("text/html"),Vr=Tr.getData("text/plain")),Hr=Wr&&Dr.drawTree.paintStatus===mn["b"].psDesign?Dr.structureNode.Parse(Za.ctJSON,Wr):zr?Dr.structureNode.Parse(Za.ctHTML,zr):Dr.structureNode.Parse(Za.ctText,Vr),!Dr.pasteBase)for(var Kr=0;Kr<Hr.length;Kr++){var $r=Hr[Kr];($r instanceof qi["a"]||$r instanceof ci["a"]||$r instanceof li["a"]||$r instanceof Xa["a"])&&($r.styleIndex=Dr.docTree.curStyleIndex)}Dr.docController.parseNodeData(Hr)}}}}]),EditController}(),Eo=function(){function ElementController(Tr){Object(Xr["a"])(this,ElementController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(ElementController,[{key:"findNodebyPath",value:function findNodebyPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.vueController.findNodebyPath(Tr)}},{key:"getNodeByID",value:function getNodeByID(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.vueController.getNodeByID(Tr,Dr)}},{key:"getNodesByName",value:function getNodesByName(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Ur.vueController.getNodesByName(Tr,Dr,Rr)}},{key:"getTextInputFieldValue",value:function getTextInputFieldValue(Tr){var Dr=Tr.getFieldText();return Dr}},{key:"getCellText",value:function getCellText(Tr){var Dr=Tr.getCellText();return Dr}},{key:"updateTextInputFieldValue",value:function updateTextInputFieldValue(Tr,Dr,Rr,Ur){var Hr=Promise.resolve();Hr=Hr.then((function(Hr){return new Promise(function(){var Hr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Hr){return regeneratorRuntime.wrap((function _callee$(Wr){while(1)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Tr.setFieldText(Dr,Rr,Ur);case 2:Hr();case 3:case"end":return Wr.stop()}}),_callee)})));return function(Tr){return Hr.apply(this,arguments)}}())}))}},{key:"updateCellText",value:function updateCellText(Tr,Dr){Tr.setCellText(Dr)}},{key:"updateDateTimeText",value:function updateDateTimeText(Tr,Dr){Tr.setDateTimeText(Dr)}},{key:"updateDownListText",value:function updateDownListText(Tr,Dr){Tr.setDownListText(Dr)}},{key:"deleteNode",value:function deleteNode(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.deleteNode(Tr)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.vueController.verifyTextFieldsDataFormat()}},{key:"getAllElementNodes",value:function getAllElementNodes(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.headerNodes,Rr=Tr.docTree.mainNodes,Ur=Tr.docTree.footerNodes,Hr=new Array,Wr=0;Wr<Dr.length;Wr++){var zr=Dr[Wr],Vr=zr[0].getNodePath(),Kr=Tr.docTree.getNodeLastPath(zr[zr.length-1]);Hr=Hr.concat(yn["a"].getElementNode(this._hoEditorFactoryID,Vr,Kr,!0))}var $r=Rr[0].getNodePath(),Gr=Tr.docTree.getNodeLastPath(Rr[Rr.length-1]);Hr=Hr.concat(yn["a"].getElementNode(this._hoEditorFactoryID,$r,Gr,!0));for(var Jr=0;Jr<Ur.length;Jr++){var Xr=Ur[Jr],Yr=Xr[0].getNodePath(),Qr=Tr.docTree.getNodeLastPath(Xr[Xr.length-1]);Hr=Hr.concat(yn["a"].getElementNode(this._hoEditorFactoryID,Yr,Qr,!0))}return Hr}},{key:"insertSignNode",value:function insertSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.insertSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateSignNode",value:function updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"forceDelete",value:function forceDelete(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.forceDelete()}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(Tr,Dr){if(Tr&&Tr instanceof ga["a"]&&Tr.isEditText&&0!==Dr.trim().length){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.editRadioCheckBoxText(Tr,Dr)}}},{key:"getAllElements",value:function getAllElements(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.getAllElements()}},{key:"updateElementById",value:function updateElementById(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.updateElementById(Tr,Dr)}},{key:"moveCaretToElement",value:function moveCaretToElement(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.moveCaretToElement(Tr,Dr)}}]),ElementController}(),So=function(){function NodeController(Tr){Object(Xr["a"])(this,NodeController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(NodeController,[{key:"insertMenstrualHistory",value:function insertMenstrualHistory(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Wr.vueController.insertMenstrualHistory("add",Tr,Dr,Rr,Ur,Hr)}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Wr.vueController.updateMenstrualHistory(Tr,Dr,Rr,Ur,Hr)}},{key:"insertPupilMap",value:function insertPupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.insertPupilMap("add",Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"updatePupilMap",value:function updatePupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.updatePupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertLightLocation",value:function insertLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.insertLightLocation("add",Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateLightLocation",value:function updateLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.updateLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);zr.vueController.insertFetalHeartMap("add",Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);zr.vueController.updateFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.insertPermanentTeethMap("add",Tr,Dr,Rr,Ur)}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.updatePermanentTeethMap(Tr,Dr,Rr,Ur)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.insertPrimaryTeethMap("add",Tr,Dr,Rr,Ur)}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.updatePrimaryTeethMap(Tr,Dr,Rr,Ur)}},{key:"insertTextInputField",value:function insertTextInputField(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.vueController.insertTextInputField("add",Tr);return Rr}},{key:"updateTextInputField",value:function updateTextInputField(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.updateTextInputField(Tr)}},{key:"insertImage",value:function insertImage(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.vueController.insertImage(Tr,Dr,Rr)}},{key:"insertBarcode",value:function insertBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.insertBarcode("add",Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"updateBarcode",value:function updateBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.updateBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertQrcode",value:function insertQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr){var Yr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Yr.vueController.insertQrcode("add",Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr)}},{key:"updateQrcode",value:function updateQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr){var Yr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Yr.vueController.updateQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertRadioAndCheckBox("add",Tr)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.updateRadioAndCheckBox(Tr)}},{key:"insertDateTime",value:function insertDateTime(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertDateTime("add",Tr)}},{key:"updateDateTime",value:function updateDateTime(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.updateDateTime(Tr)}},{key:"insertDownList",value:function insertDownList(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.insertDownList("add",Tr,Dr)}},{key:"updateDownList",value:function updateDownList(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.updateDownList(Tr,Dr)}},{key:"insertSpecialChars",value:function insertSpecialChars(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertSpecialChars("add",Tr)}},{key:"insertPageNum",value:function insertPageNum(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.vueController.insertPageNum("add",Tr,Dr,Rr)}},{key:"insertSeparateChar",value:function insertSeparateChar(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.insertSeparateChar(Tr,Dr)}}]),NodeController}(),To=(Rr("be4f"),Rr("896a")),ko=Rr.n(To),Oo=Rr("8baf"),Io=function(){function PrintController(Tr){Object(Xr["a"])(this,PrintController),this._viewXmlList=[],this._xmlIndex=0,this._isSetFont=!1,this._isFont=!1,this._waitPrint=!1,this._waitSavepdf=!1,this._hoEditorFactoryID=Tr}return Object(Yr["a"])(PrintController,[{key:"setjsPDFFonts",value:function setjsPDFFonts(Tr){this._isSetFont=!0,Oo["d"].API.events.push(["addFonts",function(){this.addFileToVFS("SimSun-normal.ttf",Tr),this.addFont("SimSun-normal.ttf","SimSun","normal")}]),this._waitPrint&&(Ea.a.close(),this.printPromisePDF()),this._waitSavepdf&&this.saveAsPDF()}},{key:"saveAsPDF",value:function saveAsPDF(Tr,Dr){var Rr=this;if(this._isSetFont){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Dr||"pdf",Wr=Tr||(Ur.vueController.getDocTitle()?Ur.vueController.getDocTitle():"电子病历文档"),zr=Ur.drawTree.paintStatus,Vr=Ur.vueController.getDocXml(),Kr=Promise.resolve();Kr=Kr.then((function(){return new Promise((function(Tr){Ur.printStatus.printMode=0,Ur.drawTree.paintStatus=mn["b"].psPreview,Ur.drawTree.rebuildAllDrawLine(!1,Tr)}))})),Kr=Kr.then((function(){return new Promise((function(Tr){var Dr=Ur.pageProperty.widthMm>Ur.pageProperty.heightMm?"l":"p",zr={orientation:Dr,unit:"px",format:[Ur.pageProperty.widthPixes,Ur.pageProperty.heightPixes],hotfixes:["px_scaling"]},Vr=new Oo["d"](zr);Vr.setFont("SimSun"),xn["a"].printToPDF(Rr._hoEditorFactoryID,Vr,Hr,Wr,Tr)}))})),Kr.then((function(Tr){Ur.drawTree.paintStatus=zr,Ur.vueController.openXml(Vr)}))}else this._waitSavepdf=!0}},{key:"printPromisePDF",value:function printPromisePDF(Tr,Dr,Rr){var Ur=this;if(!this._isSetFont)return this._waitPrint=!0,void Ea.a.alert("<p>打印所需文件正在加载中,请稍候</p><p>加载完成后会自动进行打印</p>","提示",{iconClass:"el-icon-loading",center:!0,showConfirmButton:!1,dangerouslyUseHTMLString:!0});var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Hr.isHideComments||Hr.vueController.hideComments(!0),void 0==Tr&&(Tr=Hr.drawTree.paintStatus),Dr&&Rr){var Wr=Rr.replace(/\s*/g,"").replace(/[^\d]/g,",").split(","),zr=Hr.drawTree.drawPages.length,Vr=Wr.filter((function(Tr){return Tr&&Number(Tr)>zr}));if(Vr.length>0)return"指定页输入超出文档页范围"}var Kr=new Promise((function(Tr,Ur){try{Hr.printStatus.printMode=Dr||0,3===Dr&&Rr&&(Hr.printStatus.printAppoint=Rr),Hr.drawTree.paintStatus=mn["b"].psPreview,Hr.drawTree.rebuildAllDrawLine(!1,Tr)}catch(Wr){Ur(!1)}}));Kr.then((function(Tr){if(Tr)return new Promise((function(Tr,Dr){var Rr=Hr.pageProperty.widthMm>Hr.pageProperty.heightMm?"l":"p",Wr={orientation:Rr,unit:"px",format:[Hr.pageProperty.widthPixes,Hr.pageProperty.heightPixes],hotfixes:["px_scaling"]},zr=new Oo["d"](Wr);zr.setFont("SimSun"),xn["a"].printToPDF(Ur._hoEditorFactoryID,zr,void 0,void 0,Tr)}))})).then((function(Dr){"printend"===Dr&&(Hr.drawTree.paintStatus=Tr,Hr.printStatus.printRange=2,Hr.printStatus.drawPrintRecord.clear(),Hr.printStatus.clearArea(),Hr.vueController.rebuildAll(!1))}))}},{key:"printToPDF",value:function printToPDF(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return xn["a"].printToPDF(this._hoEditorFactoryID),Tr.printStatus.printRecord.last()}},{key:"setDocStartInfo",value:function setDocStartInfo(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.startPageNum=Tr,Rr.firstPageStartTop=Dr,Rr.drawTree.rebuildAllDrawLine(!1)}},{key:"setEditorStatus",value:function setEditorStatus(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.printStatus.printRange=Tr}},{key:"mergeXmlToPrintPDF",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee2(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r=this;return regeneratorRuntime.wrap((function _callee2$(Jr){while(1)switch(Jr.prev=Jr.next){case 0:return Dr=Tr.xmlList,Rr=Tr.positionY,Ur=Tr.pageNum,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=Hr.drawTree.paintStatus,zr=Hr.vueController.getDocXml(),Hr.isHideComments||Hr.vueController.hideComments(!0),Hr.printStatus.printMode=0,Hr.drawTree.paintStatus=mn["b"].psPreview,Vr=Promise.resolve(),Dr.forEach((function(Tr,Dr){Vr=Vr.then((function(Rr){return new Promise((function(Rr){0===Dr?(void 0!==Ur&&(Hr.startPageNum=Ur),Promise.all([Hr.vueController.openXml(Tr.xml,void 0,!0)]).then((function(){0===Hr.loadImageCount?(Rr(),Hr.loadImageCallback=null):Hr.loadImageCallback=Rr}))):Promise.all([Hr.vueController.mergeDocs(Tr.xml,Tr.isMerge,void 0,!0)]).then((function(){0===Hr.loadImageCount?(Rr(),Hr.loadImageCallback=null):Hr.loadImageCallback=Rr}))}))}))})),Vr=Vr.then((function(){return new Promise(function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr){var Dr,Ur,Wr;return regeneratorRuntime.wrap((function _callee$(zr){while(1)switch(zr.prev=zr.next){case 0:Dr=Hr.pageProperty.widthMm>Hr.pageProperty.heightMm?"l":"p",Ur={orientation:Dr,unit:"px",format:[Hr.pageProperty.widthPixes,Hr.pageProperty.heightPixes],hotfixes:["px_scaling"]},Wr=new Oo["d"](Ur),Wr.setFont("SimSun"),xn["a"].printToPDF($r._hoEditorFactoryID,Wr,void 0,void 0,Tr,Rr);case 5:case"end":return zr.stop()}}),_callee)})));return function(Dr){return Tr.apply(this,arguments)}}())})),Jr.next=14,Vr.then((function(Tr){return new Promise((function(Tr){var Dr,Ur=Hr.printStatus.printRecord.last(),Vr=Hr.drawTree.drawPages[Hr.startPageNum],Kr=Vr.drawMainDoc.dHeight,$r=Vr.drawHeader.dHeight,Jr=0;Jr=Kr+$r-Rr<Hr.defaultLineHeight?Hr.startPageNum+1:Hr.startPageNum,Ur&&(Dr=[Jr].concat(Object(Gr["a"])(Ur))),Hr.drawTree.paintStatus=Wr,Hr.printStatus.drawPrintRecord.Position=[0,0],Hr.startPageNum=0,Hr.firstPageStartTop=0,Hr.vueController.openXml(zr),Tr(Dr)}))}));case 14:if(Kr=Jr.sent,!Kr){Jr.next=17;break}return Jr.abrupt("return",{startPageNum:Kr[0],pageNum:Kr[1],positionY:Kr[2]});case 17:return Jr.abrupt("return",null);case 18:case"end":return Jr.stop()}}),_callee2,this)})));function mergeXmlToPrintPDF(Dr){return Tr.apply(this,arguments)}return mergeXmlToPrintPDF}()},{key:"pintAllToPDF",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee3(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr=this;return regeneratorRuntime.wrap((function _callee3$(Jr){while(1)switch(Jr.prev=Jr.next){case 0:Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.paintStatus,Ur=Dr.vueController.getDocXml(),Dr.isHideComments||Dr.vueController.hideComments(!0),Dr.printStatus.printMode=0,Dr.drawTree.paintStatus=mn["b"].psPreview,Hr=-1,zr=ko.a.service({target:"ho-docs",spinner:"el-icon-loading",background:"rgba(246, 246, 246, 1)",text:"准备打印中"}),Vr=function callback(Tr){zr.text="正在加载病历文件:"+Tr.text},Kr=function toPrint(Tr){xn["a"].printAllXml(Gr._hoEditorFactoryID,$r,Wr)},$r=function createSvg(){if(Hr++,Hr<=Tr.length-1)Promise.all([Dr.vueController.openXml(Tr[Hr],Vr)]).then((function(){if(0===Hr){var Tr=Dr.pageProperty.widthMm>Dr.pageProperty.heightMm?"l":"p",Rr={orientation:Tr,unit:"px",format:[Dr.pageProperty.widthPixes,Dr.pageProperty.heightPixes],hotfixes:["px_scaling"]};Wr=new Oo["d"](Rr),Wr.setFont("SimSun")}0===Dr.loadImageCount?(Kr(),Dr.loadImageCallback=null):Dr.loadImageCallback=Kr}));else{zr&&zr.close(),Dr.drawTree.paintStatus=Rr,Dr.vueController.openXml(Ur),Wr.deletePage(1);var $r=Dr.vueController.getDocTitle()?Dr.vueController.getDocTitle():"电子病历文档";xn["a"].openDataUriInWindow(Wr,$r,Dr.pageProperty.widthPixes)}},$r();case 12:case"end":return Jr.stop()}}),_callee3,this)})));function pintAllToPDF(Dr){return Tr.apply(this,arguments)}return pintAllToPDF}()},{key:"viewAll",value:function viewAll(Tr){var Dr,Rr=this,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.printStatus.printMode=0,Ur.drawTree.paintStatus=mn["b"].psPreview,Ur.continuousView.status?this._viewXmlList=[].concat(Object(Gr["a"])(this._viewXmlList),Object(Gr["a"])(Tr)):(Ur.continuousView.status=!0,Ur.continuousView.currentList=[],this._viewXmlList=Object(Gr["a"])(Tr),this._xmlIndex=0);var Hr=function toPrint(){Dr=document.createElement("div"),xn["a"].printToHtml(Rr._hoEditorFactoryID,Wr,Dr)},Wr=function createSvg(){if(Rr._xmlIndex>0&&Dr){var Tr=Ur.pageProperty.widthMm>Ur.pageProperty.heightMm?"l":"p";Dr.dataset.size=Ur.pageProperty.pageSize,Dr.dataset.orientation=Tr,Rr._xmlIndex<3?(Ur.continuousView.currentList.push(Dr),Ur.continuousView.allList.push(Dr)):Ur.continuousView.allList.push(Dr)}Rr._xmlIndex<=Rr._viewXmlList.length-1&&Rr._viewXmlList[Rr._xmlIndex]&&(Promise.all([Ur.vueController.openXml(Rr._viewXmlList[Rr._xmlIndex])]).then((function(){0===Ur.loadImageCount?(Hr(),Ur.loadImageCallback=null):Ur.loadImageCallback=Hr})),Rr._xmlIndex++)};Wr()}},{key:"mergeViewAll",value:function mergeViewAll(Tr,Dr){var Rr=this,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.isHideComments||Ur.vueController.hideComments(!0),Ur.printStatus.printMode=0,Ur.drawTree.paintStatus=mn["b"].psReadOnly,Ur.continuousView.status?this._viewXmlList=[].concat(Object(Gr["a"])(this._viewXmlList),Object(Gr["a"])(Tr)):(Ur.continuousView.status=!0,this._viewXmlList=Object(Gr["a"])(Tr),this._xmlIndex=-1);var Hr=function createSvg(){if(Rr._xmlIndex++,Rr._xmlIndex<=Rr._viewXmlList.length-1){var Tr="string"!=typeof Rr._viewXmlList[Rr._xmlIndex],Hr=Tr?Rr._viewXmlList[Rr._xmlIndex].xml:Rr._viewXmlList[Rr._xmlIndex],Wr=!!Tr&&Rr._viewXmlList[Rr._xmlIndex].isMerge;0===Rr._xmlIndex?Promise.all([Ur.vueController.openXml(Hr,void 0,!0)]).then((function(){0==Ur.loadImageCount?(Ur.loadImageCallback=null,createSvg()):Ur.loadImageCallback=createSvg})):Promise.all([Ur.vueController.mergeDocs(Hr,Wr,void 0,!0)]).then((function(){0==Ur.loadImageCount?(Ur.loadImageCallback=null,createSvg()):Ur.loadImageCallback=createSvg})),Rr._xmlIndex,Rr._viewXmlList.length,Dr&&(Rr._xmlIndex=0,Rr._viewXmlList=[])}};Hr()}}]),PrintController}(),Mo=function(){function ReviewController(Tr){Object(Xr["a"])(this,ReviewController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(ReviewController,[{key:"insertComment",value:function insertComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertComment(Tr)}},{key:"deleteComment",value:function deleteComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.deleteComment(Tr)}},{key:"editComment",value:function editComment(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.editComment(Tr,Dr)}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"hideComments",value:function hideComments(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.hideComments(Tr)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.setReviewLevelColor(Tr)}},{key:"cancelDel",value:function cancelDel(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.cancelDel()}}]),ReviewController}(),No=function(){function SelectController(Tr){Object(Xr["a"])(this,SelectController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(SelectController,[{key:"getDomRange",value:function getDomRange(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();return Dr}},{key:"setDomRange",value:function setDomRange(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.setDomRange(Tr,Dr)}},{key:"moveCaretToPath",value:function moveCaretToPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.drawTree.moveCaretToPath(Tr)}},{key:"getCaretPosition",value:function getCaretPosition(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.docTree.curDomRange.endPath}},{key:"getRangeText",value:function getRangeText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.getRangeText(Tr)}}]),SelectController}(),Lo=function(){function TableController(Tr){Object(Xr["a"])(this,TableController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(TableController,[{key:"insertTable",value:function insertTable(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.insertTable(Tr,Dr)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableRowAbove(Tr)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableRowBelow(Tr)}},{key:"insertTableColLeft",value:function insertTableColLeft(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableColLeft(Tr)}},{key:"insertTableColRight",value:function insertTableColRight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableColRight(Tr)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableUnMergerCells()}},{key:"tableProperty",value:function tableProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.tableProperty(Tr,Dr)}},{key:"rowProperty",value:function rowProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.rowProperty(Tr,Dr)}},{key:"colProperty",value:function colProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.colProperty(Tr,Dr)}},{key:"cellProperty",value:function cellProperty(Tr,Dr){for(var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=0,Hr=Dr.length;Ur<Hr;Ur++){var Wr=Dr[Ur];Rr.vueController.cellProperty(Tr,Wr),Wr.drawCell.needUpdate=!0}Dr.length>0&&Dr[0].table.update()}},{key:"insertTableFormula",value:function insertTableFormula(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.vueController.insertTableFormula(Tr,Dr,Rr)}}]),TableController}(),Ao=Rr("4c9c"),Ro=Rr("9cfd"),Fo=function(){function FormatPainterUndoUnit(Tr,Dr,Rr,Ur,Hr){Object(Xr["a"])(this,FormatPainterUndoUnit),this._hoEditorFactoryID=Tr,this._undo=new xa["a"](this._hoEditorFactoryID),this._startPath=Dr,this._endPath=Rr,this._newStyle=Ur,this._newParaNo=Hr,this._undoNodes=new Array,this._opTime=new Date,this._affectText=""}return Object(Yr["a"])(FormatPainterUndoUnit,[{key:"isEmpty",get:function get(){return!1}},{key:"undo",value:function undo(){while(!this._undo.atBottom())this._undo.undo()}},{key:"redo",value:function redo(){this._undoNodes.length=0,this._undo.clear(),this._undo.begin();var Tr=new Ro["b"]("formatPainter",this._newParaNo);this._undo.add(new Ao["a"](this._hoEditorFactoryID,this._startPath,this._endPath,Tr)),this._undo.commit(),this._undo.begin();var Dr=new Ro["b"]("formatPainter",this._newStyle);this._undo.add(new Ro["a"](this._hoEditorFactoryID,this._startPath,this._endPath,Dr)),this._undo.commit()}},{key:"merge",value:function merge(Tr){return!1}},{key:"actionString",value:function actionString(){return"格式刷"}},{key:"affectText",get:function get(){return this._affectText}},{key:"opTime",get:function get(){return this._opTime}}]),FormatPainterUndoUnit}(),jo=function(){function FormatPainter(Tr){Object(Xr["a"])(this,FormatPainter),this._hoeditorFactoryID=Tr,this._storeFontStyleNo=0,this._storeParaStyleNo=0,this._continuePainter=!1,this._inuse=!1}return Object(Yr["a"])(FormatPainter,[{key:"inuse",get:function get(){return this._inuse}},{key:"startFormatPainter",value:function startFormatPainter(Tr,Dr,Rr,Ur){this._storeFontStyleNo=Dr,this._storeParaStyleNo=Rr,this._continuePainter=Ur,this._inuse=!0,this._formatNode=Tr,this._formatNode.className="sub-bar-item ho-format-paint selected",document.body.className="format-cursor"}},{key:"useFormatPainter",value:function useFormatPainter(){var Tr=Tn["a"].instance().getFactory(this._hoeditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();Tr.undoService.begin(),Tr.undoService.add(new Fo(this._hoeditorFactoryID,Dr.startPath,Dr.endPath,this._storeFontStyleNo,this._storeParaStyleNo)),Tr.undoService.commit(),this._continuePainter||this.finishFormatPainter()}},{key:"finishFormatPainter",value:function finishFormatPainter(){this._inuse=!1,this._continuePainter=!1,this._formatNode.className="sub-bar-item ho-format-paint",document.body.className=""}}]),FormatPainter}(),Bo=Rr("a002"),Uo=Rr.n(Bo),Ho=function(){function HoLocalStorage(Tr){Object(Xr["a"])(this,HoLocalStorage),this._intervalsTime=3e4,this._expirationTime=108e5,this._storeName="web_list",this._hoEditorFactoryID=Tr}return Object(Yr["a"])(HoLocalStorage,[{key:"initHoWebSql",value:function initHoWebSql(){this._ho_web=Uo.a.createInstance({name:"_ho_web",storeName:this._storeName}),this._print_font=Uo.a.createInstance({name:"_ho_web",storeName:"_print_font"}),this._cache_clear_time=Uo.a.createInstance({name:"_ho_web",storeName:"_cache_clear_time"})}},{key:"getLocalStorage",value:function getLocalStorage(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return this._key=Tr.userInfo.id+Tr.docTree.docProperty.patientID+Tr.docTree.docProperty.title,this._ho_web.getItem(this._key)}},{key:"removeLocalStorage",value:function removeLocalStorage(Tr){var Dr=this;this._ho_web.keys().then((function(Tr){Tr.forEach((function(Tr){Dr._ho_web.getItem(Tr).then((function(Rr){Array.isArray(Rr)?(new Date).getTime()-new Date(Rr[0].saveTime).getTime()&&Dr._ho_web.removeItem(Tr):(new Date).getTime()-new Date(Rr.saveTime).getTime()&&Dr._ho_web.removeItem(Tr)}))}))}))}},{key:"clearLocalStorage",value:function clearLocalStorage(){this._ho_web.clear().then((function(){}))}},{key:"autoSaveLocalStorage",value:function autoSaveLocalStorage(){var Tr=this;if(!(this._lastSaveTime&&(new Date).getTime()-this._lastSaveTime<=this._intervalsTime)){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._key=Dr.userInfo.id+Dr.docTree.docProperty.patientID+Dr.docTree.docProperty.title,this._ho_web.getItem(this._key).then((function(Rr){var Ur=Object(Jn["d"])(new Date);if(Rr){if(Array.isArray(Rr)?Tr._lastSaveTime=new Date(Rr[0].saveTime).getTime():Tr._lastSaveTime=new Date(Rr.saveTime).getTime(),(new Date).getTime()-Tr._lastSaveTime<=Tr._intervalsTime)return}else Tr._lastSaveTime=new Date(Ur).getTime();var Hr=Object(Gr["a"])(Dr.domController.getLogs());if(Rr)if(Array.isArray(Rr))Rr.unshift({xml:Dr.structureConvert.doc2Xml("xml",!0),saveTime:Ur,logs:Hr}),3===Rr.length&&Rr.pop(),Tr._ho_web.setItem(Tr._key,Rr);else{var Wr=[];Wr.push({xml:Dr.structureConvert.doc2Xml("xml",!0),saveTime:Ur,logs:Hr}),Wr.push(Rr),Tr._ho_web.setItem(Tr._key,Wr)}else{var zr=[];zr.push({xml:Dr.structureConvert.doc2Xml("xml",!0),saveTime:Ur,logs:Hr}),Tr._ho_web.setItem(Tr._key,zr)}Tr._cache_clear_time.getItem("_cache_clear_time").then((function(Dr){var Rr=Dr;Dr||(Rr=(new Date).getTime(),Tr._cache_clear_time.setItem("_cache_clear_time",Rr)),Tr._lastClearTime=Rr,(new Date).getTime()-Dr>=Tr._expirationTime&&(Tr.removeLocalStorage(Dr),setTimeout((function(){Tr._cache_clear_time.setItem("_cache_clear_time",(new Date).getTime())}),0))}))}))}}},{key:"saveFontString",value:function saveFontString(Tr){this._print_font.setItem("sunsim_font",Tr)}},{key:"loadFontString",value:function loadFontString(){return this._print_font.getItem("sunsim_font")}}]),HoLocalStorage}(),Wo=Ho,qo=function(){function HOEditorFactory(Tr){Object(Xr["a"])(this,HOEditorFactory),this._loadImageCount=0,this._loadImageCallback=null,this._defaultLineHeight=-1,this._startPageNum=0,this._firstPageStartTop=0,this._signHeight=20,this._pasteBase=!1,this._isHideComments=!0,this._openXmled=!1,this._isThrowError=!0,this._lastSaveTime=new Date(Date.now()),this._superiorSigns=[],this._hoEditorFactoryId=Tr}return Object(Yr["a"])(HOEditorFactory,[{key:"hoLocalStorage",get:function get(){return this._hoLocalStorage||(this._hoLocalStorage=new Wo(this._hoEditorFactoryId)),this._hoLocalStorage}},{key:"baseController",get:function get(){return this._baseController||(this._baseController=new xo(this._hoEditorFactoryId)),this._baseController}},{key:"domController",get:function get(){return this._domController||(this._domController=new Co(this._hoEditorFactoryId)),this._domController}},{key:"editController",get:function get(){return this._editController||(this._editController=new Po(this._hoEditorFactoryId)),this._editController}},{key:"elementController",get:function get(){return this._elementController||(this._elementController=new Eo(this._hoEditorFactoryId)),this._elementController}},{key:"nodeController",get:function get(){return this._nodeController||(this._nodeController=new So(this._hoEditorFactoryId)),this._nodeController}},{key:"printController",get:function get(){return this._printController||(this._printController=new Io(this._hoEditorFactoryId)),this._printController}},{key:"reviewController",get:function get(){return this._reviewController||(this._reviewController=new Mo(this._hoEditorFactoryId)),this._reviewController}},{key:"selectController",get:function get(){return this._selectController||(this._selectController=new No(this._hoEditorFactoryId)),this._selectController}},{key:"tableController",get:function get(){return this._tableController||(this._tableController=new Lo(this._hoEditorFactoryId)),this._tableController}},{key:"defaultLineHeight",get:function get(){return-1==this._defaultLineHeight&&(this._defaultLineHeight=Math.round(this.docTree.defaultCombineStyle.getFontHeightByFontSize(this.docTree.defaultCombineStyle.size))),this._defaultLineHeight},set:function set(Tr){Tr!==this._defaultLineHeight&&(this._defaultLineHeight=Tr)}},{key:"userInfo",get:function get(){if(!this._userInfo){var Tr=this.gernerateCode.generateID("USER");this._userInfo=new ya["a"](this._hoEditorFactoryId),this._userInfo.setUserInfo(Tr,"李医生",1,"")}return this._userInfo},set:function set(Tr){this._userInfo=Tr}},{key:"option",get:function get(){return this._option||(this._option=new ba(this._hoEditorFactoryId)),this._option},set:function set(Tr){this._option=Tr}},{key:"hoEditorFactoryIndex",get:function get(){return this._hoEditorFactoryIndex},set:function set(Tr){this._hoEditorFactoryIndex=Tr}},{key:"docTree",get:function get(){return this._docTree||(this._docTree=new gn["c"](this._hoEditorFactoryId)),this._docTree}},{key:"drawTree",get:function get(){return this._drawTree||(this._drawTree=new mn["a"](this._hoEditorFactoryId),this._drawTree.init()),this._drawTree}},{key:"drawPageTree",get:function get(){return this._drawPageTree||(this._drawPageTree=new _a(this._hoEditorFactoryId)),this._drawPageTree}},{key:"vueController",get:function get(){return this._vueController||(this._vueController=new wo(this._hoEditorFactoryId)),this._vueController}},{key:"docController",get:function get(){return this._docController||(this._docController=new ia["a"](this._hoEditorFactoryId)),this._docController}},{key:"pageProperty",get:function get(){return this._pageProperty||(this._pageProperty=new aa["a"](this._hoEditorFactoryId)),this._pageProperty},set:function set(Tr){Tr!==this._pageProperty&&(this._pageProperty=Tr)}},{key:"undoService",get:function get(){return this._undoService||(this._undoService=new xa["a"](this._hoEditorFactoryId)),this._undoService}},{key:"subDocManger",get:function get(){return this._subDocManger||(this._subDocManger=new On["b"](this._hoEditorFactoryId)),this._subDocManger}},{key:"formatPainter",get:function get(){return this._formatPainter||(this._formatPainter=new jo(this._hoEditorFactoryId)),this._formatPainter}},{key:"printStatus",get:function get(){return this._printStatus||(this._printStatus=new xn["c"](this._hoEditorFactoryId)),this._printStatus}},{key:"timeStamp",get:function get(){return this._timeStamp||(this._timeStamp=new wa(this._hoEditorFactoryId)),this._timeStamp}},{key:"gernerateCode",get:function get(){return this._gernerateCode||(this._gernerateCode=new Ca(this._hoEditorFactoryId)),this._gernerateCode}},{key:"htmlConverter",get:function get(){return this._htmlConverter||(this._htmlConverter=new Ia(this._hoEditorFactoryId)),this._htmlConverter}},{key:"structureConvert",get:function get(){return this._structureConvert||(this._structureConvert=new ro(this._hoEditorFactoryId)),this._structureConvert}},{key:"structureNode",get:function get(){return this._structureNode||(this._structureNode=new so(this._hoEditorFactoryId)),this._structureNode}},{key:"toHtmlConverter",get:function get(){return this._toHtmlConverter||(this._toHtmlConverter=new co(this._hoEditorFactoryId)),this._toHtmlConverter}},{key:"unitConvert",get:function get(){return this._unitConvert||(this._unitConvert=new uo["a"]),this._unitConvert}},{key:"nodeMouseMove",get:function get(){return this._nodeMouseMove||(this._nodeMouseMove=new va(this._hoEditorFactoryId)),this._nodeMouseMove}},{key:"testDataSet",get:function get(){return this._testDataSet||(this._testDataSet=new lo(this._hoEditorFactoryId)),this._testDataSet}},{key:"hoEditorFactoryId",get:function get(){return this._hoEditorFactoryId}},{key:"startPageNum",get:function get(){return this._startPageNum},set:function set(Tr){this._startPageNum!=Tr&&(this._startPageNum=Tr)}},{key:"firstPageStartTop",get:function get(){return this._firstPageStartTop},set:function set(Tr){this._firstPageStartTop!=Tr&&(this._firstPageStartTop=Tr)}},{key:"signHeight",get:function get(){return this._signHeight},set:function set(Tr){this._signHeight!==Tr&&(this._signHeight=Tr)}},{key:"pasteBase",get:function get(){return this._pasteBase},set:function set(Tr){this._pasteBase!==Tr&&(this._pasteBase=Tr)}},{key:"isHideComments",get:function get(){return this._isHideComments},set:function set(Tr){this._isHideComments!==Tr&&(this._isHideComments=Tr)}},{key:"continuousView",get:function get(){return this._continuousView},set:function set(Tr){this._continuousView!==Tr&&(this._continuousView=Tr)}},{key:"openXmled",get:function get(){return this._openXmled},set:function set(Tr){this._openXmled!==Tr&&(this._openXmled=Tr)}},{key:"isThrowError",get:function get(){return this._isThrowError},set:function set(Tr){this._isThrowError!==Tr&&(this._isThrowError=Tr)}},{key:"loadImageCount",get:function get(){return this._loadImageCount},set:function set(Tr){this._loadImageCount!==Tr&&(this._loadImageCount=Tr),this._loadImageCount<=0&&this._loadImageCallback&&(this._loadImageCallback(),this._loadImageCallback=null)}},{key:"loadImageCallback",set:function set(Tr){this._loadImageCallback=Tr}},{key:"lastSaveTime",get:function get(){return this._lastSaveTime},set:function set(Tr){this._lastSaveTime!==Tr&&(this._lastSaveTime=Tr)}},{key:"contentIsModify",get:function get(){return this._contentIsModify},set:function set(Tr){this._contentIsModify!==Tr&&(this._contentIsModify=Tr)}},{key:"superiorSigns",get:function get(){return this._superiorSigns},set:function set(Tr){this._superiorSigns!==Tr&&(this._superiorSigns=Tr)}}]),HOEditorFactory}(),HoFootervue_type_template_id_5908306a_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"ho-footer"},[Rr("div",{staticClass:"footer-item"}),Rr("div",{staticClass:"footer-item"},[Rr("span",{staticClass:"text"},[Tr._v("第 "+Tr._s(Tr.currentActivePages+1===0?1:Tr.currentActivePages+1)+" 页 / 共 "+Tr._s(Tr.drawPages)+" 页")]),Tr.docName?Rr("span",{staticClass:"text"},[Tr._v("名称:"+Tr._s(Tr.docName))]):Tr._e(),Tr.userNames?Rr("span",{staticClass:"text"},[Tr._v("书写人:"+Tr._s(Tr.userNames))]):Tr._e(),Tr.historyTime?Rr("span",{staticClass:"text"},[Tr._v("书写时间:"+Tr._s(Tr.historyTime))]):Tr._e()]),Rr("p",{staticStyle:{flex:"1"}}),Rr("div",{staticClass:"footer-item"})])},zo=[],Popervue_type_template_id_0f8bfa37_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.classSelected,style:Tr.poperStyle,on:{mouseenter:Tr.mouseenter,mouseleave:Tr.mouseleave}},[Tr._t("default",(function(){return[Rr("span",{class:Tr.classNames})]})),Tr.title&&Tr.show?Rr("Title",{attrs:{title:Tr.title,styles:Tr.styles}}):Tr._e()],2)},Vo=[],Titlevue_type_template_id_3d9d462b_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("transition",{attrs:{name:"fade"}},[Rr("span",{staticClass:"poper-title",style:Tr.styles},[Tr._v(Tr._s(Tr.title))])])},Ko=[],$o=function(Tr){Object(Qr["a"])(Title,Tr);var Dr=Object(Zr["a"])(Title);function Title(){return Object(Xr["a"])(this,Title),Dr.apply(this,arguments)}return Title}(mixins(Zn));__decorate([Prop()],$o.prototype,"title",void 0),__decorate([Prop({default:"bottom"})],$o.prototype,"placement",void 0),__decorate([Prop()],$o.prototype,"styles",void 0),$o=__decorate([an({name:"Title"})],$o);var Go=$o,Jo=Go,Xo=(Rr("6f4d"),normalizeComponent(Jo,Titlevue_type_template_id_3d9d462b_scoped_true_render,Ko,!1,null,"3d9d462b",null)),Yo=Xo.exports,Qo=function(Tr){Object(Qr["a"])(Poper,Tr);var Dr=Object(Zr["a"])(Poper);function Poper(){var Tr;return Object(Xr["a"])(this,Poper),Tr=Dr.apply(this,arguments),Tr.show=!1,Tr.styles={left:"0px",top:"0px"},Tr}return Object(Yr["a"])(Poper,[{key:"classNames",get:function get(){return"svg svg-"+this.svg}},{key:"classSelected",get:function get(){return this.selected?"sub-bar-item "+this.name+" selected":"sub-bar-item "+this.name}},{key:"created",value:function created(){this.bodyElement=document.querySelector("body")}},{key:"mouseenter",value:function mouseenter(Tr){if(Tr.currentTarget){var Dr=Tr.currentTarget.getBoundingClientRect();this.styles.left=Dr.x+"px","bottom"===this.placement?this.styles.top=Dr.y+Dr.height+13+"px":this.styles.top=Dr.y-Dr.height-3+"px",this.show=!0}}},{key:"mouseleave",value:function mouseleave(){this.show=!1,this.styles={left:"0px",top:"0px"}}}]),Poper}(Kr.a);__decorate([Prop()],Qo.prototype,"poperStyle",void 0),__decorate([Prop()],Qo.prototype,"selected",void 0),__decorate([Prop()],Qo.prototype,"title",void 0),__decorate([Prop()],Qo.prototype,"svg",void 0),__decorate([Prop({default:"bottom"})],Qo.prototype,"placement",void 0),__decorate([Prop({default:""})],Qo.prototype,"name",void 0),Qo=__decorate([an({name:"Poper",components:{Title:Yo}})],Qo);var Zo=Qo,es=Zo,ts=normalizeComponent(es,Popervue_type_template_id_0f8bfa37_render,Vo,!1,null,null,null),rs=ts.exports,ns=rs,as=function(Tr){Object(Qr["a"])(HoFooter,Tr);var Dr=Object(Zr["a"])(HoFooter);function HoFooter(){var Tr;return Object(Xr["a"])(this,HoFooter),Tr=Dr.apply(this,arguments),Tr.docType="",Tr.docName="",Tr.userNames="",Tr.historyTime="",Tr}return Object(Yr["a"])(HoFooter,[{key:"docPropertyChange",value:function docPropertyChange(Tr){this.setDocProperty(Tr)}},{key:"mounted",value:function mounted(){this.setDocProperty(this.docProperty)}},{key:"setDocProperty",value:function setDocProperty(Tr){this.docName=null===Tr||void 0===Tr?void 0:Tr.title,this.userNames=null===Tr||void 0===Tr?void 0:Tr.lastEditorName,this.historyTime=null===Tr||void 0===Tr?void 0:Tr.lastEditTime}}]),HoFooter}(Kr.a);__decorate([Prop()],as.prototype,"drawPages",void 0),__decorate([Prop()],as.prototype,"currentActivePages",void 0),__decorate([Prop()],as.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],as.prototype,"docProperty",void 0),__decorate([Watch("docProperty",{deep:!0})],as.prototype,"docPropertyChange",null),as=__decorate([an({name:"HoFooter",components:{Poper:ns}})],as);var os=as,ls=os,cs=(Rr("6d28"),normalizeComponent(ls,HoFootervue_type_template_id_5908306a_scoped_true_render,zo,!1,null,"5908306a",null)),us=cs.exports,ControlModalvue_type_template_id_3be7d6ee_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"toolModals",staticClass:"control-modal",on:{mousedown:Tr.toolModalDown}},["barcode"===Tr.controlType?Rr("Barcode",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose}}):Tr._e(),"qrcode"===Tr.controlType?Rr("QrCode",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose}}):Tr._e(),"express"===Tr.controlType?Rr("ExpressionForm",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController,controlStatus:Tr.controlStatus,controlProperty:Tr.controlProperty},on:{closed:Tr.handleClose}}):Tr._e(),"text"===Tr.controlType?Rr("TextDialog",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose},scopedSlots:Tr._u([{key:"hoTextFieldModal",fn:function(){return[Tr._t("hoTextModal")]},proxy:!0}],null,!0)}):Tr._e(),"date"===Tr.controlType?Rr("DateDialog",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose},scopedSlots:Tr._u([{key:"hoDateFieldModal",fn:function(){return[Tr._t("hoDateModal")]},proxy:!0},{key:"hoTextFieldModal",fn:function(){return[Tr._t("hoTextModal")]},proxy:!0}],null,!0)}):Tr._e(),"select"===Tr.controlType?Rr("SelectDialog",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController,controlStatus:Tr.controlStatus},on:{closed:Tr.handleClose}}):Tr._e(),"table"===Tr.controlType?Rr("TableProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"table-row"===Tr.controlType?Rr("TableRowProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"table-cell"===Tr.controlType?Rr("TableCellProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"table-col"===Tr.controlType?Rr("TableColProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),Tr.isCustoms?Rr("CustomAttributes",{on:{closed:Tr.handleClose}}):Tr._e(),Tr.isDataSource?Rr("DataSourceDialog",{on:{closed:Tr.handleClose}}):Tr._e(),Tr.isListStyle?Rr("ListSource",{on:{closed:Tr.handleClose}}):Tr._e(),"RadioBox"===Tr.controlType||"CheckBox"===Tr.controlType?Rr("RadioCheckbox",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId,controlProperty:Tr.controlProperty},on:{closed:Tr.handleClose}}):Tr._e(),"waterset"===Tr.controlType?Rr("WaterSetDialog",{attrs:{vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"comment"===Tr.controlType?Rr("CommentDialog",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus},on:{insertComments:Tr.insertComments,closed:Tr.handleClose}}):Tr._e(),"pageInfoes"===Tr.controlType?Rr("PageInfoes",{attrs:{vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"delimiter"===Tr.controlType?Rr("Delimiter",{attrs:{vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"sign"===Tr.controlType?Rr("Sign",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus},on:{closed:Tr.handleClose}}):Tr._e()],1)},ds=[],SelectDialogvue_type_template_id_3cb0320e_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("下拉框")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.innerIdentifier,callback:function(Dr){Tr.innerIdentifier=Dr},expression:"innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.dataMetaIdentifier,callback:function(Dr){Tr.dataMetaIdentifier=Dr},expression:"dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.identifierFormat,callback:function(Dr){Tr.identifierFormat=Dr},expression:"identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:Tr.name,callback:function(Dr){Tr.name=Dr},expression:"name"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:Tr.tipText,callback:function(Dr){Tr.tipText=Dr},expression:"tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{model:{value:Tr.isReadOnly,callback:function(Dr){Tr.isReadOnly=Dr},expression:"isReadOnly"}},[Tr._v("内容只读")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{model:{value:Tr.isAllowDelete,callback:function(Dr){Tr.isAllowDelete=Dr},expression:"isAllowDelete"}},[Tr._v("允许删除")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{on:{change:Tr.allowMultiSelectChange},model:{value:Tr.allowMultiSelect,callback:function(Dr){Tr.allowMultiSelect=Dr},expression:"allowMultiSelect"}},[Tr._v("允许多选")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{model:{value:Tr.readType,callback:function(Dr){Tr.readType=Dr},expression:"readType"}},[Tr._v("自动回填")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{attrs:{disabled:!Tr.allowMultiSelect},model:{value:Tr.mutexSelect,callback:function(Dr){Tr.mutexSelect=Dr},expression:"mutexSelect"}},[Tr._v("选项互斥")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.downListContent,height:"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.type,callback:function(Rr){Tr.$set(Dr.row,"type",Rr)},expression:"scope.row.type"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Dr.row.default?Rr("span",{staticClass:"tags"},[Tr._v("默认")]):Tr._e(),Dr.row.default?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.cancelDefault(Dr.row.id)}}},[Tr._v("取消")]):Tr._e(),!Dr.row.default&&Dr.row.text?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.setDefault(Dr.row.id)}}},[Tr._v("设为默认")]):Tr._e(),Dr.$index!==Tr.downListContent.length-1&&Tr.focusIndexs===Dr.$index?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")]):Tr._e()]}}])})],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},hs=[],ps=function(Tr){Object(Qr["a"])(SelectDialog,Tr);var Dr=Object(Zr["a"])(SelectDialog);function SelectDialog(){var Tr;return Object(Xr["a"])(this,SelectDialog),Tr=Dr.apply(this,arguments),Tr.focusIndexs=-1,Tr.id="",Tr.name="",Tr.text="",Tr.title="下拉选择框",Tr.tipText="",Tr.isAllowDelete=!1,Tr.isReadOnly=!1,Tr.mutexSelect=!1,Tr.allowMultiSelect=!1,Tr.innerIdentifier="",Tr.dataMetaIdentifier="",Tr.identifierFormat="",Tr.readType=!1,Tr.keyValue="",Tr.customProperty={},Tr.errorArr=[],Tr.errorIndex=[],Tr.animationClassNames="control-modal-contents select-modal animation-in",Tr}return Object(Yr["a"])(SelectDialog,[{key:"created",value:function created(){var Tr=this,Dr=this.getKeyId(0),Rr=[{value:"",text:"",type:0,id:Dr,default:!1}];if("update"===this.controlStatus){var Ur=this.getSelectNode();this.id=Ur.id,this.name=Ur.name,this.text=Ur.text,this.title=Ur.title,this.tipText=Ur.tipText,this.isAllowDelete=Ur.isAllowDelete,this.isReadOnly=Ur.isReadOnly,this.mutexSelect=Ur.mutexSelect,this.allowMultiSelect=Ur.allowMultiSelect;var Hr=[];Ur.downListContent&&(Hr=Ur.downListContent),this.readType=1==Ur.readType,this.downListContent=[].concat(Object(Gr["a"])(Hr),Rr),this.downListContent=Object(Gr["a"])(this.downListContent.map((function(Dr,Rr){return void 0===Dr.id&&(Dr.id=Tr.getKeyId(Rr)),Ur.keyValue.includes(Dr.id)?Dr.default=!0:Dr.default=!1,Dr}))),this.innerIdentifier=Ur.innerIdentifier,this.dataMetaIdentifier=Ur.dataMetaIdentifier,this.identifierFormat=Ur.identifierFormat,this.keyValue=Ur.keyValue,this.customProperty=Ur.customProperty}else this.id=this.vueController.generateID("DL"),this.downListContent=[].concat(Rr)}},{key:"getSelectNode",value:function getSelectNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Qn["a"]&&(Dr=Hr),Dr}},{key:"allowMultiSelectChange",value:function allowMultiSelectChange(){this.allowMultiSelect||(this.mutexSelect=!1)}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.downListContent[Tr];if(""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.downListContent.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.downListContent.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0)this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id);else{this.errorIndex=[];var Rr=this.downListContent.filter((function(Tr){if(""===(null===Tr||void 0===Tr?void 0:Tr.value.replace(/\s*/g,""))&&""===(null===Tr||void 0===Tr?void 0:Tr.text.replace(/\s*/g,"")))return Tr}));0===Rr.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this,Rr=this.downListContent[Tr];this.errorArr=Object(Gr["a"])(this.downListContent.filter((function(Tr){if(Tr.text===(null===Rr||void 0===Rr?void 0:Rr.text)&&Tr.id!==(null===Rr||void 0===Rr?void 0:Rr.id))return Tr})));var Ur=Object(Gr["a"])(this.downListContent.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr})));this.errorArr.length>0?(this.errorIndex.includes(Rr.id)||this.errorIndex.push(Rr.id),Ur.forEach((function(Tr){Dr.deleteCurrentRow(Tr.id)}))):(this.errorIndex=[],0===Ur.length&&this.addCustoms())}},{key:"addCustoms",value:function addCustoms(){this.downListContent.push({text:"",value:"",type:0,id:this.getKeyId(),default:!1})}},{key:"setDefault",value:function setDefault(Tr){var Dr=this;this.downListContent=Object(Gr["a"])(this.downListContent.map((function(Rr){return Rr.id===Tr?""!==Rr.text.replace(/\s*/g,"")&&(Rr.default=!0):Dr.allowMultiSelect||(Rr.default=!1),Rr})))}},{key:"cancelDefault",value:function cancelDefault(Tr){this.downListContent=Object(Gr["a"])(this.downListContent.map((function(Dr){return Dr.id===Tr&&(Dr.default=!1),Dr})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.downListContent.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.downListContent.splice(Dr,1)}},{key:"arrToObject",value:function arrToObject(){var Tr={};return this.downListContent.map((function(Dr){var Rr=Dr;Tr[Rr.text]=Rr.value})),Tr}},{key:"sure",value:function sure(){var Tr=this;if(0!==this.errorArr.length)return!1;var Dr=this.downListContent.filter((function(Tr){if(Tr.text||Tr.value)return Tr})),Rr=[],Ur="";this.downListContent.forEach((function(Tr,Dr){Tr.default&&(Rr.push(Tr.text),Ur+=Tr.id+",")})),this.text=Rr.join(","),""===this.text&&(this.name?this.text=this.name:this.text="请选择");var Hr={id:this.id,name:this.name,text:this.text,keyValue:Ur,title:"下拉选择框",tipText:this.tipText,isAllowDelete:this.isAllowDelete,isReadOnly:this.isReadOnly,allowMultiSelect:this.allowMultiSelect,innerIdentifier:this.innerIdentifier,dataMetaIdentifier:this.dataMetaIdentifier,identifierFormat:this.identifierFormat,readType:this.readType,mutexSelect:this.mutexSelect,customProperty:this.customProperty};Hr.readType?Hr.readType=1:Hr.readType=0,"add"===this.controlStatus?this.vueController.insertDownList("add",JSON.stringify(Hr),Dr):"update"===this.controlStatus&&this.vueController.updateDownList(JSON.stringify(Hr),Dr),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents select-modal animation-out",this.$emit("closed")}}]),SelectDialog}(Kr.a);__decorate([Prop()],ps.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],ps.prototype,"controlStatus",void 0),__decorate([Prop()],ps.prototype,"vueController",void 0),ps=__decorate([an({name:"SelectDialog"})],ps);var fs=ps,_s=fs,gs=(Rr("d6dc"),normalizeComponent(_s,SelectDialogvue_type_template_id_3cb0320e_scoped_true_render,hs,!1,null,"3cb0320e",null)),ms=gs.exports,vs=ms,DateDialogvue_type_template_id_3f07b3fe_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("日期时间")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("tabs",{attrs:{tabKey:Tr.textActiveName}},[Rr("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.innerIdentifier,callback:function(Dr){Tr.innerIdentifier=Dr},expression:"innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.dataMetaIdentifier,callback:function(Dr){Tr.dataMetaIdentifier=Dr},expression:"dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.identifierFormat,callback:function(Dr){Tr.identifierFormat=Dr},expression:"identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:Tr.name,callback:function(Dr){Tr.name=Dr},expression:"name"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("输入样式")]),Rr("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:Tr.controlStyle,callback:function(Dr){Tr.controlStyle=Dr},expression:"controlStyle"}},Tr._l(Tr.dateFormatList,(function(Tr){return Rr("el-option",{key:Tr,attrs:{label:Tr,value:Tr}})})),1)],1)]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("日期时间")]),Tr.controlStyle.includes("MM")&&!Tr.controlStyle.includes("dd")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"month",placeholder:"选择月"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),Tr.controlStyle.includes("yyyy")&&!Tr.controlStyle.includes("MM")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"year",placeholder:"选择年"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),Tr.controlStyle.includes("dd")&&Tr.controlStyle.includes("mm")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"datetime",format:Tr.controlStyle,placeholder:"日期时间"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),!Tr.controlStyle.includes("dd")&&Tr.controlStyle.includes("mm")?Rr("el-time-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"time",format:Tr.controlStyle,placeholder:"时间"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),!Tr.controlStyle.includes("mm")&&Tr.controlStyle.includes("dd")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"date",format:Tr.controlStyle,placeholder:"日期"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e()],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:Tr.tipText,callback:function(Dr){Tr.tipText=Dr},expression:"tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{model:{value:Tr.isReadOnly,callback:function(Dr){Tr.isReadOnly=Dr},expression:"isReadOnly"}},[Tr._v("内容只读")])],1),Rr("div",{staticStyle:{margin:"0 0 0 20px"}},[Rr("el-checkbox",{model:{value:Tr.isAllowDelete,callback:function(Dr){Tr.isAllowDelete=Dr},expression:"isAllowDelete"}},[Tr._v("允许删除")])],1),Rr("div",{staticClass:"control-item",staticStyle:{"margin-left":"20px"}},[Rr("el-checkbox",{model:{value:Tr.readType,callback:function(Dr){Tr.readType=Dr},expression:"readType"}},[Tr._v("自动回填")])],1)])])]),Tr._t("hoTextFieldModal")],2)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},ys=[],Tabvue_type_template_id_7c6c4d81_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"ho-toolbar"},[Rr("ul",{staticClass:"main-bar"},[Tr._l(Tr.navList,(function(Dr){return Rr("li",{key:Dr.name,class:{selected:Dr.name===Tr.currentValue},on:{click:function(Rr){return Tr.handleChange(Tr.currentValue,Dr.name)}}},[Tr._v(" "+Tr._s(Dr.label)+" ")])})),Rr("li",{staticClass:"tabs-active-bar",style:Tr.activeBarStyle})],2),Rr("div",{staticClass:"sub-bar-box"},[Tr._t("default")],2)])},bs=[],ws={name:"Tabs",props:["tabKey"],data:function data(){return{currentValue:this.tabKey?this.tabKey:"ho-edit",navList:[],activeBarStyle:{left:"0px",width:"68px"}}},methods:{getTabs:function getTabs(){return this.$children.filter((function(Tr){return"TabPane"===Tr.$options.name}))},updateNav:function updateNav(){var Tr=this;this.navList=[],this.getTabs().forEach((function(Dr,Rr){!1!==Dr.isShow&&(Tr.navList.push({label:Dr.label,name:Dr.name||Rr}),Dr.name||(Dr.name=Rr))})),this.currentValue||(this.currentValue=this.navList[0].name),this.updateStatus()},updateStatus:function updateStatus(){var Tr=this,Dr=this.getTabs();Dr.forEach((function(Dr){var Rr=Dr.name===Tr.currentValue;return Dr.show=Rr,Dr.show}))},handleChange:function handleChange(Tr,Dr){var Rr=this;this.currentValue=Dr,this.$emit("tabClick",Tr,Dr),this.$nextTick((function(){var Tr=0,Dr=0;if(event){var Ur=event.target.parentNode;if("main-bar"===Ur.className){var Hr=Array.from(Ur.childNodes);Hr.forEach((function(Rr){var Ur=Rr.className;"selected"!==Ur&&"tabs-active-bar"!==Ur&&0===Tr&&(Dr+=Rr.offsetWidth),"selected"===Ur&&(Tr=Rr.offsetWidth)})),Rr.activeBarStyle={left:Dr+"px",width:Tr+"px"}}}}))}},watch:{tabKey:function tabKey(Tr){this.currentValue=Tr},currentValue:function currentValue(Tr,Dr){var Rr=this;this.updateStatus(),setTimeout((function(){Rr.$emit("updateTabKey",Rr.currentValue)}),0)}}},xs=ws,Cs=(Rr("7b87"),normalizeComponent(xs,Tabvue_type_template_id_7c6c4d81_render,bs,!1,null,null,null)),Ps=Cs.exports,Es=function(Tr){Object(Qr["a"])(DateDialog,Tr);var Dr=Object(Zr["a"])(DateDialog);function DateDialog(){var Tr;return Object(Xr["a"])(this,DateDialog),Tr=Dr.apply(this,arguments),Tr.dateFormat=Jn["d"],Tr.dateFormatList=Jn["e"],Tr.textActiveName="first",Tr.customPropertyValue=new Object,Tr.id="",Tr.name="",Tr.text="",Tr.title="日期时间",Tr.tipText="",Tr.isAllowDelete=!1,Tr.isReadOnly=!1,Tr.controlStyle="yyyy/MM/dd",Tr.innerIdentifier="",Tr.dataMetaIdentifier="",Tr.identifierFormat="",Tr.readType=!1,Tr.animationClassNames="control-modal-contents date-modal animation-in",Tr}return Object(Yr["a"])(DateDialog,[{key:"customProperty",get:function get(){return this.getCustomProperty()}},{key:"created",value:function created(){var Tr=this;if("update"===this.controlStatus){var Dr=this.getDateNode();this.id=Dr.id,this.name=Dr.name,this.text=Dr.text&&Dr.text!==Dr.controlStyle&&Dr.text!==Dr.name?this.stringToDate(Dr.text,Dr.controlStyle):"",this.title=Dr.title,this.tipText=Dr.tipText,this.isAllowDelete=Dr.isAllowDelete,this.isReadOnly=Dr.isReadOnly,this.controlStyle=Dr.controlStyle,this.innerIdentifier=Dr.innerIdentifier,this.dataMetaIdentifier=Dr.dataMetaIdentifier,this.identifierFormat=Dr.identifierFormat,this.readType=1===Dr.readType,Object(_o["b"])(Dr.customProperty)?this.customPropertys=Dr.customProperty:this.customPropertys=new Object;var Rr=new Object;Object.keys(this.customPropertys).forEach((function(Dr){Rr[Dr]=Tr.customPropertys[Dr]})),this.customPropertyValue=_objectSpread2({},Rr)}else this.id=this.vueController.generateID("DT")}},{key:"getDateNode",value:function getDateNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Yn["a"]&&(Dr=Hr),Dr}},{key:"querySearch",value:function querySearch(Tr,Dr){Dr(Jn["f"])}},{key:"stringToDate",value:function stringToDate(Tr,Dr){var Rr="",Ur="",Hr="";return Dr.includes("yyyy")&&Dr.includes("mm")?Tr&&(Rr=Tr.split(" ")[0],Ur=Tr.split(" ")[1]):(Dr.includes("yyyy")&&(Rr=Tr),Dr.includes("mm")&&(Ur=Tr)),Rr&&(Rr=Rr.replace(/[^\d]/g,"/").substr(0,10)),Ur&&(Ur=Ur.replace(/[^\d]/g,":").substr(0,8)),Rr?(Hr=Rr,Ur&&(Hr+=" "+Ur.replace(/[^\d]/g,":").substr(0,8))):Hr=Ur.replace(/[^\d]/g,":").substr(0,8),Hr}},{key:"sure",value:function sure(){var Tr=this,Dr={id:this.id,name:this.name?this.name:this.controlStyle,text:this.text&&this.name!==this.text?this.dateFormat(this.text,this.controlStyle):"",title:"日期时间",tipText:this.tipText,isAllowDelete:this.isAllowDelete,isReadOnly:this.isReadOnly,controlStyle:this.controlStyle,innerIdentifier:this.innerIdentifier,dataMetaIdentifier:this.dataMetaIdentifier,identifierFormat:this.identifierFormat,readType:this.readType,labelText:this.name,customProperty:_objectSpread2({},this.customProperty)};Dr.readType?Dr.readType=1:Dr.readType=0,"add"===this.controlStatus?this.vueController.insertDateTime(this.controlStatus,JSON.stringify(Dr)):"update"===this.controlStatus&&this.vueController.updateDateTime(JSON.stringify(Dr)),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents date-modal animation-out",this.$emit("closed")}}]),DateDialog}(Kr.a);__decorate([Prop()],Es.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Es.prototype,"controlStatus",void 0),__decorate([Prop()],Es.prototype,"vueController",void 0),__decorate([Inject("getCustomProperty")],Es.prototype,"getCustomProperty",void 0),Es=__decorate([an({name:"DateDialog",components:{Tabs:Ps}})],Es);var Ss=Es,Ts=Ss,Ds=(Rr("839e"),normalizeComponent(Ts,DateDialogvue_type_template_id_3f07b3fe_render,ys,!1,null,null,null)),ks=Ds.exports,Os=ks,BarCodesvue_type_template_id_b90e0398_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("条形码")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("条形码内容")]),Rr("el-input",{attrs:{size:"mini",placeholder:"条形码内容不能为空",maxlength:"20","show-word-limit":""},on:{input:Tr.codeChange},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("是否显示文本")]),Rr("el-checkbox",{on:{change:Tr.codeChange},model:{value:Tr.isDisplayText,callback:function(Dr){Tr.isDisplayText=Dr},expression:"isDisplayText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1),Rr("fieldset",{staticClass:"fieldset"},[Rr("legend",[Tr._v("预 览")]),Rr("div",{staticClass:"bar-code"},[Rr("img",{directives:[{name:"show",rawName:"v-show",value:Tr.textContent&&!Tr.textField,expression:"textContent && !textField"}],ref:"barcode",attrs:{id:"barcode"}}),Rr("span",{directives:[{name:"show",rawName:"v-show",value:Tr.textContent&&Tr.textField,expression:"textContent && textField"}]},[Tr._v(Tr._s(Tr.textField))])])])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Is=[],Ms=Rr("62c5"),Ns=Rr.n(Ms),Ls=function(Tr){Object(Qr["a"])(Barcode,Tr);var Dr=Object(Zr["a"])(Barcode);function Barcode(){var Tr;return Object(Xr["a"])(this,Barcode),Tr=Dr.apply(this,arguments),Tr.id="",Tr.textContent="",Tr.barCodeStyle="CODE39",Tr.textAlign="center",Tr.isDisplayText=!1,Tr.stripWidth=2,Tr.textField="",Tr.textEslint=/^[a-zA-Z0-9_]+$/,Tr.animationClassNames="control-modal-contents barcode-modal animation-in",Tr}return Object(Yr["a"])(Barcode,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var Tr=this;if("update"===this.controlStatus){var Dr=this.getBarCodeNode();this.id=Dr.id,this.textContent=Dr.textContent,this.isDisplayText=Dr.isDisplayText,this.$nextTick((function(){return Tr.codeChange()}))}else this.id=this.vueController.generateID("BC")}},{key:"getBarCodeNode",value:function getBarCodeNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Ha["a"]&&(Dr=Hr),Dr}},{key:"codeChange",value:function codeChange(){if(this.textField="",this.textEslint.test(this.textContent)){var Tr=38;this.isDisplayText&&(Tr=24),Ns()("#barcode",this.textContent,{format:"",width:2,textAlign:"textAlign",text:this.textContent,fontSize:14,margin:0,height:Tr,textPosition:"bottom",textMargin:0,font:"宋体",displayValue:this.isDisplayText})}else this.textField=""}},{key:"sure",value:function sure(){var Tr=[this.barcode.naturalWidth,this.barcode.naturalHeight],Dr=Tr[0],Rr=Tr[1];"add"===this.controlStatus?this.vueController.insertBarcode(this.controlStatus,this.id,this.textContent,this.isDisplayText,this.barcode.src,Dr,Rr,JSON.stringify(this.dataSource)):"update"===this.controlStatus&&this.vueController.updateBarcode(this.id,this.textContent,this.isDisplayText,this.barcode.src,Dr,Rr,JSON.stringify(this.dataSource)),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents barcode-modal animation-out",this.$emit("closed")}}]),Barcode}(Kr.a);__decorate([Ref()],Ls.prototype,"barcode",void 0),__decorate([Prop()],Ls.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Ls.prototype,"controlStatus",void 0),__decorate([Prop()],Ls.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],Ls.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Ls.prototype,"getDataSource",void 0),Ls=__decorate([an({name:"Barcode"})],Ls);var As=Ls,Rs=As,Fs=(Rr("439c"),normalizeComponent(Rs,BarCodesvue_type_template_id_b90e0398_render,Is,!1,null,null,null)),js=Fs.exports,Bs=js,QrCodevue_type_template_id_bff70498_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("二维码")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("文本内容")]),Rr("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:4,maxRows:8},clearable:"",placeholder:"文本内容",maxlength:"256","show-word-limit":""},on:{input:Tr.codeChange},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("宽(高)")]),Rr("el-input-number",{attrs:{controls:!1,size:"mini",autocomplete:"off"},on:{change:Tr.qrSizeChange},model:{value:Tr.size,callback:function(Dr){Tr.size=Dr},expression:"size"}}),Rr("span",{staticStyle:{padding:"0 20px 0 10px"}},[Tr._v("px")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("纠错能力")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.correctLevel,callback:function(Dr){Tr.correctLevel=Dr},expression:"correctLevel"}},[Rr("el-option",{attrs:{label:"L: 7%的字码可被修正",value:"L"}}),Rr("el-option",{attrs:{label:"M: 15%的字码可被修正",value:"M"}}),Rr("el-option",{attrs:{label:"Q: 25%的字码可被修正",value:"Q"}}),Rr("el-option",{attrs:{label:"H: 30%的字码可被修正",value:"H"}})],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)]),Rr("div",{staticClass:"section-right"},[Rr("fieldset",{staticClass:"fieldset"},[Rr("legend",[Tr._v("预 览")]),Rr("div",{ref:"hoQrcode",style:Tr.qrCanvasBoxStyle,attrs:{id:"qrcode"}})])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Us=[],Hs=Rr("f2e5"),Ws=function(Tr){Object(Qr["a"])(QrCodeDialog,Tr);var Dr=Object(Zr["a"])(QrCodeDialog);function QrCodeDialog(){var Tr;return Object(Xr["a"])(this,QrCodeDialog),Tr=Dr.apply(this,arguments),Tr.id="",Tr.textContent="",Tr.correctLevel="M",Tr.size=80,Tr.animationClassNames="control-modal-contents qrcode-modal animation-in",Tr.qrCanvasBoxStyle={width:"170px",height:"170px"},Tr}return Object(Yr["a"])(QrCodeDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"mounted",value:function mounted(){var Tr=this;if("update"===this.controlStatus){var Dr=this.getQrcodeNode();this.id=Dr.id,this.textContent=Dr.textContent,this.correctLevel=Dr.correctLevel,setTimeout((function(){return Tr.codeChange()}),100)}else this.id=this.vueController.generateID("QC")}},{key:"getQrcodeNode",value:function getQrcodeNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Wa["a"]&&(Dr=Hr),Dr}},{key:"qrSizeChange",value:function qrSizeChange(){this.size>400&&(this.size=400),this.size>150?this.qrCanvasBoxStyle={width:this.size+20+"px",height:this.size+20+"px"}:this.qrCanvasBoxStyle={width:"170px",height:"170px"},this.codeChange()}},{key:"codeChange",value:function codeChange(){if(this.textContent){var Tr=Object(Hs["a"])({data:this.textContent,size:this.size>400?400:this.size,correctLevel:this.correctLevel});this.hoQrcode.innerHTML="",this.hoQrcode.appendChild(Tr)}}},{key:"sure",value:function sure(){"add"===this.controlStatus?this.vueController.insertQrcode(this.controlStatus,this.id,this.textContent,"qr",this.correctLevel,this.dataSource.dataSourceEnabled,this.dataSource.dataSource,this.dataSource.format,this.dataSource.visitPath,this.dataSource.isReadOnly,this.dataSource.autoUpdate,String(this.dataSource.executeStatus),this.size,this.size):this.vueController.updateQrcode(this.id,this.textContent,"qr",this.correctLevel,this.dataSource.dataSourceEnabled,this.dataSource.dataSource,this.dataSource.format,this.dataSource.visitPath,this.dataSource.isReadOnly,this.dataSource.autoUpdate,String(this.dataSource.executeStatus),this.size,this.size),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents qrcode-modal animation-out",this.$emit("closed")}}]),QrCodeDialog}(Kr.a);__decorate([Prop()],Ws.prototype,"vueController",void 0),__decorate([Ref()],Ws.prototype,"hoQrcode",void 0),__decorate([Inject("setIsDataSource")],Ws.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Ws.prototype,"getDataSource",void 0),__decorate([Prop()],Ws.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Ws.prototype,"controlStatus",void 0),Ws=__decorate([an({name:"QrCodeDialog"})],Ws);var qs=Ws,zs=qs,Vs=(Rr("ca29"),normalizeComponent(zs,QrCodevue_type_template_id_bff70498_render,Us,!1,null,null,null)),Ks=Vs.exports,$s=Ks,TextDialogvue_type_template_id_8c37eab6_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("文本域")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("tabs",{attrs:{tabKey:Tr.textActiveName}},[Rr("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("类型")]),Rr("el-radio",{attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:0},model:{value:Tr.textParam.inputFieldType,callback:function(Dr){Tr.$set(Tr.textParam,"inputFieldType",Dr)},expression:"textParam.inputFieldType"}},[Tr._v("直接输入文本数据")]),Rr("el-radio",{attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:1},model:{value:Tr.textParam.inputFieldType,callback:function(Dr){Tr.$set(Tr.textParam,"inputFieldType",Dr)},expression:"textParam.inputFieldType"}},[Tr._v("下拉列表方式")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.textParam.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.textParam.innerIdentifier,callback:function(Dr){Tr.$set(Tr.textParam,"innerIdentifier",Dr)},expression:"textParam.innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.textParam.dataMetaIdentifier,callback:function(Dr){Tr.$set(Tr.textParam,"dataMetaIdentifier",Dr)},expression:"textParam.dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.textParam.identifierFormat,callback:function(Dr){Tr.$set(Tr.textParam,"identifierFormat",Dr)},expression:"textParam.identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:Tr.textParam.name,callback:function(Dr){Tr.$set(Tr.textParam,"name",Dr)},expression:"textParam.name"}})],1),Rr("li",{staticClass:"line"}),0===Tr.textParam.inputFieldType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("文本内容")]),Rr("el-input",{attrs:{disabled:"update"===Tr.controlStatus,size:"mini",placeholder:"文本内容"},model:{value:Tr.textParam.text,callback:function(Dr){Tr.$set(Tr.textParam,"text",Dr)},expression:"textParam.text"}})],1):Tr._e(),1===Tr.textParam.inputFieldType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("下拉列表")]),Rr("el-input",{attrs:{size:"mini",disabled:!0,placeholder:"下拉列表项"},model:{value:Tr.textParam.downListProperty.source,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"source",Dr)},expression:"textParam.downListProperty.source"}}),Rr("el-button",{attrs:{size:"mini"},on:{click:function(Dr){return Dr.stopPropagation(),Tr.openListArrModel.apply(null,arguments)}}},[Tr._v("浏览")])],1):Tr._e(),1===Tr.textParam.inputFieldType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("是否多选")]),Rr("div",{staticStyle:{width:"40%"}},[Rr("el-checkbox",{on:{change:Tr.allowMultiSelectChange},model:{value:Tr.textParam.downListProperty.allowMultiSelected,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"allowMultiSelected",Dr)},expression:"textParam.downListProperty.allowMultiSelected"}},[Tr._v("允许多选")]),Rr("el-checkbox",{model:{value:Tr.textParam.downListProperty.mutexSelect,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"mutexSelect",Dr)},expression:"textParam.downListProperty.mutexSelect"}},[Tr._v("选项互斥")])],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"60px"}},[Tr._v("分隔符")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:Tr.textParam.downListProperty.splitCharacter,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"splitCharacter",Dr)},expression:"textParam.downListProperty.splitCharacter"}},[Rr("el-option",{attrs:{label:",",value:","}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"-",value:"-"}}),Rr("el-option",{attrs:{label:"\\",value:"\\"}})],1)],1)]):Tr._e(),Rr("li",{staticClass:"line"}),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{type:"textarea",size:"mini",placeholder:"提示文本"},model:{value:Tr.textParam.tipText,callback:function(Dr){Tr.$set(Tr.textParam,"tipText",Dr)},expression:"textParam.tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内容只读状态")]),Rr("el-select",{staticStyle:{"text-align":"left"},attrs:{placeholder:"请选择",size:"mini"},model:{value:Tr.textParam.readOnlyStatus,callback:function(Dr){Tr.$set(Tr.textParam,"readOnlyStatus",Dr)},expression:"textParam.readOnlyStatus"}},[Rr("el-option",{attrs:{label:"继承父元素",value:2}}),Rr("el-option",{attrs:{label:"是",value:0}}),Rr("el-option",{attrs:{label:"否",value:1}})],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("固定宽度")]),Rr("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:Tr.textParam.fixedWidth,callback:function(Dr){Tr.$set(Tr.textParam,"fixedWidth",Dr)},expression:"textParam.fixedWidth"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("厘米")])],1),Rr("li",{staticClass:"line"}),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.canModifyContent,callback:function(Dr){Tr.$set(Tr.textParam,"canModifyContent",Dr)},expression:"textParam.canModifyContent"}},[Tr._v("用户可以直接编辑修改内容")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.isAllowDelete,callback:function(Dr){Tr.$set(Tr.textParam,"isAllowDelete",Dr)},expression:"textParam.isAllowDelete"}},[Tr._v("允许被删除")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.enableGlobalColor,callback:function(Dr){Tr.$set(Tr.textParam,"enableGlobalColor",Dr)},expression:"textParam.enableGlobalColor"}},[Tr._v("启用全局文本颜色")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.alignWithBlocked,callback:function(Dr){Tr.$set(Tr.textParam,"alignWithBlocked",Dr)},expression:"textParam.alignWithBlocked"}},[Tr._v("文本域中的段落使用块对齐(诊断专用)")])],1),Rr("div",{staticClass:"control-item",staticStyle:{"margin-left":"38px"}},[Rr("el-checkbox",{model:{value:Tr.textParam.readType,callback:function(Dr){Tr.$set(Tr.textParam,"readType",Dr)},expression:"textParam.readType"}},[Tr._v("自动回填")])],1)])])]),Rr("tab-pane",{attrs:{label:"其他属性",notHover:!1,name:"third"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)])]),Tr._t("hoTextFieldModal")],2)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Gs=[],Js=function(Tr){Object(Qr["a"])(TextDialog,Tr);var Dr=Object(Zr["a"])(TextDialog);function TextDialog(){var Tr;return Object(Xr["a"])(this,TextDialog),Tr=Dr.apply(this,arguments),Tr.textParam=Object.assign({},ri),Tr.textActiveName="first",Tr.isMinLenth=!1,Tr.isMaxLenth=!1,Tr.isMin=!1,Tr.isMax=!1,Tr.animationClassNames="control-modal-contents text-modal animation-in",Tr.customPropertyValue=new Object,Tr.endPath="",Tr}return Object(Yr["a"])(TextDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"customsValue",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.text||Tr.value)return Tr}))}},{key:"listArrSource",get:function get(){return this.getListArrSource()}},{key:"customProperty",get:function get(){return this.getCustomProperty()}},{key:"created",value:function created(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);if(this.endPath=Dr.docTree.curDomRange.normalize().endPath,"update"===this.controlStatus){var Rr=this.getTextNode();if(Object.keys(this.textParam).forEach((function(Dr){var Ur=Dr.replace(/_/g,"");if(Object.prototype.hasOwnProperty.call(Tr.textParam,Ur))if("readOnlyStatus"===Ur)Tr.textParam.readOnlyStatus=Number(Rr.readOnlyStatus);else if("customProperty"===Ur){Object(_o["b"])(Rr[Ur])?Tr.textParam.customProperty=Rr.customProperty:Tr.textParam.customProperty=new Object;var Hr=new Object;Object.keys(Tr.textParam.customProperty).forEach((function(Dr){Hr[Dr]=Tr.textParam.customProperty[Dr]})),Tr.customPropertyValue=_objectSpread2({},Hr)}else"readType"===Ur?Tr.textParam.readType=1==Rr.readType:Tr.textParam[Ur]=Rr[Ur]})),1===this.textParam.inputFieldType){var Ur=this.textParam.downListProperty.listItems,Hr=Ur?JSON.parse(Ur):[];this.setListStyle(Hr,this.textParam.downListProperty.source)}else this.textParam.inputFieldType=0}else this.textParam.id=this.vueController.generateID("TF"),this.textParam.downListProperty.splitCharacter=","}},{key:"getTextNode",value:function getTextNode(){var Tr,Dr,Rr=null===(Tr=this.vueController.findNodebyPath(this.endPath))||void 0===Tr?void 0:Tr.node;if(Rr instanceof li["a"]||Rr instanceof ei["f"]){var Ur=Rr.parentNode;Dr=Ur instanceof ei["f"]?Ur:Rr}else if(Rr instanceof ci["a"]){var Hr=Rr.parentNode;Hr instanceof ei["f"]&&(Dr=Hr)}return Dr}},{key:"allowMultiSelectChange",value:function allowMultiSelectChange(){this.textParam.downListProperty.allowMultiSelected||(this.textParam.downListProperty.mutexSelect=!1)}},{key:"openListArrModel",value:function openListArrModel(){this.setListAllowMultiSelected(this.textParam.downListProperty.allowMultiSelected),this.setIsListStyle(!0)}},{key:"minLengthChange",value:function minLengthChange(Tr){}},{key:"maxLengthChange",value:function maxLengthChange(Tr){}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){if(1===this.textParam.inputFieldType){this.textParam.downListProperty.source=this.listArrSource,this.textParam.downListProperty.listItems=JSON.stringify(this.getListStyle());var Tr=[];this.getListStyle().forEach((function(Dr){Dr.default&&Tr.push(Dr.text)})),this.textParam.text=Tr.join(",")}else this.textParam.downListProperty=new ei["c"];this.textParam.bandDataSource=this.dataSource,0===this.textParam.inputFieldType?this.textParam.name=this.textParam.name?this.textParam.name:"请输入":1===this.textParam.inputFieldType&&(this.textParam.name=this.textParam.name?this.textParam.name:"请选择"),this.textParam.labelText=this.textParam.name,this.textParam.customProperty=_objectSpread2({},this.customProperty),this.textParam.readType?this.textParam.readType=1:this.textParam.readType=0,"add"===this.controlStatus?this.vueController.insertTextInputField(this.controlStatus,this.textParam):"update"===this.controlStatus&&this.vueController.updateTextInputField(this.textParam),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents text-modal animation-out",this.$emit("closed"),this.endPath=""}}]),TextDialog}(Kr.a);__decorate([Ref()],Js.prototype,"barcode",void 0),__decorate([Prop()],Js.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Js.prototype,"controlStatus",void 0),__decorate([Prop()],Js.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],Js.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Js.prototype,"getDataSource",void 0),__decorate([Inject("setIsCustoms")],Js.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Js.prototype,"getCustomsValue",void 0),__decorate([Inject("setListAllowMultiSelected")],Js.prototype,"setListAllowMultiSelected",void 0),__decorate([Inject("setIsListStyle")],Js.prototype,"setIsListStyle",void 0),__decorate([Inject("getListStyle")],Js.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],Js.prototype,"getListArrSource",void 0),__decorate([Inject("setListStyle")],Js.prototype,"setListStyle",void 0),__decorate([Inject("getCustomProperty")],Js.prototype,"getCustomProperty",void 0),Js=__decorate([an({name:"TextDialog",components:{Tabs:Ps}})],Js);var Xs=Js,Ys=Xs,Qs=(Rr("e8ee"),normalizeComponent(Ys,TextDialogvue_type_template_id_8c37eab6_render,Gs,!1,null,null,null)),Zs=Qs.exports,el=Zs,ExpressionFormvue_type_template_id_0fa85a23_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v(Tr._s(Tr.names[Tr.expressStyle]))]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.cancel}})]),Rr("section",{staticClass:"expression-form"},["style1"===Tr.expressStyle?[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1),Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"line style1-line"}),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("末次月经/绝经年龄")]),Tr.isUseDate?Rr("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:Tr.useDateFormat,"value-format":Tr.useDateFormat,placeholder:"日期"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}}):Tr._e(),Tr.isUseDate?Tr._e():Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}})],1)]),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)]:Tr._e(),"style2"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1)]),Rr("div",{staticClass:"line style21-line"}),Rr("div",{staticClass:"line style22-line"}),Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("末次月经/绝经年龄")]),Tr.isUseDate?Rr("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:Tr.useDateFormat,"value-format":Tr.useDateFormat,placeholder:"日期"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}}):Tr._e(),Tr.isUseDate?Tr._e():Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}})],1),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)])]:Tr._e(),"style3"===Tr.expressStyle?[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1),Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"line style31-line"}),Rr("div",{staticClass:"line style32-line"}),Rr("div",{staticClass:"expression-item",staticStyle:{"margin-left":"73px"}},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)]),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("末次月经/绝经年龄")]),Tr.isUseDate?Rr("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:Tr.useDateFormat,"value-format":Tr.useDateFormat,placeholder:"日期"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}}):Tr._e(),Tr.isUseDate?Tr._e():Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}})],1)]:Tr._e(),"style4"===Tr.expressStyle?Rr("div",{staticClass:"style4"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"line style41-line"}),Rr("div",{staticClass:"expression-style4"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1),Rr("div",{staticClass:"line style42-line"}),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)])]):Tr._e(),"style1"===Tr.expressStyle||"style2"===Tr.expressStyle||"style3"===Tr.expressStyle?[Rr("div",{staticClass:"express-date-items"},[Rr("el-checkbox",{on:{change:Tr.useDateChange},model:{value:Tr.isUseDate,callback:function(Dr){Tr.isUseDate=Dr},expression:"isUseDate"}},[Tr._v("使用日期")])],1),Tr.isUseDate?Rr("div",{staticClass:"express-date-items"},[Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:Tr.dateFormatChange},model:{value:Tr.useDateFormat,callback:function(Dr){Tr.useDateFormat=Dr},expression:"useDateFormat"}},[Rr("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),Rr("el-option",{attrs:{label:"yyyy/MM/dd",value:"yyyy/MM/dd"}}),Rr("el-option",{attrs:{label:"yyyy年MM月dd日",value:"yyyy年MM月dd日"}})],1)],1):Tr._e()]:Tr._e(),"style5"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style5"},[Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value1,callback:function(Dr){Tr.$set(Tr.style567,"value1",Dr)},expression:"style567.value1"}}),Rr("div",{staticStyle:{width:"100px"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value2,callback:function(Dr){Tr.$set(Tr.style567,"value2",Dr)},expression:"style567.value2"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value3,callback:function(Dr){Tr.$set(Tr.style567,"value3",Dr)},expression:"style567.value3"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value4,callback:function(Dr){Tr.$set(Tr.style567,"value4",Dr)},expression:"style567.value4"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value5,callback:function(Dr){Tr.$set(Tr.style567,"value5",Dr)},expression:"style567.value5"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value6,callback:function(Dr){Tr.$set(Tr.style567,"value6",Dr)},expression:"style567.value6"}}),Rr("div",{staticStyle:{width:"100px"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value7,callback:function(Dr){Tr.$set(Tr.style567,"value7",Dr)},expression:"style567.value7"}})],1)]:Tr._e(),"style6"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style5"},[Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value1,callback:function(Dr){Tr.$set(Tr.style567,"value1",Dr)},expression:"style567.value1"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value2,callback:function(Dr){Tr.$set(Tr.style567,"value2",Dr)},expression:"style567.value2"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value3,callback:function(Dr){Tr.$set(Tr.style567,"value3",Dr)},expression:"style567.value3"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value4,callback:function(Dr){Tr.$set(Tr.style567,"value4",Dr)},expression:"style567.value4"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value5,callback:function(Dr){Tr.$set(Tr.style567,"value5",Dr)},expression:"style567.value5"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value6,callback:function(Dr){Tr.$set(Tr.style567,"value6",Dr)},expression:"style567.value6"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value7,callback:function(Dr){Tr.$set(Tr.style567,"value7",Dr)},expression:"style567.value7"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value8,callback:function(Dr){Tr.$set(Tr.style567,"value8",Dr)},expression:"style567.value8"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value9,callback:function(Dr){Tr.$set(Tr.style567,"value9",Dr)},expression:"style567.value9"}})],1)]:Tr._e(),"style7"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style5 style7"},[Rr("div",{staticClass:"line style71-line"}),Rr("div",{staticClass:"line style72-line"}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value1,callback:function(Dr){Tr.$set(Tr.style567,"value1",Dr)},expression:"style567.value1"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value2,callback:function(Dr){Tr.$set(Tr.style567,"value2",Dr)},expression:"style567.value2"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value3,callback:function(Dr){Tr.$set(Tr.style567,"value3",Dr)},expression:"style567.value3"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value4,callback:function(Dr){Tr.$set(Tr.style567,"value4",Dr)},expression:"style567.value4"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value5,callback:function(Dr){Tr.$set(Tr.style567,"value5",Dr)},expression:"style567.value5"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value6,callback:function(Dr){Tr.$set(Tr.style567,"value6",Dr)},expression:"style567.value6"}})],1)]:Tr._e(),"style8"===Tr.expressStyle?[Rr("div",{staticClass:"style89"},[Rr("span",{staticClass:"pos-top"},[Tr._v("上颌")]),Rr("span",{staticClass:"pos-bottom"},[Tr._v("下颌")]),Rr("span",{staticClass:"pos-left"},[Tr._v("左")]),Rr("span",{staticClass:"pos-right"},[Tr._v("右")]),Tr._m(0),Rr("ul",[Tr._l(["8","7","6","5","4","3","2","1"],(function(Dr){return Rr("li",{key:Dr+"a"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topLeft,callback:function(Dr){Tr.$set(Tr.style89,"topLeft",Dr)},expression:"style89.topLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["1","2","3","4","5","6","7","8"],(function(Dr){return Rr("li",{key:Dr+"b"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topRight,callback:function(Dr){Tr.$set(Tr.style89,"topRight",Dr)},expression:"style89.topRight"}},[Rr("el-checkbox-button",{attrs:{size:"mini",label:Dr}})],1)],1)}))],2),Rr("ul",[Tr._l(["8","7","6","5","4","3","2","1"],(function(Dr){return Rr("li",{key:Dr+"c"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomLeft,callback:function(Dr){Tr.$set(Tr.style89,"bottomLeft",Dr)},expression:"style89.bottomLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["1","2","3","4","5","6","7","8"],(function(Dr){return Rr("li",{key:Dr+"d"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomRight,callback:function(Dr){Tr.$set(Tr.style89,"bottomRight",Dr)},expression:"style89.bottomRight"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)}))],2)])]:Tr._e(),"style9"===Tr.expressStyle?[Rr("div",{staticClass:"style89 style9"},[Rr("span",{staticClass:"pos-top"},[Tr._v("上颌")]),Rr("span",{staticClass:"pos-bottom"},[Tr._v("下颌")]),Rr("span",{staticClass:"pos-left"},[Tr._v("左")]),Rr("span",{staticClass:"pos-right"},[Tr._v("右")]),Tr._m(1),Rr("ul",[Tr._l(["V","IV","III","II","I"],(function(Dr){return Rr("li",{key:Dr+"a"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topLeft,callback:function(Dr){Tr.$set(Tr.style89,"topLeft",Dr)},expression:"style89.topLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["I","II","III","IV","V"],(function(Dr){return Rr("li",{key:Dr+"b"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topRight,callback:function(Dr){Tr.$set(Tr.style89,"topRight",Dr)},expression:"style89.topRight"}},[Rr("el-checkbox-button",{attrs:{size:"mini",label:Dr}})],1)],1)}))],2),Rr("ul",[Tr._l(["V","IV","III","II","I"],(function(Dr){return Rr("li",{key:Dr+"c"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomLeft,callback:function(Dr){Tr.$set(Tr.style89,"bottomLeft",Dr)},expression:"style89.bottomLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["I","II","III","IV","V"],(function(Dr){return Rr("li",{key:Dr+"d"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomRight,callback:function(Dr){Tr.$set(Tr.style89,"bottomRight",Dr)},expression:"style89.bottomRight"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)}))],2)])]:Tr._e()],2),Rr("footer",{staticClass:"dialog-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")]),"style8"===Tr.expressStyle||"style9"===Tr.expressStyle?Rr("el-button",{attrs:{size:"small"},on:{click:Tr.reset}},[Tr._v("重 置")]):Tr._e(),"style8"===Tr.expressStyle||"style9"===Tr.expressStyle?Rr("el-button",{attrs:{size:"small"},on:{click:Tr.reverse}},[Tr._v("反 选")]):Tr._e(),"style8"===Tr.expressStyle||"style9"===Tr.expressStyle?Rr("el-button",{attrs:{size:"small"},on:{click:Tr.all}},[Tr._v("全 选")]):Tr._e(),Rr("el-button",{attrs:{size:"small"},on:{click:Tr.cancel}},[Tr._v("取 消")])],1)])},tl=[function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"titles"},[Rr("li",[Tr._v("第三磨牙")]),Rr("li",[Tr._v("第二磨牙")]),Rr("li",[Tr._v("第一磨牙")]),Rr("li",[Tr._v("第二前磨牙")]),Rr("li",[Tr._v("第一前磨牙")]),Rr("li",[Tr._v("尖牙")]),Rr("li",[Tr._v("侧切牙")]),Rr("li",[Tr._v("中切牙")]),Rr("li",[Tr._v("中切牙")]),Rr("li",[Tr._v("侧切牙")]),Rr("li",[Tr._v("尖牙")]),Rr("li",[Tr._v("第一前磨牙")]),Rr("li",[Tr._v("第二前磨牙")]),Rr("li",[Tr._v("第一磨牙")]),Rr("li",[Tr._v("第二磨牙")]),Rr("li",[Tr._v("第三磨牙")])])},function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"titles"},[Rr("li",[Tr._v("第二乳磨牙")]),Rr("li",[Tr._v("第一乳磨牙")]),Rr("li",[Tr._v("乳尖牙")]),Rr("li",[Tr._v("乳侧切牙")]),Rr("li",[Tr._v("乳中切牙")]),Rr("li",[Tr._v("乳中切牙")]),Rr("li",[Tr._v("乳侧切牙")]),Rr("li",[Tr._v("乳尖牙")]),Rr("li",[Tr._v("第一乳磨牙")]),Rr("li",[Tr._v("第二乳磨牙")])])}],rl=function(Tr){Object(Qr["a"])(ExpressionForm,Tr);var Dr=Object(Zr["a"])(ExpressionForm);function ExpressionForm(){var Tr;return Object(Xr["a"])(this,ExpressionForm),Tr=Dr.apply(this,arguments),Tr.animationClassNames="control-modal-contents express-dialog animation-in",Tr.isUseDate=!1,Tr.useDateFormat="yyyy-MM-dd",Tr.names={style1:"经期史",style2:"经期史",style3:"经期史",style4:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"},Tr.menstrualHistory={menseDays:"",cycleDays:"",menarcheAge:"14",menoPauseAge:"52"},Tr.style567={value1:"1",value2:"2",value3:"3",value4:"4",value5:"5",value6:"6",value7:"7",value8:"8",value9:"9"},Tr.style89={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]},Tr.style8={topLeft:["8","7","6","5","4","3","2","1"],topRight:["1","2","3","4","5","6","7","8"],bottomLeft:["8","7","6","5","4","3","2","1"],bottomRight:["1","2","3","4","5","6","7","8"]},Tr.style9={topLeft:["V","IV","III","II","I"],topRight:["I","II","III","IV","V"],bottomLeft:["V","IV","III","II","I"],bottomRight:["I","II","III","IV","V"]},Tr.styleObjectArray={style1:1,style2:1,style3:1,style4:1,style5:2,style6:2,style7:2,style8:3,style9:3},Tr}return Object(Yr["a"])(ExpressionForm,[{key:"controlType",get:function get(){return this.controlProperty.controlType}},{key:"controlStatus",get:function get(){return this.controlProperty.controlStatus}},{key:"expressStyle",get:function get(){return this.controlProperty.expressStyle}},{key:"created",value:function created(){if("update"===this.controlStatus){var Tr=this.getUpdateNodeValue();if(1===this.styleObjectArray[this.expressStyle]){var Dr=Tr,Rr=/^[0-9]*$/,Ur=Dr[3];!Rr.test(Ur)&&Ur&&(this.isUseDate=!0,-1!==Ur.indexOf("-")?this.useDateFormat="yyyy-MM-dd":-1!==Ur.indexOf("/")?this.useDateFormat="yyyy/MM/dd":-1!==Ur.indexOf("年")&&(this.useDateFormat="yyyy年MM月dd日")),this.menstrualHistory={menseDays:Dr[0]?Dr[0].replace("天",""):"",cycleDays:Dr[1]?Dr[1].replace("天",""):"",menarcheAge:Dr[2]?Dr[2].replace("岁",""):"",menoPauseAge:Ur}}else if(2===this.styleObjectArray[this.expressStyle]){var Hr=Tr,Wr=Object(Gr["a"])(Hr);this.style567.value1=Wr[0],this.style567.value2=Wr[1],this.style567.value3=Wr[2],this.style567.value4=Wr[3],this.style567.value5=Wr[4],this.style567.value6=Wr[5],this.style567.value7=Wr[6],this.style567.value8=Wr[7],this.style567.value9=Wr[8]}else if(3===this.styleObjectArray[this.expressStyle]){var zr=Tr,Vr=Object(Gr["a"])(zr);this.style89.topLeft=Vr[0],this.style89.topRight=Vr[1],this.style89.bottomLeft=Vr[2],this.style89.bottomRight=Vr[3]}}}},{key:"useDateChange",value:function useDateChange(){this.isUseDate?this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:""}):this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:"52"})}},{key:"dateFormatChange",value:function dateFormatChange(){this.menstrualHistory.menoPauseAge&&(this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:Object(Jn["d"])(this.menstrualHistory.menoPauseAge,this.useDateFormat)}))}},{key:"reset",value:function reset(){this.style89={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]}}},{key:"all",value:function all(){"style8"===this.expressStyle&&(this.style89=Object.assign({},this.style8)),"style9"===this.expressStyle&&(this.style89=Object.assign({},this.style9))}},{key:"reverse",value:function reverse(){this.reverseOrSort("reverse")}},{key:"sureSort",value:function sureSort(){this.reverseOrSort("sort")}},{key:"reverseOrSort",value:function reverseOrSort(Tr){var Dr,Rr=this,Ur={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]};"style8"===this.expressStyle?Dr=Object.assign({},this.style8):"style9"===this.expressStyle&&(Dr=Object.assign({},this.style9)),Object.keys(this.style89).map((function(Hr){Dr[Hr].map((function(Dr){return"reverse"===Tr?Rr.style89[Hr].includes(Dr)||Ur[Hr].push(Dr):"sort"===Tr&&(Rr.style89[Hr].includes(Dr)?Ur[Hr].push(Dr):Ur[Hr].push("")),Dr}))})),this.style89=Object.assign({},Ur)}},{key:"objectToArray",value:function objectToArray(Tr){var Dr=[];return Object.keys(Tr).forEach((function(Rr){Dr.push(Tr[Rr])})),Dr}},{key:"cancel",value:function cancel(){this.animationClassNames="control-modal-contents express-dialog animation-out",this.$emit("closed")}},{key:"sure",value:function sure(){if(""===this.expressStyle||"style1"===this.expressStyle||"style2"===this.expressStyle||"style3"===this.expressStyle||"style4"===this.expressStyle){var Tr=/^[\u2E80-\u9FFF]+$/;Tr.test(this.menstrualHistory.menseDays)||(this.menstrualHistory.menseDays=this.menstrualHistory.menseDays+"天"),Tr.test(this.menstrualHistory.cycleDays)||(this.menstrualHistory.cycleDays=this.menstrualHistory.cycleDays+"天"),Tr.test(this.menstrualHistory.menarcheAge)||(this.menstrualHistory.menarcheAge=this.menstrualHistory.menarcheAge+"岁"),this.insertMenstrualHistory([this.controlStatus,this.expressStyle].concat(Object(Gr["a"])(this.objectToArray(this.menstrualHistory))))}else"style5"===this.expressStyle?this.insertPupilMap([this.controlStatus].concat(Object(Gr["a"])(this.objectToArray(this.style567)))):"style6"===this.expressStyle?this.insertLightLocation([this.controlStatus].concat(Object(Gr["a"])(this.objectToArray(this.style567)))):"style7"===this.expressStyle?this.insertFetalHeartMap([this.controlStatus].concat(Object(Gr["a"])(this.objectToArray(this.style567)))):"style8"===this.expressStyle?(this.reverseOrSort("sort"),this.insertPermanentTeethMap(this.controlStatus,[this.style89.topLeft,this.style89.topRight,this.style89.bottomLeft,this.style89.bottomRight])):"style9"===this.expressStyle&&(this.reverseOrSort("sort"),this.insertPrimaryTeethMap(this.controlStatus,[this.style89.topLeft,this.style89.topRight,this.style89.bottomLeft,this.style89.bottomRight]));this.cancel()}},{key:"insertMenstrualHistory",value:function insertMenstrualHistory(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5];"add"===Rr?this.vueController.insertMenstrualHistory(Rr,Ur,Hr,Wr,zr,Vr):this.vueController.updateMenstrualHistory(Ur,Hr,Wr,zr,Vr)}},{key:"insertPupilMap",value:function insertPupilMap(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5],Kr=Dr[6],$r=Dr[7];"add"===Rr?this.vueController.insertPupilMap(Rr,Ur,Hr,Wr,zr,Vr,Kr,$r):this.vueController.updatePupilMap(Ur,Hr,Wr,zr,Vr,Kr,$r)}},{key:"insertLightLocation",value:function insertLightLocation(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5],Kr=Dr[6],$r=Dr[7],Jr=Dr[8],Xr=Dr[9];"add"===Rr?this.vueController.insertLightLocation(Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Jr,Xr):this.vueController.updateLightLocation(Ur,Hr,Wr,zr,Vr,Kr,$r,Jr,Xr)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5],Kr=Dr[6];"add"===Rr?this.vueController.insertFetalHeartMap(Rr,Ur,Hr,Wr,zr,Vr,Kr):this.vueController.updateFetalHeartMap(Ur,Hr,Wr,zr,Vr,Kr)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(Tr,Dr){var Rr=Object(Gr["a"])(Dr),Ur=Rr[0],Hr=Rr[1],Wr=Rr[2],zr=Rr[3];"add"===Tr?this.vueController.insertPermanentTeethMap(Tr,Ur,Hr,Wr,zr):this.vueController.updatePermanentTeethMap(Ur,Hr,Wr,zr)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(Tr,Dr){var Rr=Object(Gr["a"])(Dr),Ur=Rr[0],Hr=Rr[1],Wr=Rr[2],zr=Rr[3];"add"===Tr?this.vueController.insertPrimaryTeethMap(Tr,Ur,Hr,Wr,zr):this.vueController.updatePrimaryTeethMap(Ur,Hr,Wr,zr)}}]),ExpressionForm}(Kr.a);__decorate([Prop()],rl.prototype,"controlProperty",void 0),__decorate([Prop()],rl.prototype,"vueController",void 0),__decorate([Prop()],rl.prototype,"updateNode",void 0),__decorate([Inject("getUpdateNodeValue")],rl.prototype,"getUpdateNodeValue",void 0),rl=__decorate([an({name:"ExpressionForm"})],rl);var nl=rl,il=nl,al=(Rr("b9af"),normalizeComponent(il,ExpressionFormvue_type_template_id_0fa85a23_scoped_true_render,tl,!1,null,"0fa85a23",null)),ol=al.exports,sl=ol,RadioCheckboxvue_type_template_id_63a63a26_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:"control-modal-contents radio-checkbox-modal "+Tr.animationClassName,style:{width:1===Tr.boxGroup?"1060px":"500px"}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v(Tr._s("RadioBox"===Tr.controlType?"单选框":"复选框")+Tr._s(1===Tr.boxGroup?"组":""))]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("类型")]),Rr("el-radio",{attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:1},model:{value:Tr.boxGroup,callback:function(Dr){Tr.boxGroup=Dr},expression:"boxGroup"}},[Tr._v("多项")]),Rr("el-radio",{staticStyle:{"margin-left":"30px"},attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:0},model:{value:Tr.boxGroup,callback:function(Dr){Tr.boxGroup=Dr},expression:"boxGroup"}},[Tr._v("单项")])],1),1===Tr.boxGroup?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:Tr.groupName,callback:function(Dr){Tr.groupName=Dr},expression:"groupName"}})],1):Tr._e(),1===Tr.boxGroup?Rr("li",{staticClass:"control-item",staticStyle:{padding:"0"}},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.radioCheckBoxGroup,height:"300px"}},[Rr("el-table-column",{attrs:{label:"文本",width:"160"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}],null,!1,4204152597)}),Rr("el-table-column",{attrs:{label:"提示文本",width:"100"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:Dr.row.tipText,callback:function(Rr){Tr.$set(Dr.row,"tipText",Rr)},expression:"scope.row.tipText"}})]}}],null,!1,2396764658)}),Rr("el-table-column",{attrs:{label:"数值",width:"80"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:Dr.row.numericValue,callback:function(Rr){Tr.$set(Dr.row,"numericValue",Rr)},expression:"scope.row.numericValue"}})]}}],null,!1,3789767535)}),Rr("el-table-column",{attrs:{label:"内部标识符",width:"120"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"内部标识符"},model:{value:Dr.row.innerIdentifier,callback:function(Rr){Tr.$set(Dr.row,"innerIdentifier",Rr)},expression:"scope.row.innerIdentifier"}})]}}],null,!1,1119088692)}),Rr("el-table-column",{attrs:{label:"数据元标识符",width:"120"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"数据元标识符"},model:{value:Dr.row.dataMetaIdentifier,callback:function(Rr){Tr.$set(Dr.row,"dataMetaIdentifier",Rr)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,!1,479119831)}),Rr("el-table-column",{attrs:{label:"表示格式",width:"100"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"表示格式"},model:{value:Dr.row.identifierFormat,callback:function(Rr){Tr.$set(Dr.row,"identifierFormat",Rr)},expression:"scope.row.identifierFormat"}})]}}],null,!1,241604674)}),Rr("el-table-column",{attrs:{label:"默认选中",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return["RadioBox"===Tr.controlType?Rr("el-radio",{staticClass:"table-radio",attrs:{label:Dr.row.id},model:{value:Tr.tableRadio,callback:function(Dr){Tr.tableRadio=Dr},expression:"tableRadio"}}):Tr._e(),"CheckBox"===Tr.controlType?Rr("el-checkbox",{model:{value:Dr.row.isSelected,callback:function(Rr){Tr.$set(Dr.row,"isSelected",Rr)},expression:"scope.row.isSelected"}}):Tr._e()]}}],null,!1,1265273066)}),Rr("el-table-column",{attrs:{label:"勾选框左对齐",width:"58"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.boxAlign,callback:function(Rr){Tr.$set(Dr.row,"boxAlign",Rr)},expression:"scope.row.boxAlign"}})]}}],null,!1,599012276)}),Rr("el-table-column",{attrs:{label:"内容转文本",width:"58"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.isTransToText,callback:function(Rr){Tr.$set(Dr.row,"isTransToText",Rr)},expression:"scope.row.isTransToText"}})]}}],null,!1,1354544746)}),Rr("el-table-column",{attrs:{label:"编辑文本",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.isEditText,callback:function(Rr){Tr.$set(Dr.row,"isEditText",Rr)},expression:"scope.row.isEditText"}})]}}],null,!1,3019799127)}),Rr("el-table-column",{attrs:{label:"可以删除",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.isAllowDelete,callback:function(Rr){Tr.$set(Dr.row,"isAllowDelete",Rr)},expression:"scope.row.isAllowDelete"}})]}}],null,!1,2012793206)}),Rr("el-table-column",{attrs:{label:"自动回填",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.readType,callback:function(Rr){Tr.$set(Dr.row,"readType",Rr)},expression:"scope.row.readType"}})]}}],null,!1,373021414)}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")])]}}],null,!1,1240557165)})],1)],1):Tr._e(),0===Tr.boxGroup?[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.radioCheckbox.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.radioCheckbox.innerIdentifier,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"innerIdentifier",Dr)},expression:"radioCheckbox.innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.radioCheckbox.dataMetaIdentifier,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"dataMetaIdentifier",Dr)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.radioCheckbox.identifierFormat,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"identifierFormat",Dr)},expression:"radioCheckbox.identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:Tr.radioCheckbox.groupName,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"groupName",Dr)},expression:"radioCheckbox.groupName"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("文本")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},model:{value:Tr.radioCheckbox.text,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"text",Dr)},expression:"radioCheckbox.text"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:Tr.radioCheckbox.tipText,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"tipText",Dr)},expression:"radioCheckbox.tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isSelected,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isSelected",Dr)},expression:"radioCheckbox.isSelected"}},[Tr._v("处于选择状态")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isAllowDelete,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isAllowDelete",Dr)},expression:"radioCheckbox.isAllowDelete"}},[Tr._v("可以删除")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.boxAlign,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"boxAlign",Dr)},expression:"radioCheckbox.boxAlign"}},[Tr._v("勾选框左对齐")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.readType,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"readType",Dr)},expression:"radioCheckbox.readType"}},[Tr._v("自动回填")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isTransToText,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isTransToText",Dr)},expression:"radioCheckbox.isTransToText"}},[Tr._v("内容转文本")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isEditText,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isEditText",Dr)},expression:"radioCheckbox.isEditText"}},[Tr._v("编辑文本")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数值")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:Tr.radioCheckbox.numericValue,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"numericValue",Dr)},expression:"radioCheckbox.numericValue"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("附加数据")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"附加数据"},model:{value:Tr.radioCheckbox.additionalData,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"additionalData",Dr)},expression:"radioCheckbox.additionalData"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("勾选级联对象")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"勾选级联对象"},model:{value:Tr.radioCheckbox.checkCascadeObject,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"checkCascadeObject",Dr)},expression:"radioCheckbox.checkCascadeObject"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("不勾选级联对象")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"不勾选级联对象"},model:{value:Tr.radioCheckbox.unCheckCascadeObject,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"unCheckCascadeObject",Dr)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)]:Tr._e()],2)]),Rr("footer",{staticClass:"modal-footer"},[1===Tr.boxGroup?Rr("el-button",{staticStyle:{transform:"translateX(-352px)"},attrs:{type:"primary",size:"small"},on:{click:Tr.addBox}},[Tr._v("增加"+Tr._s("RadioBox"===Tr.controlType?"单选项":"复选项"))]):Tr._e(),Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},ll=[],cl={id:"",title:"",groupName:"",controlStyle:"",isSelected:!1,isAllowDelete:!1,boxAlign:!0,numericValue:"",additionalData:"",tipText:"",bandDataSource:"",text:"",checkCascadeObject:"",unCheckCascadeObject:"",innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,isTransToText:!1,isEditText:!1},ul=function(Tr){Object(Qr["a"])(RadioCheckbox,Tr);var Dr=Object(Zr["a"])(RadioCheckbox);function RadioCheckbox(){var Tr;return Object(Xr["a"])(this,RadioCheckbox),Tr=Dr.apply(this,arguments),Tr.boxGroup=1,Tr.groupName="",Tr.tableRadio="",Tr.radioCheckBoxGroup=[],Tr.animationClassName="animation-in",Tr.radioCheckbox=JSON.parse(JSON.stringify(cl)),Tr.dynamicTags=[],Tr.inputVisible=!1,Tr.inputValue="",Tr}return Object(Yr["a"])(RadioCheckbox,[{key:"controlType",get:function get(){return this.controlProperty.controlType}},{key:"controlTypeStatus",get:function get(){return this.controlProperty.controlStatus}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var Tr=this;if("update"===this.controlTypeStatus){var Dr=this.getRadioCheckNode();Object.keys(this.radioCheckbox).forEach((function(Rr){"readType"===Rr?Tr.radioCheckbox.readType=1==Dr.readType:Tr.radioCheckbox[Rr]=Dr[Rr]})),this.boxGroup=0}else this.radioCheckbox.id="RadioBox"===this.controlType?this.vueController.generateID("RB"):this.vueController.generateID("CB"),this.radioCheckbox.controlStyle=this.controlType,this.radioCheckbox.title="RadioBox"===this.controlType?"单选框":"复选框";1===this.boxGroup&&(this.addBox(),this.addBox())}},{key:"getRadioCheckNode",value:function getRadioCheckNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof ga["a"]&&(Dr=Hr),Dr}},{key:"addBox",value:function addBox(){var Tr=_objectSpread2({},cl);Tr.id="RadioBox"===this.controlType?this.vueController.generateID("RB"):this.vueController.generateID("CB"),Tr.groupName=this.groupName,this.radioCheckBoxGroup.push(Tr)}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.radioCheckBoxGroup.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.radioCheckBoxGroup.splice(Dr,1)}},{key:"sure",value:function sure(){var Tr=this;0===this.boxGroup?(this.radioCheckbox.bandDataSource=JSON.stringify(this.dataSource),this.radioCheckbox.readType?this.radioCheckbox.readType=1:this.radioCheckbox.readType=0,"add"===this.controlStatus?this.vueController.insertRadioAndCheckBox(this.controlTypeStatus,JSON.stringify(this.radioCheckbox)):"update"===this.controlStatus&&this.vueController.updateRadioAndCheckBox(JSON.stringify(this.radioCheckbox))):1===this.boxGroup&&"add"===this.controlStatus&&this.radioCheckBoxGroup.forEach((function(Dr){Dr.groupName=Tr.groupName,Dr.controlStyle=Tr.controlType,Dr.id===Tr.tableRadio&&(Dr.isSelected=!0),Tr.vueController.insertRadioAndCheckBox("add",JSON.stringify(Dr))})),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassName="animation-out",this.$emit("closed")}}]),RadioCheckbox}(Kr.a);__decorate([Ref()],ul.prototype,"saveTagInput",void 0),__decorate([Prop()],ul.prototype,"controlProperty",void 0),__decorate([Prop()],ul.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],ul.prototype,"controlStatus",void 0),__decorate([Prop()],ul.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],ul.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],ul.prototype,"getDataSource",void 0),ul=__decorate([an({name:"RadioCheckbox"})],ul);var dl=ul,hl=dl,pl=(Rr("5bc0"),normalizeComponent(hl,RadioCheckboxvue_type_template_id_63a63a26_render,ll,!1,null,null,null)),fl=pl.exports,_l=fl,CommentDialogvue_type_template_id_34f4e997_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents comment-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("批注")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:function(Dr){return Tr.$emit("closed")}}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:13,maxRows:13},clearable:"",placeholder:"批注内容",maxlength:"256","show-word-limit":""},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:function(Dr){return Tr.$emit("closed")}}},[Tr._v("取消")])],1)])},gl=[],ml=function(Tr){Object(Qr["a"])(CommentDialog,Tr);var Dr=Object(Zr["a"])(CommentDialog);function CommentDialog(){var Tr;return Object(Xr["a"])(this,CommentDialog),Tr=Dr.apply(this,arguments),Tr.textContent="",Tr.commentValue=null,Tr}return Object(Yr["a"])(CommentDialog,[{key:"created",value:function created(){this.commentValue=this.vueController.getOnSelectedComment(),"update"===this.controlStatus&&this.commentValue&&(this.textContent=this.commentValue.text)}},{key:"sure",value:function sure(){this.textContent&&("update"===this.controlStatus?this.vueController.editComment(this.commentValue.id,this.textContent):(this.$emit("insertComments",this.textContent),this.vueController.insertComment(this.textContent)),this.$emit("closed"))}}]),CommentDialog}(Kr.a);__decorate([Prop()],ml.prototype,"vueController",void 0),__decorate([Prop()],ml.prototype,"controlStatus",void 0),ml=__decorate([an({name:"CommentDialog"})],ml);var vl=ml,yl=vl,bl=(Rr("2661"),normalizeComponent(yl,CommentDialogvue_type_template_id_34f4e997_render,gl,!1,null,null,null)),wl=bl.exports,xl=wl,WaterSetvue_type_template_id_468ee214_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents water-set animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("水印")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"50px"}},[Tr._v("内容")]),Rr("el-input",{attrs:{type:"text",size:"mini",clearable:"",placeholder:"文本内容",maxlength:"20","show-word-limit":""},on:{input:Tr.codeChange},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"50px"}},[Tr._v("角度")]),Rr("el-radio-group",{attrs:{size:"mini"},on:{change:Tr.codeChange},model:{value:Tr.rotate,callback:function(Dr){Tr.rotate=Dr},expression:"rotate"}},[Rr("el-radio-button",{attrs:{label:0}},[Tr._v("水平")]),Rr("el-radio-button",{attrs:{label:1}},[Tr._v("倾斜")])],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"50px"}},[Tr._v("颜色")]),Rr("el-color-picker",{attrs:{"show-alpha":""},on:{change:Tr.codeChange},model:{value:Tr.color,callback:function(Dr){Tr.color=Dr},expression:"color"}})],1)]),Rr("div",{staticClass:"section-right"},[Rr("fieldset",{staticClass:"fieldset"},[Rr("legend",[Tr._v("预 览")]),Rr("div",{attrs:{id:"water"}},[Rr("img",{directives:[{name:"show",rawName:"v-show",value:Tr.waterUrl,expression:"waterUrl"}],attrs:{src:Tr.waterUrl,alt:"背景水印"}})])])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Cl=[],Pl=function(Tr){Object(Qr["a"])(WaterSetDialog,Tr);var Dr=Object(Zr["a"])(WaterSetDialog);function WaterSetDialog(){var Tr;return Object(Xr["a"])(this,WaterSetDialog),Tr=Dr.apply(this,arguments),Tr.textContent="",Tr.rotate=1,Tr.waterUrl="",Tr.color="rgba(0, 0, 0, 0.2)",Tr}return Object(Yr["a"])(WaterSetDialog,[{key:"created",value:function created(){var Tr=this.getWaterMark(),Dr=Object(oa["a"])(Tr,3);this.textContent=Dr[0],this.rotate=Dr[1],this.color=Dr[2]}},{key:"codeChange",value:function codeChange(){this.setWaterMark(this.textContent,150,150,this.callbacks,this.rotate,this.color)}},{key:"callbacks",value:function callbacks(Tr){this.waterUrl=Tr}},{key:"sure",value:function sure(){this.setWaterMark(this.textContent,0,0,"setwaterwork",this.rotate,this.color),this.vueController.setPageProperty(JSON.stringify({isHaveBgImage:!0})),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),WaterSetDialog}(Kr.a);__decorate([Prop()],Pl.prototype,"controlStatus",void 0),__decorate([Prop()],Pl.prototype,"vueController",void 0),__decorate([Inject("setWaterMark")],Pl.prototype,"setWaterMark",void 0),__decorate([Inject("getWaterMark")],Pl.prototype,"getWaterMark",void 0),Pl=__decorate([an({name:"WaterSetDialog"})],Pl);var El=Pl,Sl=El,Tl=(Rr("6556"),normalizeComponent(Sl,WaterSetvue_type_template_id_468ee214_render,Cl,!1,null,null,null)),Dl=Tl.exports,CustomAttributesvue_type_template_id_caf6d86c_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"customsFormModal",staticClass:"control-modal-contents customs-modal",on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("自定义属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.customsValue,"max-height":"360px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"名称",width:"210"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)}},model:{value:Dr.row.name,callback:function(Rr){Tr.$set(Dr.row,"name",Rr)},expression:"scope.row.name"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"210"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])})],1)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},kl=[],Ol=function(Tr){Object(Qr["a"])(CustomAttributes,Tr);var Dr=Object(Zr["a"])(CustomAttributes);function CustomAttributes(){var Tr;return Object(Xr["a"])(this,CustomAttributes),Tr=Dr.apply(this,arguments),Tr.focusIndexs=-1,Tr}return Object(Yr["a"])(CustomAttributes,[{key:"customsValue",get:function get(){return this.getCustomsValue()}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"inputIndex",value:function inputIndex(Tr){Tr===this.customsValue.length-1&&this.customsValue.push({name:"",value:""})}},{key:"addCustoms",value:function addCustoms(){this.customsValue.push({name:"",value:""})}},{key:"arrToObject",value:function arrToObject(){var Tr={};return this.customsValue.map((function(Dr){var Rr=Dr;Tr[Rr.name]=Rr.value})),Tr}},{key:"sure",value:function sure(){this.setCustomsValue(this.customsValue),this.closeTimeout()}},{key:"handleClose",value:function handleClose(Tr){var Dr=Tr.target,Rr=document.querySelector(".control-modal");Rr.contains(Dr)||this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var Tr=this;setTimeout((function(){Tr.setIsCustoms(!1)}),0)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.customsFormModal,"modal-title")}}]),CustomAttributes}(mixins(Zn));__decorate([Ref()],Ol.prototype,"customsFormModal",void 0),__decorate([Inject("setIsCustoms")],Ol.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Ol.prototype,"getCustomsValue",void 0),__decorate([Inject("setCustomsValue")],Ol.prototype,"setCustomsValue",void 0),Ol=__decorate([an({name:"CustomAttributes"})],Ol);var Il=Ol,Ml=Il,Nl=(Rr("3894"),normalizeComponent(Ml,CustomAttributesvue_type_template_id_caf6d86c_scoped_true_render,kl,!1,null,"caf6d86c",null)),Ll=Nl.exports,Al=Ll,DataSourcevue_type_template_id_d0d17200_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"dataSourceModal",staticClass:"control-modal-contents data-modal",on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("绑定数据源")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content",staticStyle:{padding:"10px"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{model:{value:Tr.dataSource.dataSourceEnabled,callback:function(Dr){Tr.$set(Tr.dataSource,"dataSourceEnabled",Dr)},expression:"dataSource.dataSourceEnabled"}},[Tr._v("数据源绑定设置有效")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-input",{attrs:{size:"mini",disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"数据源"},model:{value:Tr.dataSource.dataSource,callback:function(Dr){Tr.$set(Tr.dataSource,"dataSource",Dr)},expression:"dataSource.dataSource"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("格式化")]),Rr("el-input",{attrs:{size:"mini",disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"格式化"},model:{value:Tr.dataSource.format,callback:function(Dr){Tr.$set(Tr.dataSource,"format",Dr)},expression:"dataSource.format"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("访问路径")]),Rr("el-input",{attrs:{size:"mini",disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"访问路径"},model:{value:Tr.dataSource.visitPath,callback:function(Dr){Tr.$set(Tr.dataSource,"visitPath",Dr)},expression:"dataSource.visitPath"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{attrs:{disabled:!Tr.dataSource.dataSourceEnabled},model:{value:Tr.dataSource.isReadOnly,callback:function(Dr){Tr.$set(Tr.dataSource,"isReadOnly",Dr)},expression:"dataSource.isReadOnly"}},[Tr._v("只读")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{attrs:{disabled:!Tr.dataSource.dataSourceEnabled},model:{value:Tr.dataSource.autoUpdate,callback:function(Dr){Tr.$set(Tr.dataSource,"autoUpdate",Dr)},expression:"dataSource.autoUpdate"}},[Tr._v("自动更新,当加载文档或者数据源发生改变时自动更新数值")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("执行状态")]),Rr("el-select",{staticStyle:{"text-align":"left"},attrs:{disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"请选择",size:"mini"},model:{value:Tr.dataSource.executeStatus,callback:function(Dr){Tr.$set(Tr.dataSource,"executeStatus",Dr)},expression:"dataSource.executeStatus"}},[Rr("el-option",{attrs:{label:"总是执行",value:0}}),Rr("el-option",{attrs:{label:"只执行一次",value:1}}),Rr("el-option",{attrs:{label:"不执行",value:2}})],1)],1)])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Rl=[],Fl=function(Tr){Object(Qr["a"])(DataSourceDialog,Tr);var Dr=Object(Zr["a"])(DataSourceDialog);function DataSourceDialog(){return Object(Xr["a"])(this,DataSourceDialog),Dr.apply(this,arguments)}return Object(Yr["a"])(DataSourceDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"sure",value:function sure(){this.setDataSource(this.dataSource),this.closeTimeout()}},{key:"handleClose",value:function handleClose(Tr){var Dr=Tr.target,Rr=document.querySelector(".control-modal");Rr.contains(Dr)||this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var Tr=this;setTimeout((function(){Tr.setIsDataSource(!1)}),0)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.dataSourceModal,"modal-title")}}]),DataSourceDialog}(mixins(Zn));__decorate([Ref()],Fl.prototype,"dataSourceModal",void 0),__decorate([Inject("getDataSource")],Fl.prototype,"getDataSource",void 0),__decorate([Inject("setIsDataSource")],Fl.prototype,"setIsDataSource",void 0),__decorate([Inject("setDataSource")],Fl.prototype,"setDataSource",void 0),Fl=__decorate([an({name:"DataSourceDialog"})],Fl);var jl=Fl,Bl=jl,Ul=(Rr("9bb6"),normalizeComponent(Bl,DataSourcevue_type_template_id_d0d17200_render,Rl,!1,null,null,null)),Hl=Ul.exports,Wl=Hl,ListSourcevue_type_template_id_433a8f7f_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:Tr.handleClose,expression:"handleClose"}],ref:"listSourceModal",staticClass:"control-modal-contents list-source-modal",on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("下拉列表")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item",staticStyle:{width:"100%"}},[Rr("span",{staticClass:"label",staticStyle:{width:"42px"}},[Tr._v("来源")]),Rr("el-input",{attrs:{size:"mini",placeholder:"来源"},model:{value:Tr.source,callback:function(Dr){Tr.source=Dr},expression:"source"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"42px"}},[Tr._v("列表")]),Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.listValue,height:"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.type,callback:function(Rr){Tr.$set(Dr.row,"type",Rr)},expression:"scope.row.type"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Dr.row.default?Rr("span",{staticClass:"tags"},[Tr._v("默认")]):Tr._e(),Dr.row.default?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.cancelDefault(Dr.row.id)}}},[Tr._v("取消")]):Tr._e(),!Dr.row.default&&Dr.row.text?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.setDefault(Dr.row.id)}}},[Tr._v("设为默认")]):Tr._e(),Dr.$index!==Tr.listValue.length-1&&Tr.focusIndexs===Dr.$index?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")]):Tr._e()]}}])})],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},ql=[],zl=function(Tr){Object(Qr["a"])(ListSource,Tr);var Dr=Object(Zr["a"])(ListSource);function ListSource(){var Tr;return Object(Xr["a"])(this,ListSource),Tr=Dr.apply(this,arguments),Tr.focusIndexs=-1,Tr.source="",Tr.errorArr=[],Tr.errorIndex=[],Tr.listValue=[],Tr.isAllowMultiSelected=!1,Tr}return Object(Yr["a"])(ListSource,[{key:"mounted",value:function mounted(){this.init()}},{key:"init",value:function init(){var Tr=[{text:"",value:"",type:0,id:this.getKeyId()}],Dr=[],Rr=this.getListStyle();Rr&&Rr.length>0&&(Dr=Object(Gr["a"])(this.getListStyle())),this.listValue=[].concat(Object(Gr["a"])(Dr),Tr),this.source=this.getListArrSource(),this.isAllowMultiSelected=this.getListAllowMultiSelected()}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.listValue[Tr];if(""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.listValue.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.listValue.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0)this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id);else{this.errorIndex=[];var Rr=this.listValue.filter((function(Tr){if(""===(null===Tr||void 0===Tr?void 0:Tr.value.replace(/\s*/g,""))&&""===(null===Tr||void 0===Tr?void 0:Tr.text.replace(/\s*/g,"")))return Tr}));0===Rr.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this,Rr=this.listValue[Tr];this.errorArr=Object(Gr["a"])(this.listValue.filter((function(Tr){if(Tr.text===(null===Rr||void 0===Rr?void 0:Rr.text)&&Tr.id!==(null===Rr||void 0===Rr?void 0:Rr.id))return Tr})));var Ur=Object(Gr["a"])(this.listValue.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr})));this.errorArr.length>0?(this.errorIndex.includes(Rr.id)||this.errorIndex.push(Rr.id),Ur.forEach((function(Tr){Dr.deleteCurrentRow(Tr.id)}))):(this.errorIndex=[],0===Ur.length&&this.addCustoms())}},{key:"addCustoms",value:function addCustoms(){this.listValue.push({text:"",value:"",type:0,id:this.getKeyId(),default:!1})}},{key:"setDefault",value:function setDefault(Tr){var Dr=this;this.listValue=Object(Gr["a"])(this.listValue.map((function(Rr){return Rr.id===Tr?""!==Rr.text.replace(/\s*/g,"")&&(Rr.default=!0):Dr.isAllowMultiSelected||(Rr.default=!1),Rr})))}},{key:"cancelDefault",value:function cancelDefault(Tr){this.listValue=Object(Gr["a"])(this.listValue.map((function(Dr){return Dr.id===Tr&&(Dr.default=!1),Dr})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.listValue.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.listValue.splice(Dr,1)}},{key:"arrToObject",value:function arrToObject(){var Tr={};return this.listValue.map((function(Dr){var Rr=Dr;Tr[Rr.text]=Rr.value})),Tr}},{key:"sure",value:function sure(){if(0!==this.errorArr.length)return!1;var Tr=this.listValue.filter((function(Tr){if(Tr.text||Tr.value)return Tr}));this.setListStyle(Tr,this.source),this.closeTimeout()}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var Tr=this;setTimeout((function(){Tr.setIsListStyle(!1),Tr.listValue=[]}),0)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.listSourceModal,"modal-title")}}]),ListSource}(mixins(Zn));__decorate([Ref()],zl.prototype,"listSourceModal",void 0),__decorate([Inject("setIsListStyle")],zl.prototype,"setIsListStyle",void 0),__decorate([Inject("setListStyle")],zl.prototype,"setListStyle",void 0),__decorate([Inject("getListAllowMultiSelected")],zl.prototype,"getListAllowMultiSelected",void 0),__decorate([Inject("getListStyle")],zl.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],zl.prototype,"getListArrSource",void 0),zl=__decorate([an({name:"ListSource"})],zl);var Vl=zl,Kl=Vl,$l=(Rr("0434"),normalizeComponent(Kl,ListSourcevue_type_template_id_433a8f7f_scoped_true_render,ql,!1,null,"433a8f7f",null)),Gl=$l.exports,Jl=Gl,TablePropertyvue_type_template_id_4b692cf7_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("表格属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("自定义属性")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openCustomsModal}},[Tr._v("自定义属性")])],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canAdjustRowHeight,callback:function(Dr){Tr.canAdjustRowHeight=Dr},expression:"canAdjustRowHeight"}},[Tr._v("用户可调整行高")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canAdjustRowWidth,callback:function(Dr){Tr.canAdjustRowWidth=Dr},expression:"canAdjustRowWidth"}},[Tr._v("用户可调整列宽")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canAddRow,callback:function(Dr){Tr.canAddRow=Dr},expression:"canAddRow"}},[Tr._v("用户可新增表格行列")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canDeleteRow,callback:function(Dr){Tr.canDeleteRow=Dr},expression:"canDeleteRow"}},[Tr._v("用户可删除表格行列")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canDeleteTable,callback:function(Dr){Tr.canDeleteTable=Dr},expression:"canDeleteTable"}},[Tr._v("用户可删除表格")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.continuePrintBorders,callback:function(Dr){Tr.continuePrintBorders=Dr},expression:"continuePrintBorders"}},[Tr._v("续打时打印所有单元格边框")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.isAutoChangeLine,callback:function(Dr){Tr.isAutoChangeLine=Dr},expression:"isAutoChangeLine"}},[Tr._v("表格内自动换行")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("span",{staticStyle:{padding:"0 10px 0 23px"}},[Tr._v("表格内自动换行行高")]),Rr("el-input-number",{attrs:{size:"mini",disabled:!Tr.isAutoChangeLine,step:1,min:0,precision:2,controls:!1},model:{value:Tr.autoLineHeight,callback:function(Dr){Tr.autoLineHeight=Dr},expression:"autoLineHeight"}}),Rr("span",{staticStyle:{"padding-left":"6px"}},[Tr._v(" 厘米")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("span",{staticStyle:{padding:"0 10px 0 23px"}},[Tr._v("当前光标所在行行高 "+Tr._s(Tr.rowHeightMm)+" 厘米")])])])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Xl=[],Yl=function(Tr){Object(Qr["a"])(TablePoperty,Tr);var Dr=Object(Zr["a"])(TablePoperty);function TablePoperty(){var Tr;return Object(Xr["a"])(this,TablePoperty),Tr=Dr.apply(this,arguments),Tr.id="",Tr.canAdjustRowHeight=!1,Tr.canAdjustRowWidth=!1,Tr.canAddRow=!0,Tr.canDeleteRow=!0,Tr.canDeleteTable=!0,Tr.continuePrintBorders=!1,Tr.layoutFullLine=!0,Tr.tightLineSpace=!1,Tr.isAutoChangeLine=!1,Tr.autoLineHeight=0,Tr.rowHeightMm=0,Tr.endPath="",Tr}return Object(Yr["a"])(TablePoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.name||Tr.value)return Tr}))}},{key:"created",value:function created(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr);this.endPath=Dr.docTree.curDomRange.normalize().endPath;var Rr=this.getTableNodes();Rr&&(this.id=Rr.tableProperty.id?Rr.tableProperty.id:this.vueController.generateID("TB"),this.canAdjustRowHeight=Rr.tableProperty.canAdjustRowHeight,this.canAdjustRowWidth=Rr.tableProperty.canAdjustRowWidth,this.canAddRow=Rr.tableProperty.canAddRow,this.canDeleteRow=Rr.tableProperty.canDeleteRow,this.canDeleteTable=Rr.tableProperty.canDeleteTable,this.continuePrintBorders=Rr.tableProperty.continuePrintBorders,this.layoutFullLine=Rr.tableProperty.layoutFullLine,this.tightLineSpace=Rr.tableProperty.tightLineSpace,this.isAutoChangeLine=Rr.tableProperty.isAutoChangeLine,this.autoLineHeight=Rr.tableProperty.autoLineHeight)}},{key:"getTableNodes",value:function getTableNodes(){var Tr,Dr=this.vueController.findNodebyPath(this.endPath).node,Rr=this.getCellNode(Dr),Ur=null===Rr||void 0===Rr?void 0:Rr.table,Hr=null===Rr||void 0===Rr?void 0:Rr.table.rows.indexOf(null===Rr||void 0===Rr?void 0:Rr.row);if(void 0!==Hr){var Wr=null===Rr||void 0===Rr?void 0:Rr.table.rowInfos[Hr];if(Wr){var zr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);Wr.rowProperty.rowHeight?this.rowHeightMm=Number(Wr.rowProperty.rowHeight.toFixed(2)):this.rowHeightMm=Number((zr.unitConvert.pxConversionMm(Wr.rowHeight,!1)/10).toFixed(2))}}var Vr=null===Ur||void 0===Ur||null===(Tr=Ur.tableProperty)||void 0===Tr?void 0:Tr.customProperties;return Vr&&Vr.length>0&&this.setCustomsValue([].concat(Object(Gr["a"])(Vr),[{name:"",value:""}])),Ur}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){var Tr=this,Dr={id:this.id,customProperties:this.customProperties,canAdjustRowHeight:this.canAdjustRowHeight,canAdjustRowWidth:this.canAdjustRowWidth,canAddRow:this.canAddRow,canDeleteRow:this.canDeleteRow,canDeleteTable:this.canDeleteTable,continuePrintBorders:this.continuePrintBorders,layoutFullLine:this.layoutFullLine,tightLineSpace:this.tightLineSpace,isAutoChangeLine:this.isAutoChangeLine,autoLineHeight:this.autoLineHeight},Rr=this.getTableNodes();this.vueController.tableProperty(JSON.stringify(Dr),Rr),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TablePoperty}(mixins(Pi));__decorate([Prop()],Yl.prototype,"vueController",void 0),__decorate([Prop()],Yl.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsCustoms")],Yl.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Yl.prototype,"getCustomsValue",void 0),__decorate([Inject("setCustomsValue")],Yl.prototype,"setCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Yl.prototype,"getActiveDocId",void 0),Yl=__decorate([an({name:"TablePoperty"})],Yl);var Ql=Yl,Zl=Ql,ec=(Rr("ca84b"),normalizeComponent(Zl,TablePropertyvue_type_template_id_4b692cf7_scoped_true_render,Xl,!1,null,"4b692cf7",null)),tc=ec.exports,TableRowPropertyvue_type_template_id_561d76c0_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("表格行属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("自定义属性")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openCustomsModal}},[Tr._v("自定义属性")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{"padding-right":"20px"}},[Rr("el-checkbox",{on:{change:Tr.watchParamsChange},model:{value:Tr.isSpecifyHeight,callback:function(Dr){Tr.isSpecifyHeight=Dr},expression:"isSpecifyHeight"}},[Tr._v("指定高度(厘米)")])],1),Rr("el-input-number",{attrs:{size:"mini",disabled:!Tr.isSpecifyHeight,precision:2,step:1,min:0,controls:!1,"controls-position":"right"},model:{value:Tr.rowHeight,callback:function(Dr){Tr.rowHeight=Dr},expression:"rowHeight"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("当前显示高度 "+Tr._s(Tr.rowHeightMm)+" 厘米")])],1),Rr("li",{staticClass:"control-item",staticStyle:{padding:"0 0 0 10px"}},[Rr("el-checkbox",{attrs:{disabled:!Tr.isSpecifyHeight},model:{value:Tr.isAutoRaiseHeight,callback:function(Dr){Tr.isAutoRaiseHeight=Dr},expression:"isAutoRaiseHeight"}},[Tr._v("内容过多时自动撑大行高以显示所有内容")])],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.repeatAsTitleAtPageTop,callback:function(Dr){Tr.repeatAsTitleAtPageTop=Dr},expression:"repeatAsTitleAtPageTop"}},[Tr._v("在隔页顶端以标题行形式重复出现")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.sameLineCanAcrossPages,callback:function(Dr){Tr.sameLineCanAcrossPages=Dr},expression:"sameLineCanAcrossPages"}},[Tr._v("同行内容能跨页")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.forcedPageBreak,callback:function(Dr){Tr.forcedPageBreak=Dr},expression:"forcedPageBreak"}},[Tr._v("强制分页")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.printCellBorders,callback:function(Dr){Tr.printCellBorders=Dr},expression:"printCellBorders"}},[Tr._v("打印单元格边框线")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.printCellBg,callback:function(Dr){Tr.printCellBg=Dr},expression:"printCellBg"}},[Tr._v("打印单元格背景")])],1)])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},rc=[],nc=function(Tr){Object(Qr["a"])(TableRowPoperty,Tr);var Dr=Object(Zr["a"])(TableRowPoperty);function TableRowPoperty(){var Tr;return Object(Xr["a"])(this,TableRowPoperty),Tr=Dr.apply(this,arguments),Tr.id="",Tr.defaultRowProperty={rowHeight:0,isSpecifyHeight:!1,isAutoRaiseHeight:!1,repeatAsTitleAtPageTop:!1,sameLineCanAcrossPages:!0,forcedPageBreak:!1,printCellBorders:!0,printCellBg:!0,tabKeyInsNewLine:!1,customProperties:[{name:"",value:""}],dataSource:{dataSourceEnabled:!0,dataSource:"",format:"",visitPath:"",isReadOnly:!1,autoUpdate:!1,executeStatus:0}},Tr.rowHeightMm="0",Tr.rowHeight=0,Tr.isSpecifyHeight=!1,Tr.isAutoRaiseHeight=!1,Tr.repeatAsTitleAtPageTop=!1,Tr.sameLineCanAcrossPages=!0,Tr.forcedPageBreak=!1,Tr.printCellBorders=!0,Tr.printCellBg=!0,Tr.tabKeyInsNewLine=!1,Tr.paramsChange=[],Tr.rowInfos=null,Tr.rowProperty=null,Tr}return Object(Yr["a"])(TableRowPoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.name||Tr.value)return Tr}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){this.init()}},{key:"init",value:function init(){var Tr=this.getCellNodes();if(null!==Tr){var Dr=Tr.table.rows.indexOf(Tr.row);this.rowInfos=Tr.table.rowInfos[Dr]}if(null!==this.rowInfos&&(this.rowProperty=this.rowInfos.rowProperty),null!==this.rowProperty&&null!==this.rowInfos){var Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);this.id=this.rowProperty.id?this.rowProperty.id:this.vueController.generateID("TB"),this.isSpecifyHeight=this.rowProperty.isSpecifyHeight,this.rowHeight=this.rowProperty.rowHeight,this.isAutoRaiseHeight=this.rowProperty.isAutoRaiseHeight,this.repeatAsTitleAtPageTop=this.rowProperty.repeatAsTitleAtPageTop,this.sameLineCanAcrossPages=this.rowProperty.sameLineCanAcrossPages,this.forcedPageBreak=this.rowProperty.forcedPageBreak,this.printCellBorders=this.rowProperty.printCellBorders,this.printCellBg=this.rowProperty.printCellBg,this.tabKeyInsNewLine=this.rowProperty.tabKeyInsNewLine,this.rowHeightMm=(Rr.unitConvert.pxConversionMm(this.rowInfos.rowHeight,!1)/10).toFixed(2)}}},{key:"getCellNodes",value:function getCellNodes(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr),Rr=Dr.docTree.curDomRange.normalize().endPath,Ur=this.vueController.findNodebyPath(Rr).node,Hr=this.getCellNode(Ur),Wr=null===Hr||void 0===Hr?void 0:Hr.table.rows.indexOf(null===Hr||void 0===Hr?void 0:Hr.row);if(Wr){var zr=null===Hr||void 0===Hr?void 0:Hr.table.rowInfos[Wr];if(zr){var Vr,Kr,$r,Jr=null===(Vr=zr.rowProperty)||void 0===Vr?void 0:Vr.customProperties;if(Jr&&Jr.length>0&&this.setCustomsValue([].concat(Object(Gr["a"])(Jr),[{name:"",value:""}])),null!==(Kr=zr.rowProperty)&&void 0!==Kr&&Kr.dataSource)this.setDataSource(null===($r=zr.rowProperty)||void 0===$r?void 0:$r.dataSource);else this.setDataSource()}}return Hr}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyHeight||(this.rowHeight=0,this.isAutoRaiseHeight=!1)}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){var Tr=this,Dr={id:this.id,customProperties:this.customProperties,dataSource:this.dataSource,isSpecifyHeight:this.isSpecifyHeight,rowHeight:this.rowHeight,isAutoRaiseHeight:this.isAutoRaiseHeight,repeatAsTitleAtPageTop:this.repeatAsTitleAtPageTop,sameLineCanAcrossPages:this.sameLineCanAcrossPages,forcedPageBreak:this.forcedPageBreak,printCellBorders:this.printCellBorders,printCellBg:this.printCellBg,tabKeyInsNewLine:this.tabKeyInsNewLine},Rr={};Object.keys(Dr).forEach((function(Dr){JSON.stringify(Tr[Dr])!==JSON.stringify(Tr.defaultRowProperty[Dr])&&(Rr[Dr]=Tr[Dr])})),this.vueController.rowProperty(JSON.stringify(Rr),this.rowInfos),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.rowInfos=null,this.rowProperty=null}}]),TableRowPoperty}(mixins(Pi));__decorate([Prop()],nc.prototype,"vueController",void 0),__decorate([Prop()],nc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],nc.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],nc.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],nc.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],nc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],nc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],nc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],nc.prototype,"getActiveDocId",void 0),nc=__decorate([an({name:"TableRowPoperty"})],nc);var ic=nc,ac=ic,oc=(Rr("df10"),normalizeComponent(ac,TableRowPropertyvue_type_template_id_561d76c0_scoped_true_render,rc,!1,null,"561d76c0",null)),sc=oc.exports,TableColPropertyvue_type_template_id_d037fa9c_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("表格列属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{"padding-right":"20px"}},[Rr("el-checkbox",{on:{change:Tr.watchParamsChange},model:{value:Tr.isSpecifyWidth,callback:function(Dr){Tr.isSpecifyWidth=Dr},expression:"isSpecifyWidth"}},[Tr._v("指定宽度(厘米)")])],1),Rr("el-input-number",{attrs:{size:"mini",disabled:!Tr.isSpecifyWidth,step:1,min:0,precision:2,controls:!1},model:{value:Tr.width,callback:function(Dr){Tr.width=Dr},expression:"width"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("当前显示宽度 "+Tr._s(Tr.colWidth)+" 厘米")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("垂直对齐方式")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:Tr.align,callback:function(Dr){Tr.align=Dr},expression:"align"}},[Rr("el-option",{attrs:{label:"靠上",value:0}}),Rr("el-option",{attrs:{label:"居中",value:1}}),Rr("el-option",{attrs:{label:"靠下",value:2}})],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编辑器属性")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},on:{change:Tr.editorPropertyChange},model:{value:Tr.editorProperty,callback:function(Dr){Tr.editorProperty=Dr},expression:"editorProperty"}},[Rr("el-option",{attrs:{label:"无",value:0}}),Rr("el-option",{attrs:{label:"下拉列表",value:1}}),Rr("el-option",{attrs:{label:"日期",value:2}}),Rr("el-option",{attrs:{label:"数值",value:3}})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("分隔符")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:Tr.splitCharacter,callback:function(Dr){Tr.splitCharacter=Dr},expression:"splitCharacter"}},[Rr("el-option",{attrs:{label:",",value:","}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.allowMultiSelected,callback:function(Dr){Tr.allowMultiSelected=Dr},expression:"allowMultiSelected"}},[Tr._v("允许多选")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.isAllowDel,callback:function(Dr){Tr.isAllowDel=Dr},expression:"isAllowDel"}},[Tr._v("允许被删除")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.canModifyContent,callback:function(Dr){Tr.canModifyContent=Dr},expression:"canModifyContent"}},[Tr._v("用户可以直接编辑修改内容")])],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("来源")]),Rr("el-input",{attrs:{size:"mini"},model:{value:Tr.source,callback:function(Dr){Tr.source=Dr},expression:"source"}})],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.listItems,"max-height":"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return Dr.$index!==Tr.listItems.length-1&&Tr.focusIndexs===Dr.$index?[Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")])]:void 0}}],null,!0)})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:2===Tr.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("日期格式")]),Rr("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:Tr.inputStyle,callback:function(Dr){Tr.inputStyle=Dr},expression:"inputStyle"}},Tr._l(Tr.dateFormatList,(function(Tr){return Rr("el-option",{key:Tr,attrs:{label:Tr,value:Tr}})})),1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:3===Tr.editorProperty,expression:"editorProperty === 3"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("最小值")]),Rr("el-input-number",{attrs:{size:"mini",max:Number(Tr.maxNumVal),min:0,step:10,controls:!1},model:{value:Tr.minNumVal,callback:function(Dr){Tr.minNumVal=Dr},expression:"minNumVal"}})],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("最大值")]),Rr("el-input-number",{attrs:{size:"mini",min:Number(Tr.minNumVal),step:10,controls:!1},model:{value:Tr.maxNumVal,callback:function(Dr){Tr.maxNumVal=Dr},expression:"maxNumVal"}})],1)])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},cc=[],uc=function(Tr){Object(Qr["a"])(TableColPoperty,Tr);var Dr=Object(Zr["a"])(TableColPoperty);function TableColPoperty(){var Tr;return Object(Xr["a"])(this,TableColPoperty),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.id="",Tr.editorProperty=1,Tr.align=0,Tr.width=0,Tr.isSpecifyWidth=!1,Tr.listItems=[],Tr.source="",Tr.canModifyContent=!0,Tr.isAllowDel=!0,Tr.allowMultiSelected=!1,Tr.splitCharacter=",",Tr.errorArr=[],Tr.errorIndex=[],Tr.focusIndexs=-1,Tr.inputStyle="yyyy-MM-dd HH:mm:ss",Tr.colWidth="0",Tr.maxNumVal=0,Tr.minNumVal=50,Tr.defaultColProperty={id:"",editorProperty:0,align:0,width:0,isSpecifyWidth:!1,downListProperty:void 0,dateTimeProperty:void 0,numberProperty:void 0},Tr.colInfoes=null,Tr}return Object(Yr["a"])(TableColPoperty,[{key:"created",value:function created(){var Tr=this.getCellNodes();if(null!==Tr){var Dr=Tr.row.indexOf(Tr);this.colInfoes=Tr.table.colInfos[Dr]}if(null!==this.colInfoes){var Rr,Ur,Hr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Wr=this.colInfoes.colProperty;this.id=Wr.id?Wr.id:this.vueController.generateID("TB"),this.editorProperty=Wr.editorProperty?Wr.editorProperty:0,this.align=Wr.align?Wr.align:0;var zr=this.getKeyId(0),Vr=[{value:"",text:"",id:zr}];this.listItems=Wr.downListProperty&&JSON.parse(Wr.downListProperty.listItems)?[].concat(Object(Gr["a"])(JSON.parse(Wr.downListProperty.listItems)),Vr):[].concat(Vr),this.source=Wr.downListProperty?Wr.downListProperty.source:"",this.canModifyContent=!Wr.downListProperty||Wr.downListProperty.canModifyContent,this.isAllowDel=!Wr.downListProperty||Wr.downListProperty.isAllowDel,this.allowMultiSelected=!!Wr.downListProperty&&Wr.downListProperty.allowMultiSelected,this.splitCharacter=Wr.downListProperty?Wr.downListProperty.splitCharacter:",",this.inputStyle=null!==(Rr=Wr.dateTimeProperty)&&void 0!==Rr&&Rr.inputStyle?null===(Ur=Wr.dateTimeProperty)||void 0===Ur?void 0:Ur.inputStyle:"yyyy-MM-dd",this.maxNumVal=Wr.numberProperty?Wr.numberProperty.maxNumVal:0,this.minNumVal=Wr.numberProperty?Wr.numberProperty.minNumVal:100,this.width=Wr.width?Wr.width:0,this.colWidth=(Hr.unitConvert.pxConversionMm(this.colInfoes.colWidth,!1)/10).toFixed(2),this.isSpecifyWidth=!!Wr.isSpecifyWidth}}},{key:"getCellNodes",value:function getCellNodes(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr),Rr=Dr.docTree.curDomRange.normalize().endPath,Ur=this.vueController.findNodebyPath(Rr).node;return this.getCellNode(Ur)}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyWidth||(this.width=0)}},{key:"querySearch",value:function querySearch(Tr,Dr){Dr(Jn["f"])}},{key:"editorPropertyChange",value:function editorPropertyChange(){}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.listItems[Tr];""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.listItems.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.listItems.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0?this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this.listItems.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr}));0===Dr.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.listItems.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.listItems.splice(Dr,1)}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"sure",value:function sure(){var Tr,Dr,Rr,Ur=this,Hr={};if(this.editorProperty===Sn["e"].DownList){var Wr=this.listItems.filter((function(Tr){if(Tr.text||Tr.value)return Tr}));Tr={listItems:JSON.stringify(Wr),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},this.editorProperty!==this.defaultColProperty.editorProperty&&(Hr.downListProperty=Tr)}else this.editorProperty===Sn["e"].DateTime?(Dr={inputStyle:this.inputStyle},this.editorProperty!==this.defaultColProperty.editorProperty&&(Hr.dateTimeProperty=Dr)):this.editorProperty===Sn["e"].Number&&(Rr={minNumVal:this.minNumVal,maxNumVal:this.maxNumVal},this.editorProperty!==this.defaultColProperty.editorProperty&&(Hr.numberProperty=Rr));var zr={id:this.id,editorProperty:this.editorProperty,align:this.align,width:this.width,isSpecifyWidth:this.isSpecifyWidth};Object.keys(zr).forEach((function(Tr){JSON.stringify(Ur[Tr])!==JSON.stringify(Ur.defaultColProperty[Tr])&&(Hr[Tr]=Ur[Tr])})),this.vueController.colProperty(JSON.stringify(Hr),this.colInfoes),this.$nextTick((function(){return Ur.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.colInfoes=null}}]),TableColPoperty}(mixins(Pi));__decorate([Prop()],uc.prototype,"vueController",void 0),__decorate([Prop()],uc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("getActiveDocId")],uc.prototype,"getActiveDocId",void 0),uc=__decorate([an({name:"TableColPoperty"})],uc);var dc=uc,hc=dc,pc=(Rr("6d6a"),normalizeComponent(hc,TableColPropertyvue_type_template_id_d037fa9c_render,cc,!1,null,null,null)),fc=pc.exports,TableCellPropertyvue_type_template_id_134c4d55_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-cell-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("单元格属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-tabs",{model:{value:Tr.textActiveName,callback:function(Dr){Tr.textActiveName=Dr},expression:"textActiveName"}},[Rr("el-tab-pane",{attrs:{label:"常规",name:"0"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[Tr._v("标题")]),Rr("el-input",{attrs:{size:"mini",placeholder:"标题"},model:{value:Tr.title,callback:function(Dr){Tr.title=Dr},expression:"title"}})],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("自定义属性")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openCustomsModal}},[Tr._v("自定义属性")])],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.lightCellBorders,callback:function(Dr){Tr.lightCellBorders=Dr},expression:"lightCellBorders"}},[Tr._v("突出显示单元格边框")])],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[Tr._v("垂直对齐方式")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:Tr.align,callback:function(Dr){Tr.align=Dr},expression:"align"}},[Rr("el-option",{attrs:{label:"靠上",value:0}}),Rr("el-option",{attrs:{label:"垂直居中",value:1}}),Rr("el-option",{attrs:{label:"靠下",value:2}})],1)],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("单元格背景色")]),Rr("ho-color-picker",{attrs:{defaultColor:"#ffffff"},model:{value:Tr.backColor,callback:function(Dr){Tr.backColor=Dr},expression:"backColor"}})],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[Tr._v("单元格内边距")]),Rr("span",{staticClass:"label"},[Tr._v("上")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellTop,callback:function(Dr){Tr.cellTop=Dr},expression:"cellTop"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")]),Rr("span",{staticClass:"label"},[Tr._v("下")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellBottom,callback:function(Dr){Tr.cellBottom=Dr},expression:"cellBottom"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")])],1),Rr("div",[Rr("span",{staticClass:"label",staticStyle:{display:"inline-block",padding:"0 44px","margin-left":"-1px"}}),Rr("span",{staticClass:"label"},[Tr._v("左")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellLeft,callback:function(Dr){Tr.cellLeft=Dr},expression:"cellLeft"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")]),Rr("span",{staticClass:"label"},[Tr._v("右")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellRight,callback:function(Dr){Tr.cellRight=Dr},expression:"cellRight"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("边框设置")]),Rr("div",[Rr("el-checkbox",{on:{change:Tr.isDrawGridlinesChange},model:{value:Tr.isDrawGridlines,callback:function(Dr){Tr.isDrawGridlines=Dr},expression:"isDrawGridlines"}},[Tr._v("绘制边框")])],1)]),Rr("li",{staticClass:"control-item grid-lines-style",style:{color:Tr.isDrawGridlines?"#000000":"#C0C4CC"}},[Rr("span",{staticClass:"label"}),Rr("div",[Rr("div",{staticClass:"control-item"},[Rr("div",{staticClass:"grid-lines-color-item"},[Rr("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[Tr._v("边框颜色")]),Rr("ho-color-picker",{model:{value:Tr.gridLinesColor[0],callback:function(Dr){Tr.$set(Tr.gridLinesColor,0,Dr)},expression:"gridLinesColor[0]"}})],1)]),Rr("PrintLineStyle",{attrs:{isDrawGridlines:Tr.isDrawGridlines,defaultStyle:Tr.gridLinesStyle,placeholder:"边框样式"},on:{change:Tr.printStyleChange}}),Rr("li",{staticClass:"control-item"},[Rr("el-checkbox",{attrs:{disabled:!Tr.isDrawGridlines},model:{value:Tr.printGridLines,callback:function(Dr){Tr.printGridLines=Dr},expression:"printGridLines"}},[Tr._v("打印边框")])],1)],1)])])]),Rr("el-tab-pane",{attrs:{label:"双击属性",name:"1"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编辑器属性")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},model:{value:Tr.editorProperty,callback:function(Dr){Tr.editorProperty=Dr},expression:"editorProperty"}},[Rr("el-option",{attrs:{label:"无",value:0}}),Rr("el-option",{attrs:{label:"下拉列表",value:1}}),Rr("el-option",{attrs:{label:"日期",value:2}})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("分隔符")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:Tr.splitCharacter,callback:function(Dr){Tr.splitCharacter=Dr},expression:"splitCharacter"}},[Rr("el-option",{attrs:{label:",",value:","}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.allowMultiSelected,callback:function(Dr){Tr.allowMultiSelected=Dr},expression:"allowMultiSelected"}},[Tr._v("允许多选")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.isAllowDel,callback:function(Dr){Tr.isAllowDel=Dr},expression:"isAllowDel"}},[Tr._v("允许被删除")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.canModifyContent,callback:function(Dr){Tr.canModifyContent=Dr},expression:"canModifyContent"}},[Tr._v("用户可以直接编辑修改内容")])],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("来源")]),Rr("el-input",{attrs:{size:"mini"},model:{value:Tr.source,callback:function(Dr){Tr.source=Dr},expression:"source"}})],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.listItems,"max-height":"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return Dr.$index!==Tr.listItems.length-1&&Tr.focusIndexs===Dr.$index?[Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")])]:void 0}}],null,!0)})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:2===Tr.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("日期格式")]),Rr("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:Tr.inputStyle,callback:function(Dr){Tr.inputStyle=Dr},expression:"inputStyle"}},Tr._l(Tr.dateFormatList,(function(Tr){return Rr("el-option",{key:Tr,attrs:{label:Tr,value:Tr}})})),1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:2===Tr.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.isAutoInputCurDate,callback:function(Dr){Tr.isAutoInputCurDate=Dr},expression:"isAutoInputCurDate"}},[Tr._v("双击设置当前日期时间")])],1)])])]),Rr("el-tab-pane",{attrs:{label:"斜分割线",name:"2"}},[Rr("ul",{staticClass:"diagonal-line"},[Rr("li",{class:0===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(0)}}},[Rr("span",{staticClass:"line no-line"}),Rr("span",[Tr._v("None")])]),Rr("li",{class:1===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(1)}}},[Rr("span",{staticClass:"line left-line top-line top-left-one-line"}),Rr("span",[Tr._v("TopLeftOneLine")])]),Rr("li",{class:2===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(2)}}},[Rr("span",{staticClass:"line left-line top-line top-left-two-line"}),Rr("span",[Tr._v("TopLeftTwoLine")])]),Rr("li",{class:3===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(3)}}},[Rr("span",{staticClass:"line right-line top-line top-right-one-line"}),Rr("span",[Tr._v("TopRightOneLine")])]),Rr("li",{class:4===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(4)}}},[Rr("span",{staticClass:"line right-line top-line top-right-two-line"}),Rr("span",[Tr._v("TopRightTwoLine")])]),Rr("li",{class:5===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(5)}}},[Rr("span",{staticClass:"line left-line bottom-line bottom-left-one-line"}),Rr("span",[Tr._v("BottomLeftOneLine")])]),Rr("li",{class:6===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(6)}}},[Rr("span",{staticClass:"line left-line bottom-line bottom-left-two-line"}),Rr("span",[Tr._v("BottomLeftTwoLine")])]),Rr("li",{class:7===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(7)}}},[Rr("span",{staticClass:"line right-line bottom-line bottom-right-one-line"}),Rr("span",[Tr._v("BottomRightOneLine")])]),Rr("li",{class:8===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(8)}}},[Rr("span",{staticClass:"line right-line bottom-line bottom-right-two-line"}),Rr("span",[Tr._v("BottomRightTwoLine")])])])])],1)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},_c=[],PrintLineStylevue_type_template_id_3a0156b2_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",style:{width:Tr.labelWidth}},[Tr._v(Tr._s(Tr.placeholder))]),Rr("el-select",{staticClass:"grid-lines-style",staticStyle:{width:"144px"},attrs:{disabled:Tr.isDrawGridlines,placeholder:Tr.placeholder,size:"mini"},on:{change:Tr.linesStyleChange},model:{value:Tr.linesStyle,callback:function(Dr){Tr.linesStyle=Dr},expression:"linesStyle"}},[Rr("el-option",{attrs:{label:"solid",value:0}},[Rr("svg",{attrs:{viewBox:"0 0 18236 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"34"}},[Rr("path",{attrs:{d:"M0 0h18236.952381v1024H0z",fill:"#333"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("solid")])]),Rr("el-option",{attrs:{label:"dash",value:1}},[Rr("svg",{attrs:{viewBox:"0 0 15360 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"32",fill:"#333"}},[Rr("path",{attrs:{d:"M0 1024V0h3072v1024H0z m4096 0V0h3072v1024H4096z m8192 0V0h3072v1024h-3072z m-4096 0V0h3072v1024H8192z"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("dash")])]),Rr("el-option",{attrs:{label:"dashdot",value:2}},[Rr("svg",{staticStyle:{transform:"translateY(8px)"},attrs:{viewBox:"0 0 7680 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"50",height:"20",fill:"#333"}},[Rr("path",{attrs:{d:"M0 0h2304v1024H0V0z m3328 0h1024v1024h-1024V0z m2048 0h2304v1024h-2304V0z"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("dashdot")])]),Rr("el-option",{attrs:{label:"dashdotdo",value:3}},[Rr("svg",{attrs:{viewBox:"0 0 12288 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"80",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M6912 0h1536v1024h-1536V0zM3840 0h1536v1024h-1536V0zM0 0h2304v1024H0V0z m9984 0h2304v1024h-2304V0z"}})]),Rr("span",{staticStyle:{flex:"1",padding:"0 33px"}}),Rr("span",[Tr._v("dashdotdot")])]),Rr("el-option",{attrs:{label:"dot",value:4}},[Rr("svg",{staticStyle:{transform:"translateY(-12px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),Rr("svg",{staticStyle:{transform:"translateY(-12px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),Rr("svg",{staticStyle:{transform:"translateY(-12px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("dot")])])],1)],1)},gc=[],mc=(Rr("f00c8"),function(Tr){Object(Qr["a"])(PrintLineStyle,Tr);var Dr=Object(Zr["a"])(PrintLineStyle);function PrintLineStyle(){var Tr;return Object(Xr["a"])(this,PrintLineStyle),Tr=Dr.apply(this,arguments),Tr.linesStyle=0,Tr}return Object(Yr["a"])(PrintLineStyle,[{key:"defaultStyles",get:function get(){return Number.isFinite(this.defaultStyle)?this.defaultStyle:0}},{key:"created",value:function created(){this.linesStyle=this.defaultStyles}},{key:"linesStyleChange",value:function linesStyleChange(Tr){this.$emit("change",Tr)}}]),PrintLineStyle}(Kr.a));__decorate([Prop()],mc.prototype,"isDrawGridlines",void 0),__decorate([Prop()],mc.prototype,"placeholder",void 0),__decorate([Prop()],mc.prototype,"defaultStyle",void 0),__decorate([Prop({default:"90px"})],mc.prototype,"labelWidth",void 0),mc=__decorate([an({name:"PrintLineStyle"})],mc);var vc=mc,yc=vc,bc=normalizeComponent(yc,PrintLineStylevue_type_template_id_3a0156b2_scoped_true_render,gc,!1,null,"3a0156b2",null),wc=bc.exports,HoColorPickervue_type_template_id_a4ad5878_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:Tr.closed,expression:"closed"}],ref:"colorPicker",staticClass:"ho-color-picker"},[Rr("div",{staticClass:"color-btn",class:{disabled:Tr.disabled},style:{"background-color":Tr.showColor,"border-color":"#ffffff"===Tr.showColor.toLowerCase()?"#333":"transparent"},on:{click:Tr.openPanel}}),Rr("div",{staticClass:"box",class:{open:Tr.openStatus}},[Rr("div",{staticClass:"hd"},[Rr("div",{staticClass:"color-view",style:"background-color: "+Tr.showPanelColor}),Rr("div",{staticClass:"default-color",on:{click:Tr.handleDefaultColor,mouseover:function(Dr){Tr.hoveColor=Tr.defaultColor},mouseout:function(Dr){Tr.hoveColor=null}}},[Tr._v("默认颜色")])]),Rr("div",{staticClass:"bd"},[Rr("h3",[Tr._v("主题颜色")]),Rr("ul",{staticClass:"t-color"},Tr._l(Tr.tColor,(function(Dr,Ur){return Rr("li",{key:Ur,style:{backgroundColor:Dr},on:{mouseover:function(Rr){Tr.hoveColor=Dr},mouseout:function(Dr){Tr.hoveColor=null},click:function(Rr){return Tr.updataValue(Dr)}}})})),0),Rr("h3",[Tr._v("标准颜色")]),Rr("ul",{staticClass:"t-color"},Tr._l(Tr.bColor,(function(Dr,Ur){return Rr("li",{key:Ur,style:{backgroundColor:Dr},on:{mouseover:function(Rr){Tr.hoveColor=Dr},mouseout:function(Dr){Tr.hoveColor=null},click:function(Rr){return Tr.updataValue(Dr)}}})})),0)])])])},xc=[],Cc=function(Tr){Object(Qr["a"])(HoColorPicker,Tr);var Dr=Object(Zr["a"])(HoColorPicker);function HoColorPicker(){var Tr;return Object(Xr["a"])(this,HoColorPicker),Tr=Dr.apply(this,arguments),Tr.openStatus=!1,Tr.hoveColor=null,Tr.tColor=["#ffffff","#000000","#eeece1","#1f497d","#4f81bd","#c0504d","#9bbb59","#8064a2","#4bacc6","#f79646","#f2f2f2","#7f7f7f","#ddd9c3","#c6d9f0","#dbe5f1","#f2dcdb","#ebf1dd","#e5e0ec","#dbeef3","#fdeada","#d8d8d8","#595959","#c4bd97","#8db3e2","#b8cce4","#e5b9b7","#d7e3bc","#ccc1d9","#b7dde8","#fbd5b5","#bfbfbf","#3f3f3f","#938953","#548dd4","#95b3d7","#d99694","#c3d69b","#b2a2c7","#92cddc","#fac08f","#a5a5a5","#262626","#494429","#17365d","#366092","#953734","#76923c","#5f497a","#31859b","#e36c09","#7f7f7f","#0c0c0c","#1d1b10","#0f243e","#244061","#632423","#4f6128","#3f3151","#205867","#974806"],Tr.colorConfig=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],Tr.bColor=["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],Tr.html5Color=Tr.value,Tr}return Object(Yr["a"])(HoColorPicker,[{key:"showPanelColor",get:function get(){return this.hoveColor?this.hoveColor:this.showColor}},{key:"showColor",get:function get(){return this.value?this.value:this.defaultColor}},{key:"openPanel",value:function openPanel(){this.openStatus=!this.disabled}},{key:"updataValue",value:function updataValue(Tr){this.$emit("input",Tr),this.$emit("change",Tr),this.openStatus=!1}},{key:"closed",value:function closed(){this.openStatus=!1}},{key:"handleDefaultColor",value:function handleDefaultColor(){this.updataValue(this.defaultColor)}},{key:"parseColor",value:function parseColor(Tr){if(4!==Tr.length)return Tr;Tr="#"+Tr[1]+Tr[1]+Tr[2]+Tr[2]+Tr[3]+Tr[3]}},{key:"rgbToHex",value:function rgbToHex(Tr,Dr,Rr){var Ur=(Tr<<16|Dr<<8|Rr).toString(16);return"#"+new Array(Math.abs(Ur.length-7)).join("0")+Ur}},{key:"hexToRgb",value:function hexToRgb(Tr){Tr=this.parseColor(Tr);for(var Dr=[],Rr=1;Rr<7;Rr+=2)Dr.push(parseInt("0x"+Tr.slice(Rr,Rr+2)));return Dr}},{key:"gradient",value:function gradient(Tr,Dr,Rr){for(var Ur=this.hexToRgb(Tr),Hr=this.hexToRgb(Dr),Wr=(Hr[0]-Ur[0])/Rr,zr=(Hr[1]-Ur[1])/Rr,Vr=(Hr[2]-Ur[2])/Rr,Kr=[],$r=0;$r<Rr;$r++)Kr.push(this.rgbToHex(Wr*$r+Ur[0],zr*$r+Ur[1],Vr*$r+Ur[2]));return Kr}}]),HoColorPicker}(Kr.a);__decorate([Prop()],Cc.prototype,"value",void 0),__decorate([Prop({default:"#000000"})],Cc.prototype,"defaultColor",void 0),__decorate([Prop({default:!1})],Cc.prototype,"disabled",void 0),Cc=__decorate([an({name:"HoColorPicker"})],Cc);var Pc,Ec,Sc=Cc,Tc=Sc,Dc=(Rr("a4b6"),normalizeComponent(Tc,HoColorPickervue_type_template_id_a4ad5878_scoped_true_render,xc,!1,null,"a4ad5878",null)),kc=Dc.exports;(function(Tr){Tr[Tr["vatop"]=0]="vatop",Tr[Tr["vacenter"]=1]="vacenter",Tr[Tr["vabottom"]=2]="vabottom"})(Pc||(Pc={})),function(Tr){Tr[Tr["dash"]=0]="dash",Tr[Tr["dashdot"]=1]="dashdot",Tr[Tr["dashdotdo"]=2]="dashdotdo",Tr[Tr["dot"]=3]="dot",Tr[Tr["solid"]=4]="solid"}(Ec||(Ec={}));var Oc=function(Tr){Object(Qr["a"])(TableCellProperty,Tr);var Dr=Object(Zr["a"])(TableCellProperty);function TableCellProperty(){var Tr;return Object(Xr["a"])(this,TableCellProperty),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.textActiveName="0",Tr.lightCellBorders=!1,Tr.title="",Tr.align=Pc.vatop,Tr.backColor="#ffffff",Tr.isDrawGridlines=!0,Tr.gridLinesColor=["#000000","#000000","#000000","#000000"],Tr.gridLinesStyle=Ec.solid,Tr.span=0,Tr.alignTextToGridline=!0,Tr.printGridLines=!0,Tr.cellTop=0,Tr.cellBottom=0,Tr.cellLeft=0,Tr.cellRight=0,Tr.editorProperty=0,Tr.listItems=[],Tr.source="",Tr.canModifyContent=!0,Tr.isAllowDel=!0,Tr.allowMultiSelected=!1,Tr.splitCharacter=",",Tr.errorArr=[],Tr.errorIndex=[],Tr.focusIndexs=-1,Tr.inputStyle="yyyy-MM-dd HH:mm",Tr.isAutoInputCurDate=!0,Tr.obliqueSplitLine=0,Tr.endPath="",Tr}return Object(Yr["a"])(TableCellProperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.name||Tr.value)return Tr}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr);this.endPath=Dr.docTree.curDomRange.normalize().endPath;var Rr=this.getCellNodes();if(null!==Rr){this.id=null!==Rr&&void 0!==Rr&&Rr.cellProperty.id?Rr.cellProperty.id:this.vueController.generateID("TB"),this.lightCellBorders=Rr.cellProperty.lightCellBorders,this.title=Rr.cellProperty.title?Rr.cellProperty.title:"",this.align=Rr.cellProperty.align,this.isDrawGridlines=Rr.cellProperty.isDrawGridlines,Array.isArray(Rr.cellProperty.gridLinesColor)?this.gridLinesColor=Object(Gr["a"])(Rr.cellProperty.gridLinesColor):this.gridLinesColor=["#000000","#000000","#000000","#000000"],this.backColor=Rr.cellProperty.backColor?Rr.cellProperty.backColor:"#ffffff",this.gridLinesStyle=Rr.cellProperty.gridLinesStyle,this.span=Rr.cellProperty.span,this.alignTextToGridline=Rr.cellProperty.alignTextToGridline,this.printGridLines=Rr.cellProperty.printGridLines;var Ur=Rr.cellProperty.cellInnerMargin?Rr.cellProperty.cellInnerMargin:[0,0,0,0],Hr=Object(oa["a"])(Ur,4);this.cellTop=Hr[0],this.cellBottom=Hr[1],this.cellLeft=Hr[2],this.cellRight=Hr[3],this.editorProperty=Rr.cellProperty.editorProperty;var Wr=this.getKeyId(0),zr=[{value:"",text:"",id:Wr}],Vr=Rr.cellProperty.downListProperty;Vr?(this.listItems=JSON.parse(Vr.listItems)?[].concat(Object(Gr["a"])(JSON.parse(Vr.listItems)),zr):[].concat(zr),this.source=Vr.source?Vr.source:"",this.canModifyContent=void 0===Vr.canModifyContent||Vr.canModifyContent,this.isAllowDel=void 0===Vr.isAllowDel||Vr.isAllowDel,this.allowMultiSelected=void 0!==Vr.allowMultiSelected&&Vr.allowMultiSelected,this.splitCharacter=Vr.splitCharacter?Vr.splitCharacter:","):this.listItems=[].concat(zr);var Kr=Rr.cellProperty.dateTimeProperty;Kr&&(this.inputStyle=Kr.inputStyle?Kr.inputStyle:"yyyy-MM-dd",this.isAutoInputCurDate=void 0!==Kr.isAutoInputCurDate&&Kr.isAutoInputCurDate),this.obliqueSplitLine=Rr.cellProperty.obliqueSplitLine}}},{key:"isDrawGridlinesChange",value:function isDrawGridlinesChange(){this.isDrawGridlines||(this.printGridLines=!1)}},{key:"getCellNodes",value:function getCellNodes(){var Tr=this.vueController.findNodebyPath(this.endPath).node,Dr=this.getCellNode(Tr),Rr=null===Dr||void 0===Dr?void 0:Dr.table.rows.indexOf(null===Dr||void 0===Dr?void 0:Dr.row);if(Rr){var Ur=null===Dr||void 0===Dr?void 0:Dr.table.rowInfos[Rr];if(Ur){var Hr,Wr,zr,Vr=null===(Hr=Ur.rowProperty)||void 0===Hr?void 0:Hr.customProperties;if(Vr&&Vr.length>0&&this.setCustomsValue([].concat(Object(Gr["a"])(Vr),[{name:"",value:""}])),null!==(Wr=Ur.rowProperty)&&void 0!==Wr&&Wr.dataSource)this.setDataSource(null===(zr=Ur.rowProperty)||void 0===zr?void 0:zr.dataSource);else this.setDataSource()}}return Dr}},{key:"querySearch",value:function querySearch(Tr,Dr){Dr(Jn["f"])}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.listItems[Tr];""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.listItems.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.listItems.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0?this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this.listItems.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr}));0===Dr.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.listItems.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.listItems.splice(Dr,1)}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"printStyleChange",value:function printStyleChange(Tr){this.gridLinesStyle=Tr}},{key:"setObliqueSplitLine",value:function setObliqueSplitLine(Tr){this.obliqueSplitLine=Tr}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){var Tr=this;this.gridLinesColor=[this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0]];var Dr={id:this.id,lightCellBorders:this.lightCellBorders,title:this.title,customProperties:this.customProperties,dataSource:this.dataSource,align:this.align,backColor:this.backColor,cellInnerMargin:[this.cellTop,this.cellBottom,this.cellLeft,this.cellRight],isDrawGridlines:this.isDrawGridlines,gridLinesColor:this.gridLinesColor,gridLinesStyle:this.gridLinesStyle,span:this.span,alignTextToGridline:this.alignTextToGridline,printGridLines:this.printGridLines,obliqueSplitLine:this.obliqueSplitLine,editorProperty:this.editorProperty};if(1===this.editorProperty){var Rr=this.listItems.filter((function(Tr){if(Tr.text||Tr.value)return Tr}));Dr.downListProperty={listItems:JSON.stringify(Rr),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},Dr.dateTimeProperty=void 0}else 2===this.editorProperty&&(Dr.dateTimeProperty={inputStyle:this.inputStyle,isAutoInputCurDate:this.isAutoInputCurDate},Dr.downListProperty=void 0);var Ur=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Hr=Ur.docTree.curDomRange,Wr=Ur.docTree.curDomRange.normalize().inSameTable()[1],zr=Wr.getTableSelectCells(Hr,!0),Vr=this.getCellNodes();0===zr.length&&null!==Vr&&zr.push(Vr),Ur.tableController.cellProperty(JSON.stringify(Dr),zr),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TableCellProperty}(mixins(Pi));__decorate([Prop()],Oc.prototype,"vueController",void 0),__decorate([Prop()],Oc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],Oc.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Oc.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],Oc.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],Oc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],Oc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],Oc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Oc.prototype,"getActiveDocId",void 0),Oc=__decorate([an({name:"TableCellProperty",components:{PrintLineStyle:wc,HoColorPicker:kc}})],Oc);var Ic=Oc,Mc=Ic,Nc=(Rr("3e07"),normalizeComponent(Mc,TableCellPropertyvue_type_template_id_134c4d55_scoped_true_render,_c,!1,null,"134c4d55",null)),Lc=Nc.exports,PageInfoesvue_type_template_id_4da72a3a_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:"control-modal-contents pageinfoes-modal "+Tr.animationClassName},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("页码页数信息")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内容")]),Rr("el-radio",{attrs:{size:"small",label:0},model:{value:Tr.content,callback:function(Dr){Tr.content=Dr},expression:"content"}},[Tr._v("页码")]),Rr("el-radio",{attrs:{size:"small",label:1},model:{value:Tr.content,callback:function(Dr){Tr.content=Dr},expression:"content"}},[Tr._v("总页数")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数字显示格式")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"数字显示格式",size:"mini"},model:{value:Tr.format,callback:function(Dr){Tr.format=Dr},expression:"format"}},[Rr("el-option",{attrs:{label:"1. 2. 3. 4. ···",value:0}}),Rr("el-option",{attrs:{label:"一. 二. 三. 四. ···",value:1}})],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Ac=[],Rc=function(Tr){Object(Qr["a"])(PageInfoes,Tr);var Dr=Object(Zr["a"])(PageInfoes);function PageInfoes(){var Tr;return Object(Xr["a"])(this,PageInfoes),Tr=Dr.apply(this,arguments),Tr.content=0,Tr.format=0,Tr.animationClassName="animation-in",Tr}return Object(Yr["a"])(PageInfoes,[{key:"sure",value:function sure(){this.vueController.insertPageNum("add",this.content,this.format,!0),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassName="animation-in",this.$emit("closed")}}]),PageInfoes}(Kr.a);__decorate([Prop()],Rc.prototype,"vueController",void 0),Rc=__decorate([an({name:"PageInfoes"})],Rc);var Fc=Rc,jc=Fc,Bc=(Rr("6c0e"),normalizeComponent(jc,PageInfoesvue_type_template_id_4da72a3a_scoped_true_render,Ac,!1,null,"4da72a3a",null)),Uc=Bc.exports,Hc=Uc,Delimitervue_type_template_id_0277f9ca_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("分割符")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content",staticStyle:{padding:"20px"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("宽度")]),Rr("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:Tr.width,callback:function(Dr){Tr.width=Dr},expression:"width"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("px")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("颜色")]),Rr("ho-color-picker",{model:{value:Tr.color,callback:function(Dr){Tr.color=Dr},expression:"color"}})],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.insertDelimiter}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Wc=[],qc=function(Tr){Object(Qr["a"])(Delimiter,Tr);var Dr=Object(Zr["a"])(Delimiter);function Delimiter(){var Tr;return Object(Xr["a"])(this,Delimiter),Tr=Dr.apply(this,arguments),Tr.width=1,Tr.color="#000",Tr.animationClassNames="control-modal-contents delimiter-modal animation-in",Tr}return Object(Yr["a"])(Delimiter,[{key:"insertDelimiter",value:function insertDelimiter(){this.vueController.insertSeparateChar(this.width,this.color),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents delimiter-modal animation-out",this.$emit("closed")}}]),Delimiter}(Kr.a);__decorate([Prop()],qc.prototype,"vueController",void 0),qc=__decorate([an({name:"Delimiter",components:{HoColorPicker:kc}})],qc);var zc=qc,Vc=zc,Kc=(Rr("d327"),normalizeComponent(Vc,Delimitervue_type_template_id_0277f9ca_render,Wc,!1,null,null,null)),$c=Kc.exports,Gc=$c,Signvue_type_template_id_f4860f7c_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("签名")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content",staticStyle:{paDDing:"20px"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名名称")]),Rr("el-input",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini"},model:{value:Tr.name,callback:function(Dr){Tr.name=Dr},expression:"name"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"}),Rr("el-radio",{attrs:{label:0},model:{value:Tr.signType,callback:function(Dr){Tr.signType=Dr},expression:"signType"}},[Tr._v("单人签名")]),Rr("el-radio",{attrs:{label:1},model:{value:Tr.signType,callback:function(Dr){Tr.signType=Dr},expression:"signType"}},[Tr._v("多人签名")])],1),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名格式")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.signFormat,callback:function(Dr){Tr.signFormat=Dr},expression:"signFormat"}},[Rr("el-option",{attrs:{label:"<医师姓名>",value:"<医师姓名>"}}),Rr("el-option",{attrs:{label:"<医师姓名>(<医师职称>)",value:"<医师姓名>(<医师职称>)"}}),Rr("el-option",{attrs:{label:"<医师姓名>:<医师职称>",value:"<医师姓名>:<医师职称>"}}),Rr("el-option",{attrs:{label:"<医师姓名>:<医师职称>\\n<签名时间>",value:"<医师姓名>:<医师职称>\\n<签名时间>"}}),Tr._l(Tr.customSignFormatList,(function(Tr){return Rr("el-option",{key:Tr.label,attrs:{label:Tr.label,value:Tr.value}})}))],2)],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名时间格式")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.signTimeFormat,callback:function(Dr){Tr.signTimeFormat=Dr},expression:"signTimeFormat"}},[Rr("el-option",{attrs:{label:"yyyy-MM-DD HH:mm:ss",value:"yyyy-MM-DD HH:mm:ss"}}),Rr("el-option",{attrs:{label:"yyyy-MM-DD HH:mm",value:"yyyy-MM-DD HH:mm"}}),Rr("el-option",{attrs:{label:"yyyy/MM/DD HH:mm:ss",value:"yyyy/MM/DD HH:mm:ss"}}),Rr("el-option",{attrs:{label:"yyyy/MM/DD HH:mm",value:"yyyy/MM/DD HH:mm"}}),Rr("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分ss秒",value:"yyyy年MM月DD日 HH时mm分ss秒"}}),Rr("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分",value:"yyyy年MM月DD日 HH时mm分"}})],1)],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名连接方式")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.connectMode,callback:function(Dr){Tr.connectMode=Dr},expression:"connectMode"}},[Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"换行",value:"换行"}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:",",value:","}})],1)],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"}),Rr("el-checkbox",{model:{value:Tr.isFront,callback:function(Dr){Tr.isFront=Dr},expression:"isFront"}},[Tr._v("连接符前置")]),Rr("el-tooltip",{attrs:{placement:"right",effect:"dark"}},[Rr("div",{attrs:{slot:"content"},slot:"content"},[Tr._v("不勾选参数:     医师签名 / "),Rr("br"),Tr._v("   勾选参数:     / 医师签名 ")]),Rr("i",{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"}),Rr("el-checkbox",{model:{value:Tr.allowEditSignTime,callback:function(Dr){Tr.allowEditSignTime=Dr},expression:"allowEditSignTime"}},[Tr._v("允许修改签名时间")])],1):Tr._e()]),1===Tr.signType?Rr("div",{staticClass:"section-right"},[Rr("div",{staticClass:"custom-format-tool-box"},[Rr("ul",{staticClass:"custom-format-tool"},[Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<医师姓名>"}}},[Tr._v("医师姓名")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1),Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<医师工号>"}}},[Tr._v("医师工号")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1),Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<医师职称>"}}},[Tr._v("医师职称")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1),Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<签名时间>"}}},[Tr._v("签名时间")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1)]),Rr("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:Tr.customFormatContent,callback:function(Dr){Tr.customFormatContent=Dr},expression:"customFormatContent"}})],1),Rr("p",[Tr._v("提示:")]),Rr("p",[Tr._v("1. 尖括号内的内容用来替换, 不能修改")]),Rr("p",[Tr._v("2. 尖括号外的内容处理格式,可以编辑")]),Rr("p",[Tr._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),Rr("div",{staticClass:"custom-format-tool-btn"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.createSignFormat}},[Tr._v("添加自定义签名格式")])],1)]):Tr._e()]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.insertSign}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Jc=[],Xc=function(Tr){Object(Qr["a"])(Sign,Tr);var Dr=Object(Zr["a"])(Sign);function Sign(){var Tr;return Object(Xr["a"])(this,Sign),Tr=Dr.apply(this,arguments),Tr.height=20,Tr.name="",Tr.signType=0,Tr.signFormat="<医师姓名>",Tr.connectMode="换行",Tr.isFront=!1,Tr.allowEditSignTime=!1,Tr.signTimeFormat="yyyy-MM-DD HH:mm",Tr.customFormatContent="",Tr.customSignFormatList=[],Tr.animationClassNames="control-modal-contents sign-modal animation-in",Tr}return Object(Yr["a"])(Sign,[{key:"createSignFormat",value:function createSignFormat(){var Tr=JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,""),Dr=["<医师姓名>","<医师职称>","<医师工号>","<签名时间>"];if(this.$elMessage.closeAll(),0!==Dr.filter((function(Dr){return Tr.includes(Dr)})).length){var Rr=["<医师姓名>","<医师姓名>(<医师职称>)","<医师姓名>:<医师职称>","<医师姓名>:<医师职称>\n<签名时间>"].concat();this.customSignFormatList.forEach((function(Tr){return Rr.push(Tr.value)})),Rr.filter((function(Dr){return Dr===Tr.slice(1,Tr.length-1)})).length>0?this.$elMessage.warning({message:"签名格式已存在无需插入,已自动选中",duration:3e3,offset:120}):this.customSignFormatList.push({label:Tr.slice(1,Tr.length-1),value:Tr.slice(1,Tr.length-1)}),this.signFormat=Tr.slice(1,Tr.length-1)}else this.$elMessage.warning({message:"至少需要插入'<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'中的一种",duration:3e3,offset:120})}},{key:"insertSign",value:function insertSign(){1===this.signType?this.vueController.insertEmptySignNode(this.name?this.name:"签名",this.signType,this.signFormat,this.signTimeFormat,this.connectMode,this.isFront,this.allowEditSignTime):this.vueController.insertEmptySignNode(this.name?this.name:"签名"),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents sign-modal animation-out",this.$emit("closed")}}]),Sign}(Kr.a);__decorate([Prop()],Xc.prototype,"vueController",void 0),__decorate([Prop()],Xc.prototype,"controlStatus",void 0),Xc=__decorate([an({name:"Sign",components:{HoColorPicker:kc}})],Xc);var Yc=Xc,Qc=Yc,Zc=(Rr("5ec2"),normalizeComponent(Qc,Signvue_type_template_id_f4860f7c_render,Jc,!1,null,null,null)),eu=Zc.exports,tu=eu,ru=function(Tr){Object(Qr["a"])(ControlModal,Tr);var Dr=Object(Zr["a"])(ControlModal);function ControlModal(){var Tr;return Object(Xr["a"])(this,ControlModal),Tr=Dr.apply(this,arguments),Tr.names={style1:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"},Tr}return Object(Yr["a"])(ControlModal,[{key:"controlType",get:function get(){return this.controlProperty.controlType}},{key:"controlStatus",get:function get(){return this.controlProperty.controlStatus}},{key:"expressStyle",get:function get(){return this.controlProperty.expressStyle}},{key:"vueController",get:function get(){return Tn["a"].instance().getFactory(this.hoEditorFactoryId).vueController}},{key:"insertComments",value:function insertComments(Tr){this.$emit("insertComments",Tr)}},{key:"handleClose",value:function handleClose(){if(this.isDataSource||this.isCustoms||this.isListStyle||"find"===this.controlType)return!1;this.$emit("closeControlmodal")}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.toolModals,"modal-title")}}]),ControlModal}(mixins(Zn));__decorate([Ref()],ru.prototype,"toolModals",void 0),__decorate([Prop()],ru.prototype,"controlProperty",void 0),__decorate([Prop()],ru.prototype,"isDataSource",void 0),__decorate([Prop()],ru.prototype,"isCustoms",void 0),__decorate([Prop()],ru.prototype,"isListStyle",void 0),__decorate([Prop()],ru.prototype,"hoEditorFactoryId",void 0),ru=__decorate([an({name:"ControlModal",components:{ExpressionForm:sl,DateDialog:Os,Barcode:Bs,QrCode:$s,Sign:tu,TextDialog:el,CustomAttributes:Al,DataSourceDialog:Wl,RadioCheckbox:_l,SelectDialog:vs,ListSource:Jl,TableProperty:tc,TableRowProperty:sc,TableCellProperty:Lc,TableColProperty:fc,WaterSetDialog:Dl,CommentDialog:xl,PageInfoes:Hc,Delimiter:Gc}})],ru);var nu=ru,iu=nu,au=normalizeComponent(iu,ControlModalvue_type_template_id_3be7d6ee_render,ds,!1,null,null,null),ou=au.exports,FindReplacevue_type_template_id_fd4f089c_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"findModal",class:Tr.animationClassNames,on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("查找替换")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("查找内容")]),Rr("el-input",{attrs:{type:"text",size:"mini"},nativeOn:{keyup:function(Dr){return!Dr.type.indexOf("key")&&Tr._k(Dr.keyCode,"enter",13,Dr.key,"Enter")?null:Tr.toFind.apply(null,arguments)}},model:{value:Tr.findContent,callback:function(Dr){Tr.findContent=Dr},expression:"findContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"label"},[Rr("el-checkbox",{on:{change:Tr.switchTypes},model:{value:Tr.switchType,callback:function(Dr){Tr.switchType=Dr},expression:"switchType"}},[Tr._v("替换内容")])],1),Rr("el-input",{attrs:{disabled:!Tr.switchType,type:"text",size:"mini"},model:{value:Tr.replaceCentent,callback:function(Dr){Tr.replaceCentent=Dr},expression:"replaceCentent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("el-radio",{attrs:{label:0},model:{value:Tr.direction,callback:function(Dr){Tr.direction=Dr},expression:"direction"}},[Tr._v("向下")]),Rr("el-radio",{attrs:{label:1},model:{value:Tr.direction,callback:function(Dr){Tr.direction=Dr},expression:"direction"}},[Tr._v("向上")]),Rr("div",{staticStyle:{"margin-left":"30px"}},[Rr("el-checkbox",{model:{value:Tr.matchCase,callback:function(Dr){Tr.matchCase=Dr},expression:"matchCase"}},[Tr._v("区分大小写")])],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{disabled:""===Tr.findContent,size:"mini"},on:{click:Tr.toFind}},[Tr._v("查找")]),Rr("el-button",{attrs:{disabled:""===Tr.findContent||!Tr.switchType,size:"mini"},on:{click:Tr.toReplace}},[Tr._v("替换")]),Rr("el-button",{attrs:{disabled:""===Tr.findContent||!Tr.switchType,size:"mini"},on:{click:Tr.toReplaceAll}},[Tr._v("全部替换")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("关闭")])],1)])},su=[],lu=function(Tr){Object(Qr["a"])(FindReplaceDialog,Tr);var Dr=Object(Zr["a"])(FindReplaceDialog);function FindReplaceDialog(){var Tr;return Object(Xr["a"])(this,FindReplaceDialog),Tr=Dr.apply(this,arguments),Tr.switchType=!1,Tr.operType="find",Tr.findContent="",Tr.replaceCentent="",Tr.direction=0,Tr.matchCase=!0,Tr.path="",Tr.callbackCount=0,Tr.animationClassNames="control-modal-contents find-modal animation-in",Tr}return Object(Yr["a"])(FindReplaceDialog,[{key:"switchTypes",value:function switchTypes(Tr){this.operType=Tr?"replace":"find"}},{key:"toFind",value:function toFind(Tr){if(this.findContent){var Dr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);this.path=Dr.vueController.find(this.findContent,this.direction,this.matchCase),Tr instanceof Function&&Tr()}}},{key:"toReplace",value:function toReplace(){var Tr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);""===this.path||"-1"===this.path?this.callbackCount<=2?(this.callbackCount++,this.toFind(this.toReplace)):this.callbackCount=0:(Tr.vueController.replace(this.findContent,this.replaceCentent,this.path,1,this.direction,this.matchCase),this.callbackCount=0,this.path="")}},{key:"toReplaceAll",value:function toReplaceAll(){var Tr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);Tr.vueController.replace(this.findContent,this.replaceCentent,"",0,1,this.matchCase),this.callbackCount=0,this.path=""}},{key:"handleClose",value:function handleClose(){var Tr=this;this.animationClassNames="control-modal-contents find-modal animation-out",window.clearTimeout(),setTimeout((function(){Tr.setControlFindType("")}),100)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.findModal,"modal-title")}}]),FindReplaceDialog}(mixins(Zn));__decorate([Ref()],lu.prototype,"findModal",void 0),__decorate([Prop()],lu.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setControlFindType")],lu.prototype,"setControlFindType",void 0),lu=__decorate([an({name:"FindReplaceDialog"})],lu);var cu=lu,uu=cu,du=(Rr("0a8d"),normalizeComponent(uu,FindReplacevue_type_template_id_fd4f089c_render,su,!1,null,null,null)),hu=du.exports,pu=hu,ViewContinuousXmlvue_type_template_id_db8cca98_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:Tr.loadMore,expression:"loadMore"}],staticClass:"ho-continuous-viewbox",staticStyle:{overflow:"auto"}},Tr._l(Tr.continuousView.currentList,(function(Dr,Ur){return Rr("div",{key:Ur,domProps:{innerHTML:Tr._s(Dr.innerHTML)}})})),0)},fu=[],_u=function(Tr){Object(Qr["a"])(ViewContinuousXml,Tr);var Dr=Object(Zr["a"])(ViewContinuousXml);function ViewContinuousXml(){var Tr;return Object(Xr["a"])(this,ViewContinuousXml),Tr=Dr.apply(this,arguments),Tr.continuousView={status:!1,currentList:[],allList:[]},Tr}return Object(Yr["a"])(ViewContinuousXml,[{key:"mounted",value:function mounted(){var Tr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);Tr.continuousView=this.continuousView}},{key:"loadMore",value:function loadMore(){var Tr=this.continuousView.allList,Dr=this.continuousView.currentList;if(Tr.length>Dr.length){var Rr,Ur=Tr.filter((function(Tr,Rr){return Rr>Dr.length-1&&Rr<Dr.length+4}));(Rr=this.continuousView.currentList).push.apply(Rr,Object(Gr["a"])(Ur))}}}]),ViewContinuousXml}(Kr.a);__decorate([Prop()],_u.prototype,"hoEditorFactoryId",void 0),_u=__decorate([an({name:"ViewContinuousXml",components:{}})],_u);var gu=_u,mu=gu,vu=(Rr("f624"),normalizeComponent(mu,ViewContinuousXmlvue_type_template_id_db8cca98_render,fu,!1,null,null,null)),yu=vu.exports,bu=yu,wu=function(Tr){Object(Qr["a"])(ControlMixin,Tr);var Dr=Object(Zr["a"])(ControlMixin);function ControlMixin(){var Tr;return Object(Xr["a"])(this,ControlMixin),Tr=Dr.apply(this,arguments),Tr.controlType="",Tr.controlStatus="",Tr.expressStyle="",Tr.rightType="",Tr.rightTypeIsTable=!1,Tr.commentValue=void 0,Tr.updateNodeValue=null,Tr.isDataSource=!1,Tr.dataSource=JSON.parse(JSON.stringify(ti)),Tr.isCustoms=!1,Tr.customsValue=[{name:"",value:""}],Tr.customPropertyValue={},Tr.isListStyle=!1,Tr.listSource=[],Tr.listArrSource="",Tr.listAllowMultiSelected=!1,Tr.controlFindType=!1,Tr.activeDocId="",Tr.domRange={startPath:"",endPath:""},Tr}return Object(Yr["a"])(ControlMixin,[{key:"getActiveDocId",value:function getActiveDocId(){return this.activeDocId}},{key:"initControlMixin",value:function initControlMixin(){this.controlType="",this.controlStatus="",this.expressStyle="",this.rightType="",this.rightTypeIsTable=!1,this.updateNodeValue=null,this.isDataSource=!1,this.dataSource=JSON.parse(JSON.stringify(ti)),this.isCustoms=!1,this.customsValue=[{name:"",value:""}],this.listSource=[],this.isListStyle=!1,this.listArrSource="",this.domRange={startPath:"",endPath:""}}},{key:"setControlFindType",value:function setControlFindType(Tr){this.controlFindType=Tr}},{key:"getControlProperty",value:function getControlProperty(){return{controlType:this.controlType,controlStatus:this.controlStatus,expressStyle:this.expressStyle,domRange:this.domRange}}},{key:"setControlProperty",value:function setControlProperty(Tr,Dr,Rr){this.controlType=Tr,this.controlStatus=Dr,this.expressStyle=Rr||this.expressStyle,"express"===this.controlType&&this.expressStyle,""===this.controlType&&(this.setDataSource(JSON.parse(JSON.stringify(ti))),this.setCustomsValue([{name:"",value:""}]),this.listArrSource="",this.listSource=[],this.rightType="",this.updateNodeValue=null)}},{key:"getIsDataSource",value:function getIsDataSource(){return this.isDataSource}},{key:"setIsDataSource",value:function setIsDataSource(Tr){this.isDataSource=Tr}},{key:"getDataSource",value:function getDataSource(){return this.dataSource}},{key:"setDataSource",value:function setDataSource(Tr){this.dataSource=Tr?_objectSpread2({},Tr):JSON.parse(JSON.stringify(ti))}},{key:"getIsListStyle",value:function getIsListStyle(){return this.isListStyle}},{key:"setIsListStyle",value:function setIsListStyle(Tr){this.isListStyle=Tr}},{key:"getListStyle",value:function getListStyle(){return this.listSource}},{key:"getListArrSource",value:function getListArrSource(){return this.listArrSource}},{key:"getListAllowMultiSelected",value:function getListAllowMultiSelected(){return this.listAllowMultiSelected}},{key:"setListAllowMultiSelected",value:function setListAllowMultiSelected(Tr){this.listAllowMultiSelected=Tr}},{key:"setListStyle",value:function setListStyle(Tr,Dr){Array.isArray(Tr)&&(this.listSource=Object(Gr["a"])(Tr)),this.listArrSource=Dr}},{key:"getIsCustoms",value:function getIsCustoms(){return this.isCustoms}},{key:"setIsCustoms",value:function setIsCustoms(Tr){this.isCustoms=Tr}},{key:"getCustomsValue",value:function getCustomsValue(){return this.customsValue}},{key:"setCustomsValue",value:function setCustomsValue(Tr){this.customsValue=Object(Gr["a"])(Tr)}},{key:"setUpdateNodeValue",value:function setUpdateNodeValue(Tr){Tr&&Tr.customProperty&&Object(_o["b"])(Tr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Tr.customProperty))}},{key:"getUpdateNodeValue",value:function getUpdateNodeValue(){return this.getUpdateNode()}},{key:"getRightClickNodeValue",value:function getRightClickNodeValue(){return{node:this.getUpdateNode,type:this.rightType,style:this.expressStyle,rightTypeIsTable:this.rightTypeIsTable}}},{key:"getUpdateNode",value:function getUpdateNode(){var Tr;return Tr=Array.isArray(this.updateNodeValue)?this.updateNodeValue:this.getCurrentSelectNode(),Tr}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.activeDocId),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.domRange.endPath))||void 0===Tr?void 0:Tr.node;if(Ur instanceof li["a"]||Ur instanceof ei["f"]){var Hr=Ur.parentNode;Dr=Hr instanceof ei["f"]?Hr:Ur}else if(Ur instanceof ci["a"]){var Wr=Ur.parentNode;(Wr instanceof ei["f"]||Wr instanceof En["a"])&&(Dr=Wr)}else(Ur instanceof Yn["a"]||Ur instanceof Qn["a"]||Ur instanceof Ha["a"]||Ur instanceof Wa["a"]||Ur instanceof ga["a"]||Ur instanceof Oa["a"]||Ur instanceof to["a"]||Ur instanceof Wi["a"]||Ur instanceof eo["a"])&&(Dr=Ur);return Dr}},{key:"setRightClickNodeValue",value:function setRightClickNodeValue(){this.rightTypeIsTable=!1,this.rightType="",this.updateNodeValue=null,this.expressStyle="";var Tr=Tn["a"].instance().getFactory(this.activeDocId);this.domRange={startPath:Tr.docTree.curDomRange.normalize().startPath,endPath:Tr.docTree.curDomRange.normalize().endPath};var Dr=this.getUpdateNode();if(void 0===Dr||null===Dr)return!1;if((null===Dr||void 0===Dr?void 0:Dr.parentNode)instanceof En["a"]&&(this.rightTypeIsTable=!0,this.rightType="table"),Dr instanceof li["a"]||Dr instanceof ei["f"]){var Rr,Ur=Dr.parentNode;Rr=Ur instanceof ei["f"]?Ur:Dr,this.rightType="text",this.dataSource=Rr.bandDataSource,Object(_o["b"])(Rr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Rr.customProperty))}else if(Dr instanceof ci["a"]){var Hr=Dr.parentNode;if(Hr instanceof ei["f"])this.rightType="text",this.dataSource=Hr.bandDataSource,Object(_o["b"])(Hr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Hr.customProperty));else{if(!(Hr instanceof En["a"]))return this.rightType="",this.updateNodeValue=null,!1;this.rightTypeIsTable=!0,this.rightType="table"}}else Dr instanceof Yn["a"]?(this.rightType="date",Object(_o["b"])(Dr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Dr.customProperty))):Dr instanceof Qn["a"]?this.rightType="select":Dr instanceof Ha["a"]?this.rightType="barcode":Dr instanceof Wa["a"]?(this.rightType="qrcode",this.dataSource={dataSourceEnabled:Dr.dataSourceEnabled,dataSource:Dr.dataSource,format:Dr.format,visitPath:Dr.visitPath,isReadOnly:Dr.isReadOnly,autoUpdate:Dr.autoUpdate,executeStatus:Number(Dr.execState)}):Dr instanceof ga["a"]?(this.rightType=Dr.controlStyle,this.dataSource=Dr.bandDataSource):Dr instanceof Oa["a"]?this.rightType="img":Dr instanceof to["a"]?this.rightType="label":Dr instanceof Wi["a"]?this.rightType="sign":Dr instanceof eo["a"]||this.setDblclickNodeValue(Dr,"rightClick")}},{key:"setDblclickNodeValue",value:function setDblclickNodeValue(Tr,Dr){if("dblclick"===Dr&&(this.controlType="express",this.controlStatus="update"),Tr instanceof Fa["b"]){var Rr=Tr;this.expressStyle="style"+(Rr.expressStyle+1),this.updateNodeValue=[Rr.menseDays,Rr.cycleDays,Rr.menarcheAge,Rr.menoPauseAge]}else if(Tr instanceof Aa["a"]){var Ur=Tr;this.expressStyle="style5",this.updateNodeValue=[Ur.value1,Ur.value2,Ur.value3,Ur.value4,Ur.value5,Ur.value6,Ur.value7]}else if(Tr instanceof Ra["a"]){var Hr=Tr;this.expressStyle="style6",this.updateNodeValue=[Hr.value1,Hr.value2,Hr.value3,Hr.value4,Hr.value5,Hr.value6,Hr.value7,Hr.value8,Hr.value9]}else if(Tr instanceof ja["a"]){var Wr=Tr;this.expressStyle="style7",this.updateNodeValue=[Wr.value1,Wr.value2,Wr.value3,Wr.value4,Wr.value5,Wr.value6]}else if(Tr instanceof Ba["a"]){var zr=Tr;this.expressStyle="style8",this.updateNodeValue=[zr.topLeftSelected,zr.topRightSelected,zr.bottomLeftSelected,zr.bottomRightSelected]}else if(Tr instanceof Ua["a"]){var Vr=Tr;this.expressStyle="style9",this.updateNodeValue=[Vr.topLeftSelected,Vr.topRightSelected,Vr.bottomLeftSelected,Vr.bottomRightSelected]}else this.controlType="",this.controlStatus="add";"rightClick"===Dr&&this.expressStyle&&(this.rightType="express")}},{key:"setCommentValue",value:function setCommentValue(Tr){this.commentValue=Tr}},{key:"getCommentValue",value:function getCommentValue(){return this.commentValue}}]),ControlMixin}(Kr.a);__decorate([Provide()],wu.prototype,"getActiveDocId",null),__decorate([Provide()],wu.prototype,"initControlMixin",null),__decorate([Provide()],wu.prototype,"setControlFindType",null),__decorate([Provide()],wu.prototype,"setControlProperty",null),__decorate([Provide()],wu.prototype,"getIsDataSource",null),__decorate([Provide()],wu.prototype,"setIsDataSource",null),__decorate([Provide()],wu.prototype,"getDataSource",null),__decorate([Provide()],wu.prototype,"setDataSource",null),__decorate([Provide()],wu.prototype,"getIsListStyle",null),__decorate([Provide()],wu.prototype,"setIsListStyle",null),__decorate([Provide()],wu.prototype,"getListStyle",null),__decorate([Provide()],wu.prototype,"getListArrSource",null),__decorate([Provide()],wu.prototype,"getListAllowMultiSelected",null),__decorate([Provide()],wu.prototype,"setListAllowMultiSelected",null),__decorate([Provide()],wu.prototype,"setListStyle",null),__decorate([Provide()],wu.prototype,"getIsCustoms",null),__decorate([Provide()],wu.prototype,"setIsCustoms",null),__decorate([Provide()],wu.prototype,"getCustomsValue",null),__decorate([Provide()],wu.prototype,"setCustomsValue",null),__decorate([Provide()],wu.prototype,"setUpdateNodeValue",null),__decorate([Provide()],wu.prototype,"getUpdateNodeValue",null),__decorate([Provide()],wu.prototype,"getRightClickNodeValue",null),__decorate([Provide()],wu.prototype,"setRightClickNodeValue",null),__decorate([Provide()],wu.prototype,"setDblclickNodeValue",null),__decorate([Provide()],wu.prototype,"setCommentValue",null),__decorate([Provide()],wu.prototype,"getCommentValue",null),wu=__decorate([an],wu);var xu=function(Tr){Object(Qr["a"])(BackgroundMixins,Tr);var Dr=Object(Zr["a"])(BackgroundMixins);function BackgroundMixins(){var Tr;return Object(Xr["a"])(this,BackgroundMixins),Tr=Dr.apply(this,arguments),Tr.style={backgroundImage:"",backgroundSize:"auto",backgroundRepeat:"no-repeat",backgroundPosition:"center center"},Tr.waterText="",Tr.rotateAngle=0,Tr.color="",Tr.imgUrl="",Tr}return Object(Yr["a"])(BackgroundMixins,[{key:"setCanvasRects",value:function setCanvasRects(Tr,Dr){this.canvasWidths=Tr,this.canvasHeights=Dr}},{key:"setBackgroundStyle",value:function setBackgroundStyle(Tr,Dr,Rr,Ur){""===Ur&&(this.waterText="",this.rotateAngle=1,this.color="rgba(0, 0, 0, 0.2)");var Hr=0,Wr=0,zr=this.canvasWidths-Hr,Vr=this.canvasHeights-Wr,Kr="",$r="";Kr=zr>Dr?Vr<Rr?"auto":Dr+"px":zr+"px",$r=Vr>Rr?zr<Dr?"auto":Rr+"px":Vr+"px",this.style.backgroundSize=Kr+" "+$r,this.imgUrl=Ur,this.style=_objectSpread2(_objectSpread2({},this.style),Tr)}},{key:"getWaterMark",value:function getWaterMark(){return[this.waterText,this.rotateAngle,this.color]}},{key:"setWaterMark",value:function setWaterMark(Tr,Dr,Rr,Ur,Hr,Wr){if(this.waterText=Tr,this.rotateAngle=Hr,this.color=Wr,""===Tr)return this.setBackgroundStyle({"background-image":""},this.canvasWidths,this.canvasHeights,""),!1;var zr={text:Tr,docWidth:Dr||this.canvasWidths,docHeight:Rr||this.canvasWidths,fontStyle:"16px 微软雅黑",rotateAngle:Hr?-20*Math.PI/180:0,fontColor:Wr||"rgba(0, 0, 0, 0.2)",firstLinePositionX:0,firstLinePositionY:70},Vr=document.querySelector("#watercanvas"),Kr=document.querySelector("#repeat-watercanvas");Vr.width=16*Tr.length+40,Vr.height=100,Kr.width=zr.docWidth,Kr.height=zr.docHeight;var $r=Vr.getContext("2d");$r.clearRect(0,0,160,100),$r.font=zr.fontStyle,$r.rotate(zr.rotateAngle),$r.fillStyle=zr.fontColor,$r.fillText(zr.text,zr.firstLinePositionX,zr.firstLinePositionY),$r.rotate(-zr.rotateAngle);var Gr=Kr.getContext("2d");Gr.fillStyle="#fff",Gr.fillRect(0,0,Kr.width,Kr.height);var Jr=Gr.createPattern(Vr,"repeat");Gr.fillStyle=Jr,Gr.fillRect(0,0,Kr.width,Kr.height);var Xr=Kr.toDataURL("image/png");Ur instanceof Function?Ur(Xr):this.setBackgroundStyle({"background-image":"url(".concat(Xr,")")},this.canvasWidths,this.canvasHeights,Xr)}},{key:"getBackgroundStyle",value:function getBackgroundStyle(){return this.style}},{key:"getBackImgUrl",value:function getBackImgUrl(){return this.imgUrl}}]),BackgroundMixins}(Kr.a);__decorate([Provide()],xu.prototype,"getBackgroundStyle",null),__decorate([Provide()],xu.prototype,"getBackImgUrl",null),xu=__decorate([an],xu);var Cu=function(Tr){Object(Qr["a"])(FontStyleMixin,Tr);var Dr=Object(Zr["a"])(FontStyleMixin);function FontStyleMixin(){var Tr;return Object(Xr["a"])(this,FontStyleMixin),Tr=Dr.apply(this,arguments),Tr.textStyle={font:"宋体",size:14,bold:!1,italic:!1,script:0,underline:!1,strikeout:!1,backColor:"transparent",color:"#000000",aligned:"both",lineSpace:1.25},Tr.aligned=["left","right","center","both"],Tr}return Object(Yr["a"])(FontStyleMixin,[{key:"setFontStyle",value:function setFontStyle(Tr){var Dr,Rr,Ur=Tr.vueController,Hr=Ur.getCaretPosition(),Wr=Ur.findNodebyPath(Hr);if(null!==Wr&&void 0!==Wr&&null!==(Dr=Wr.node)&&void 0!==Dr&&Dr.drawNodes[0]){var zr,Vr=Tr.drawTree.getDrawLineByDNode(null===Wr||void 0===Wr||null===(zr=Wr.node)||void 0===zr?void 0:zr.drawNodes[0]).paragraphNode;Rr=Vr.combineParagraph,Tr.docTree.curParaNo=Vr.paraNo}Ur.getCurTextStyle(),this.textStyle={font:void 0!==Ur.combineStyle.font?Ur.combineStyle.font:this.textStyle.font,size:void 0!==Ur.combineStyle.size?Ur.combineStyle.size:this.textStyle.size,bold:void 0!==Ur.combineStyle.bold?Ur.combineStyle.bold:this.textStyle.bold,italic:void 0!==Ur.combineStyle.italic?Ur.combineStyle.italic:this.textStyle.italic,script:void 0!==Ur.combineStyle.script?Ur.combineStyle.script:this.textStyle.script,underline:void 0!==Ur.combineStyle.underline?Ur.combineStyle.underline:this.textStyle.underline,strikeout:void 0!==Ur.combineStyle.strikeout?Ur.combineStyle.strikeout:this.textStyle.strikeout,color:void 0!==Ur.combineStyle.color?Ur.combineStyle.color:this.textStyle.color,backColor:void 0!==Ur.combineStyle.backColor?Ur.combineStyle.backColor:this.textStyle.backColor,aligned:Rr?this.aligned[Rr.align]:"both",lineSpace:Rr?Rr.lineSpace:1.25}}}]),FontStyleMixin}(Kr.a);Cu=__decorate([an],Cu);var Pu=Rr("f00c"),Eu=Rr("2c6d"),Su=function(Tr){Object(Qr["a"])(HoDocs,Tr);var Dr=Object(Zr["a"])(HoDocs);function HoDocs(){var Tr;return Object(Xr["a"])(this,HoDocs),Tr=Dr.apply(this,arguments),Tr.hoEditorFactoryIdList=[],Tr.docList=[0],Tr.drawPageLength=0,Tr.activePageIndex=0,Tr.defaultEditJson={isEdit:!0,createNew:!0,openFile:!0,saveFile:!0,saveAsFile:!0,pageSetting:!0,unDoOperate:!0,reDoOperate:!0,formatPaint:!0,clearFormat:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0,family:!0,size:!0,enlargeSize:!0,decreaseSize:!0,superScript:!0,subScript:!0,bold:!0,italic:!0,underline:!0,strikeout:!0,fontColor:!0,backColor:!0,alignLeft:!0,alignCenter:!0,alignRight:!0,alignBoth:!0,addIndent:!0,decreaseIndent:!0,setHeight:!0,express:!0,specialChars:!0,datetime:!0,watermark:!0,select:!0,text:!0,uploadImage:!0,barcode:!0,qrcode:!0,radioBox:!0,checkBox:!0,pageInfoes:!0,delimiter:!0,insertTable:!0,isTableCode:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,tableFormula:!0,findModal:!0,updateDocument:!0,test:!0,isFooter:!0},Tr.defaultDocProperty={version:zi,type:0,title:"",docID:"",patientID:"",patientName:"",lastEditTime:"",lastEditorID:"",lastEditorName:""},Tr.contentIsModify={isModify:!1},Tr}return Object(Yr["a"])(HoDocs,[{key:"controlProperty",get:function get(){return this.getControlProperty()}},{key:"contentIsModifyChange",value:function contentIsModifyChange(Tr){this.$emit("contentIsModify",this.contentIsModify)}},{key:"editJsonChange",value:function editJsonChange(Tr){Tr&&null!==Tr&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),Tr))}},{key:"getCustomProperty",value:function getCustomProperty(){return this.customProperty}},{key:"textStyleChange",value:function textStyleChange(Tr){this.$emit("textStyleChange",Tr)}},{key:"modalStatusChange",value:function modalStatusChange(Tr){"find"!==Tr[0]?this.setControlProperty(Tr[0],Tr[1],Tr[2]):this.controlFindType=!0}},{key:"controlTypeChange",value:function controlTypeChange(Tr,Dr){""!==Tr||"text"!==Dr&&"date"!==Dr||(this.$emit("closeTextModal"),this.customPropertyValue={}),"text"!==Tr&&"date"!==Tr||Object(_o["b"])(this.customPropertyValue)&&this.$emit("openTextModal",_objectSpread2({},this.customPropertyValue))}},{key:"pagePropertyChange",value:function pagePropertyChange(Tr){Tr&&this.initPageProperty(_objectSpread2({},Tr))}},{key:"docPropertyChange",value:function docPropertyChange(Tr){var Dr=this;if(Tr){Tr.version&&delete Tr.version,Object.keys(Tr).forEach((function(Rr){void 0!==Tr[Rr]&&null!==Tr[Rr]&&(Dr.defaultDocProperty[Rr]=Tr[Rr])}));var Rr=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0];if(Rr){var Ur=Tn["a"].instance().hoEditorFactoryMap.get(Rr);Ur&&(Ur.docTree.docProperty=this.defaultDocProperty)}}}},{key:"superiorSignsChange",value:function superiorSignsChange(){if(Array.isArray(this.superiorSigns)){var Tr=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],Dr=Tn["a"].instance().hoEditorFactoryMap.get(Tr);Dr&&(Dr.superiorSigns=Object(Gr["a"])(this.superiorSigns))}}},{key:"created",value:function created(){var Tr=this;window.oncontextmenu=function(Tr){Tr.preventDefault()},this.$nextTick((function(){Tr.editJson&&Tr.editJson.findModal&&(document.onkeydown=function(Dr){var Rr=Dr.keyCode||Dr.which||Dr.charCode,Ur=Dr.ctrlKey||Dr.metaKey;Ur&&70===Rr&&(Dr.preventDefault(),Tr.controlFindType=!Tr.controlFindType),27===Rr&&(Tr.controlFindType=!1)})})),this.docList.forEach((function(){var Dr=Object(Jn["h"])("HO"),Rr=new qo(Dr);Tr.hoEditorFactoryIdList.push(Dr),Array.isArray(Tr.superiorSigns)&&Tr.superiorSigns.length>0&&(Rr.superiorSigns=Object(Gr["a"])(Tr.superiorSigns)),Rr.contentIsModify=Tr.contentIsModify,Rr.docTree.docProperty=Tr.defaultDocProperty,Tn["a"].instance().hoEditorFactoryMap.set(Dr,Rr)})),Pu["a"].instance().imageNodeList=this.deleteImageNodeList,this.setActiveDocIndex(this.hoEditorFactoryIdList[0]),this.$nextTick((function(){Tr.pageProperty&&Tr.initPageProperty(_objectSpread2({},Tr.pageProperty))}))}},{key:"rightClickEvent",value:function rightClickEvent(Tr){var Dr=this,Rr=this.getRightClickNodeValue(),Ur=Tn["a"].instance().getFactory(this.activeDocId);Rr.rightTypeIsTable=Ur.docTree.curDomRange.normalize().inSameTable()[0],Rr.rightPosition=Tr;var Hr=function getLabelNode(){var Tr=[],Ur="",Hr=Tn["a"].instance().getFactory(Dr.activeDocId),Wr=Hr.vueController.getDomRange();if(null!==Wr&&void 0!==Wr&&Wr.isEmpty)Rr.node()instanceof to["a"]&&(Tr.push(Rr.node()),Ur="toText");else{Ur="toLabel";var zr=Wr.startPath,Vr=Wr.endPath,Kr=yn["a"].getSelectDomNodes(Dr.activeDocId,zr,Vr,!0)[0];Kr.length>0&&Kr.forEach((function(Dr){Dr instanceof to["a"]&&(Ur="toText",Tr.push(Dr))}))}return{labelNode:[].concat(Tr),isIncludes:Ur}};Rr.labelNode=Hr,Rr.isElement=!1,Rr.canShowComment=Ur.drawTree.paintStatus===mn["b"].psEdit||Ur.drawTree.paintStatus===mn["b"].psReview||Ur.drawTree.paintStatus===mn["b"].psReadOnly,(Rr.node instanceof ei["f"]||Rr.node instanceof Yn["a"]||Rr.node instanceof Qn["a"]||Rr.node instanceof ga["a"]||Rr.node instanceof li["a"]||Rr.node instanceof ci["a"]&&Rr.node.parentNode instanceof ei["f"])&&(Rr.isElement=!0),Rr.isHideComments=Ur.isHideComments,Rr.activePageIndex=this.activePageIndex,Rr.paintStatus=Ur.drawTree.paintStatus,this.$emit("rightClickEvent",Rr)}},{key:"initListener",value:function initListener(){var Tr=this;window.oncontextmenu=function(Tr){Tr.preventDefault()},this.$nextTick((function(){Tr.editJson.findModal&&(document.onkeydown=function(Dr){var Rr=Dr.keyCode||Dr.which||Dr.charCode,Ur=Dr.ctrlKey||Dr.metaKey;Ur&&70===Rr&&(Dr.preventDefault(),Tr.controlFindType=!Tr.controlFindType),27===Rr&&(Tr.controlFindType=!1)})}))}},{key:"insertComments",value:function insertComments(Tr){this.$emit("insertComments",Tr)}},{key:"dblNodeClick",value:function dblNodeClick(Tr){this.$emit("dblClickEvent",Tr)}},{key:"setFontStyles",value:function setFontStyles(){var Tr=Tn["a"].instance().getFactory(this.activeDocId);this.setFontStyle(Tr)}},{key:"setActivePageIndex",value:function setActivePageIndex(Tr){this.activePageIndex=Tr}},{key:"setActiveDocIndex",value:function setActiveDocIndex(Tr){this.activeDocId=Tr;var Dr=Tn["a"].instance().getFactory(this.activeDocId);Dr.hoLocalStorage.initHoWebSql(),this.$emit("docReady",{vueController:Dr.vueController,baseController:Dr.baseController,domController:Dr.domController,editController:Dr.editController,elementController:Dr.elementController,nodeController:Dr.nodeController,printController:Dr.printController,reviewController:Dr.reviewController,selectController:Dr.selectController,tableController:Dr.tableController})}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(Tr){this.drawPageLength=Tr}},{key:"initPageProperty",value:function initPageProperty(Tr){var Dr=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],Rr=Tn["a"].instance().hoEditorFactoryMap.get(Dr);if(Rr){var Ur,Hr=_objectSpread2({},Tr);Hr.fontFormat=Hr.fontFormat?null===(Ur=Hr.fontFormat)||void 0===Ur?void 0:Ur.match(/[\u4e00-\u9fa5]/g).join(""):"宋体",isNaN(Number(Hr.fontSize))?(Eu["b"].forEach((function(Tr){Tr.name===Hr.fontSize&&(Hr.fontSize=Number(Tr.value))})),isNaN(Number(Hr.fontSize))&&(Hr.fontSize=14)):Hr.fontSize=Number(Hr.fontSize),Hr.charSpace=Hr.charSpace?null===Rr||void 0===Rr?void 0:Rr.unitConvert.mmConversionPx(10*Number(Hr.charSpace),!0):0,Hr.lineHeight=Number(Hr.lineHeight)?Number(Hr.lineHeight):1.25,isNaN(Number(Tr.signHeight))||(Rr.signHeight=Number(Tr.signHeight)),Tr.elementBackColor&&Rr.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"}),!0===Tr.pasteBase||!1===Tr.pasteBase?Rr.pasteBase=Tr.pasteBase:Rr.pasteBase=!1,Rr.openXmled?(delete Hr.leftMarginMm,delete Hr.rightMarginMm,delete Hr.topMarginMm,delete Hr.bottomMarginMm,delete Hr.headerYMm,delete Hr.footerYMm):(isNaN(Number(Hr.leftMarginMm))?Hr.leftMarginMm=15:Hr.leftMarginMm=Number(Hr.leftMarginMm),isNaN(Number(Hr.rightMarginMm))?Hr.rightMarginMm=15:Hr.rightMarginMm=Number(Hr.rightMarginMm),isNaN(Number(Hr.topMarginMm))?Hr.topMarginMm=25:Hr.topMarginMm=Number(Hr.topMarginMm),isNaN(Number(Hr.bottomMarginMm))?Hr.bottomMarginMm=10:Hr.bottomMarginMm=Number(Hr.bottomMarginMm),isNaN(Number(Hr.headerYMm))?Hr.headerYMm=3:Hr.headerYMm=Number(Hr.headerYMm),isNaN(Number(Hr.footerYMm))?Hr.footerYMm=3:Hr.footerYMm=Number(Hr.footerYMm)),delete Hr.signHeight,delete Hr.pasteBase,delete Hr.elementBackColor,Rr.vueController.setPageProperty(JSON.stringify(Hr))}}},{key:"closeControlModal",value:function closeControlModal(){this.setControlProperty("","add","")}},{key:"blankAreaRightClick",value:function blankAreaRightClick(Tr){Tr.target instanceof HTMLDivElement&&Tr.target.className}}]),HoDocs}(mixins(wu,Cu,xu));__decorate([Prop()],Su.prototype,"editJson",void 0),__decorate([Prop()],Su.prototype,"docStatus",void 0),__decorate([Prop()],Su.prototype,"modalStatus",void 0),__decorate([Prop()],Su.prototype,"docProperty",void 0),__decorate([Prop()],Su.prototype,"customProperty",void 0),__decorate([Prop()],Su.prototype,"deleteImageNodeList",void 0),__decorate([Prop()],Su.prototype,"pageProperty",void 0),__decorate([Prop()],Su.prototype,"superiorSigns",void 0),__decorate([Prop({default:!1})],Su.prototype,"notUseModal",void 0),__decorate([Prop({default:!1})],Su.prototype,"isUseTipText",void 0),__decorate([Watch("contentIsModify",{deep:!0})],Su.prototype,"contentIsModifyChange",null),__decorate([Watch("editJson")],Su.prototype,"editJsonChange",null),__decorate([Provide()],Su.prototype,"getCustomProperty",null),__decorate([Watch("textStyle",{deep:!0})],Su.prototype,"textStyleChange",null),__decorate([Watch("modalStatus",{deep:!0})],Su.prototype,"modalStatusChange",null),__decorate([Watch("controlType",{deep:!0})],Su.prototype,"controlTypeChange",null),__decorate([Watch("pageProperty",{deep:!0})],Su.prototype,"pagePropertyChange",null),__decorate([Watch("docProperty",{deep:!0})],Su.prototype,"docPropertyChange",null),__decorate([Watch("superiorSigns")],Su.prototype,"superiorSignsChange",null),Su=__decorate([an({name:"HoDocs",components:{HoDoc:na,HoFooter:us,ControlModal:ou,FindReplaceDialog:pu,ViewContinuousXml:bu}})],Su);var Tu=Su,Du=Tu,ku=(Rr("e5b5"),normalizeComponent(Du,HoDocsvue_type_template_id_303f61c7_render,$r,!1,null,null,null)),Ou=ku.exports,ToolBarvue_type_template_id_1ad97ddc_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("tabs",{attrs:{tabKey:Tr.tabKey},on:{tabClick:Tr.mainBarClick,updateTabKey:Tr.updateTabKey}},[Tr._t("beforeBrowse"),Rr("tab-pane",{attrs:{isShow:Tr.defaultBrowseJson.isBrowse,label:"浏览模式",notHover:!0,name:"ho-browse"}},[Tr.defaultBrowseJson.saveAsFile?Rr("li",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{attrs:{trigger:"click"}},[Rr("span",{staticClass:"el-dropdown-link"},[Tr._v("另存为")]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("xml")}}},[Tr._v("XML")]),Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("html")}}},[Tr._v("HTML")]),Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("plain")}}},[Tr._v("TXT")]),Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("json")}}},[Tr._v("JSON")])],1)],1)],1):Tr._e(),Tr.isPrinted?Rr("li",{staticClass:"sub-bar-items"},[Rr("span",{class:Tr.isPrintClass,on:{click:Tr.outPrinted}},[Tr._v("退出打印预览状态")])]):Tr._e(),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultBrowseJson.printed?Rr("span",{class:Tr.printedClass,on:{click:Tr.printed}},[Tr._v("打印")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultBrowseJson.printSelected?Rr("span",{class:Tr.printSelectedClass,on:{click:Tr.printSelected}},[Tr._v("打印拖动鼠标选中区域")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[Tr.defaultBrowseJson.printCaret?Rr("span",{class:Tr.printCaretClass,on:{click:Tr.printCaret}},[Tr._v("打印鼠标点击位置")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items",staticStyle:{border:"0"}},[Tr.defaultBrowseJson.printContinue?Rr("span",{class:Tr.printContinueClass,on:{click:Tr.printContinue}},[Tr._v("续打")]):Tr._e()]),Rr("HoPrintDialog",{attrs:{vueController:Tr.vueController,printBeforeStatus:5,printModal:Tr.printModal},on:{closed:Tr.closedHoPrintModal}})],1),Tr._t("beforeEdit"),Rr("tab-pane",{attrs:{isShow:Tr.defaultEditJson.isEdit,label:"编辑模式",notHover:!0,name:"ho-edit"}},[Rr("ToolBarChild",{attrs:{editJson:Tr.defaultEditJson,vueController:Tr.vueController,tabStatus:Tr.tabStatus,textStyle:Tr.textStyle,uploadImageParams:Tr.uploadImageParams},on:{setModalStatus:Tr.setModalStatus}})],1),Tr._t("afterEdit"),Rr("tab-pane",{attrs:{isShow:Tr.defaultEditJson.isInsertElement,label:"插入",name:"ho-insert"}},[Rr("tool-control",{attrs:{insert:Tr.defaultEditJson,vueController:Tr.vueController,uploadImageParams:Tr.uploadImageParams},on:{setModalStatus:Tr.setModalStatus},scopedSlots:Tr._u([{key:"hoInsertItem",fn:function(){return[Tr._t("insideInsert")]},proxy:!0}],null,!0)})],1),Rr("tab-pane",{attrs:{isShow:Tr.defaultEditJson.isInsertTable,label:"表格",name:"ho-table"}},[Rr("tool-table",{attrs:{table:Tr.defaultEditJson,vueController:Tr.vueController},scopedSlots:Tr._u([{key:"hoTableItem",fn:function(){return[Tr._t("insideTable")]},proxy:!0}],null,!0)})],1),Rr("tab-pane",{attrs:{isShow:Tr.defaultReviewJson.isReview,label:"审阅模式",name:"ho-review"}},[Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.insertComment?Rr("span",{staticClass:"review",on:{click:function(Dr){return Dr.stopPropagation(),Tr.createControlComment.apply(null,arguments)}}},[Tr._v("插入批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.editComment?Rr("span",{staticClass:"review",on:{click:Tr.editComment}},[Tr._v("编辑批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.deleteComment?Rr("span",{staticClass:"review",on:{click:Tr.deleteComment}},[Tr._v("删除批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.deleteAllComment?Rr("span",{staticClass:"review",on:{click:Tr.deleteAllComment}},[Tr._v("删除全部批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.cancelDelete?Rr("span",{staticClass:"review",on:{click:Tr.cancelDelete}},[Tr._v("取消删除文本")]):Tr._e()]),Tr.userInfoes&&Tr.userInfoes.permissionLevel?Rr("li",{staticClass:"sub-bar-items"},[Rr("span",{style:{color:Tr.reviewLevel.color[Tr.userInfoes.permissionLevel-1]}},[Tr._v(Tr._s(Tr.reviewLevel.text[Tr.userInfoes.permissionLevel-1]))])]):Tr._e(),Tr._t("insertReview"),Tr.defaultReviewJson.printStatus?Rr("li",{staticClass:"sub-bar-items"},[Rr("span",{on:{click:Tr.reviewPrintStatus}},[Tr._v(Tr._s(Tr.isPrinted?"返回审阅模式":"浏览模式"))])]):Tr._e()],2),Tr._t("afterReview")],2)},Iu=[],HoMedicalExpressionvue_type_template_id_71faca1e_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{class:Tr.dropdownClassName+" ho-medical-expression-list",attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange,command:Tr.selectedSure}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("svg",{staticStyle:{transform:"translateY(0px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M921.6 448.884364h89.6c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8h-102.4c-6.423273 0-19.176727 6.423273-19.176727 12.8l-108.823273 115.060364c-6.376727 6.330182-12.8 6.330182-12.8 0l-57.576727-115.060364c-6.423273-6.376727-12.8-12.8-19.223273-12.8h-166.4a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.423273 12.753455 12.8 12.753455h102.4c6.423273 0 12.8 6.376727 19.176727 12.8l38.4 83.083636v19.130182l-115.2 134.190545c-6.376727 0-12.753455 6.423273-19.176727 6.423273H460.8c-6.376727 0-12.8 6.376727-12.8 12.753455v102.260363c0 6.376727 6.423273 12.8 12.8 12.8h102.4c6.376727 0 19.176727-6.423273 19.176727-12.8l147.223273-166.167273c6.423273-6.376727 12.8-6.376727 12.8 0l83.176727 166.167273c0 6.376727 12.8 12.8 19.223273 12.8h102.4a13.777455 13.777455 0 0 0 12.8-12.8V717.265455a13.777455 13.777455 0 0 0-12.8-12.753455h-38.4c-6.423273 0-12.8-6.423273-19.176727-12.8l-64.046546-127.813818v-19.130182l76.8-83.083636c6.423273-6.423273 12.846545-12.8 19.223273-12.8zM377.623273 65.489455c-32.023273 25.6-64.046545 63.906909-83.223273 127.813818l-31.976727 127.767272H76.8a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.376727 12.753455 12.8 12.753455h153.6l-96.023273 383.441454c-19.176727 76.660364-70.376727 63.860364-70.376727 63.860364H0V1024h64c51.2 0 102.4-6.376727 128-38.353455 32.023273-31.930182 51.2-89.460364 64-153.320727l96.023273-383.441454h147.176727c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8H384l32.023273-121.390545c6.376727-19.130182 38.4-51.106909 57.576727-63.906909 70.376727-51.106909 166.4-19.176727 230.4-6.376727V20.759273c-64-12.753455-204.8-57.483636-326.376727 44.683636v0.046546z"}})]),Rr("span",[Tr._v("医学表达式")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{attrs:{command:"style1"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130 60"}},[Rr("g",{staticClass:"text",attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"48",y:"13"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"48",y:"55"}},[Tr._v("周期")]),Rr("text",{attrs:{x:"75",y:"33"}},[Tr._v("末次月经")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 52 30 L 70 30"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style2"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"5",y:"20"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"5",y:"50"}},[Tr._v("末次月经")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("周期")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 5 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style3"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"50",y:"13"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"40",y:"55"}},[Tr._v("末次月经")]),Rr("text",{attrs:{x:"83",y:"33"}},[Tr._v("周期")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 15 5 L 110 55"}}),Rr("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style4"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("周期")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 62 30 L 110 30"}}),Rr("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style5"}},[Rr("p",[Tr._v("瞳孔图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"10",y:"25"}},[Tr._v("1")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("2")]),Rr("text",{attrs:{x:"10",y:"40"}},[Tr._v("3")]),Rr("text",{attrs:{x:"45",y:"40"}},[Tr._v("4")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("5")]),Rr("text",{attrs:{x:"10",y:"55"}},[Tr._v("6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("7")])])])]),Rr("el-dropdown-item",{attrs:{command:"style6"}},[Rr("p",[Tr._v("光定位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"10",y:"25"}},[Tr._v("1")]),Rr("text",{attrs:{x:"10",y:"40"}},[Tr._v("4")]),Rr("text",{attrs:{x:"10",y:"55"}},[Tr._v("7")]),Rr("text",{attrs:{x:"45",y:"25"}},[Tr._v("2")]),Rr("text",{attrs:{x:"45",y:"40"}},[Tr._v("5")]),Rr("text",{attrs:{x:"45",y:"55"}},[Tr._v("8")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("3")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("9")])])])]),Rr("el-dropdown-item",{attrs:{command:"style7"}},[Rr("p",[Tr._v("胎心图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"26",y:"15"}},[Tr._v("1")]),Rr("text",{attrs:{x:"26",y:"35"}},[Tr._v("4")]),Rr("text",{attrs:{x:"26",y:"55"}},[Tr._v("7")]),Rr("text",{attrs:{x:"84",y:"15"}},[Tr._v("2")]),Rr("text",{attrs:{x:"84",y:"35"}},[Tr._v("5")]),Rr("text",{attrs:{x:"84",y:"55"}},[Tr._v("8")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 0 30 L 10 30"}}),Rr("path",{attrs:{d:"M 52 30 L 67 30"}}),Rr("path",{attrs:{d:"M 110 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style8"}},[Rr("p",[Tr._v("恒牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("12345678")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("12345678")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style9"}},[Rr("p",[Tr._v("乳牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("I II III IV V")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("I II III IV V")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)],1)],1)},Mu=[],Nu=function(Tr){Object(Qr["a"])(DropDownClassNameMixins,Tr);var Dr=Object(Zr["a"])(DropDownClassNameMixins);function DropDownClassNameMixins(){var Tr;return Object(Xr["a"])(this,DropDownClassNameMixins),Tr=Dr.apply(this,arguments),Tr.dropdownClassName="",Tr}return Object(Yr["a"])(DropDownClassNameMixins,[{key:"dropdownChange",value:function dropdownChange(Tr){this.dropdownClassName=Tr?"drop-down-open":"drop-down-close"}}]),DropDownClassNameMixins}(Kr.a);Nu=__decorate([an],Nu);var Lu=function(Tr){Object(Qr["a"])(HoMedicalExpression,Tr);var Dr=Object(Zr["a"])(HoMedicalExpression);function HoMedicalExpression(){return Object(Xr["a"])(this,HoMedicalExpression),Dr.apply(this,arguments)}return Object(Yr["a"])(HoMedicalExpression,[{key:"selectedSure",value:function selectedSure(Tr){this.$emit("openExpress",Tr)}}]),HoMedicalExpression}(mixins(Nu));Lu=__decorate([an({name:"HoMedicalExpression"})],Lu);var Au=Lu,Ru=Au,Fu=(Rr("3b5e"),normalizeComponent(Ru,HoMedicalExpressionvue_type_template_id_71faca1e_scoped_true_render,Mu,!1,null,"71faca1e",null)),ju=Fu.exports,HoPrintDialogvue_type_template_id_79c29b08_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-dialog",{attrs:{title:"打印设置",top:"200px",visible:Tr.printDialog,center:"",width:"40%","before-close":Tr.closedHoPrintModal,"append-to-body":"","destroy-on-close":"","close-on-click-modal":!1},on:{"update:visible":function(Dr){Tr.printDialog=Dr}}},[Rr("section",{staticClass:"ho-print-content"},[Rr("el-radio",{attrs:{size:"medium",label:0},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("全部打印")]),Rr("el-radio",{attrs:{label:1},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("奇数页")]),Rr("el-radio",{attrs:{label:2},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("偶数页")]),Rr("div",{staticClass:"ho-print-more"},[Rr("el-radio",{attrs:{label:3},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("打印指定页:")]),Rr("el-input",{attrs:{disabled:3!==Tr.printMode,size:"mini",placeholder:"示例: 1, 2-4, 5, 7-10, 12"},model:{value:Tr.printAppoint,callback:function(Dr){Tr.printAppoint=Dr},expression:"printAppoint"}})],1),Tr.errorText?Rr("div",{staticClass:"ho-print-error"},[Tr._v(Tr._s(Tr.errorText))]):Tr._e(),Rr("div",{staticClass:"ho-print-title"},[Tr._v("指定页: 1, 2-4, 5, 7-10, 12")])],1),Rr("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{size:"mini",type:"primary"},on:{click:Tr.hoPrinted}},[Tr._v("确 定")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.closedHoPrintModal}},[Tr._v("取 消")])],1)])},Bu=[],Uu=function(Tr){Object(Qr["a"])(HoPrintDialog,Tr);var Dr=Object(Zr["a"])(HoPrintDialog);function HoPrintDialog(){var Tr;return Object(Xr["a"])(this,HoPrintDialog),Tr=Dr.apply(this,arguments),Tr.printMode=0,Tr.printAppoint="",Tr.errorText="",Tr}return Object(Yr["a"])(HoPrintDialog,[{key:"printDialog",get:function get(){return this.printModal||(this.printMode=0,this.printAppoint="",this.errorText=""),this.printModal}},{key:"printModeChange",value:function printModeChange(){3!==this.printMode&&(this.printAppoint="")}},{key:"hoPrinted",value:function hoPrinted(){var Tr=this.vueController.printPromisePDF(this.printBeforeStatus,this.printMode,this.printAppoint);Tr?this.errorText=Tr:this.$emit("closed","sure")}},{key:"closedHoPrintModal",value:function closedHoPrintModal(){this.$emit("closed","cancel")}}]),HoPrintDialog}(Kr.a);__decorate([Prop()],Uu.prototype,"vueController",void 0),__decorate([Prop()],Uu.prototype,"printModal",void 0),__decorate([Prop()],Uu.prototype,"printBeforeStatus",void 0),__decorate([Watch("printMode")],Uu.prototype,"printModeChange",null),Uu=__decorate([an({name:"HoPrintDialog"})],Uu);var Hu=Uu,Wu=Hu,qu=(Rr("40da"),normalizeComponent(Wu,HoPrintDialogvue_type_template_id_79c29b08_render,Bu,!1,null,null,null)),zu=qu.exports,Vu=function(Tr){Object(Qr["a"])(ToolFamily,Tr);var Dr=Object(Zr["a"])(ToolFamily);function ToolFamily(){var Tr;return Object(Xr["a"])(this,ToolFamily),Tr=Dr.apply(this,arguments),Tr.fontFamily=Eu["a"],Tr.fontSize=Eu["b"],Tr.isSuperScript=!1,Tr.isSubScript=!1,Tr.familySelected="微软雅黑",Tr.fontSizeSelected="14",Tr.font={ch:"宋体",en:"SimSun"},Tr.size={name:"四号",value:14},Tr.isBold=!1,Tr.isItalic=!1,Tr.isUnderline=!1,Tr.isStrikeout=!1,Tr.backcolor="transparent",Tr.color="#333333",Tr.predefineColors=["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#158577","#ffffff","#000000"],Tr.fontFamilyVisible=!1,Tr.fontSizeVisible=!1,Tr.fontColorVisible=!1,Tr.backColorVisible=!1,Tr}return Object(Yr["a"])(ToolFamily,[{key:"textStyleChange",value:function textStyleChange(Tr){this.setCurrentFonts(Tr)}},{key:"setCurrentFonts",value:function setCurrentFonts(Tr){this.isBold=Tr.bold,this.isItalic=Tr.italic,this.isUnderline=Tr.underline,this.isStrikeout=Tr.strikeout,this.backcolor=Tr.backColor,this.color=Tr.color,this.isSuperScript=2===Tr.script,this.isSubScript=1===Tr.script;var Dr=Eu["a"].filter((function(Dr){if(Dr.ch===Tr.font)return Dr}));Array.isArray(Dr)&&0!==Dr.length?this.font=Dr[0]:this.font={ch:"",en:""};var Rr=Eu["b"].filter((function(Dr){if(Dr.value===Tr.size)return Dr}));Array.isArray(Rr)&&0!==Rr.length?this.size=Rr[0]:this.size={name:"",value:0}}},{key:"fontFamilyClick",value:function fontFamilyClick(Tr){this.font=Tr,this.fontFamilyVisible=!1,this.vueController.fontFormat(Tr.ch)}},{key:"fontSizeClick",value:function fontSizeClick(Tr){this.size=Tr,this.fontSizeVisible=!1,this.vueController.fontSize(this.size.value)}},{key:"fontSizeEnlargeClick",value:function fontSizeEnlargeClick(){this.vueController.fontSizeEnlarge()}},{key:"fontSizeDecreaseClick",value:function fontSizeDecreaseClick(){this.vueController.fontSizeDecrease()}},{key:"fontSuperScriptClick",value:function fontSuperScriptClick(){this.isSuperScript=!this.isSuperScript,this.isSubScript=!1,this.vueController.fontSuperScript(this.isSuperScript)}},{key:"fontSubScriptClick",value:function fontSubScriptClick(){this.isSubScript=!this.isSubScript,this.isSuperScript=!1,this.vueController.fontSubScript(this.isSubScript)}},{key:"fontBoldClick",value:function fontBoldClick(){this.isBold=!this.isBold,this.vueController.fontBold(this.isBold)}},{key:"fontItalicClick",value:function fontItalicClick(){this.isItalic=!this.isItalic,this.vueController.fontItalic(this.isItalic)}},{key:"fontUnderlineClick",value:function fontUnderlineClick(){this.isUnderline=!this.isUnderline,this.vueController.fontUnderline(this.isUnderline)}},{key:"fontStrikeoutClick",value:function fontStrikeoutClick(){this.isStrikeout=!this.isStrikeout,this.vueController.fontStrikeout(this.isStrikeout)}},{key:"rgbToHex",value:function rgbToHex(Tr){var Dr=Tr.split(","),Rr=parseInt(Dr[0].split("(")[1]),Ur=parseInt(Dr[1]),Hr=parseInt(Dr[2].split(")")[0]),Wr="#"+((1<<24)+(Rr<<16)+(Ur<<8)+Hr).toString(16).slice(1).toLocaleUpperCase();return Wr}},{key:"backcolorChanges",value:function backcolorChanges(Tr){var Dr=Tr;-1!==Tr.indexOf("rgb")?Dr=this.rgbToHex(Dr):null===Tr&&(Dr="transparent"),this.backColorChange(Dr)}},{key:"backColorChange",value:function backColorChange(Tr){var Dr=Tr;this.backcolor=Dr,null===Tr&&(Dr="transparent"),this.vueController.fontBackColor(Dr)}},{key:"colorChanges",value:function colorChanges(Tr){var Dr=Tr;-1!==Tr.indexOf("rgb")?Dr=this.rgbToHex(Dr):null===Tr&&(Dr="transparent"),this.fontColorChange(Dr)}},{key:"fontColorChange",value:function fontColorChange(Tr){var Dr=Tr;this.color=Dr,null===Tr&&(Dr="transparent"),this.vueController.fontColor(Dr)}},{key:"isSupportFontFamily",value:function isSupportFontFamily(Tr){var Dr="Arial";if(Tr.toLowerCase()==Dr.toLowerCase())return!0;var Rr="a",Ur=100,Hr=100,Wr=100,zr=document.createElement("canvas"),Vr=zr.getContext("2d");zr.width=Hr,zr.height=Wr,Vr.textAlign="center",Vr.fillStyle="black",Vr.textBaseline="middle";var Kr=function g(Tr){Vr.clearRect(0,0,Hr,Wr),Vr.font=Ur+"px "+Tr+", "+Dr,Vr.fillText(Rr,Hr/2,Wr/2);var zr=Vr.getImageData(0,0,Hr,Wr).data;return[].slice.call(zr).filter((function(Tr){return 0!=Tr}))};return Kr(Dr).join!==Kr(Tr).join}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.family;return Dr("li",{class:"sub-bar-items sub-bar-not-item-hover"},[Rr.family?Dr(ns,{attrs:_objectSpread2({},{title:"字体",poperStyle:{width:"160px",textAlign:"left"}})},[Dr("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[Dr("span",{class:"el-dropdown-link"},[this.font.ch,Dr("i",{class:"el-icon-arrow-down el-icon--right"})]),Dr("el-dropdown-menu",{slot:"dropdown"},[this.fontFamily.map((function(Rr){return Dr("el-dropdown-item",{key:Rr.en,class:Rr.en===Tr.font.en?"selected":"",style:{fontFamilys:Rr.ch},nativeOn:{click:function click(){return Tr.fontFamilyClick(Rr)}}},[Dr("span",[Rr.ch])])}))])])]):null,Rr.size?Dr(ns,{attrs:_objectSpread2({},{title:"字号",poperStyle:{width:"60px",textAlign:"left"}})},[Dr("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[Dr("span",{class:"el-dropdown-link"},[this.size.name,Dr("i",{class:"el-icon-arrow-down el-icon--right"})]),Dr("el-dropdown-menu",{slot:"dropdown"},[this.fontSize.map((function(Rr){return Dr("el-dropdown-item",{key:Rr.name,class:Rr.name===Tr.size.name?"selected":"",nativeOn:{click:function click(){return Tr.fontSizeClick(Rr)}}},[Rr.name])}))])])]):null,Rr.enlargeSize?Dr(ns,{attrs:_objectSpread2({},{title:"增大字体",svg:"fontSizeEnlarge"}),nativeOn:{click:this.fontSizeEnlargeClick.bind(this)}}):null,Rr.decreaseSize?Dr(ns,{attrs:_objectSpread2({},{title:"缩小字体",svg:"fontSizeDecrease"}),nativeOn:{click:this.fontSizeDecreaseClick.bind(this)}}):null,Rr.superScript?Dr(ns,{attrs:_objectSpread2({},{title:"上标",svg:"fontSuperScript",selected:this.isSuperScript}),nativeOn:{click:this.fontSuperScriptClick.bind(this)}}):null,Rr.subScript?Dr(ns,{attrs:_objectSpread2({},{title:"下标",svg:"fontSubScript",selected:this.isSubScript}),nativeOn:{click:this.fontSubScriptClick.bind(this)}}):null,Rr.bold?Dr(ns,{attrs:_objectSpread2({},{title:"加粗",svg:"bold",selected:this.isBold}),nativeOn:{click:this.fontBoldClick.bind(this)}}):null,Rr.underline?Dr(ns,{attrs:_objectSpread2({},{title:"下划线",svg:"underline",selected:this.isUnderline}),nativeOn:{click:this.fontUnderlineClick.bind(this)}}):null,Rr.strikeout?Dr(ns,{attrs:_objectSpread2({},{title:"删除线",svg:"strikeout",selected:this.isStrikeout}),nativeOn:{click:this.fontStrikeoutClick.bind(this)}}):null,Rr.fontColor?Dr(ns,{attrs:_objectSpread2({},{title:"字体颜色",poperStyle:{padding:"0",width:"50px"}})},[Dr("div",{class:"color-picker-menu"},[Dr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17"},style:"transform: translate(8px, 0px)"},[Dr("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-4 -3)"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{fill:"#555",d:"M12,3 C12.3925578,3 12.7488579,3.22956042 12.9113768,3.5869126 L16.5538794,11.5993713 L17.9189416,14.6040434 C18.1331826,15.1044933 17.9084769,15.6844371 17.412985,15.9098686 C16.9174931,16.1353002 16.3326765,15.9236609 16.096188,15.4333329 L14.9965268,13.0155734 L9.00347324,13.0155734 L7.90381202,15.4333329 C7.66732348,15.9236609 7.08250692,16.1353002 6.58701502,15.9098686 C6.09152313,15.6844371 5.86681743,15.1044933 6.08105844,14.6040434 L7.4461206,11.5993713 L11.0886232,3.5869126 C11.2511421,3.22956042 11.6074422,3 12,3 Z M9.91384852,11.0124587 L14.0861515,11.0124587 L12,6.42232144 L9.91384852,11.0124587 Z"}}),Dr("rect",{attrs:{width:"16",height:"3",x:"4",y:"17",fill:this.color,rx:"1.5"}})])]),Dr("el-color-picker",{attrs:{size:"small","color-format":"hex",value:this.color,predefine:this.predefineColors},on:{change:this.fontColorChange.bind(this),"active-change":this.colorChanges.bind(this)}})])]):null,Rr.backColor?Dr(ns,{attrs:_objectSpread2({},{title:"背景颜色",poperStyle:{padding:"0",width:"50px"}})},[Dr("div",{class:"color-picker-menu"},[Dr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 1024 1024"},style:"transform: translate(2px, 0px)"},[Dr("path",{attrs:{fill:"#555",d:"M170.037895 409.061053c0.970105-17.354105 6.036211-32.336842 15.090526-45.002106a113.178947 113.178947 0 0 1 34.330947-31.258947c13.743158-8.192 28.995368-14.282105 45.810527-18.216421 16.761263-3.934316 33.522526-5.928421 50.176-5.928421 18.432 0 36.271158 1.832421 53.571368 5.389474 17.300211 3.610947 32.660211 9.323789 46.026105 17.138526 13.365895 7.868632 24.090947 18.054737 32.175158 30.558316 8.084211 12.503579 12.126316 27.594105 12.126316 45.271579v166.103579c0 5.497263 0.970105 10.509474 2.856421 15.036631 1.886316 4.527158 4.096 6.790737 6.629053 6.790737 1.778526 0 12.126316-3.018105 31.043368-8.946526v51.792842c-10.832842 2.640842-19.887158 4.742737-27.055158 6.251789a103.208421 103.208421 0 0 1-21.773473 2.317474c-14.389895 0-26.947368-3.233684-37.726316-9.808842a57.344 57.344 0 0 1-23.65979-29.857684 142.336 142.336 0 0 1-55.511579 32.175158c-9.431579 2.856421-19.078737 4.850526-28.941473 5.928421-9.808842 1.077895-19.833263 1.616842-29.911579 1.616842-15.898947 0-30.773895-2.155789-44.732632-6.467369a113.825684 113.825684 0 0 1-36.109473-18.216421 84.614737 84.614737 0 0 1-24.037053-28.779789A82.890105 82.890105 0 0 1 161.684211 554.576842c0-14.982737 3.179789-27.594105 9.485473-37.834105 6.305684-10.24 14.551579-18.970947 24.791579-26.085053a145.515789 145.515789 0 0 1 35.031579-17.731368c13.150316-4.634947 26.516211-8.677053 40.151579-12.126316s27.001263-6.629053 40.151579-9.485474c13.096421-2.856421 24.791579-6.197895 35.031579-9.970526 10.24-3.826526 18.485895-8.407579 24.791579-13.797053a25.761684 25.761684 0 0 0 9.485474-20.48c0-16.491789-5.820632-28.402526-17.461895-35.786105-11.587368-7.383579-27.863579-11.048421-48.828632-11.048421-8.084211 0-15.629474 0.862316-22.743579 2.694737a56.32 56.32 0 0 0-18.917052 8.515368 50.768842 50.768842 0 0 0-14.012632 15.198316c-3.772632 6.197895-6.305684 13.689263-7.545263 22.528H169.984z m210.566737 66.829473c-6.305684 3.826526-14.174316 7.114105-23.498106 9.862737-9.323789 2.694737-19.186526 5.551158-29.534315 8.407579-10.347789 2.856421-20.749474 5.928421-31.258948 9.108211-10.455579 3.233684-19.887158 7.060211-28.186947 11.587368-8.353684 4.527158-15.090526 9.916632-20.264421 16.114526a33.953684 33.953684 0 0 0-7.760842 22.528 46.349474 46.349474 0 0 0 3.772631 19.779369 35.354947 35.354947 0 0 0 23.498105 19.671579c5.012211 1.293474 10.078316 1.994105 15.090527 1.994105 17.461895 0 34.762105-5.551158 51.900631-16.653474 17.192421-11.048421 32.606316-27.540211 46.241685-49.475368v-52.870737z m170.415157-287.258947h79.117474v147.563789c11.856842-8.569263 24.791579-15.306105 38.642526-20.156631a121.802105 121.802105 0 0 1 40.528843-7.329684c25.276632 0 47.427368 4.419368 66.667789 13.20421 19.186526 8.838737 35.139368 20.911158 47.912421 36.271158 12.719158 15.36 22.312421 33.360842 28.77979 53.948632 6.467368 20.641684 9.647158 42.576842 9.647157 65.967158 0 23.336421-3.233684 45.271579-9.862736 65.751578-6.575158 20.48-16.330105 38.319158-29.318737 53.571369-13.042526 15.252211-29.103158 27.270737-48.289684 36.109474-19.186526 8.784842-41.445053 13.204211-66.66779 13.20421-13.904842 0-27.594105-2.263579-41.067789-6.790737a129.724632 129.724632 0 0 1-36.97179-19.294316v19.294316h-79.117474V188.631579z m79.117474 289.414737c0 16.222316 1.724632 31.474526 5.12 45.810526 3.449263 14.228211 8.353684 26.624 14.767158 37.133474 6.467368 10.455579 14.389895 18.755368 23.875368 24.791579 9.485474 6.090105 20.264421 9.162105 32.336843 9.162105 12.395789 0 23.390316-3.072 32.983579-9.162105 9.593263-6.036211 17.677474-14.336 24.252631-24.791579 6.575158-10.509474 11.533474-22.905263 14.982737-37.187369a196.715789 196.715789 0 0 0 5.066105-45.702736c0-16.222316-1.670737-31.474526-5.066105-45.810527a128.431158 128.431158 0 0 0-14.982737-37.456842 78.147368 78.147368 0 0 0-24.252631-25.384421 59.392 59.392 0 0 0-32.929685-9.269895c-11.856842 0-22.420211 2.964211-31.63621 8.892632-9.162105 5.928421-17.030737 14.012632-23.498105 24.144842-6.413474 10.132211-11.479579 22.042947-15.090527 35.732211a181.786947 181.786947 0 0 0-5.928421 44.139789v5.012211z"}}),Dr("path",{attrs:{d:"M851.536842 485.052632H970.105263l-247.915789 269.473684H377.263158z",fill:this.backcolor}})]),Dr("el-color-picker",{attrs:{size:"small","color-format":"hex",value:this.backcolor,predefine:this.predefineColors},on:{change:this.backColorChange.bind(this),"active-change":this.backcolorChanges.bind(this)}})])]):null])}}]),ToolFamily}(Kr.a);__decorate([Prop()],Vu.prototype,"vueController",void 0),__decorate([Prop()],Vu.prototype,"family",void 0),__decorate([Prop()],Vu.prototype,"textStyle",void 0),__decorate([Watch("textStyle",{deep:!0})],Vu.prototype,"textStyleChange",null),Vu=__decorate([an({name:"ToolFamily",components:{Poper:ns}})],Vu);var Ku=Vu,$u=function(Tr){Object(Qr["a"])(ToolParagraph,Tr);var Dr=Object(Zr["a"])(ToolParagraph);function ToolParagraph(){var Tr;return Object(Xr["a"])(this,ToolParagraph),Tr=Dr.apply(this,arguments),Tr.aligned="both",Tr.lineHeight=1.25,Tr.lineHeightList=[1.25,1.5,2,2.5,3],Tr.lineHeightVisible=!1,Tr.isInMenu=!1,Tr.toolMenuOpenPath=[],Tr}return Object(Yr["a"])(ToolParagraph,[{key:"alignChange",value:function alignChange(Tr){Tr&&(this.aligned=Tr)}},{key:"lineSpaceChange",value:function lineSpaceChange(Tr){Tr&&(this.lineHeight=Tr)}},{key:"computedMenu",value:function computedMenu(){window.innerWidth>=1250?this.isInMenu=!1:this.isInMenu=!0}},{key:"alignedLeft",value:function alignedLeft(){this.aligned="left",this.vueController.alignedLeft()}},{key:"alignedCenter",value:function alignedCenter(){this.aligned="center",this.vueController.alignedCenter()}},{key:"alignedRight",value:function alignedRight(){this.aligned="right",this.vueController.alignedRight()}},{key:"alignedBothEnds",value:function alignedBothEnds(){this.aligned="both",this.vueController.alignedBothEnds()}},{key:"addIndentClick",value:function addIndentClick(){this.vueController.addIndent()}},{key:"decreaseIndentClick",value:function decreaseIndentClick(){this.vueController.decreaseIndent()}},{key:"lineHeightClick",value:function lineHeightClick(Tr){this.lineHeightVisible=!1,this.vueController.setLineHeight(Tr)}},{key:"closeToolMenus",value:function closeToolMenus(Tr){var Dr=this;this.toolMenuOpenPath.length>0&&this.toolMenuOpenPath.forEach((function(Tr){Dr.toolMenu.closeMenu(Tr)}))}},{key:"toolMenuSelected",value:function toolMenuSelected(Tr,Dr){this.toolMenuOpenPath=Dr}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.paragraph;this.isInMenu;return Dr("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-not-item-hover"},[Rr.alignLeft?Dr(ns,{attrs:_objectSpread2({},{title:"向左对齐",svg:"alignLeft",selected:"left"===this.aligned}),nativeOn:{click:this.alignedLeft.bind(this)}}):null,Rr.alignCenter?Dr(ns,{attrs:_objectSpread2({},{title:"居中对齐",svg:"alignCenter",selected:"center"===this.aligned}),nativeOn:{click:this.alignedCenter.bind(this)}}):null,Rr.alignRight?Dr(ns,{attrs:_objectSpread2({},{title:"向右对齐",svg:"alignRight",selected:"right"===this.aligned}),nativeOn:{click:this.alignedRight.bind(this)}}):null,Rr.alignBoth?Dr(ns,{attrs:_objectSpread2({},{title:"两端对齐",svg:"alignBoth",selected:"both"===this.aligned}),nativeOn:{click:this.alignedBothEnds.bind(this)}}):null,Rr.addIndent?Dr(ns,{attrs:_objectSpread2({},{title:"增加缩进",svg:"addIndent"}),nativeOn:{click:this.addIndentClick.bind(this)}}):null,Rr.decreaseIndent?Dr(ns,{attrs:_objectSpread2({},{title:"减少缩进",svg:"decreaseIndent"}),nativeOn:{click:this.decreaseIndentClick.bind(this)}}):null,Rr.setHeight?Dr(ns,{attrs:_objectSpread2({},{title:"设置行高",poperStyle:{width:"44px"}})},[Dr("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[Dr("span",{class:"el-dropdown-link"},[Dr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"15",viewBox:"0 0 13 15"},style:"transform: translate(5px, -1px)"},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-6 -5)"}},[Dr("path",{attrs:{fill:"#555","fill-rule":"nonzero",d:"M11.1666667,0 L1.16666667,0 C0.614381917,1.01453063e-16 0.166666667,0.44771525 0.166666667,1 C0.166666667,1.55228475 0.614381917,2 1.16666667,2 L11.1666667,2 C11.7189514,2 12.1666667,1.55228475 12.1666667,1 C12.1666667,0.44771525 11.7189514,-1.01453063e-16 11.1666667,0 Z M11.1666667,13 L1.16666667,13 C0.614381917,13 0.166666667,13.4477153 0.166666667,14 C0.166666667,14.5522847 0.614381917,15 1.16666667,15 L11.1666667,15 C11.7189514,15 12.1666667,14.5522847 12.1666667,14 C12.1666667,13.4477153 11.7189514,13 11.1666667,13 Z M7.90077172,5.59781723 L6.06730005,3.0552939 C6.01455136,2.9815687 5.91269183,2.9815687 5.86176206,3.0552939 L4.02829039,5.59781723 C3.96099034,5.69146816 4.02101471,5.83094828 4.13196885,5.83094828 L5.34518869,5.83094828 L5.34518869,9.17104429 L4.20290674,9.17104429 C4.09377152,9.17104429 4.03192823,9.31052441 4.09922828,9.40417535 L5.93269995,11.9447061 C5.98544864,12.0184313 6.08730817,12.0184313 6.13823794,11.9447061 L7.97170961,9.40417535 C8.03900966,9.31052441 7.97898529,9.17104429 7.86803115,9.17104429 L6.65481131,9.17104429 L6.65481131,5.83094828 L7.79709326,5.83094828 C7.90622848,5.83094828 7.96807177,5.69146816 7.90077172,5.59781723 Z",transform:"translate(6 5)"}})])]),Dr("i",{class:"el-icon-arrow-down el-icon--right"})]),Dr("el-dropdown-menu",{slot:"dropdown"},[this.lineHeightList.map((function(Rr){return Dr("el-dropdown-item",{key:"line-height-"+Rr,class:Rr===Tr.lineHeight?"selected":"",nativeOn:{click:function click(){return Tr.lineHeightClick(Rr)}}},[1.25===Rr?1:Rr])}))])])]):null])}}]),ToolParagraph}(Kr.a);__decorate([Prop()],$u.prototype,"vueController",void 0),__decorate([Prop()],$u.prototype,"paragraph",void 0),__decorate([Ref()],$u.prototype,"toolMenu",void 0),__decorate([Prop()],$u.prototype,"align",void 0),__decorate([Prop()],$u.prototype,"lineSpace",void 0),__decorate([Watch("align")],$u.prototype,"alignChange",null),__decorate([Watch("lineSpace")],$u.prototype,"lineSpaceChange",null),$u=__decorate([an({name:"ToolParagraph",components:{Poper:ns}})],$u);var Gu=$u,MedicalExpressionsvue_type_template_id_50152c2d_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticStyle:{overflow:"hidden",height:"640px"},attrs:{native:!1}},[Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style1"},on:{click:function(Dr){return Tr.selectedSure("style1")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"43",y:"13"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"43",y:"55"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"83",y:"33"}},[Tr._v("Value4")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 40 30 L 80 30"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style2"},on:{click:function(Dr){return Tr.selectedSure("style2")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"15",y:"20"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"15",y:"50"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("Value4")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 10 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style3"},on:{click:function(Dr){return Tr.selectedSure("style3")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"43",y:"13"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"43",y:"55"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"83",y:"33"}},[Tr._v("Value4")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 15 5 L 110 55"}}),Rr("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style4"},on:{click:function(Dr){return Tr.selectedSure("style4")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("Value3")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 62 30 L 110 30"}}),Rr("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style5"},on:{click:function(Dr){return Tr.selectedSure("style5")}}},[Rr("span",[Tr._v("瞳孔图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"25"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"0",y:"40"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"40",y:"40"}},[Tr._v("Value4")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("Value5")]),Rr("text",{attrs:{x:"0",y:"55"}},[Tr._v("Value6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("Value7")])])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style6"},on:{click:function(Dr){return Tr.selectedSure("style6")}}},[Rr("span",[Tr._v("光定位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"25"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"0",y:"40"}},[Tr._v("Value4")]),Rr("text",{attrs:{x:"0",y:"55"}},[Tr._v("Value7")]),Rr("text",{attrs:{x:"40",y:"25"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"40",y:"40"}},[Tr._v("Value5")]),Rr("text",{attrs:{x:"40",y:"55"}},[Tr._v("Value8")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("Value6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("Value9")])])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style7"},on:{click:function(Dr){return Tr.selectedSure("style7")}}},[Rr("span",[Tr._v("胎心图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"12",y:"15"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"12",y:"35"}},[Tr._v("Value4")]),Rr("text",{attrs:{x:"12",y:"55"}},[Tr._v("Value7")]),Rr("text",{attrs:{x:"70",y:"15"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"70",y:"35"}},[Tr._v("Value5")]),Rr("text",{attrs:{x:"70",y:"55"}},[Tr._v("Value8")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 0 30 L 10 30"}}),Rr("path",{attrs:{d:"M 52 30 L 67 30"}}),Rr("path",{attrs:{d:"M 110 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style8"},on:{click:function(Dr){return Tr.selectedSure("style8")}}},[Rr("span",[Tr._v("恒牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("12345678")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("12345678")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style9"},on:{click:function(Dr){return Tr.selectedSure("style9")}}},[Rr("span",[Tr._v("乳牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("I II III IV V")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("I II III IV V")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)},Ju=[],Xu=function(Tr){Object(Qr["a"])(MedicalExpression,Tr);var Dr=Object(Zr["a"])(MedicalExpression);function MedicalExpression(){return Object(Xr["a"])(this,MedicalExpression),Dr.apply(this,arguments)}return Object(Yr["a"])(MedicalExpression,[{key:"selectedSure",value:function selectedSure(Tr){this.$emit("open-express","express","add",Tr)}}]),MedicalExpression}(Kr.a);Xu=__decorate([an({name:"MedicalExpression"})],Xu);var Yu=Xu,Qu=Yu,Zu=(Rr("8a1a"),normalizeComponent(Qu,MedicalExpressionsvue_type_template_id_50152c2d_scoped_true_render,Ju,!1,null,"50152c2d",null)),ed=Zu.exports,UploadImagevue_type_template_id_208b2688_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":Tr.fileList,"auto-upload":!1,"on-change":Tr.uploadImage,accept:"image/*"}},[Rr("el-menu-item",{attrs:{slot:"trigger",index:"upload"},slot:"trigger"},[Rr("svg",{attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("g",{attrs:{transform:"translate(1 1)"}},[Rr("path",{attrs:{stroke:"none",d:"M1 0h12c.6 0 1 .4 1 1v11c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1zm0 1v11h12V1H1z"}}),Rr("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),Rr("path",{attrs:{stroke:"none",d:"M8.5 11.2l-4-4.1L1 10.7V9.2c1.7-1.6 2.7-2.5 3-2.8.4-.5.7-.4 1 0L8.5 10 11 7.3c.4-.5.6-.5 1-.1l2 2.8v1.5l-2.5-3.4-3 3.1z"}})])]),Rr("span",{attrs:{size:"small"}},[Tr._v("图片")])])],1)},td=[],rd=function uploadImages(Tr){return new Promise((function(Dr,Rr){if(Tr.url){var Ur=Tr.method||"GET",Hr=Tr.async||!0,Wr=new XMLHttpRequest;"GET"===Ur?(Wr.open(Ur,Tr.url+"?"+Math.random(),Hr),Wr.send(null)):"POST"===Ur&&(Wr.open(Ur,Tr.url,Hr),Wr.send(Tr.data)),Wr.onreadystatechange=function(){Wr.responseText&&Dr(Wr.responseText)},Wr.onerror=function(Tr){Rr(Tr)}}}))},nd=function(Tr){Object(Qr["a"])(UploadImage,Tr);var Dr=Object(Zr["a"])(UploadImage);function UploadImage(){var Tr;return Object(Xr["a"])(this,UploadImage),Tr=Dr.apply(this,arguments),Tr.fileList=[],Tr}return Object(Yr["a"])(UploadImage,[{key:"uploadImage",value:function uploadImage(Tr){var Dr=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var Rr=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",Ur=new FormData;Ur.append(Rr,Tr.raw),rd({url:this.uploadImageParams.uploadUrl,method:"POST",data:Ur}).then((function(Rr){var Ur,Hr="";if(null!==(Ur=Dr.uploadImageParams)&&void 0!==Ur&&Ur.callbackParamName||"string"!==typeof Rr){var Wr,zr=null===(Wr=Dr.uploadImageParams)||void 0===Wr?void 0:Wr.callbackParamName;Hr=Rr[zr]}else Hr=JSON.parse(Rr).imgUrl;if(Hr){var Vr=new Image;Vr.src=Hr,Vr.onload=function(){Dr.vueController.insertImage(Hr,Vr.width,Vr.height)}}else Dr.insertBase64Image(Tr)}),(function(){Dr.insertBase64Image(Tr)}))}else this.insertBase64Image(Tr)}},{key:"insertBase64Image",value:function insertBase64Image(Tr){var Dr=this,Rr=new FileReader;Rr.onload=function(Tr){var Rr=new Image,Ur=Tr.target.result;Rr.src=Ur,Rr.onload=function(){Dr.vueController.insertImage(Ur,Rr.width,Rr.height),Dr.fileList=[]}},Rr.readAsDataURL(Tr.raw)}}]),UploadImage}(Kr.a);__decorate([Prop()],nd.prototype,"vueController",void 0),__decorate([Prop()],nd.prototype,"uploadImageParams",void 0),nd=__decorate([an({name:"UploadImage"})],nd);var ad=nd,od=ad,sd=(Rr("f4da"),normalizeComponent(od,UploadImagevue_type_template_id_208b2688_scoped_true_render,td,!1,null,"208b2688",null)),ld=sd.exports,SpecialCharsvue_type_template_id_517c34d3_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-menu-item",{staticClass:"special-characters",attrs:{disabled:"",index:"style1"}},[Rr("section",[Rr("ul",[Rr("li",[Rr("header",[Tr._v("特殊字符")]),Rr("p",{staticClass:"chars-list special-chars-list"},Tr._l(Tr.specialChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("罗马字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.romanChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("数学字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.mathChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)])])])])},cd=[],ud=function(Tr){Object(Qr["a"])(SpecialChars,Tr);var Dr=Object(Zr["a"])(SpecialChars);function SpecialChars(){var Tr;return Object(Xr["a"])(this,SpecialChars),Tr=Dr.apply(this,arguments),Tr.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],Tr.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],Tr.usedChars=[],Tr}return Object(Yr["a"])(SpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(Tr){if(this.vueController.insertSpecialChars("",Tr),this.usedChars.includes(Tr))return!1;this.usedChars.unshift(Tr),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var Tr=this;this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),SpecialChars}(Kr.a);__decorate([Prop()],ud.prototype,"controlStatus",void 0),__decorate([Prop()],ud.prototype,"vueController",void 0),ud=__decorate([an({name:"SpecialChars"})],ud);var hd=ud,pd=hd,fd=(Rr("1c21"),normalizeComponent(pd,SpecialCharsvue_type_template_id_517c34d3_scoped_true_render,cd,!1,null,"517c34d3",null)),_d=fd.exports,gd=function(Tr){Object(Qr["a"])(ToolControls,Tr);var Dr=Object(Zr["a"])(ToolControls);function ToolControls(){var Tr;return Object(Xr["a"])(this,ToolControls),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.dateFormatValue=[],Tr.dateFormat=Jn["d"],Tr.fileList=[],Tr.tableFormulaValue=[],Tr.tableFormulaList=["sum(a3:a10)","(a1 + a20) * 2"],Tr}return Object(Yr["a"])(ToolControls,[{key:"initDropdown",value:function initDropdown(){var Tr=this,Dr=[];this.dateFormatList.forEach((function(Rr,Ur){Ur<10&&Dr.push(Tr.dateFormat("",Rr))})),this.dateFormatValue=[].concat(Dr);var Rr=[];this.tableFormulaList.forEach((function(Tr){Rr.push(Tr)})),this.tableFormulaValue=[].concat(Rr)}},{key:"created",value:function created(){this.initDropdown()}},{key:"createControl",value:function createControl(Tr){this.$emit("setModal",[Tr,"add",""])}},{key:"openExpress",value:function openExpress(){for(var Tr=arguments.length,Dr=new Array(Tr),Rr=0;Rr<Tr;Rr++)Dr[Rr]=arguments[Rr];this.$emit("setModal",Dr)}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModal",["","add",""])}},{key:"selectedDate",value:function selectedDate(Tr,Dr){if("more"===Tr)this.$emit("setModal",["date","add",""]);else{var Rr={id:this.vueController.generateID("DT"),name:"",text:Dr,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:Tr};this.vueController.insertDateTime("add",JSON.stringify(Rr))}}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.insert,Ur=this.vueController;return Dr("el-submenu",{attrs:{"popper-class":"insert-menus",index:"control"}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M836.1 64H187.9C119.6 64 64 119.5 64 187.7v648.7C64 904.5 119.6 960 187.9 960h311.8c29.1 0 52.5-23.5 52.5-52.4s-23.6-52.4-52.5-52.4H187.9c-10.3 0-18.7-8.4-18.7-18.6V187.7c0-10.2 8.5-18.6 18.7-18.6h648.2c10.3 0 18.7 8.4 18.7 18.6v311.5c-0.1 13.9 5.5 27.3 15.4 37.1s23.3 15.3 37.2 15.3c29.1 0 52.5-23.5 52.5-52.4V187.7C960 119.5 904.4 64 836.1 64z m68.6 591.4H767.4V518c0-30.6-25.1-55.3-56-55.3s-56 24.6-56 55.3v137.4H522.5c-30.6 0-55.3 25.1-55.3 56s24.6 56 55.3 56h132.9v133c0 30.7 25.2 55.3 56.1 55.1 30.8 0 55.9-24.6 55.9-55.3V767.4h137.4c30.6 0 55.3-25.1 55.3-56-0.1-30.9-24.7-56-55.4-56z","p-id":"2944"}})]),Dr("span",["插入"])]),Rr.express?Dr("el-submenu",{attrs:{index:"express","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M921.6 448.884364h89.6c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8h-102.4c-6.423273 0-19.176727 6.423273-19.176727 12.8l-108.823273 115.060364c-6.376727 6.330182-12.8 6.330182-12.8 0l-57.576727-115.060364c-6.423273-6.376727-12.8-12.8-19.223273-12.8h-166.4a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.423273 12.753455 12.8 12.753455h102.4c6.423273 0 12.8 6.376727 19.176727 12.8l38.4 83.083636v19.130182l-115.2 134.190545c-6.376727 0-12.753455 6.423273-19.176727 6.423273H460.8c-6.376727 0-12.8 6.376727-12.8 12.753455v102.260363c0 6.376727 6.423273 12.8 12.8 12.8h102.4c6.376727 0 19.176727-6.423273 19.176727-12.8l147.223273-166.167273c6.423273-6.376727 12.8-6.376727 12.8 0l83.176727 166.167273c0 6.376727 12.8 12.8 19.223273 12.8h102.4a13.777455 13.777455 0 0 0 12.8-12.8V717.265455a13.777455 13.777455 0 0 0-12.8-12.753455h-38.4c-6.423273 0-12.8-6.423273-19.176727-12.8l-64.046546-127.813818v-19.130182l76.8-83.083636c6.423273-6.423273 12.846545-12.8 19.223273-12.8zM377.623273 65.489455c-32.023273 25.6-64.046545 63.906909-83.223273 127.813818l-31.976727 127.767272H76.8a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.376727 12.753455 12.8 12.753455h153.6l-96.023273 383.441454c-19.176727 76.660364-70.376727 63.860364-70.376727 63.860364H0V1024h64c51.2 0 102.4-6.376727 128-38.353455 32.023273-31.930182 51.2-89.460364 64-153.320727l96.023273-383.441454h147.176727c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8H384l32.023273-121.390545c6.376727-19.130182 38.4-51.106909 57.576727-63.906909 70.376727-51.106909 166.4-19.176727 230.4-6.376727V20.759273c-64-12.753455-204.8-57.483636-326.376727 44.683636v0.046546z"}})]),Dr("span",["医学表达式"])]),Dr(ed,{on:{"open-express":this.openExpress.bind(this)}})]):null,Rr.specialChars?Dr("el-submenu",{attrs:{index:"specialChars","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("defs",[Dr("g",{attrs:{id:"watermark"}},[Dr("path",{attrs:{d:"M439.003429 758.710857c45.860571 57.270857 105.179429 86.820571 175.104 86.820572 44.982857 0 72.265143-14.628571 115.419428-53.467429l12.214857-11.264c37.449143-35.035429 53.394286-44.982857 77.604572-44.982857 62.902857 0 80.457143 12.434286 147.382857 96.036571l57.051428-45.714285-22.601142-27.648c-64.365714-76.288-99.913143-95.817143-181.833143-95.817143-44.982857 0-72.265143 14.701714-115.419429 53.540571l-12.141714 11.190857c-37.522286 35.108571-53.394286 44.982857-77.677714 44.982857-47.323429 0-85.796571-19.163429-118.052572-59.392l-57.051428 45.714286zM439.003429 935.716571c45.860571 57.270857 105.179429 86.820571 175.104 86.820572 44.982857 0 72.265143-14.628571 115.419428-53.540572l12.214857-11.190857c37.449143-35.035429 53.394286-44.982857 77.604572-44.982857 62.902857 0 80.457143 12.434286 147.382857 96.036572l57.051428-45.787429-22.601142-27.574857c-64.365714-76.288-99.913143-95.817143-181.833143-95.817143-44.982857 0-72.265143 14.628571-115.419429 53.540571l-12.141714 11.190858c-37.522286 35.035429-53.394286 44.982857-77.677714 44.982857-47.323429 0-85.796571-19.163429-118.052572-59.465143l-57.051428 45.787428z"}}),Dr("path",{attrs:{d:"M1024 0v585.142857h-73.142857V450.048l-208.896-177.005714-218.331429 363.812571-226.377143-150.966857L73.142857 671.012571V950.857143h292.571429v73.142857H0V0h1024z m-73.142857 73.142857H73.142857v517.412572l214.747429-198.729143 212.48 141.604571 220.525714-367.616L950.857143 373.028571V73.142857zM292.571429 146.285714a73.142857 73.142857 0 1 1 0 146.285715 73.142857 73.142857 0 0 1 0-146.285715z"}})])]),Dr("use",{attrs:{"xlink:href":"#watermark"}})]),Dr("span",["特殊字符"])]),Dr(_d,{attrs:_objectSpread2({},{vueController:Ur}),on:{"close-menu":this.closeMenu.bind(this)}})]):null,Rr.datetime?Dr("el-submenu",{attrs:{index:"datetime","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M3.323286 405.074141v577.095823c0 23.005753 18.822889 41.828641 41.828641 41.828642h933.696146c23.005753 0 41.828641-18.822889 41.828641-41.828642v-577.095823H3.323286z m295.734072 386.159229h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m283.110188 145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m249.973539 145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761m0-145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761M293.55968 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525786 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525786 42.525786M719.447753 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525785 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525785 42.525786","p-id":"2003"}}),Dr("path",{attrs:{d:"M978.848073 101.085884H787.767867v86.797219c0 37.730829-30.587891 68.320114-68.320114 68.320114s-68.320114-30.589285-68.320114-68.320114V101.085884H361.879794v86.797219c0 37.730829-30.589285 68.320114-68.320114 68.320114-37.732223 0-68.320114-30.589285-68.320114-68.320114V101.085884H45.151927c-23.005753 0-41.828641 18.822889-41.828641 41.828641v206.388094h1017.353428V142.914525c0-23.005753-18.822889-41.828641-41.828641-41.828641"}})]),Dr("span",["日期时间"])]),this.dateFormatValue.map((function(Rr,Ur){return Dr("el-menu-item",{class:"date-time-item",attrs:{index:Tr.dateFormatList[Ur]},key:Rr+Ur,on:{click:function click(){return Tr.selectedDate(Tr.dateFormatList[Ur],Rr)}}},[Rr])})),Dr("el-menu-item",{class:"date-time-item",attrs:{index:"datetimemore"},on:{click:function click(){return Tr.selectedDate("more","")}}},["更多日期属性"])]):null,Rr.select?Dr("el-menu-item",{attrs:{index:"select"},on:{click:function click(){return Tr.createControl("select")}}},[Dr("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M890.432646 976.724088l649.322886-750.693969A136.987951 136.987951 0 0 0 1435.64469 0H136.998917a136.987951 136.987951 0 0 0-104.110842 226.030119l649.322886 749.32409a136.987951 136.987951 0 0 0 208.221685 1.369879z"}})]),Dr("span",["下拉框"])]):null,Rr.text?Dr("el-menu-item",{attrs:{index:"text"},on:{click:function click(){return Tr.createControl("text")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M34.909091 474.763636c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818zM51.2 279.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 4.654545 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m921.6-316.509091c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m16.290909-300.218182c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 6.981818 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m-481.745455 165.236364H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727272 0h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m211.781818 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-9.309091-16.290909-16.290909-16.290909z m-318.836364 0H230.4c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727273-11.636364H109.381818V930.909091c0-9.309091-6.981818-18.618182-18.618182-18.618182H65.163636v-53.527273c0-9.309091-6.981818-18.618182-16.290909-18.618181-9.309091 0-16.290909 6.981818-16.290909 18.618181v53.527273H18.618182c-9.309091 0-18.618182 6.981818-18.618182 18.618182v74.472727c0 9.309091 6.981818 18.618182 18.618182 18.618182H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182v-16.290909h48.872727c9.309091-2.327273 18.618182-11.636364 18.618182-18.618182-2.327273-11.636364-20.945455-25.6-20.945455-25.6z m528.29091 11.636364h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m104.727272 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909zM442.181818 65.163636h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m-104.727273 0h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m209.454546 0H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909-2.327273 6.981818 6.981818 16.290909 13.963636 16.290909z m-316.509091 0h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H230.4c-9.309091 0-16.290909 6.981818-16.290909 18.618182 0 6.981818 6.981818 13.963636 16.290909 13.963636zM158.254545 32.581818H109.381818V18.618182c0-11.636364-9.309091-18.618182-18.618182-18.618182H18.618182C9.309091 0 0 6.981818 0 18.618182V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h16.290909v48.872727c2.327273 9.309091 11.636364 18.618182 18.618182 18.618182 9.309091 0 23.272727-18.618182 23.272727-18.618182V109.381818H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182V65.163636h48.872727c9.309091 0 16.290909-6.981818 16.290909-16.290909-2.327273-9.309091-9.309091-16.290909-18.618182-16.290909z m495.709091 32.581818h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m104.727273 0H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909zM1005.381818 0H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v16.290909h-48.872727c-9.309091 2.327273-18.618182 11.636364-18.618182 18.618182 0 9.309091 18.618182 23.272727 18.618182 23.272727h48.872727V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h25.6v53.527273c0 9.309091 6.981818 18.618182 16.290909 18.618181 9.309091 0 16.290909-6.981818 16.290909-18.618181V109.381818h16.290909c9.309091 0 18.618182-6.981818 18.618182-18.618182V18.618182c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 912.290909h-16.290909v-48.872727c-2.327273-9.309091-11.636364-18.618182-18.618182-18.618182-9.309091 0-23.272727 18.618182-23.272727 18.618182v48.872727H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v25.6h-48.872727c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h48.872727v16.290909c0 9.309091 6.981818 18.618182 18.618182 18.618182h74.472727c9.309091 0 18.618182-6.981818 18.618182-18.618182V930.909091c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 0"}}),Dr("path",{attrs:{d:"M781.963636 288.581818c0-11.636364 0-20.945455 2.327273-30.254545 0-9.309091 2.327273-16.290909 2.327273-25.6 0-11.636364-6.981818-20.945455-18.618182-23.272728-6.981818-2.327273-18.618182-2.327273-30.254545-2.327272H288.581818c-11.636364 0-20.945455 2.327273-30.254545 4.654545-18.618182 4.654545-20.945455 18.618182-20.945455 25.6 2.327273 20.945455 4.654545 41.890909 4.654546 62.836364 0 20.945455-2.327273 41.890909-4.654546 62.836363 0 4.654545 0 9.309091 9.309091 16.29091 4.654545 2.327273 9.309091 4.654545 13.963636 4.654545 4.654545 0 9.309091 0 13.963637-2.327273 6.981818-2.327273 11.636364-9.309091 13.963636-16.290909 4.654545-20.945455 9.309091-39.563636 13.963637-53.527273 4.654545-11.636364 11.636364-20.945455 18.618181-27.927272 6.981818-6.981818 16.290909-11.636364 27.927273-13.963637 11.636364-2.327273 27.927273-4.654545 48.872727-4.654545 27.927273 0 41.890909 4.654545 46.545455 6.981818 6.981818 4.654545 9.309091 18.618182 9.309091 27.927273v372.363636c0 18.618182 0 30.254545-2.327273 41.890909-2.327273 6.981818-4.654545 13.963636-9.309091 18.618182-4.654545 4.654545-11.636364 6.981818-18.618182 9.309091-9.309091 2.327273-23.272727 4.654545-39.563636 6.981818-6.981818 0-11.636364 4.654545-16.290909 11.636364-2.327273 4.654545-4.654545 9.309091-4.654546 16.290909 0 4.654545 2.327273 11.636364 4.654546 16.290909 4.654545 6.981818 9.309091 9.309091 18.618182 9.309091 18.618182 0 39.563636 0 62.836363-2.327273 44.218182-4.654545 83.781818-4.654545 123.345455 0 20.945455 2.327273 41.890909 2.327273 65.163636 2.327273 6.981818 0 13.963636-2.327273 18.618182-9.309091 2.327273-4.654545 4.654545-9.309091 4.654546-16.290909 0-4.654545-2.327273-11.636364-4.654546-16.290909-4.654545-11.636364-9.309091-16.290909-18.618182-16.290909-16.290909-2.327273-30.254545-4.654545-41.890909-6.981818-9.309091-2.327273-13.963636-4.654545-18.618182-9.309091-4.654545-4.654545-6.981818-9.309091-6.981818-16.290909-2.327273-9.309091-2.327273-23.272727-2.327273-41.89091v-372.363636c0-16.290909 2.327273-25.6 9.309091-27.927273 6.981818-2.327273 20.945455-6.981818 48.872728-6.981818 16.290909 0 32.581818 2.327273 44.218181 4.654546s20.945455 6.981818 27.927273 13.963636c6.981818 6.981818 13.963636 16.290909 18.618182 27.927273 4.654545 13.963636 9.309091 30.254545 11.636364 53.527272 2.327273 6.981818 6.981818 13.963636 13.963636 16.29091 4.654545 2.327273 9.309091 2.327273 13.963636 2.327272 4.654545 0 9.309091-2.327273 13.963637-4.654545 6.981818-4.654545 9.309091-11.636364 9.309091-16.290909 0-11.636364-2.327273-23.272727-2.327273-34.909091 4.654545-13.963636 4.654545-25.6 4.654545-37.236364z"}})]),Dr("span",["文本域"])]):null,Rr.uploadImage?Dr(ld,{attrs:_objectSpread2({},{vueController:Ur,uploadImageParams:this.uploadImageParams})}):null,Rr.barcode?Dr("el-menu-item",{attrs:{index:"bar-code"},on:{click:function click(){return Tr.createControl("barcode")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M65.7 158.7h134v703h-134zM703.3 158.7h134v703h-134zM263.4 158.7h57.4v703h-57.4zM901 158.7h57.4v703H901zM572.6 158.7h76.6v703h-76.6zM394.1 158.7H509v703H394.1z"}})]),Dr("span",["条形码"])]):null,Rr.qrcode?Dr("el-menu-item",{attrs:{index:"qr-code"},on:{click:function click(){return Tr.createControl("qrcode")}}},[Dr("svg",{attrs:{viewBox:"0 0 1041 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M948.906667 931.84h92.16V1024h-92.16zM948.906667 559.786667v184.32H853.333333v-184.32H576.853333V1024h92.16V651.946667h92.16v184.32h279.893334v-276.48z"}}),Dr("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),Dr("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),Dr("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),Dr("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),Dr("span",["二维码"])]):null,Rr.radioBox?Dr("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return Tr.createControl("RadioBox")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M511.262 3.070c-282.949 0-507.681 227.919-507.681 509.095 0 281.143 227.919 509.092 509.063 509.092 281.175 0 509.095-227.948 509.095-509.092 0-281.175-227.527-509.095-510.477-509.095zM513.578 926.348c-230.265 0-416.953-186.688-416.953-416.951 0-230.292 186.688-416.98 416.953-416.98 230.293 0 416.951 186.689 416.951 416.98 0 230.265-186.658 416.951-416.951 416.951zM820.797 327.158c-17.682-18.585-46.313-18.585-63.99 0l-292.576 307.665-167.863-156.253c-17.683-18.553-46.311-18.553-63.995 0-17.653 18.587-17.653 48.719 0 67.303l195.65 182.058c16.923 17.817 43.956 18.539 61.716 2.196 8.935-1.589 17.508-5.991 24.41-13.234l306.649-322.463c17.653-18.583 17.653-48.685 0.002-67.27z"}})]),Dr("span",["单选框"])]):null,Rr.checkBox?Dr("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return Tr.createControl("CheckBox")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M877.714286 0H146.285714a146.285714 146.285714 0 0 0-146.285714 146.285714v731.428572a146.285714 146.285714 0 0 0 146.285714 146.285714h731.428572a146.285714 146.285714 0 0 0 146.285714-146.285714V146.285714a146.285714 146.285714 0 0 0-146.285714-146.285714z m73.142857 877.714286a73.142857 73.142857 0 0 1-73.142857 73.142857H146.285714a73.142857 73.142857 0 0 1-73.142857-73.142857V146.285714a73.142857 73.142857 0 0 1 73.142857-73.142857h731.428572a73.142857 73.142857 0 0 1 73.142857 73.142857z"}}),Dr("path",{attrs:{d:"M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"}})]),Dr("span",["复选框"])]):null,Rr.pageInfoes?Dr("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return Tr.createControl("pageInfoes")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M732.258937 608.38132H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237038h283.372625a32.237037 32.237037 0 0 0 0-64.474075zM793.929791 0h-439.446055a132.41095 132.41095 0 0 0-126.144928 127.793881l-36.689211 1.071819A127.1343 127.1343 0 0 0 70.533977 256.082448v640.041223a131.916264 131.916264 0 0 0 126.144928 127.793881h472.837359a132.41095 132.41095 0 0 0 126.144928-127.793881h31.659903a132.41095 132.41095 0 0 0 126.144928-127.79388V214.446377zM669.516264 959.525926H196.349114a65.958132 65.958132 0 0 1-62.742673-63.89694V256.164895a62.907568 62.907568 0 0 1 60.0219-62.742673l34.463124-1.071819v575.567149a131.916264 131.916264 0 0 0 126.144928 127.793881h378.022544a67.277295 67.277295 0 0 1-62.990016 63.814493z m220.547504-191.690821a66.37037 66.37037 0 0 1-62.742673 63.89694H353.98905a65.958132 65.958132 0 0 1-62.742673-63.89694V127.793881A66.37037 66.37037 0 0 1 353.98905 63.89694h376.703382c-0.577134 74.202899 0 25.558776 0 25.558777 0 66.700161 34.463124 127.216747 101.657971 127.216747h57.713365zM732.258937 448.350403H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237037h283.372625a32.237037 32.237037 0 0 0 0-64.474074z"}})]),Dr("span",["页码页数信息"])]):null])}}]),ToolControls}(mixins(xu));__decorate([Prop()],gd.prototype,"vueController",void 0),__decorate([Prop()],gd.prototype,"insert",void 0),__decorate([Prop()],gd.prototype,"uploadImageParams",void 0),gd=__decorate([an({name:"ToolControls",components:{MedicalExpressions:ed,SpecialChars:_d,UploadImage:ld}})],gd);var md=gd,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){Tr.isDocumentShow=!1},expression:"\n () => {\n isDocumentShow = false;\n }\n "}],staticClass:"sub-bar-items",style:Tr.isDocumentShow?"background-color: #eaeaea;":"background-color: #fff;"},[Rr("div",{staticClass:"sub-bar-item",staticStyle:{width:"80px"},on:{click:Tr.openDocument}},[Tr._v(" 更新说明 ")]),Tr.isDocumentShow?Rr("div",{staticClass:"document-item animation-in"},[Tr._m(0)]):Tr._e()])},vd=[function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",[Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.60 ~ 0.3.95 (累积更新)")]),Rr("span",[Tr._v("2021/11/01")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v(" 1:编辑器内存占用量大幅降低; ")]),Rr("p",[Tr._v(" 2: 改进生成html功能,使导出的html打印效果跟编辑器直接打印一致 ")]),Rr("p",[Tr._v(" 3:增加版本号右键显示 ")]),Rr("p",[Tr._v(" 4:编辑模式下隐藏、显示批注; ")]),Rr("p",[Tr._v(" 5: 医学表达式增加结构化 ")]),Rr("p",[Tr._v(" 6:增加了强制删除功能 ")]),Rr("p",[Tr._v(" 7:文本域下拉列表增加对应的keyValue和双击事件; ")]),Rr("p",[Tr._v(" 8:签名功能重新设计以适配单人、多人签名 ")]),Rr("p",[Tr._v(" 9: 增加日期时间格式和处理方式; ")]),Rr("p",[Tr._v(" 10:医学表达式添加下拉列表文字描述; ")]),Rr("p",[Tr._v(" 11:复制粘贴文本域时 去掉不必要的标记; ")]),Rr("p",[Tr._v(" 12:合并打印返回参数增加`startPageNum: 本次打印起始页面` ")]),Rr("p",[Tr._v(" 13:单元格双击下拉列表允许删除; ")]),Rr("p",[Tr._v(" 14:移除批量打印结束时恢复打印前文档状态异步调用方式; ")]),Rr("p",[Tr._v(" 15:优化页眉页脚内表格结束位置多出空行的问题; ")]),Rr("p",[Tr._v(" 16:新增删除当前页接口`vueController.delCurPage(pageIndex)` ")]),Rr("p",[Tr._v(" 17:设置页顶端至页眉最小默认高度3mm,小于3MM将影响打印 ")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v(" 1: 修复从word复制粘贴最后多个段落; ")]),Rr("p",[Tr._v(" 2: 修复在云平台插入元素时 回车是否对齐总是默认是true的问题; ")]),Rr("p",[Tr._v(" 3: 处理当文本域中第一个节点为回车时,造成的无法选中问题; ")]),Rr("p",[Tr._v(" 4: 处理日期DataID每次保存都会变的问题; ")]),Rr("p",[Tr._v(" 5: 处理页码页数,调整字体大小时,导致重复绘制问; ")]),Rr("p",[Tr._v(" 6: 处理提示弹窗高度过高问题; ")]),Rr("p",[Tr._v(" 7: 文本域下拉列表单选不显示问题修复 ")]),Rr("p",[Tr._v(" 9: 修复表格保存行信息异常; ")]),Rr("p",[Tr._v(" 10:修复表格的复制粘贴; ")]),Rr("p",[Tr._v(" 11:修复批量打印 另起一页 抬头字体样式不对; ")]),Rr("p",[Tr._v(" 13: 处理合并行中非最后一行不同列单元格内容变高度,导致边框未正确绘制问题; ")]),Rr("p",[Tr._v(" 14: 修复在表达式后面打字字体样式变成文档默认字体的问题; ")]),Rr("p",[Tr._v(" 15: 修复下拉框确认按钮显示不完整问题; ")]),Rr("p",[Tr._v(" 16: 修复日期框显示不完整问题; ")]),Rr("p",[Tr._v(" 17: 处理续打时已打印页面仍然存在的问题; ")]),Rr("p",[Tr._v(" 18: 修改打印起始页判断方式; ")]),Rr("p",[Tr._v(" 19:处理表格行线偶尔变粗的问题; ")]),Rr("p",[Tr._v(" 20: 处理表格边框变粗问题; ")]),Rr("p",[Tr._v(" 21: 文档加载时 文档类型是空时默认类型是病历; ")]),Rr("p",[Tr._v(" 22: 合并打印返回打印起始页获取位置调整到重置文档状态前; ")]),Rr("p",[Tr._v(" 23: 第一份病历合并或者批量打印时,用settimeout方式异步等待图片缩放完成; ")]),Rr("p",[Tr._v(" 24: 处理续打位置错误问题; ")]),Rr("p",[Tr._v(" 25:打印移除Safari兼容方法, 修复谷歌浏览器打印卡死问题; ")]),Rr("p",[Tr._v(" 26:日期时间格式化函数处理中文格式情况, 修复加载异常问题; ")]),Rr("p",[Tr._v(" 27:处理合并多行单元格跨页不绘制问题; ")]),Rr("p",[Tr._v(" 28:处理病历由医生打开时,文本域标签重复绘制问题; ")]),Rr("p",[Tr._v(" 29: 修复从老版本病历复制粘贴到新版本病历时段落消失的问题; ")]),Rr("p",[Tr._v(" 30: 修复删除选区包含不允许删除的元素时删除异常的问题; ")]),Rr("p",[Tr._v(" 31: 复制、粘贴MarkNode时带上其样式; ")]),Rr("p",[Tr._v(" 32: 处理保存病历时检查元素报错的问题; ")]),Rr("p",[Tr._v(" 33: 修复日期设置不成功问题; ")]),Rr("p",[Tr._v(" 34: 修复删除问题; ")]),Rr("p",[Tr._v(" 35:修复部分日期时间格式加载不显示问题; ")]),Rr("p",[Tr._v(" 36:修复下拉框元素双击不弹出问题; ")]),Rr("p",[Tr._v(" 37:修复低版本打印空元素仍旧显示问题; ")]),Rr("p",[Tr._v(" 38:增加`ElementController.forceDelete`强制删除接口; ")]),Rr("p",[Tr._v(" 39:修复批量打印时表格内样式加载不对问题; ")]),Rr("p",[Tr._v(" 40:修复日期时间表单修改时自动设置当前时间问题; ")]),Rr("p",[Tr._v(" 41:优化弹窗定位方式; ")]),Rr("p",[Tr._v(" 42:修复chromium内核浏览器粗体打印不显示问题; ")]),Rr("p",[Tr._v(" 43:修复另存为的html文件在浏览器上打开后右键打印多出空白页问题; ")]),Rr("p",[Tr._v(" 44:需要自定义列表的下拉框和文本域下来列表修改: ")]),Rr("p",[Tr._v(" 45:修复批量加载文档; ")]),Rr("p",[Tr._v(" 46:处理合并打印时,表格线超过正文内容绘制到页脚的问题; ")]),Rr("p",[Tr._v(" 47:处理页码绘制占位宽度不够 48:导致两位数页码时,页码跟文本内容重叠的问题;; ")]),Rr("p",[Tr._v(" 49:处理文本域双击下拉选择的文本长短不同时,导致的选区报错问题; ")]),Rr("p",[Tr._v(" 50:修复打开文件报错问题 ")]),Rr("p",[Tr._v(" 51:修复页眉页脚加载样式错误问题; ")]),Rr("p",[Tr._v(" 52:修复文本域内光标位置错误问题; ")]),Rr("p",[Tr._v(" 53:修复打印时打印样式未加载成功问题; ")]),Rr("p",[Tr._v(" 54:处理自动换行行线模糊,断断续续绘制不完全的问题; ")]),Rr("p",[Tr._v(" 55: 下拉列表多选时选中值按列表顺序排列,不再按选中先后顺序排列; ")]),Rr("p",[Tr._v(" 56:修复打开非A4纸病历,不显示内容问题; ")]),Rr("p",[Tr._v(" 57:处理加载时,如果左右边距与页面默认设置不匹配,导致的偏移问题; ")]),Rr("p",[Tr._v(" 58:修复签名删除问题 ")]),Rr("p",[Tr._v(" 59:修复下拉列表单选问题 ")]),Rr("p",[Tr._v(" 60:修复84版本谷歌浏览器打印问题; ")]),Rr("p",[Tr._v(" 61: 修复下拉选择中搜索功能选择和插入顺序问题; ")]),Rr("p",[Tr._v(" 62:修复字体样式中带有特殊字符(下划线_),导致打印生成svg不识别无法打印的问题 ")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.2 ~ 0.3.59 (累积更新)")]),Rr("span",[Tr._v("2021/09/29")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1:改进打印,转成svg进行打印,打印质量与word、wps达到一致")]),Rr("p",[Tr._v("2: 增加英文与数字分词功能,行首不出现标点,英文数字整体换行")]),Rr("p",[Tr._v("3: 新增病历合并显示功能")]),Rr("p",[Tr._v("4: 新增批量打印,合并打印,续打连续病历功能")]),Rr("p",[Tr._v("5: 新增元素联动功能")]),Rr("p",[Tr._v("6: 单元格绑定控件,可以双击单元格实现下拉、日期、固定值填充等")]),Rr("p",[Tr._v(" 7: 新增设计模式,元素表格设置的权限在此模式不受限制,用于制作模板 ")]),Rr("p",[Tr._v("8: 字号单位由px变更为pt,以适配超高清屏幕")]),Rr("p",[Tr._v("9: 打印不再新开页签,直接在当前页弹打印对话框")]),Rr("p",[Tr._v("10: 新增打印全部页,奇数页,偶数页,指定页打印设置")]),Rr("p",[Tr._v(" 11: 新增customProperty参数用来配置文本域,日期表单自定义属性项; ")]),Rr("p",[Tr._v(" 12: 新增pageProperty参数用来初始化编辑器字体字号字间距段落等部分全局样式; ")]),Rr("p",[Tr._v("13: 新增插入分隔符功能")]),Rr("p",[Tr._v("14: 新增标签转文本和文本转标签的接口方法及右键菜单项;")]),Rr("p",[Tr._v("15: 新增编辑器组件emit返回右键事件和双击事件;")]),Rr("p",[Tr._v("16: 新增获取所有元素的接口")]),Rr("p",[Tr._v("17: 新增接口方法: 验证病历文档中所有的文本域的数据格式")]),Rr("p",[Tr._v("18: 新增格式刷以及对应的撤销恢复功能")]),Rr("p",[Tr._v("19: 新增单元格属性背景色backColor属性")]),Rr("p",[Tr._v("20: 新增数学公式插入表单弹窗")]),Rr("p",[Tr._v("21: 新增签名接口和表单弹窗")]),Rr("p",[Tr._v("22: 新增行或者列时,复制当前行或者列的单元格的编辑器属性")]),Rr("p",[Tr._v(" 23: 新增tab键响应:光标移到下一个元素,日期和下拉列表控件处于选中状态按enter键弹框 ")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 修复行首退格导致输入域丢失提示文本与边框的问题")]),Rr("p",[Tr._v("2: 修复单元格另存xml后加载丢失边框问题")]),Rr("p",[Tr._v(" 3: 修复设置输入域固定宽度后,在输入域中打字,导致后续内容丢失的问题 ")]),Rr("p",[Tr._v(" 4: 修复打印清晰度,打印预览单元格边框不显示,横向打印多出空白页的问题 ")]),Rr("p",[Tr._v("5: 修复光标换页错位问题")]),Rr("p",[Tr._v("6: 修复在文本中插入回车无效问题")]),Rr("p",[Tr._v("7: 修复加载文件单元格属性不起作用")]),Rr("p",[Tr._v("9: 修复设置打印起始位置当起始行为表格时无效问题")]),Rr("p",[Tr._v("10: 修复页眉未打印问题")]),Rr("p",[Tr._v("11: 修复设置分页后加载表格多插入了一页的问题")]),Rr("p",[Tr._v("12: 修复文本域修改无法实时更新文本域宽度问题")]),Rr("p",[Tr._v("13: 修复图片上传接口返回图片地址接收错误问题")]),Rr("p",[Tr._v("14: 修复空文本域打印预览时不打印初始化显示的字")]),Rr("p",[Tr._v("15: 修复方向键的响应问题")]),Rr("p",[Tr._v(" 16: 修复当选择起始点为自动换行文本非首行起始点时,选区范围绘制错误问题 ")]),Rr("p",[Tr._v("17: 修复打印导致除当前页外无法选中的问题")]),Rr("p",[Tr._v("18: 修复删除元素不能撤销的问题")]),Rr("p",[Tr._v(" 19: 修复输入域内的输入域设置固定宽度后,导致父区域指定的宽度无效问题 ")]),Rr("p",[Tr._v("20: 修复pageProperty初始化循环设置问题")]),Rr("p",[Tr._v("21: 修复导致设计模式不生效问题和菜单栏切换错误问题")]),Rr("p",[Tr._v(" 22: 修复单元格内更新文本域内容带自动换行时,换行后的内容出现在表格外的问题 ")]),Rr("p",[Tr._v(" 23: 修复表格中带公式,修改表格内容触发公式计算 导致表格后的非表格行消失问题 ")]),Rr("p",[Tr._v("24: 修复工具栏文件,插入表格等菜单配置项错误")]),Rr("p",[Tr._v(" 25: 修复打印方向变化后预览界面白色背景未重绘导致出现黑色区域问题,打印预览图片缩放未完成导致预览界面图片与文档图片大小不一致问题 ")]),Rr("p",[Tr._v("26: 修复文档的加载")]),Rr("p",[Tr._v("27: 修复加载病历时行高获取异常的问题")]),Rr("p",[Tr._v("28: 修复表格某列多行合并后跨页绘制异常问题")]),Rr("p",[Tr._v("29: 修复调用`openXml`加载文档首页页眉未加载出来的问题")]),Rr("p",[Tr._v("30: 修复文档加载时文本域的段落使用块对齐不起作用")]),Rr("p",[Tr._v("31: 修复从旧版病历复制粘贴到新版病历,会导致大面积斜体问题")]),Rr("p",[Tr._v(" 32: 统一行位置设置坐标位置为段落节点内,不再在其他地方设置行的x坐标,避免位置不齐 ")]),Rr("p",[Tr._v("33: 处理在调整表格行列大小时,会误选中单元格内容的问题")]),Rr("p",[Tr._v("34: 处理在行较多时,合并多行后,行线会覆盖下面的行的问题")]),Rr("p",[Tr._v(" 35: 处理在合并多行列的隔隔行编辑时,合并多行的单元格未正确绘制边框的问题 ")]),Rr("p",[Tr._v("36: 修复右键删除签名异常的问题")]),Rr("p",[Tr._v("37: 处理输入域在文档中设置了固定宽度后,导致文档对不齐的问题")]),Rr("p",[Tr._v("38: 处理表格内合并单元格中文本域混乱问题")]),Rr("p",[Tr._v("39: 修复日期修改导致节点后内容被覆盖的问题")]),Rr("p",[Tr._v("40: 处理文本域内需要点击两次才能切换菜单的问题")]),Rr("p",[Tr._v(" 41: 修复文本域多层嵌套,子文本域内容变动时复文本域内容未更新的问题 ")]),Rr("p",[Tr._v("42: 修复单元格表单打开时内边距问题")]),Rr("p",[Tr._v("43: 处理合并多行的单元格,绘制时偏移问题")]),Rr("p",[Tr._v("44: 处理打印时页眉中的图片未正常显示问题")]),Rr("p",[Tr._v(" 45: 处理在页眉中编辑表格导致重绘异常,以及错误的将页眉中的表格绘制于正文的问题 ")]),Rr("p",[Tr._v(" 46: 修复双击弹出下拉列表高度不够导致无法动态调整位置和下拉列表高度的问题 ")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.1")]),Rr("span",[Tr._v("2021/08/05")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 表格中插入求和、四则混合运算")]),Rr("p",[Tr._v("2: 新增接口页眉页脚插入")]),Rr("p",[Tr._v("3: 日期控件增加labelText")]),Rr("p",[Tr._v(" 4: 新增接口方法: 保存选区内容(病历段落)、插入段落、删除元素、删除选区内内容 ")]),Rr("p",[Tr._v("5: 新增接口方法: 保存与替换页眉页脚")]),Rr("p",[Tr._v("6: 元素增加属性是否自动回填")]),Rr("p",[Tr._v("7: 新增接口方法: 读取xml病历字符串")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 编辑状态无法打印的问题")]),Rr("p",[Tr._v("2: 编辑批注错误问题")]),Rr("p",[Tr._v("3: 诊断换行无效问题")]),Rr("p",[Tr._v("4: 处理删除输入域 导致输入域后面的文本也被 删除的问题")]),Rr("p",[Tr._v("5: 护理记录标题行弹控件问题")])]),Rr("div",[Rr("h3",[Tr._v("others:")]),Rr("p",[Tr._v("1: UI优化")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.0")]),Rr("span",[Tr._v("2021/07/31")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 工具栏独立抽出成组件,调用方开源并允许修改")]),Rr("p",[Tr._v("2: 增加插入html文本串接口")]),Rr("p",[Tr._v("3: 工具栏增加配置功能")]),Rr("p",[Tr._v(" 4: 增加直接修改xml文件输入域text字段,加载文件根据text生成节点功能 ")]),Rr("p",[Tr._v("5: 绘制页根据可视范围进行创建与销毁,以优化内存")]),Rr("p",[Tr._v("6: 增加修改元素的接口方法")]),Rr("p",[Tr._v("7: 上传图片的接口方法")]),Rr("p",[Tr._v("8: 增加了不合并续打功能")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 修复可视化区监听错误,导致页面多绘问题")]),Rr("p",[Tr._v("2: 页面设置弹窗重新打开时获取上次设置信息失败问题")]),Rr("p",[Tr._v("3: 绘制方式变更后引入的无法选择问题修复")]),Rr("p",[Tr._v("4: 绘制方式变更后换页问题修复")]),Rr("p",[Tr._v(" 5: 绘制方式变更后的选择问题、双击问题、路径失效问题、页码问题、全局样式问题 ")]),Rr("p",[Tr._v("6: 时间格式小时解析成HH的问题")]),Rr("p",[Tr._v("7: 在有文本的行插入图片时造成的行高异常问题")])]),Rr("div",[Rr("h3",[Tr._v("others:")]),Rr("p",[Tr._v("1: 更新并整理文档,增加注释")]),Rr("p",[Tr._v("2: 去掉hoeditorFacotry的循环引用,以优化内存占用")]),Rr("p",[Tr._v("3: 接口方法梳理分类并整理")]),Rr("p",[Tr._v("4: 去掉对drawPages的循环引用,以优化内存")]),Rr("p",[Tr._v("5: 对可视区外的页面进行销")]),Rr("p",[Tr._v("6: 打印功能多入口合并成一个管理对象进行管理")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.5")]),Rr("span",[Tr._v("2021/07/19")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 文本域中的段落使用块对齐")]),Rr("p",[Tr._v("2: 另存为json功能")]),Rr("p",[Tr._v("3: 存储格式节点名称变更成类型名称")]),Rr("p",[Tr._v("4: 直接打印功能,会新开页签")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 输入域元素无法通过下拉选择更新内容,如单选、多选")]),Rr("p",[Tr._v("2: 文本域块模式文本超出自动换行不能正确显示,回车换行显示正常")]),Rr("p",[Tr._v("3: 在页面设置中设置字间距过大后,会导致文本超出面的右边界")]),Rr("p",[Tr._v("4: 批注跨页丢失")]),Rr("p",[Tr._v("5: 区域打印,打印了后续页,第三页不能选区的问题")]),Rr("p",[Tr._v("6: 文本域里面有换行 保存再加载 显示不对")]),Rr("p",[Tr._v(" 7: 在页的末行加批注 第一次点确定没反应 再点一次才插入成功 有偶然性 有时候又正常 ")]),Rr("p",[Tr._v("8: 表格删除无法撤销的问题")]),Rr("p",[Tr._v("9: 文本域不能嵌套")]),Rr("p",[Tr._v(" 10: 分页后,光标无法定位到第一页的后面几行,第二页也无法录入文字 ")]),Rr("p",[Tr._v("11: 文本域取消选中全局文本色,没什么变化")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.4")]),Rr("span",[Tr._v("2021/07/13")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 文本自动换行结束处不能回车换行的问题")]),Rr("p",[Tr._v("2: 不能区域打印与续打的问题")]),Rr("p",[Tr._v("3: 保存为xml文件丢失空格问题")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.3")]),Rr("span",[Tr._v("2021/07/09")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),Rr("p",[Tr._v("2: 修正不同的质控层级的批注颜色")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 文本域不能嵌套bug")]),Rr("p",[Tr._v("2: 文本域全局文本色无效问题")]),Rr("p",[Tr._v("3: 在非首页批注导致页面不可见问题")]),Rr("p",[Tr._v("4: 分页后光标无法定位到跨页表格前几行的问题")]),Rr("p",[Tr._v("5: 护理记录单第二页前几行无法弹出的问题")]),Rr("p",[Tr._v("6: 表格后面删除 然后双击,表格消失问题")]),Rr("p",[Tr._v("7: 工具栏字体样式不随光标位置变化问题修复")]),Rr("p",[Tr._v("8: 牙位图双击修改后显示错位修复")]),Rr("p",[Tr._v("9: 处理调整列宽 合并单元格没有正常绘制边框的问题")]),Rr("p",[Tr._v("10: 跨页单元格尾行绘制的行线过多问题、多一行的空行问题")]),Rr("p",[Tr._v("11: 日期选择无法选中问题修复")]),Rr("p",[Tr._v("12: 未设置允许被删除仍能删除的问题")]),Rr("p",[Tr._v("13: 选择一行合并把第二行也合并的问题")]),Rr("p",[Tr._v("14: 在横打界面批注,绘制位置偏差的问题")])]),Rr("div",[Rr("h3",[Tr._v("others:")]),Rr("p",[Tr._v("1: 表格调整宽度功能优化")]),Rr("p",[Tr._v("2: 单元格垂直对齐优化")]),Rr("p",[Tr._v("3: 优化表格录入较卡的问题")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.2")]),Rr("span",[Tr._v("2021/06/30")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),Rr("p",[Tr._v("2: 修正不同的质控层级的批注颜色")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.1")]),Rr("span",[Tr._v("2021/06/29")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 增加护理记录表单模式编辑病历、包括自动换行、表格列编辑器等")]),Rr("p",[Tr._v("2: 批量设置行高、列宽")]),Rr("p",[Tr._v("3: 元素使用特殊背景色标识")]),Rr("p",[Tr._v("4: 增加一级质控员、二级质控员、三级质控员不同的颜色标记")]),Rr("p",[Tr._v("5: 增加状态栏显示文件信息、病历类型、修改时间等功能")]),Rr("p",[Tr._v("6: 增加病历文档版本号")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 浏览模式可编辑的问题")]),Rr("p",[Tr._v("2 : 处理单元格内对齐方式无效问题")]),Rr("p",[Tr._v("3: 处理无法选择合并单元格问题")]),Rr("p",[Tr._v("4: 列宽过窄时,文本跳到相邻单元格问题")]),Rr("p",[Tr._v(" 5: 在文档编辑过程中切换纸张大小 文档首行的文本显示不正确的问题 ")]),Rr("p",[Tr._v("6: 取消合并单元格无效问题")]),Rr("p",[Tr._v("7: 列合并单元格左侧插入列,显示混乱问题")]),Rr("p",[Tr._v("8: 页眉页脚错乱问题")]),Rr("p",[Tr._v("9: 页码显不对问题")]),Rr("p",[Tr._v("10: 插入自定义行列数时,双击导致多插入行列问题")]),Rr("p",[Tr._v("11: 处理左对齐无效,行缩进无效问题")]),Rr("p",[Tr._v("12: 表格后偶尔无法录入的问题")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.1.1")]),Rr("span",[Tr._v("2021/06/08")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1. 增加自定义表格行列,自定义插入行列")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v(" 1: 选中一段文本进行样式变更 变更完之后鼠标点击选区的前几个字没有反应 ")]),Rr("p",[Tr._v("2: 插入一个空文本域 标记框内初始化显示的文字不对")]),Rr("p",[Tr._v("3: 插入页码 显示不对")]),Rr("p",[Tr._v("4: 合并单元格保存后加载第一行行宽不对的问题")]),Rr("p",[Tr._v("5: 删除表格无效与删除后无法撤销恢复表格问题")]),Rr("p",[Tr._v("6: 处理取消合并单元格无效问题")]),Rr("p",[Tr._v("7: 选中图片后, 隐藏光标")]),Rr("p",[Tr._v(" 8: 表格, 上、下插入行或者左、右插入列后, 将新插入的行或者列处于选中状态, 并隐藏光标 ")]),Rr("p",[Tr._v("9: 修复编辑批注后, 批注内容较多时, 覆盖其它批注的问题")]),Rr("p",[Tr._v("10: 给表格增加列属性, 修改对应的文档的加载和保存")]),Rr("p",[Tr._v(" 11: 修复当当前页有选区时, 取消光标聚焦到页的起始位置, 以免发生跳转 ")]),Rr("p",[Tr._v("12: 修复插入一个空文本域, 域内初始化显示的文字不对的问题")]),Rr("p",[Tr._v("13: 修复文件加载后段落样式没起作用的问题")]),Rr("p",[Tr._v("14: 根据最新的绘制逻辑, 修复方向键的响应")]),Rr("p",[Tr._v("15: 打印功能整理到编辑模式菜单中")])])]),Rr("li",{staticClass:"version-line"}),Rr("li",[Rr("span",[Tr._v("2021/6/01 星期二")]),Rr("p",[Tr._v("1. 内存性能进一步优化")]),Rr("p",[Tr._v("2. 优化表格拖放边框线")]),Rr("p",[Tr._v("3. 处理最右侧无法插入列的问题")])]),Rr("li",[Rr("span",[Tr._v("2021/5/21 星期五")]),Rr("p",[Tr._v(" 1. 分页绘制优化,引入滚动绘制(不绘制非可视区域),进一步优化绘制速度 ")]),Rr("p",[Tr._v("2. 增加编辑批注,添加编辑和删除批注操作提示")]),Rr("p",[Tr._v("3. 修复表单粘贴无效且粘贴内容出现在文档中的问题")]),Rr("p",[Tr._v("4. 修复多页文档时日期选择弹窗多次创建问题")])]),Rr("li",[Rr("span",[Tr._v("2021/5/21 星期五")]),Rr("p",[Tr._v("1. 测试与bug修复")]),Rr("p",[Tr._v("2.整理与去HIS的对接文档")])]),Rr("li",[Rr("span",[Tr._v("2021/5/21 星期五")]),Rr("p",[Tr._v("1. 重写文本绘制算法,对绘制速度进一步优化")]),Rr("p",[Tr._v("2. 优化段落样式变更速度(主要是分散对齐)")]),Rr("p",[Tr._v("2. 处理绘制优化后产生的问题")]),Rr("p",[Tr._v(" 3. 去绘制缓存,由于速度已经非常快,不再需要绘制缓存,缓存会造成文字变粗 ")])]),Rr("li",[Rr("span",[Tr._v("2021/5/6 星期四")]),Rr("p",[Tr._v("1. 重写绘制算法,将删除重绘变更为移动重绘")]),Rr("p",[Tr._v("2. 重写表格绘制功能,优化整体性能以及调通变更后的绘制错误")])]),Rr("li",[Rr("span",[Tr._v("2021/5/6 星期四")]),Rr("p",[Tr._v("1. 根据新的绘制算法调整批注的插入、选中、删除和对应的文件的保存")]),Rr("p",[Tr._v("2. 根据新的绘制算法调整图片的缩放功能")])]),Rr("li",[Rr("span",[Tr._v("2021/4/12 星期一")]),Rr("p",[Tr._v("1. 工具栏页面设置功能完善")]),Rr("p",[Tr._v("2. 工具栏撤销恢复功能完善")]),Rr("p",[Tr._v("3. 工具栏上标下标功能完善")])]),Rr("li",[Rr("span",[Tr._v("2021/03/19 星期一")]),Rr("p",[Tr._v("1: bug修复、速度优化、UI优化")])]),Rr("li",[Rr("span",[Tr._v("2021/03/01 星期一")]),Rr("p",[Tr._v("1.完善批注的插入 实现批注随着文本的移动而移动")]),Rr("p",[Tr._v("2.实现批注的删除和选中时颜色的变化")]),Rr("p",[Tr._v("3.实现审阅模式下 逻辑删除")]),Rr("p",[Tr._v("4.做插入页码和页数的前期工作")]),Rr("p",[Tr._v("5.初步实现文档的新建")])]),Rr("li",[Rr("span",[Tr._v("2021/03/01 星期一")]),Rr("p",[Tr._v("1: 页眉页脚中显示页码、页数")]),Rr("p",[Tr._v("2: 审阅模式直接输入留痕")]),Rr("p",[Tr._v(" 3: 表格的插入行、插入列、删除行、删除列、合并单元格、取消合并单元格、拖动调列宽行高的撤销恢复功能 ")])]),Rr("li",[Rr("span",[Tr._v("2021/03/01 星期一")]),Rr("p",[Tr._v("1. 创建表格增加touch事件适配ipad端")]),Rr("p",[Tr._v("2. 审阅模式创建和删除提示调整")]),Rr("p",[Tr._v("3. 增加页码页数信息插入ui")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 完成web病历自身文档复制剪切粘贴到自身文档")]),Rr("p",[Tr._v("2. 完成web病历文档与word文档间的复制剪切粘贴")]),Rr("p",[Tr._v("3. 完成web病历文档与记事本文档间复制剪切粘贴")]),Rr("p",[Tr._v("4. 完成web病历文档与网页间复制剪切粘贴")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 完善文档xml格式,增加xml数组折叠,改进文档可读性")]),Rr("p",[Tr._v("2. 实现图片、条形码、二维码的缩放")]),Rr("p",[Tr._v("3. 初步实现审阅模式下逻辑删除;非审阅模式下物理删除")]),Rr("p",[Tr._v("4. 初步实现审阅模式下插入批注和批注选中后颜色变化")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 文档元素的滑过提示功能重写")]),Rr("p",[Tr._v("2. 工具栏提示组件重新实现,移除elementui组件")]),Rr("p",[Tr._v("3. 调整表单弹窗适应iPad")]),Rr("p",[Tr._v("4. 审阅模式删除提示和批注添加删除表单功能")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 表格跨页标题行显示、编辑")]),Rr("p",[Tr._v("2. 全文档重绘(切换编辑、审阅等页签时调用)")]),Rr("p",[Tr._v("3. 表格插入撤销恢复")]),Rr("p",[Tr._v("4. 表格删除撤销恢复")]),Rr("p",[Tr._v("5. 表格选中部分单元格内容删除的撤销恢复")]),Rr("p",[Tr._v("6. 表格选区绘制与表格部分选择时的选区扩展")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 实现打印记录标记绘制")]),Rr("p",[Tr._v("2. 实现续打功能")]),Rr("p",[Tr._v("3. 实现打印选中区域功能")]),Rr("p",[Tr._v("4. 实现打印选中区域的多选打印")]),Rr("p",[Tr._v("5. 实现打印鼠标选中位置打印功能")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 表格边框线绘制")]),Rr("p",[Tr._v("2. 表格边框拖动以调整行列大小")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 完善文档xml格式的保存和加载")]),Rr("p",[Tr._v("2. 文档另存为txt格式")]),Rr("p",[Tr._v("3. 文档另存为html格式")]),Rr("p",[Tr._v("4. 实现插入特殊字符")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 水印设置功能已实现,ui待进一步优化完善")]),Rr("p"),Rr("p",[Tr._v("2. 页面设置完善")]),Rr("p",[Tr._v("3. 特殊字符插入功能接入")]),Rr("p",[Tr._v("4. 实现插入特殊字符")])]),Rr("li",[Rr("span",[Tr._v("2020/12/22 星期二")]),Rr("p",[Tr._v("1. 表格中插入表格行、列")]),Rr("p",[Tr._v("2. 合并单元格功能")]),Rr("p",[Tr._v("3. 表格中删除行、列")]),Rr("p",[Tr._v("4. 页眉显示优化")]),Rr("p",[Tr._v("5. 绘制效率优化")]),Rr("p",[Tr._v("6. 取消合并单元格")])]),Rr("li",[Rr("span",[Tr._v("2020/12/22 星期二")]),Rr("p",[Tr._v("1. 在文本域中插入下拉列表")]),Rr("p",[Tr._v("2. 完善文档的保存和加载")]),Rr("p",[Tr._v("3. 添加鼠标放到文本域上显示左右标记事件")])]),Rr("li",[Rr("span",[Tr._v("2020/12/22 星期二")]),Rr("p",[Tr._v("1. 表格属性,表格行属性,单元格属性弹窗表单UI已完成")]),Rr("p",[Tr._v("2. 背景图片设置与清除")]),Rr("p",[Tr._v(" 3. Vue组件化完成,可用npm install+文件本地路径方式加载,import方式引入组件及UI,组件内可用HoDoc单标签方式使用 ")]),Rr("p",[Tr._v("4. 带有提示文本的控件增加滑过文本提示层")])]),Rr("li",[Rr("span",[Tr._v("2020/12/14 星期一")]),Rr("p",[Tr._v("1. 实现插入单复选控件")]),Rr("p",[Tr._v("2. 实现插入日期时间控件")]),Rr("p",[Tr._v("3. 实现插入下拉列表控件")]),Rr("p",[Tr._v("4. 实现控件的样式变更和内容删除控制")]),Rr("p",[Tr._v("5. 实现查找和替换")]),Rr("p",[Tr._v("6. 实现方向键的响应")]),Rr("p",[Tr._v("7. 完善往表格内插入控件和条形码等")]),Rr("p",[Tr._v("8. 实现鼠标移动到单复选控件同组照亮")]),Rr("p",[Tr._v("9. 完善页眉和页脚的方向键响应")])]),Rr("li",[Rr("span",[Tr._v("2020/12/11 星期五")]),Rr("p",[Tr._v("1. 表格的初步插入绘制功能")]),Rr("p",[Tr._v("2. 表格行跨页")]),Rr("p",[Tr._v("3. 页眉页脚功能")])]),Rr("li",[Rr("span",[Tr._v("2020/12/11 星期五")]),Rr("p",[Tr._v("1. 添加文本域节点绘制")]),Rr("p",[Tr._v("2. 实现文本域节点嵌套绘制")]),Rr("p",[Tr._v("3. 实现文本域节点定长绘制")]),Rr("p",[Tr._v("4. 实现文本域节点整体及内容删除控制")]),Rr("p",[Tr._v("5. 实现文本域节点内容只读控制")]),Rr("p",[Tr._v("6. 实现文本域placeholder显示及操作控制")]),Rr("p",[Tr._v("7. 实现文本域节点边界显示隐藏操作")]),Rr("p",[Tr._v("8. 重写节点删除undoredo操作")]),Rr("p",[Tr._v("9. 重写样式变更undoredo操作")]),Rr("p",[Tr._v("10. 添加打印至pdf测试demo")]),Rr("p",[Tr._v("11. 处理斜体文字部分被遮盖问题")])]),Rr("li",[Rr("span",[Tr._v("2020/12/11 星期五")]),Rr("p",[Tr._v("1. 日期时间插入功能及ui完成,双击弹窗修改日期功能及ui完成")]),Rr("p",[Tr._v("2. 下拉框插入功能及ui完成,双击弹窗修改选择功能及ui完成")]),Rr("p",[Tr._v("3. 右键菜单列表中,右键选中任一控件的属性修改功能及ui完成")]),Rr("p",[Tr._v("5. 重新整理组件内状态管理方式,移除vuex")])]),Rr("li",[Rr("span",[Tr._v("2020/11/16 星期一")]),Rr("p",[Tr._v("1. 段落左对齐")]),Rr("p",[Tr._v("2. 段落右对齐")]),Rr("p",[Tr._v("3. 段落两端对齐")]),Rr("p",[Tr._v("4. 段落行间距")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/16 星期一")]),Rr("p",[Tr._v("1. 二维码表单和插入功能")]),Rr("p",[Tr._v("2. 图片和条形码插入功能修复")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/13 星期五")]),Rr("p",[Tr._v("1. 插入文本域 绘制层实现")]),Rr("p",[Tr._v("2. 插入图片 绘制层实现")]),Rr("p",[Tr._v("3. 插入条形码 绘制层实现")]),Rr("p",[Tr._v("4. 插入二维码 绘制层实现")]),Rr("p",[Tr._v("5. 插入和修改医学表达 绘制层实现")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/13 星期五")]),Rr("p",[Tr._v("1. 下拉菜单ui部分风格统一调整(插入和表格)")]),Rr("p",[Tr._v("2. 弹出层部分ui风格统一调整(医学表达式,条形码,文本域)")]),Rr("p",[Tr._v("3. 文本域 ui及功能")]),Rr("p",[Tr._v("4. 条形码 UI及功能")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/5 星期四")]),Rr("p",[Tr._v("1. 工具栏列表,底部文字信息栏,文档编辑区域布局UI完成")]),Rr("p",[Tr._v("2. 颜色选择组件完成")]),Rr("p",[Tr._v(" 3. 选中区域或者输入光标所在位置改变工具栏状态(上标下标加粗下划线删除线颜色等选中位置的样式) ")]),Rr("p",[Tr._v("4. 医学表达式添加和修改UI及功能完成")]),Rr("p",[Tr._v("5. 日期时间控件UI完成")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/10/29 星期四")]),Rr("p",[Tr._v("1. 文本节点中下划线绘制")]),Rr("p",[Tr._v("2. 文本节点中删除线绘制")]),Rr("p",[Tr._v("3. 文本节点中上标样式绘制")]),Rr("p",[Tr._v("4. 文本节点中下标样式绘制")]),Rr("p",[Tr._v("5. 文本节点中背景色绘制")]),Rr("p",[Tr._v("6. 节点(单个/多个选中/文本节点中单个文字)删除操作撤销恢复操作")]),Rr("p",[Tr._v("7. 节点插入操作撤销恢复操作")]),Rr("p",[Tr._v("8. 文本节点中文本插入操作的合并操作添加时间戳判断")]),Rr("p",[Tr._v("9. 文本节点拆分操作的撤销恢复操作")]),Rr("p",[Tr._v("10. 文字录入中,多文字连续录入合并撤销,合并恢复")])])])}],yd=function(Tr){Object(Qr["a"])(UpdateDocument,Tr);var Dr=Object(Zr["a"])(UpdateDocument);function UpdateDocument(){var Tr;return Object(Xr["a"])(this,UpdateDocument),Tr=Dr.apply(this,arguments),Tr.isDocumentShow=!1,Tr}return Object(Yr["a"])(UpdateDocument,[{key:"openDocument",value:function openDocument(){this.isDocumentShow=!this.isDocumentShow}}]),UpdateDocument}(Kr.a);yd=__decorate([an({name:"UpdateDocument"})],yd);var bd=yd,wd=bd,xd=(Rr("6e08"),normalizeComponent(wd,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render,vd,!1,null,"01703d21",null)),Cd=xd.exports,ToolTablevue_type_template_id_7e9dd939_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-submenu",{attrs:{"popper-class":"insert-menus",index:"tables"}},[Rr("template",{slot:"title"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[Rr("path",{attrs:{stroke:"none",d:"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),Rr("span",[Tr._v("表格")])]),Rr("el-submenu",{attrs:{index:"insertTable","popper-append-to-body":!0}},[Rr("template",{slot:"title"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[Rr("path",{attrs:{stroke:"none",d:"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),Rr("span",[Tr._v("插入表格")])]),Rr("el-menu-item",{staticClass:"table-menus",attrs:{index:"0"}},[Rr("div",{staticClass:"columns",on:{mouseleave:Tr.clearData}},[Rr("p",{staticClass:"table-title"},[Tr._v(" "+Tr._s(Tr.rows?Tr.rows+" x "+Tr.columns:"插入")+" 表格 ")]),Tr._l(10,(function(Dr){return Rr("div",{key:"row_"+Dr,staticClass:"rows",on:{mousemove:Tr.mouse,click:Tr.createdTables}},Tr._l(10,(function(Ur){return Rr("span",{key:"column_index"+Ur,class:Dr<=Tr.rows&&Ur<=Tr.columns?"selected":"",attrs:{"data-column":Ur,"data-row":Dr},on:{touchstart:Tr.touch,touchmove:Tr.touch,touchend:Tr.touchend}})})),0)})),Rr("p",{staticClass:"table-bottom-title",on:{click:function(Dr){Tr.dialogFormVisible=!0}}},[Tr._v(" 自定义行列数 ")])],2)])],2),Tr.isOpen?Rr("TableFeatures",{attrs:{className:"insert-rows-columns-menu",vueController:Tr.vueController,table:Tr.table},on:{closeMenu:Tr.closeMenu}}):Tr._e(),Rr("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:Tr.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},[Rr("el-form",{attrs:{model:Tr.form}},[Rr("el-form-item",{attrs:{label:"行数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.rows,callback:function(Dr){Tr.$set(Tr.form,"rows",Dr)},expression:"form.rows"}})],1),Rr("el-form-item",{attrs:{label:"列数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.columns,callback:function(Dr){Tr.$set(Tr.form,"columns",Dr)},expression:"form.columns"}})],1)],1),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{on:{click:function(Dr){Tr.dialogFormVisible=!1}}},[Tr._v("取 消")]),Rr("el-button",{attrs:{type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")])],1)],1)],2)},Pd=[],TableFeaturesvue_type_template_id_595addeb_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("p",{class:Tr.className},[Rr("ul",{staticClass:"mouse-right-menu"},[Tr.table.insertRowAbove?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("defs",[Rr("g",{attrs:{id:"insertTableRowsColumns"}},[Rr("path",{attrs:{d:"M1024 1024H0V384h1024v640zM171.2 127.8L0 256V0l171.2 127.8z m132.9 512.1V512H128l0.1 127.9h176z m0 256.1V767.9h-176L128 896h176.1zM1024 192H256V64h768v128zM592.1 639.9V512h-160v127.9h160z m0 256.1V767.9h-160V896h160z m304-256.1L896 512H720.1v127.9h176zM896 896l0.1-128.1h-176V896H896z"}})])]),Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("上方插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.topRows,callback:function(Dr){Tr.topRows=Dr},expression:"topRows"}}),Rr("span",[Tr._v(" 行")])],1)]):Tr._e(),Tr.table.insertRowBelow?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateX(180deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("下方插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.bottomRows,callback:function(Dr){Tr.bottomRows=Dr},expression:"bottomRows"}}),Rr("span",[Tr._v(" 行")])],1)]):Tr._e(),Tr.table.insertColLeft?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateZ(270deg) rotateY(180deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("左侧插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.leftRows,callback:function(Dr){Tr.leftRows=Dr},expression:"leftRows"}}),Rr("span",[Tr._v(" 列")])],1)]):Tr._e(),Tr.table.insertColRight?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateZ(90deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("右侧插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:Tr.rightRows,callback:function(Dr){Tr.rightRows=Dr},expression:"rightRows"}}),Rr("span",[Tr._v(" 列")])],1)]):Tr._e(),Tr.table.deleteRows?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27213",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M1024.078512 835.218318v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963302H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963302v-161.779812a25.598072 25.598072 0 0 1 26.963302-26.963303h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963303zM1024.078512 27.00187v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963303H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963303V27.00187A25.598072 25.598072 0 0 1 296.410663 0.038568h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963302z m0 0M477.986318 424.625249v167.240734a21.843688 21.843688 0 0 1-18.771919 24.232842H18.927567a21.843688 21.843688 0 0 1-18.771919-24.232842v-167.240734a21.843688 21.843688 0 0 1 18.771919-24.232841h440.286832a21.843688 21.843688 0 0 1 18.771919 24.232841z m0 0"}}),Rr("path",{attrs:{d:"M961.619218 314.724195l-149.492738 149.492738-149.151431-149.492738a36.519915 36.519915 0 0 0-51.878759 0 36.178608 36.178608 0 0 0 0 51.537451l149.492739 149.492738-149.492739 149.492738a36.178608 36.178608 0 0 0 0 51.537451 36.519915 36.519915 0 0 0 51.878759 0l149.151431-149.151431L961.619218 716.784573a36.519915 36.519915 0 0 0 51.878758 0 36.861223 36.861223 0 0 0 0-51.537451l-149.492738-149.492738 149.492738-149.492738a36.861223 36.861223 0 0 0 0-51.537451 36.519915 36.519915 0 0 0-51.878758 0z m25.939379-25.939379"}})]),Rr("span",[Tr._v("删除行")])]):Tr._e(),Tr.table.deleteCols?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateZ(90deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M1024.078512 835.218318v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963302H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963302v-161.779812a25.598072 25.598072 0 0 1 26.963302-26.963303h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963303zM1024.078512 27.00187v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963303H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963303V27.00187A25.598072 25.598072 0 0 1 296.410663 0.038568h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963302z m0 0M477.986318 424.625249v167.240734a21.843688 21.843688 0 0 1-18.771919 24.232842H18.927567a21.843688 21.843688 0 0 1-18.771919-24.232842v-167.240734a21.843688 21.843688 0 0 1 18.771919-24.232841h440.286832a21.843688 21.843688 0 0 1 18.771919 24.232841z m0 0"}}),Rr("path",{attrs:{d:"M961.619218 314.724195l-149.492738 149.492738-149.151431-149.492738a36.519915 36.519915 0 0 0-51.878759 0 36.178608 36.178608 0 0 0 0 51.537451l149.492739 149.492738-149.492739 149.492738a36.178608 36.178608 0 0 0 0 51.537451 36.519915 36.519915 0 0 0 51.878759 0l149.151431-149.151431L961.619218 716.784573a36.519915 36.519915 0 0 0 51.878758 0 36.861223 36.861223 0 0 0 0-51.537451l-149.492738-149.492738 149.492738-149.492738a36.861223 36.861223 0 0 0 0-51.537451 36.519915 36.519915 0 0 0-51.878758 0z m25.939379-25.939379"}})]),Rr("span",[Tr._v("删除列")])]):Tr._e(),Tr.table.mergerCells?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[Rr("path",{attrs:{fill:"#F0F0F0",d:"M0,0 L24,0 L24,24 L0,24 L0,0 Z",opacity:"0"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"4 7 4 5 7 5 10 5 10 19 7 19 4 19 4 16.952",transform:"matrix(-1 0 0 1 14 0)"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"14 7 14 5 17 5 20 5 20 19 17 19 14 19 14 16.952"}}),Rr("path",{attrs:{stroke:"none",d:"M10.3652377,13.1421629 L8.12342591,13.1421629 L8.79597093,13.8610652 C9.03778436,14.1357021 9.02267185,14.5638117 8.76574414,14.8222945 C8.64483728,14.9353803 8.49370422,15 8.33501255,15 C8.17632235,15 8.01763215,14.9353796 7.8967247,14.8142158 L6.1889167,12.9886918 C6.06800984,12.859451 6,12.689822 6,12.5121164 C6,12.4232634 6.01511339,12.3344109 6.05289673,12.2455566 C6.08312352,12.1647811 6.12846356,12.0840053 6.18891699,12.0193853 L7.90427979,10.1938613 C8.02518665,10.0646205 8.18387744,10 8.3501239,10 C8.51637035,10 8.68261828,10.0726979 8.80352426,10.2019384 C8.92443112,10.3311791 8.9848847,10.5008082 8.9848847,10.6785137 C8.98488469,10.8562192 8.91687457,11.0258476 8.795968,11.155089 L8.19898995,11.7932157 L10.3652392,11.7932157 C10.7128461,11.7851381 11,12.0840068 11,12.4636523 C11,12.835216 10.7128446,13.1421629 10.3652377,13.1421629 Z",transform:"matrix(-1 0 0 1 17 0)"}}),Rr("path",{attrs:{stroke:"none",d:"M17.3652377,13.1421629 L15.1234259,13.1421629 L15.7959709,13.8610652 C16.0377844,14.1357021 16.0226718,14.5638117 15.7657441,14.8222945 C15.6448373,14.9353803 15.4937042,15 15.3350126,15 C15.1763223,15 15.0176321,14.9353796 14.8967247,14.8142158 L13.1889167,12.9886918 C13.0680098,12.859451 13,12.689822 13,12.5121164 C13,12.4232634 13.0151134,12.3344109 13.0528967,12.2455566 C13.0831235,12.1647811 13.1284636,12.0840053 13.188917,12.0193853 L14.9042798,10.1938613 C15.0251866,10.0646205 15.1838774,10 15.3501239,10 C15.5163704,10 15.6826183,10.0726979 15.8035243,10.2019384 C15.9244311,10.3311791 15.9848847,10.5008082 15.9848847,10.6785137 C15.9848847,10.8562192 15.9168746,11.0258476 15.795968,11.155089 L15.19899,11.7932157 L17.3652392,11.7932157 C17.7128461,11.7851381 18,12.0840068 18,12.4636523 C18,12.835216 17.7128446,13.1421629 17.3652377,13.1421629 Z"}})])]),Rr("span",[Tr._v("合并单元格")])]):Tr._e(),Tr.table.unMergerCells?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"4 7 4 5 7 5 10 5 10 19 7 19 4 19 4 16.952"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"14 7 14 5 17 5 20 5 20 19 17 19 14 19 14 16.952",transform:"matrix(-1 0 0 1 34 0)"}}),Rr("path",{attrs:{stroke:"none",d:"M7.36523773,13.1421629 L5.12342591,13.1421629 L5.79597093,13.8610652 C6.03778436,14.1357021 6.02267185,14.5638117 5.76574414,14.8222945 C5.64483728,14.9353803 5.49370422,15 5.33501255,15 C5.17632235,15 5.01763215,14.9353796 4.8967247,14.8142158 L3.1889167,12.9886918 C3.06800984,12.859451 3,12.689822 3,12.5121164 C3,12.4232634 3.01511339,12.3344109 3.05289673,12.2455566 C3.08312352,12.1647811 3.12846356,12.0840053 3.18891699,12.0193853 L4.90427979,10.1938613 C5.02518665,10.0646205 5.18387744,10 5.3501239,10 C5.51637035,10 5.68261828,10.0726979 5.80352426,10.2019384 C5.92443112,10.3311791 5.9848847,10.5008082 5.9848847,10.6785137 C5.98488469,10.8562192 5.91687457,11.0258476 5.795968,11.155089 L5.19898995,11.7932157 L7.36523919,11.7932157 C7.71284609,11.7851381 8,12.0840068 8,12.4636523 C8,12.835216 7.71284463,13.1421629 7.36523773,13.1421629 Z"}}),Rr("path",{attrs:{stroke:"none",d:"M20.3652377,13.1421629 L18.1234259,13.1421629 L18.7959709,13.8610652 C19.0377844,14.1357021 19.0226718,14.5638117 18.7657441,14.8222945 C18.6448373,14.9353803 18.4937042,15 18.3350126,15 C18.1763223,15 18.0176321,14.9353796 17.8967247,14.8142158 L16.1889167,12.9886918 C16.0680098,12.859451 16,12.689822 16,12.5121164 C16,12.4232634 16.0151134,12.3344109 16.0528967,12.2455566 C16.0831235,12.1647811 16.1284636,12.0840053 16.188917,12.0193853 L17.9042798,10.1938613 C18.0251866,10.0646205 18.1838774,10 18.3501239,10 C18.5163704,10 18.6826183,10.0726979 18.8035243,10.2019384 C18.9244311,10.3311791 18.9848847,10.5008082 18.9848847,10.6785137 C18.9848847,10.8562192 18.9168746,11.0258476 18.795968,11.155089 L18.19899,11.7932157 L20.3652392,11.7932157 C20.7128461,11.7851381 21,12.0840068 21,12.4636523 C21,12.835216 20.7128446,13.1421629 20.3652377,13.1421629 Z",transform:"matrix(-1 0 0 1 37 0)"}})])]),Rr("span",[Tr._v("取消合并单元格")])]):Tr._e()]),Rr("el-dialog",{attrs:{title:"表格计算公式",width:"520px",visible:Tr.dialogFormVisible,top:"200px",center:""},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},[Rr("section",[Rr("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[Tr._v(" "+Tr._s("a3:a10"===Tr.dialogFormTitle?"求和公式":"四则运算公式")+" ")]),Rr("div",{staticStyle:{height:"36px","line-height":"36px"}},[Tr._v("示例: "+Tr._s(Tr.dialogFormTitle))]),Rr("el-input",{attrs:{autocomplete:"off"},model:{value:Tr.formula,callback:function(Dr){Tr.formula=Dr},expression:"formula"}})],1),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")])],1)])],1)},Ed=[],Sd=function(Tr){Object(Qr["a"])(TableFeatures,Tr);var Dr=Object(Zr["a"])(TableFeatures);function TableFeatures(){var Tr;return Object(Xr["a"])(this,TableFeatures),Tr=Dr.apply(this,arguments),Tr.tableFormulaValue=[],Tr.tableCellCode=!1,Tr.dialogFormVisible=!1,Tr.dialogFormTitle="",Tr.formula="",Tr.isCellSplitModal=!1,Tr.row=1,Tr.column=1,Tr.topRows=1,Tr.bottomRows=1,Tr.leftRows=1,Tr.rightRows=1,Tr}return Object(Yr["a"])(TableFeatures,[{key:"setCellCode",value:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.$emit("closeMenu"),this.init()}},{key:"tableInsertRowAbove",value:function tableInsertRowAbove(Tr){var Dr="."+this.className+" .insert-rows-columns-top",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowAbove(this.topRows))}},{key:"tableInsertRowBelow",value:function tableInsertRowBelow(Tr){var Dr="."+this.className+" .insert-rows-columns-bottom",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowBelow(this.bottomRows))}},{key:"tableInsertColLeft",value:function tableInsertColLeft(Tr){var Dr="."+this.className+" .insert-rows-columns-left",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableColLeft(this.leftRows))}},{key:"tableInsertColRight",value:function tableInsertColRight(Tr){var Dr="."+this.className+" .insert-rows-columns-right",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableColRight(this.rightRows))}},{key:"tableDeleteRows",value:function tableDeleteRows(){this.$emit("closeMenu"),this.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){this.$emit("closeMenu"),this.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){this.$emit("closeMenu"),this.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){this.$emit("closeMenu"),this.vueController.tableUnMergerCells()}},{key:"tableControlClick",value:function tableControlClick(){this.$emit("change")}},{key:"init",value:function init(){this.topRows=1,this.bottomRows=1,this.leftRows=1,this.rightRows=1}},{key:"selectedFormula",value:function selectedFormula(Tr){this.dialogFormVisible=!0,this.dialogFormTitle=Tr,this.formula=Tr}},{key:"sure",value:function sure(){this.dialogFormVisible=!1,this.$emit("closeMenu")}},{key:"beforeDestroy",value:function beforeDestroy(){this.init()}}]),TableFeatures}(Kr.a);__decorate([Prop()],Sd.prototype,"vueController",void 0),__decorate([Prop()],Sd.prototype,"className",void 0),__decorate([Prop()],Sd.prototype,"table",void 0),Sd=__decorate([an({name:"TableFeatures"})],Sd);var Td=Sd,Dd=Td,kd=(Rr("c0da"),normalizeComponent(Dd,TableFeaturesvue_type_template_id_595addeb_render,Ed,!1,null,null,null)),Od=kd.exports,Id=function(Tr){Object(Qr["a"])(ToolTables,Tr);var Dr=Object(Zr["a"])(ToolTables);function ToolTables(){var Tr;return Object(Xr["a"])(this,ToolTables),Tr=Dr.apply(this,arguments),Tr.rows=0,Tr.columns=0,Tr.dialogFormVisible=!1,Tr.form={rows:1,columns:1},Tr.formLabelWidth="72px",Tr}return Object(Yr["a"])(ToolTables,[{key:"createdTables",value:function createdTables(){this.vueController.insertTable(this.rows,this.columns)}},{key:"clearData",value:function clearData(){this.rows=0,this.columns=0}},{key:"sure",value:function sure(){this.vueController.insertTable(this.form.rows,this.form.columns),this.dialogFormVisible=!1}},{key:"mouse",value:function mouse(Tr){var Dr=Tr.target;if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touch",value:function touch(Tr){var Dr=document.elementFromPoint(Tr.changedTouches[0].pageX,Tr.changedTouches[0].pageY);if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touchend",value:function touchend(Tr){this.touch(Tr),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTables}(Kr.a);__decorate([Prop()],Id.prototype,"vueController",void 0),__decorate([Prop()],Id.prototype,"table",void 0),__decorate([Prop()],Id.prototype,"isOpen",void 0),Id=__decorate([an({name:"ToolTables",components:{TableFeatures:Od}})],Id);var Md=Id,Nd=Md,Ld=(Rr("93cb"),normalizeComponent(Nd,ToolTablevue_type_template_id_7e9dd939_render,Pd,!1,null,null,null)),Ad=Ld.exports,PageSettingvue_type_template_id_187fdd38_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal"},[Rr("div",{ref:"pageSettingModal",class:Tr.animationClassNames,on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("页面设置")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-tabs",{model:{value:Tr.textActiveName,callback:function(Dr){Tr.textActiveName=Dr},expression:"textActiveName"}},[Rr("el-tab-pane",{attrs:{label:"页面设置",name:"first"}},[Rr("div",{staticClass:"control-list"},[Rr("fieldset",{staticClass:"control-item fieldset",staticStyle:{margin:"0 10px 10px 10px"}},[Rr("legend",[Tr._v("页边距    毫米")]),Rr("ul",{staticClass:"page-spacing"},[Rr("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("上(T)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.topMarginMm,callback:function(Dr){Tr.$set(Tr.property,"topMarginMm",Dr)},expression:"property.topMarginMm"}})],1),Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("左(L)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.leftMarginMm,callback:function(Dr){Tr.$set(Tr.property,"leftMarginMm",Dr)},expression:"property.leftMarginMm"}})],1)]),Rr("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("下(B)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.bottomMarginMm,callback:function(Dr){Tr.$set(Tr.property,"bottomMarginMm",Dr)},expression:"property.bottomMarginMm"}})],1),Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("右(R)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.rightMarginMm,callback:function(Dr){Tr.$set(Tr.property,"rightMarginMm",Dr)},expression:"property.rightMarginMm"}})],1)])])]),Rr("div",{staticClass:"print-settings"},[Rr("fieldset",{staticClass:"fieldset print-direction-item"},[Rr("legend",[Tr._v("打印方向")]),Rr("div",{class:0===Tr.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(Dr){return Tr.setPrintDirection(0)}}},[Rr("div",[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[Rr("path",{attrs:{d:"M850.56 297.984l-254.336-233.088s-6.314667-7.637333-14.464-7.637333H211.968c-24.064 0-43.776 19.584-43.776 43.776v825.557333c0 24.064 19.584 43.776 43.776 43.776h600.021333c24.064 0 43.776-19.584 43.776-43.776V309.717333a16.213333 16.213333 0 0 0-5.205333-11.733333z m-252.757333-188.416l200.874666 184.149333-149.034666-0.085333a52.053333 52.053333 0 0 1-51.84-51.925333V109.568z m225.92 816.981333a11.733333 11.733333 0 0 1-11.733334 11.733334H211.882667a11.733333 11.733333 0 0 1-11.733334-11.733334V100.992c0-6.528 5.290667-11.733333 11.733334-11.733333h353.877333v152.405333c0 46.208 37.546667 83.84 83.754667 83.84l174.250666 0.213333v600.832z m0 0"}}),Rr("path",{attrs:{d:"M535.04 367.36h-46.08l-127.274667 334.037333h47.616l32.128-91.477333h139.093334l34.090666 91.477333h47.616L535.04 367.36z m-80.042667 204.928l50.048-138.837333c1.962667-5.504 3.797333-13.226667 5.376-23.253334h1.109334c1.962667 11.008 3.669333 18.730667 5.205333 23.253334l50.474667 138.837333h-112.213334z"}})])]),Rr("p",[Tr._v("纵向(P)")])]),Rr("div",{class:1===Tr.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(Dr){return Tr.setPrintDirection(1)}}},[Rr("div",[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[Rr("path",{attrs:{d:"M296.192 175.189333l-233.088 254.336s-7.637333 6.314667-7.637333 14.464v369.792c0 24.064 19.584 43.776 43.776 43.776h825.557333c24.064 0 43.776-19.584 43.776-43.776V213.76c0-24.064-19.584-43.776-43.776-43.776H307.925333a16.384 16.384 0 0 0-11.733333 5.205333z m-188.416 252.8l184.149333-200.874666-0.128 149.034666a52.053333 52.053333 0 0 1-51.925333 51.84H107.776z m817.024-225.962666c6.528 0 11.733333 5.290667 11.733333 11.733333v600.149333a11.733333 11.733333 0 0 1-11.733333 11.733334H99.2a11.733333 11.733333 0 0 1-11.733333-11.733334v-353.877333h152.405333c46.208 0 83.84-37.546667 83.84-83.754667l0.213333-174.250666h600.874667z m0 0"}}),Rr("path",{attrs:{d:"M555.648 346.752h-46.08L382.293333 680.789333h47.616l32.128-91.477333h139.093334l34.090666 91.477333h47.616l-127.189333-334.037333z m-80.085333 204.928l50.048-138.837333c1.962667-5.504 3.797333-13.226667 5.376-23.253334h1.109333c1.962667 11.008 3.669333 18.730667 5.205333 23.253334l50.474667 138.837333h-112.213333z"}})])]),Rr("p",[Tr._v("横向(P)")])])]),Rr("div",{staticClass:"control-item",staticStyle:{padding:"0","margin-left":"10px"}},[Rr("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px",margin:"0"}},[Rr("legend",[Tr._v("纸张    毫米")]),Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("大小(Z)")]),Rr("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择纸张大小"},on:{change:function(Dr){return Tr.setPrintDirection(Tr.property.printDirection)}},model:{value:Tr.property.pageSize,callback:function(Dr){Tr.$set(Tr.property,"pageSize",Dr)},expression:"property.pageSize"}},Tr._l(Tr.paperStyle,(function(Tr,Dr){return Rr("el-option",{key:Dr,attrs:{label:Tr[0],value:Tr[0]}})})),1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("来源(S)")]),Rr("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择来源"},model:{value:Tr.property.source,callback:function(Dr){Tr.$set(Tr.property,"source",Dr)},expression:"property.source"}},[Rr("el-option",{attrs:{label:"自动选择",value:"0"}})],1)],1),Rr("li",{staticClass:"control-item paper-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("宽度(W)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==Tr.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:Tr.property.widthMm,callback:function(Dr){Tr.$set(Tr.property,"widthMm",Dr)},expression:"property.widthMm"}})],1),Rr("li",{staticClass:"control-item paper-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("高度(H)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==Tr.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:Tr.property.heightMm,callback:function(Dr){Tr.$set(Tr.property,"heightMm",Dr)},expression:"property.heightMm"}})],1)])]),Rr("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px 10px"}},[Rr("legend",[Tr._v("边框")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("边框颜色")]),Rr("el-color-picker",{attrs:{size:"mini"},model:{value:Tr.property.borderColor,callback:function(Dr){Tr.$set(Tr.property,"borderColor",Dr)},expression:"property.borderColor"}})],1),Rr("PrintLineStyle",{attrs:{labelWidth:"64px",defaultStyle:Tr.property.paintRowLine,placeholder:"绘制行线"},on:{change:Tr.printStyleChange}})],1)])])])]),Rr("el-tab-pane",{attrs:{label:"页眉页脚",name:"second"}},[Rr("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[Rr("legend",[Tr._v("页眉    毫米")]),Rr("div",{staticClass:"control-item"},[Tr._v("距页边界:")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[Tr._v("至页眉(H):")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.headerYMm,callback:function(Dr){Tr.$set(Tr.property,"headerYMm",Dr)},expression:"property.headerYMm"}})],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px"}}),Rr("el-checkbox",{model:{value:Tr.property.showFirstPageHead,callback:function(Dr){Tr.$set(Tr.property,"showFirstPageHead",Dr)},expression:"property.showFirstPageHead"}},[Tr._v("显示-第一页的页眉(H)")])],1)]),Rr("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[Rr("legend",[Tr._v("页脚    毫米")]),Rr("div",{staticClass:"control-item"},[Tr._v("距页边界:")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[Tr._v("至页脚(F):")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.footerYMm,callback:function(Dr){Tr.$set(Tr.property,"footerYMm",Dr)},expression:"property.footerYMm"}})],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px"}}),Rr("el-checkbox",{model:{value:Tr.property.showFirstPageFoot,callback:function(Dr){Tr.$set(Tr.property,"showFirstPageFoot",Dr)},expression:"property.showFirstPageFoot"}},[Tr._v("显示-第一页的页脚(F)")])],1)]),Rr("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[Rr("legend",[Tr._v("页数")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px"}},[Tr._v("从第几页开始(S):")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.pageNumber,callback:function(Dr){Tr.$set(Tr.property,"pageNumber",Dr)},expression:"property.pageNumber"}})],1)])])],1)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"mini",type:"primary"},on:{click:Tr.sureSetPageing}},[Tr._v("确定")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])])},Rd=[],Fd=function(Tr){Object(Qr["a"])(PageSetting,Tr);var Dr=Object(Zr["a"])(PageSetting);function PageSetting(){var Tr;return Object(Xr["a"])(this,PageSetting),Tr=Dr.apply(this,arguments),Tr.fontFamily=Eu["a"],Tr.fontSize=Eu["b"],Tr.alignList=["left","both","right","both"],Tr.lineHeightList=[1.25,1.5,2,2.5,3],Tr.fontSpacingList=[0,1,2,3],Tr.paperStyle=[["自定义",[210,297]],["A3",[297,420]],["A4",[210,297]],["A5",[148,210]],["A6",[105,148]],["B4",[250,353]],["B5",[176,250]],["B6",[125,176]],["16K",[195,270]]],Tr.property={pageSize:"A4",source:"0",printDirection:0,leftMarginMm:12.7,rightMarginMm:12.7,topMarginMm:12.7,bottomMarginMm:12.7,widthMm:210,heightMm:297,headerYMm:3,footerYMm:3,showFirstPageHead:!0,showFirstPageFoot:!0,pageNumber:1,borderColor:"#333333",paintRowLine:0},Tr.textActiveName="first",Tr.backFile=null,Tr.backImgUrl="",Tr.animationClassNames="control-modal-contents page-setting-content animation-in",Tr}return Object(Yr["a"])(PageSetting,[{key:"created",value:function created(){var Tr=this,Dr=this.vueController.pageProperty();Object.keys(Dr).forEach((function(Rr){var Ur=Rr.replace(/_/g,"");"backColor"===Ur||"fontColor"===Ur?Object.prototype.hasOwnProperty.call(Tr.property,Ur)&&("transparent"===Dr[Ur]?Tr.property[Ur]=null:Tr.property[Ur]=Dr[Ur]):Object.prototype.hasOwnProperty.call(Tr.property,Ur)&&(Tr.property[Ur]=Dr[Ur])}))}},{key:"setPrintDirection",value:function setPrintDirection(Tr){var Dr=this;this.property.printDirection=Tr;var Rr=[];if(this.paperStyle.forEach((function(Tr){Tr[0]===Dr.property.pageSize&&(Rr=Tr[1])})),0===this.property.printDirection){var Ur=Rr,Hr=Object(oa["a"])(Ur,2);this.property.widthMm=Hr[0],this.property.heightMm=Hr[1]}else{var Wr=Rr,zr=Object(oa["a"])(Wr,2);this.property.heightMm=zr[0],this.property.widthMm=zr[1]}}},{key:"printStyleChange",value:function printStyleChange(Tr){this.property.paintRowLine=Tr}},{key:"handleClose",value:function handleClose(){this.$emit("closePageSetting",!1)}},{key:"sureSetPageing",value:function sureSetPageing(){var Tr=_objectSpread2(_objectSpread2({},this.property),{},{isHaveBgImage:!1});null===Tr.backColor&&(Tr.backColor="transparent"),null===Tr.fontColor&&(Tr.fontColor="transparent"),this.vueController.setPageProperty(JSON.stringify(_objectSpread2({},Tr))),this.handleClose()}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.pageSettingModal,"modal-title")}}]),PageSetting}(mixins(Zn));__decorate([Ref()],Fd.prototype,"pageSettingModal",void 0),__decorate([Prop()],Fd.prototype,"vueController",void 0),Fd=__decorate([an({name:"PageSetting",components:{PrintLineStyle:wc}})],Fd);var jd=Fd,Bd=jd,Ud=(Rr("c933"),normalizeComponent(Bd,PageSettingvue_type_template_id_187fdd38_scoped_true_render,Rd,!1,null,"187fdd38",null)),Hd=Ud.exports,UploadFilevue_type_template_id_4361e817_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-upload",{staticClass:"upload-image",attrs:{action:"",accept:".xml",multiple:!1,"show-file-list":!1,"auto-upload":!1,"file-list":Tr.fileList,"on-change":Tr.uploadFiles}},[Rr("span",{attrs:{size:"small"}},[Tr._v("打开文件")])])},Wd=[],qd=function(Tr){Object(Qr["a"])(UploadFile,Tr);var Dr=Object(Zr["a"])(UploadFile);function UploadFile(){var Tr;return Object(Xr["a"])(this,UploadFile),Tr=Dr.apply(this,arguments),Tr.fileList=[],Tr}return Object(Yr["a"])(UploadFile,[{key:"uploadFiles",value:function uploadFiles(Tr){this.vueController.openLocalFiles(Tr.raw,this.uploadFileCallback)}},{key:"uploadFileCallback",value:function uploadFileCallback(Tr){}}]),UploadFile}(Kr.a);__decorate([Prop()],qd.prototype,"vueController",void 0),qd=__decorate([an({name:"UploadFile"})],qd);var zd=qd,Vd=zd,Kd=normalizeComponent(Vd,UploadFilevue_type_template_id_4361e817_render,Wd,!1,null,null,null),$d=Kd.exports,HistoryLogsvue_type_template_id_13465a06_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{staticClass:"sub-bar-items item-history-logs"},[Rr("span",{staticStyle:{padding:"0 10px"},on:{click:Tr.openHistoryLogs}},[Tr._v("历史记录")]),Tr.showHistoryLogs&&Tr.historyLog?Rr("div",{staticClass:"document-item animation-in"},[Rr("p",{staticStyle:{"text-align":"left","border-bottom":"1px solid #ccc"}},[Rr("i",{staticClass:"el-icon-circle-close"}),Rr("span",{on:{click:Tr.closeHistoryLogs}},[Tr._v("关闭历史记录")])]),Array.isArray(Tr.historyLog)?Rr("ul",Tr._l(Tr.historyLog,(function(Dr,Ur){return Rr("li",{key:Dr.saveTime+Math.random(0,1)},[Rr("div",[Rr("p",{staticClass:"flex-rows"},[Rr("span",{staticStyle:{"padding-left":"4px"}},[Tr._v("缓存时间:"+Tr._s(Dr.saveTime))]),Rr("span",{staticClass:"cover",on:{click:function(Dr){return Tr.manualSaveLocalStorage(Ur)}}},[Tr._v("恢复")])]),Tr._l(Dr.logs,(function(Dr){return[Rr("p",{key:Dr.operTime},[Rr("span",[Tr._v("操作类型:"+Tr._s(Dr._operType))]),Rr("span",[Tr._v("操作时间:"+Tr._s(Tr.dateFormat(Dr._operTime)))]),Rr("span",[Tr._v("操作内容:"+Tr._s(Dr._operText))])])]}))],2)])})),0):Tr._e()]):Tr._e()])},Gd=[],Jd=function(Tr){Object(Qr["a"])(HistoryLogs,Tr);var Dr=Object(Zr["a"])(HistoryLogs);function HistoryLogs(){var Tr;return Object(Xr["a"])(this,HistoryLogs),Tr=Dr.apply(this,arguments),Tr.showHistoryLogs=!1,Tr.historyLog=null,Tr.dateFormat=Jn["d"],Tr}return Object(Yr["a"])(HistoryLogs,[{key:"manualSaveLocalStorage",value:function manualSaveLocalStorage(Tr){var Dr=this;this.vueController.hoLocalStorage().getLocalStorage().then((function(Rr){Dr.vueController.openXml(Rr[Tr].xml)}))}},{key:"getLocalStorage",value:function getLocalStorage(){var Tr=this;this.historyLog=[],this.vueController.hoLocalStorage().getLocalStorage().then((function(Dr){Dr.forEach((function(Dr){Tr.historyLog.push({saveTime:Dr.saveTime,logs:Dr.logs})}))}))}},{key:"openHistoryLogs",value:function openHistoryLogs(){this.showHistoryLogs=!this.showHistoryLogs,this.getLocalStorage()}},{key:"closeHistoryLogs",value:function closeHistoryLogs(){this.showHistoryLogs=!1,this.historyLog=null}}]),HistoryLogs}(mixins(Nu));__decorate([Prop()],Jd.prototype,"vueController",void 0),Jd=__decorate([an({name:"HistoryLogs"})],Jd);var Xd=Jd,Yd=Xd,Qd=(Rr("cae5"),normalizeComponent(Yd,HistoryLogsvue_type_template_id_13465a06_scoped_true_render,Gd,!1,null,"13465a06",null)),Zd=Qd.exports,eh=function(Tr){Object(Qr["a"])(ToolBarChild,Tr);var Dr=Object(Zr["a"])(ToolBarChild);function ToolBarChild(){var Tr;return Object(Xr["a"])(this,ToolBarChild),Tr=Dr.apply(this,arguments),Tr.isPageSettingShow=!1,Tr.isLoginModel=!1,Tr.cleanAllFormat=!1,Tr.toolMenuOpenPath=[],Tr.toolMenuOpenPathTest=[],Tr.toolPrintOpenPath=[],Tr.printStatus="",Tr.isPrinted=!1,Tr.printModal=!1,Tr}return Object(Yr["a"])(ToolBarChild,[{key:"isOpen",get:function get(){return!!this.toolMenuOpenPath.includes("tables")}},{key:"createNew",value:function createNew(Tr){this.vueController.newFile(Tr)}},{key:"openPageSettings",value:function openPageSettings(){this.isPageSettingShow=!0}},{key:"closePageSetting",value:function closePageSetting(Tr){this.isPageSettingShow=Tr}},{key:"closedHoPrintModal",value:function closedHoPrintModal(Tr){"sure"===Tr&&(this.isPrinted=!1),this.printModal=!1}},{key:"printTpPDF",value:function printTpPDF(){this.isPrinted?this.vueController.printPromisePDF(1):this.printModal=!0,this.isPrinted=!1,this.printStatus="",this.closeToolPrint()}},{key:"printSelected",value:function printSelected(){this.printStatus="selected",this.vueController.setEditorStatus(2,1),this.isPrinted||(this.isPrinted=!0)}},{key:"printCaret",value:function printCaret(){this.printStatus="caret",this.vueController.setEditorStatus(2,0),this.isPrinted||(this.isPrinted=!0)}},{key:"printContinue",value:function printContinue(){this.printStatus="continue",this.vueController.setEditorStatus(2,3),this.isPrinted||(this.isPrinted=!0)}},{key:"saveFile",value:function saveFile(){}},{key:"unDoOperateClick",value:function unDoOperateClick(){this.vueController.unDoOperate()}},{key:"reDoOperateClick",value:function reDoOperateClick(){this.vueController.reDoOperate()}},{key:"clearFormatClick",value:function clearFormatClick(){this.cleanAllFormat=!0}},{key:"formatPainterClick",value:function formatPainterClick(){var Tr=document.querySelector(".ho-format-paint");this.vueController.formatPainter(Tr)}},{key:"copyOperateClick",value:function copyOperateClick(){}},{key:"cutOperateClick",value:function cutOperateClick(){}},{key:"pasteOperateClick",value:function pasteOperateClick(){}},{key:"closeToolMenus",value:function closeToolMenus(Tr){var Dr=this;this.toolMenuOpenPath.length>0&&(this.toolMenuOpenPath.forEach((function(Tr){Dr.toolMenus.closeMenu(Tr)})),this.toolMenuOpenPath=[])}},{key:"toolMenuSelected",value:function toolMenuSelected(Tr,Dr){this.toolMenuOpenPath=Dr}},{key:"closeToolMenusTest",value:function closeToolMenusTest(Tr){var Dr=this;this.toolMenuOpenPathTest.length>0&&(this.toolMenuOpenPathTest.forEach((function(Tr){Dr.toolMenusTest.closeMenu(Tr)})),this.toolMenuOpenPathTest=[])}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(Tr,Dr){this.toolMenuOpenPathTest=Dr}},{key:"toolPrintSelected",value:function toolPrintSelected(Tr,Dr){this.toolPrintOpenPath=Dr,Dr.includes("tool-printed")?this.isPrinted=!0:(this.isPrinted=!1,this.printStatus="")}},{key:"openPrintPreview",value:function openPrintPreview(){this.isPrinted?this.toolPrintOpenPath=["file"]:this.toolPrintOpenPath=["file","tool-printed"],this.isPrinted=!1,this.printStatus="",this.vueController.setEditorStatus(1)}},{key:"toolPrintClosed",value:function toolPrintClosed(){this.isPrinted=!1,this.printStatus="",this.vueController.setEditorStatus(1)}},{key:"closeToolPrint",value:function closeToolPrint(){var Tr=this;!this.isPrinted&&this.toolPrintOpenPath.length>0&&this.toolPrintOpenPath.forEach((function(Dr){Tr.toolPrint.closeMenu(Dr)}))}},{key:"saveAsFile",value:function saveAsFile(Tr){var Dr=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档",Rr=this.vueController.saveAsFile(Tr,!0);"html"!==Tr&&this.downloadFile(Rr,Dr,Tr)}},{key:"saveAsFileTest",value:function saveAsFileTest(Tr){var Dr="电子病历文档",Rr="返回的JSON串",Ur=this.vueController.getDocXml(Tr);this.downloadFile(Ur,Dr,Tr);var Hr=this.vueController.getDocJson();this.downloadFile(Hr,Rr,"plain")}},{key:"uploadDataSet",value:function uploadDataSet(){this.vueController.uploadDataSet()}},{key:"downloadFile",value:function downloadFile(Tr,Dr,Rr){var Ur;"json"===Rr?(Ur=window.URL.createObjectURL(new Blob([Tr],{type:"text/plain;charset=utf-8"})),Dr+=".json"):Ur=window.URL.createObjectURL(new Blob([Tr],{type:"text/".concat(Rr)}));var Hr=document.createElement("a");Hr.style.display="none",Hr.href=Ur,Hr.setAttribute("download",Dr),document.body.appendChild(Hr),Hr.click(),this.$nextTick((function(){return Hr.remove()}))}},{key:"setModalStatus",value:function setModalStatus(Tr){this.$emit("setModalStatus",Tr)}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.editJson,Ur={family:Rr.family,size:Rr.size,enlargeSize:Rr.enlargeSize,decreaseSize:Rr.decreaseSize,superScript:Rr.superScript,subScript:Rr.subScript,bold:Rr.bold,italic:Rr.italic,underline:Rr.underline,strikeout:Rr.strikeout,fontColor:Rr.fontColor,backColor:Rr.backColor},Hr={alignLeft:Rr.alignLeft,alignCenter:Rr.alignCenter,alignRight:Rr.alignRight,alignBoth:Rr.alignBoth,addIndent:Rr.addIndent,decreaseIndent:Rr.decreaseIndent,setHeight:Rr.setHeight},Wr=Object.keys(Ur).filter((function(Tr){return Ur[Tr]})).length>0,zr=Object.keys(Hr).filter((function(Tr){return Hr[Tr]})).length>0,Vr={vueController:this.vueController};return Dr("ul",{class:"sub-bar"},[Rr.editFile?Dr("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-print"},[Dr("el-menu",{ref:"toolPrint",style:"width: 76px; height: 25px;display: flex;justify-content: center;",directives:[{name:"click-outside",value:this.closeToolPrint.bind(this)}],on:{close:this.toolPrintClosed.bind(this),open:this.toolPrintSelected.bind(this)},attrs:{mode:"horizontal","menu-trigger":"click","unique-opened":!0}},[Dr("el-submenu",{attrs:{"popper-class":"insert-menus insert-paragraph inset-print",index:"file"}},[Dr("template",{slot:"title"},[Dr("span",["文件"])]),Dr("el-submenu",{attrs:{index:"createNew","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("span",["新建"])]),Dr("el-menu-item",{attrs:{index:"caseHistory"},nativeOn:{click:function click(){return Tr.createNew("caseHistory")}}},["病历"]),Dr("el-menu-item",{attrs:{index:"form"},nativeOn:{click:function click(){return Tr.createNew("form")}}},["表单"])]),Rr.openFile&&Dr("el-menu-item",{attrs:{index:"uploadFile"}},[Dr($d,{attrs:_objectSpread2({},Vr)})]),Rr.pageSetting&&Dr("el-menu-item",{attrs:{index:"openPageSettings"},nativeOn:{click:this.openPageSettings.bind(this)}},["页面设置"]),Rr.saveAsFile&&Dr("el-submenu",{attrs:{index:"saveAsFile","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("span",["另存为"])]),Dr("el-menu-item",{attrs:{index:"xml"},nativeOn:{click:function click(){return Tr.saveAsFile("xml")}}},["XML"]),Dr("el-menu-item",{attrs:{index:"html"},nativeOn:{click:function click(){return Tr.saveAsFile("html")}}},["HTML"]),Dr("el-menu-item",{attrs:{index:"plain"},nativeOn:{click:function click(){return Tr.saveAsFile("plain")}}},["TXT"]),Dr("el-menu-item",{attrs:{index:"json"},nativeOn:{click:function click(){return Tr.saveAsFile("json")}}},["JSON"])]),Dr("el-menu-item",{attrs:{disabled:!0,index:"printed"},nativeOn:{click:this.printTpPDF.bind(this)}},[Dr("span",{class:"print"},["打印"])]),Dr(zu,{attrs:_objectSpread2({},{vueController:this.vueController,printBeforeStatus:1,printModal:this.printModal}),on:{closed:this.closedHoPrintModal.bind(this)}}),Rr.printed&&this.isPrinted&&Dr("el-menu-item",{attrs:{index:"tool-printed",disabled:!0},nativeOn:{click:this.openPrintPreview.bind(this)}},[Dr("span",{class:"print-selected"},[this.isPrinted?"退出打印预览":"打印预览"])]),Rr.printSelected?Dr("el-menu-item",{attrs:{disabled:!0,index:"printSelected"},nativeOn:{click:this.printSelected.bind(this)}},[Dr("span",{class:{print:!0,"print-selected":"selected"===this.printStatus}},["打印拖动鼠标选中区域"])]):null,Rr.printCaret?Dr("el-menu-item",{attrs:{disabled:!0,index:"printCaret"},nativeOn:{click:this.printCaret.bind(this)}},[Dr("span",{class:{print:!0,"print-selected":"caret"===this.printStatus}},["打印鼠标点击位置"])]):null,Rr.printContinue?Dr("el-menu-item",{attrs:{disabled:!0,index:"printContinue"},nativeOn:{click:this.printContinue.bind(this)}},[Dr("span",{class:{print:!0,"print-selected":"continue"===this.printStatus}},["续打"])]):null])])]):null,this.isPageSettingShow?Dr(Hd,{attrs:_objectSpread2({},Vr),on:{closePageSetting:this.closePageSetting.bind(this)}}):null,Rr.unDoOperate||Rr.reDoOperate?Dr("li",{class:"sub-bar-items sub-bar-not-item-hover"},[Rr.unDoOperate?Dr(ns,{attrs:_objectSpread2({},{title:"撤销",svg:"unDoOperate"}),nativeOn:{click:this.unDoOperateClick.bind(this)}}):null,Rr.reDoOperate?Dr(ns,{attrs:_objectSpread2({},{title:"恢复",svg:"reDoOperate"}),nativeOn:{click:this.reDoOperateClick.bind(this)}}):null,Rr.formatPaint?Dr(ns,{attrs:_objectSpread2({},{title:"格式刷",svg:"formatPaint",name:"ho-format-paint"}),nativeOn:{click:this.formatPainterClick.bind(this)}}):null]):null,Wr?Dr(Ku,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},Vr),{},{family:Ur,textStyle:this.textStyle}))}):null,zr?Dr(Gu,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},Vr),{},{paragraph:Hr,align:this.textStyle.aligned,lineSpace:this.textStyle.lineSpace}))}):null,Rr.updateDocument?Dr(Cd):null,Rr.findModal?Dr("li",{class:"sub-bar-items",on:{click:function click(){return Tr.setModalStatus(["find","add",""])}}},[Dr(ns,{attrs:_objectSpread2({},{title:"查找替换",svg:"find"})})]):null,Dr(Zd,{attrs:_objectSpread2({},_objectSpread2({},Vr))})])}}]),ToolBarChild}(Kr.a);__decorate([Prop()],eh.prototype,"vueController",void 0),__decorate([Prop()],eh.prototype,"editJson",void 0),__decorate([Prop()],eh.prototype,"uploadImageParams",void 0),__decorate([Prop()],eh.prototype,"textStyle",void 0),__decorate([Ref()],eh.prototype,"toolMenus",void 0),__decorate([Ref()],eh.prototype,"toolMenusTest",void 0),__decorate([Ref()],eh.prototype,"toolPrint",void 0),eh=__decorate([an({name:"ToolBarChild",components:{HoPrintDialog:zu,PageSetting:Hd,ToolFamily:Ku,ToolTables:Ad,ToolControl:md,UpdateDocument:Cd,ToolParagraph:Gu,UploadFile:$d,Poper:ns,HistoryLogs:Zd}})],eh);var th=eh,ToolControlvue_type_template_id_0d21dc43_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"sub-bar"},[Tr._t("insertBefore"),Tr.insert.delimiter?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("delimiter")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M535.630769 606.523077c55.138462 55.138462 106.338462 110.276923 161.476923 165.415385 23.630769 23.630769-11.815385 55.138462-35.446154 35.446154-47.261538-47.261538-94.523077-98.461538-141.784615-145.723077-47.261538 51.2-98.461538 98.461538-145.723077 149.661538-23.630769 23.630769-59.076923-11.815385-35.446154-35.446154 55.138462-55.138462 110.276923-110.276923 165.415385-165.415385C508.061538 598.646154 527.753846 598.646154 535.630769 606.523077z"}}),Rr("path",{attrs:{d:"M500.184615 417.476923c-55.138462-55.138462-110.276923-110.276923-165.415385-165.415385C311.138462 228.430769 346.584615 192.984615 370.215385 216.615385c47.261538 51.2 98.461538 98.461538 145.723077 149.661538 47.261538-47.261538 94.523077-98.461538 141.784615-145.723077 23.630769-23.630769 59.076923 11.815385 35.446154 35.446154-55.138462 55.138462-106.338462 110.276923-161.476923 165.415385C527.753846 425.353846 508.061538 425.353846 500.184615 417.476923z"}}),Rr("path",{attrs:{d:"M1024 515.938462c0 11.815385-27.569231 23.630769-63.015385 23.630769l-894.030769 0c-35.446154 0-63.015385-11.815385-63.015385-23.630769l0 0c0-11.815385 27.569231-23.630769 63.015385-23.630769l894.030769 0C996.430769 492.307692 1024 504.123077 1024 515.938462L1024 515.938462z"}})]),Rr("span",[Tr._v("分割符")])]):Tr._e(),Tr.insert.uploadImage?Rr("li",{staticClass:"sub-bar-items"},[Rr("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":Tr.fileList,"show-file-list":!1,"auto-upload":!1,"on-change":Tr.uploadImage,accept:"image/*"}},[Rr("svg",{staticStyle:{transform:"translateY(3px)"},attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("g",{attrs:{transform:"translate(1 1)"}},[Rr("path",{attrs:{stroke:"none",d:"M1 0h12c.6 0 1 .4 1 1v11c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1zm0 1v11h12V1H1z"}}),Rr("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),Rr("path",{attrs:{stroke:"none",d:"M8.5 11.2l-4-4.1L1 10.7V9.2c1.7-1.6 2.7-2.5 3-2.8.4-.5.7-.4 1 0L8.5 10 11 7.3c.4-.5.6-.5 1-.1l2 2.8v1.5l-2.5-3.4-3 3.1z"}})])]),Rr("span",{attrs:{size:"small"}},[Tr._v("图片")])])],1):Tr._e(),Tr.insert.barcode?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("barcode")}}},[Rr("svg",{staticStyle:{transform:"translateY(5px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M65.7 158.7h134v703h-134zM703.3 158.7h134v703h-134zM263.4 158.7h57.4v703h-57.4zM901 158.7h57.4v703H901zM572.6 158.7h76.6v703h-76.6zM394.1 158.7H509v703H394.1z"}})]),Rr("span",[Tr._v("条形码")])]):Tr._e(),Tr.insert.qrcode?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("qrcode")}}},[Rr("svg",{staticStyle:{transform:"translateY(6px)"},attrs:{viewBox:"0 0 1041 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M948.906667 931.84h92.16V1024h-92.16zM948.906667 559.786667v184.32H853.333333v-184.32H576.853333V1024h92.16V651.946667h92.16v184.32h279.893334v-276.48z"}}),Rr("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),Rr("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),Rr("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),Rr("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),Rr("span",[Tr._v("二维码")])]):Tr._e(),Tr.insert.express?Rr("HoMedicalExpression",{on:{openExpress:Tr.openExpress}}):Tr._e(),Tr.insert.datetime?Rr("li",{staticClass:"sub-bar-items"},[Rr("HoDateTime",{attrs:{vueController:Tr.vueController},on:{setModal:Tr.createControl}})],1):Tr._e(),Tr.insert.select?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("select")}}},[Rr("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M890.432646 976.724088l649.322886-750.693969A136.987951 136.987951 0 0 0 1435.64469 0H136.998917a136.987951 136.987951 0 0 0-104.110842 226.030119l649.322886 749.32409a136.987951 136.987951 0 0 0 208.221685 1.369879z"}})]),Rr("span",[Tr._v("下拉框")])]):Tr._e(),Tr.insert.text?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("text")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M34.909091 474.763636c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818zM51.2 279.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 4.654545 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m921.6-316.509091c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m16.290909-300.218182c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 6.981818 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m-481.745455 165.236364H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727272 0h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m211.781818 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-9.309091-16.290909-16.290909-16.290909z m-318.836364 0H230.4c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727273-11.636364H109.381818V930.909091c0-9.309091-6.981818-18.618182-18.618182-18.618182H65.163636v-53.527273c0-9.309091-6.981818-18.618182-16.290909-18.618181-9.309091 0-16.290909 6.981818-16.290909 18.618181v53.527273H18.618182c-9.309091 0-18.618182 6.981818-18.618182 18.618182v74.472727c0 9.309091 6.981818 18.618182 18.618182 18.618182H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182v-16.290909h48.872727c9.309091-2.327273 18.618182-11.636364 18.618182-18.618182-2.327273-11.636364-20.945455-25.6-20.945455-25.6z m528.29091 11.636364h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m104.727272 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909zM442.181818 65.163636h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m-104.727273 0h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m209.454546 0H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909-2.327273 6.981818 6.981818 16.290909 13.963636 16.290909z m-316.509091 0h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H230.4c-9.309091 0-16.290909 6.981818-16.290909 18.618182 0 6.981818 6.981818 13.963636 16.290909 13.963636zM158.254545 32.581818H109.381818V18.618182c0-11.636364-9.309091-18.618182-18.618182-18.618182H18.618182C9.309091 0 0 6.981818 0 18.618182V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h16.290909v48.872727c2.327273 9.309091 11.636364 18.618182 18.618182 18.618182 9.309091 0 23.272727-18.618182 23.272727-18.618182V109.381818H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182V65.163636h48.872727c9.309091 0 16.290909-6.981818 16.290909-16.290909-2.327273-9.309091-9.309091-16.290909-18.618182-16.290909z m495.709091 32.581818h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m104.727273 0H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909zM1005.381818 0H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v16.290909h-48.872727c-9.309091 2.327273-18.618182 11.636364-18.618182 18.618182 0 9.309091 18.618182 23.272727 18.618182 23.272727h48.872727V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h25.6v53.527273c0 9.309091 6.981818 18.618182 16.290909 18.618181 9.309091 0 16.290909-6.981818 16.290909-18.618181V109.381818h16.290909c9.309091 0 18.618182-6.981818 18.618182-18.618182V18.618182c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 912.290909h-16.290909v-48.872727c-2.327273-9.309091-11.636364-18.618182-18.618182-18.618182-9.309091 0-23.272727 18.618182-23.272727 18.618182v48.872727H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v25.6h-48.872727c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h48.872727v16.290909c0 9.309091 6.981818 18.618182 18.618182 18.618182h74.472727c9.309091 0 18.618182-6.981818 18.618182-18.618182V930.909091c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 0"}}),Rr("path",{attrs:{d:"M781.963636 288.581818c0-11.636364 0-20.945455 2.327273-30.254545 0-9.309091 2.327273-16.290909 2.327273-25.6 0-11.636364-6.981818-20.945455-18.618182-23.272728-6.981818-2.327273-18.618182-2.327273-30.254545-2.327272H288.581818c-11.636364 0-20.945455 2.327273-30.254545 4.654545-18.618182 4.654545-20.945455 18.618182-20.945455 25.6 2.327273 20.945455 4.654545 41.890909 4.654546 62.836364 0 20.945455-2.327273 41.890909-4.654546 62.836363 0 4.654545 0 9.309091 9.309091 16.29091 4.654545 2.327273 9.309091 4.654545 13.963636 4.654545 4.654545 0 9.309091 0 13.963637-2.327273 6.981818-2.327273 11.636364-9.309091 13.963636-16.290909 4.654545-20.945455 9.309091-39.563636 13.963637-53.527273 4.654545-11.636364 11.636364-20.945455 18.618181-27.927272 6.981818-6.981818 16.290909-11.636364 27.927273-13.963637 11.636364-2.327273 27.927273-4.654545 48.872727-4.654545 27.927273 0 41.890909 4.654545 46.545455 6.981818 6.981818 4.654545 9.309091 18.618182 9.309091 27.927273v372.363636c0 18.618182 0 30.254545-2.327273 41.890909-2.327273 6.981818-4.654545 13.963636-9.309091 18.618182-4.654545 4.654545-11.636364 6.981818-18.618182 9.309091-9.309091 2.327273-23.272727 4.654545-39.563636 6.981818-6.981818 0-11.636364 4.654545-16.290909 11.636364-2.327273 4.654545-4.654545 9.309091-4.654546 16.290909 0 4.654545 2.327273 11.636364 4.654546 16.290909 4.654545 6.981818 9.309091 9.309091 18.618182 9.309091 18.618182 0 39.563636 0 62.836363-2.327273 44.218182-4.654545 83.781818-4.654545 123.345455 0 20.945455 2.327273 41.890909 2.327273 65.163636 2.327273 6.981818 0 13.963636-2.327273 18.618182-9.309091 2.327273-4.654545 4.654545-9.309091 4.654546-16.290909 0-4.654545-2.327273-11.636364-4.654546-16.290909-4.654545-11.636364-9.309091-16.290909-18.618182-16.290909-16.290909-2.327273-30.254545-4.654545-41.890909-6.981818-9.309091-2.327273-13.963636-4.654545-18.618182-9.309091-4.654545-4.654545-6.981818-9.309091-6.981818-16.290909-2.327273-9.309091-2.327273-23.272727-2.327273-41.89091v-372.363636c0-16.290909 2.327273-25.6 9.309091-27.927273 6.981818-2.327273 20.945455-6.981818 48.872728-6.981818 16.290909 0 32.581818 2.327273 44.218181 4.654546s20.945455 6.981818 27.927273 13.963636c6.981818 6.981818 13.963636 16.290909 18.618182 27.927273 4.654545 13.963636 9.309091 30.254545 11.636364 53.527272 2.327273 6.981818 6.981818 13.963636 13.963636 16.29091 4.654545 2.327273 9.309091 2.327273 13.963636 2.327272 4.654545 0 9.309091-2.327273 13.963637-4.654545 6.981818-4.654545 9.309091-11.636364 9.309091-16.290909 0-11.636364-2.327273-23.272727-2.327273-34.909091 4.654545-13.963636 4.654545-25.6 4.654545-37.236364z"}})]),Rr("span",[Tr._v("文本域")])]):Tr._e(),Tr.insert.radioBox?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("RadioBox")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M511.262 3.070c-282.949 0-507.681 227.919-507.681 509.095 0 281.143 227.919 509.092 509.063 509.092 281.175 0 509.095-227.948 509.095-509.092 0-281.175-227.527-509.095-510.477-509.095zM513.578 926.348c-230.265 0-416.953-186.688-416.953-416.951 0-230.292 186.688-416.98 416.953-416.98 230.293 0 416.951 186.689 416.951 416.98 0 230.265-186.658 416.951-416.951 416.951zM820.797 327.158c-17.682-18.585-46.313-18.585-63.99 0l-292.576 307.665-167.863-156.253c-17.683-18.553-46.311-18.553-63.995 0-17.653 18.587-17.653 48.719 0 67.303l195.65 182.058c16.923 17.817 43.956 18.539 61.716 2.196 8.935-1.589 17.508-5.991 24.41-13.234l306.649-322.463c17.653-18.583 17.653-48.685 0.002-67.27z"}})]),Rr("span",[Tr._v("单选框")])]):Tr._e(),Tr.insert.checkBox?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("CheckBox")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M877.714286 0H146.285714a146.285714 146.285714 0 0 0-146.285714 146.285714v731.428572a146.285714 146.285714 0 0 0 146.285714 146.285714h731.428572a146.285714 146.285714 0 0 0 146.285714-146.285714V146.285714a146.285714 146.285714 0 0 0-146.285714-146.285714z m73.142857 877.714286a73.142857 73.142857 0 0 1-73.142857 73.142857H146.285714a73.142857 73.142857 0 0 1-73.142857-73.142857V146.285714a73.142857 73.142857 0 0 1 73.142857-73.142857h731.428572a73.142857 73.142857 0 0 1 73.142857 73.142857z"}}),Rr("path",{attrs:{d:"M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"}})]),Rr("span",[Tr._v("复选框")])]):Tr._e(),Tr.insert.mathFormula?Rr("li",{staticClass:"sub-bar-items"},[Rr("HoFormula",{attrs:{vueController:Tr.vueController}})],1):Tr._e(),Tr.insert.sign?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("sign")}}},[Rr("span",[Tr._v("签名")])]):Tr._e(),Tr.insert.pageInfoes?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("pageInfoes")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M732.258937 608.38132H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237038h283.372625a32.237037 32.237037 0 0 0 0-64.474075zM793.929791 0h-439.446055a132.41095 132.41095 0 0 0-126.144928 127.793881l-36.689211 1.071819A127.1343 127.1343 0 0 0 70.533977 256.082448v640.041223a131.916264 131.916264 0 0 0 126.144928 127.793881h472.837359a132.41095 132.41095 0 0 0 126.144928-127.793881h31.659903a132.41095 132.41095 0 0 0 126.144928-127.79388V214.446377zM669.516264 959.525926H196.349114a65.958132 65.958132 0 0 1-62.742673-63.89694V256.164895a62.907568 62.907568 0 0 1 60.0219-62.742673l34.463124-1.071819v575.567149a131.916264 131.916264 0 0 0 126.144928 127.793881h378.022544a67.277295 67.277295 0 0 1-62.990016 63.814493z m220.547504-191.690821a66.37037 66.37037 0 0 1-62.742673 63.89694H353.98905a65.958132 65.958132 0 0 1-62.742673-63.89694V127.793881A66.37037 66.37037 0 0 1 353.98905 63.89694h376.703382c-0.577134 74.202899 0 25.558776 0 25.558777 0 66.700161 34.463124 127.216747 101.657971 127.216747h57.713365zM732.258937 448.350403H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237037h283.372625a32.237037 32.237037 0 0 0 0-64.474074z"}})]),Rr("span",[Tr._v("页码页数信息")])]):Tr._e(),Tr._t("hoInsertItem"),Tr.insert.specialChars?Rr("li",{staticClass:"sub-bar-items"},[Rr("HoSpecialChars",{attrs:{vueController:Tr.vueController}})],1):Tr._e()],2)},rh=[],HoSpecialCharsvue_type_template_id_18ad3397_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("svg",{staticStyle:{transform:"translateY(0px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M825.163595 883.651765H416.226184v-10.842353c62.162824-39.996235 99.629176-117.157647 99.629176-211.727059 0-32.768-4.999529-64.813176-12.047059-95.232H727.642654a18.432 18.432 0 0 0 18.130824-18.672941V477.605647a18.432 18.432 0 0 0-18.130824-18.612706h-254.192941c-16.263529-52.525176-30.358588-106.194824-30.358588-163.84 0-101.074824 77.101176-163.117176 198.053647-163.117176 48.790588 0 96.496941 9.517176 137.095529 24.395294 11.806118 4.457412 24.094118-4.638118 24.094118-17.648941V46.983529a18.853647 18.853647 0 0 0-11.866353-17.468235A448.752941 448.752941 0 0 0 630.904772 0c-210.823529 0-343.762824 103.424-343.762824 279.491765 0 61.138824 15.661176 120.892235 33.129412 179.2H198.776772A18.432 18.432 0 0 0 180.706184 477.304471V546.936471c0 10.24 8.192 18.612706 18.130823 18.612705H351.172066c7.710118 34.153412 13.372235 68.306824 13.372235 102.701177 0 105.050353-65.355294 193.536-165.165176 218.895059a18.552471 18.552471 0 0 0-13.854118 18.070588v89.509647c0 10.24 8.192 18.612706 18.130824 18.612706H825.223831a18.432 18.432 0 0 0 18.130823-18.672941V902.324706a18.432 18.432 0 0 0-18.130823-18.672941z"}})]),Rr("span",[Tr._v("特殊字符")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{staticClass:"special-characters",attrs:{disabled:""}},[Rr("section",[Rr("ul",[Rr("li",[Rr("header",[Tr._v("特殊字符")]),Rr("p",{staticClass:"chars-list special-chars-list"},Tr._l(Tr.specialChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("罗马字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.romanChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("数学字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.mathChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)])])])])],1)],1)},nh=[],ih=function(Tr){Object(Qr["a"])(HoSpecialChars,Tr);var Dr=Object(Zr["a"])(HoSpecialChars);function HoSpecialChars(){var Tr;return Object(Xr["a"])(this,HoSpecialChars),Tr=Dr.apply(this,arguments),Tr.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],Tr.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],Tr.usedChars=[],Tr}return Object(Yr["a"])(HoSpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(Tr){if(this.vueController.insertSpecialChars("",Tr),this.usedChars.includes(Tr))return!1;this.usedChars.unshift(Tr),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var Tr=this;this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),HoSpecialChars}(mixins(Nu));__decorate([Prop()],ih.prototype,"controlStatus",void 0),__decorate([Prop()],ih.prototype,"vueController",void 0),ih=__decorate([an({name:"HoSpecialChars"})],ih);var ah=ih,oh=ah,sh=(Rr("34b7"),normalizeComponent(oh,HoSpecialCharsvue_type_template_id_18ad3397_scoped_true_render,nh,!1,null,"18ad3397",null)),lh=sh.exports,HoDateTimevue_type_template_id_5e85d543_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("svg",{staticStyle:{transform:"translateY(0px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M3.323286 405.074141v577.095823c0 23.005753 18.822889 41.828641 41.828641 41.828642h933.696146c23.005753 0 41.828641-18.822889 41.828641-41.828642v-577.095823H3.323286z m295.734072 386.159229h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m283.110188 145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m249.973539 145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761m0-145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761M293.55968 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525786 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525786 42.525786M719.447753 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525785 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525785 42.525786","p-id":"2003"}}),Rr("path",{attrs:{d:"M978.848073 101.085884H787.767867v86.797219c0 37.730829-30.587891 68.320114-68.320114 68.320114s-68.320114-30.589285-68.320114-68.320114V101.085884H361.879794v86.797219c0 37.730829-30.589285 68.320114-68.320114 68.320114-37.732223 0-68.320114-30.589285-68.320114-68.320114V101.085884H45.151927c-23.005753 0-41.828641 18.822889-41.828641 41.828641v206.388094h1017.353428V142.914525c0-23.005753-18.822889-41.828641-41.828641-41.828641"}})]),Rr("span",[Tr._v("日期时间")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Tr._l(Tr.dateFormatValue,(function(Dr,Ur){return Rr("el-dropdown-item",{key:Dr+Ur,staticClass:"date-time-item",attrs:{index:Tr.dateFormatList[Ur]},nativeOn:{click:function(Rr){return Tr.selectedDate(Tr.dateFormatList[Ur],Dr)}}},[Tr._v(Tr._s(Dr))])})),Rr("el-dropdown-item",{staticClass:"date-time-item",nativeOn:{click:function(Dr){return Tr.selectedDate("more","")}}},[Tr._v("更多日期属性")])],2)],1)},ch=[],uh=function(Tr){Object(Qr["a"])(HoDateTime,Tr);var Dr=Object(Zr["a"])(HoDateTime);function HoDateTime(){var Tr;return Object(Xr["a"])(this,HoDateTime),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.dateFormatValue=[],Tr.dateFormat=Jn["d"],Tr}return Object(Yr["a"])(HoDateTime,[{key:"created",value:function created(){var Tr=this,Dr=[];this.dateFormatList.forEach((function(Rr,Ur){Ur<10&&Dr.push(Tr.dateFormat("",Rr))})),this.dateFormatValue=[].concat(Dr)}},{key:"selectedDate",value:function selectedDate(Tr,Dr){if("more"===Tr)this.$emit("setModal","date");else{var Rr={id:this.vueController.generateID("DT"),name:"",text:Dr,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:Tr,readType:0};this.vueController.insertDateTime("add",JSON.stringify(Rr))}}}]),HoDateTime}(mixins(Nu));__decorate([Prop()],uh.prototype,"vueController",void 0),uh=__decorate([an({name:"HoDateTime"})],uh);var dh=uh,ph=dh,fh=normalizeComponent(ph,HoDateTimevue_type_template_id_5e85d543_render,ch,!1,null,null,null),_h=fh.exports,HoFormulavue_type_template_id_88e6be42_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("p",[Rr("span",{on:{click:Tr.insertFormula}},[Tr._v("插入公式")]),Rr("el-dialog",{staticClass:"ho-formula-iframe",attrs:{title:"公式编辑",width:"868px",visible:Tr.createFormula,"close-on-click-modal":!1,top:"150px","append-to-body":"",center:""},on:{"update:visible":function(Dr){Tr.createFormula=Dr},"before-close":Tr.closeFormula}},[Rr("section",[Rr("div",{staticClass:"kf-editor",attrs:{id:"HoKfEditorContainer"}}),Tr.kityformulaError?Rr("p",[Tr._v(Tr._s(Tr.kityformulaError))]):Tr._e()]),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:Tr.sureInsertKityFormula}},[Tr._v("确认插入")]),Rr("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:Tr.closeFormula}},[Tr._v("取消")])],1)])],1)},gh=[],mh=function(Tr){Object(Qr["a"])(HoFormula,Tr);var Dr=Object(Zr["a"])(HoFormula);function HoFormula(){var Tr;return Object(Xr["a"])(this,HoFormula),Tr=Dr.apply(this,arguments),Tr.hoKFEditor=null,Tr.kityformulaError="",Tr.createFormula=!1,Tr.defaultLateX="",Tr}return Object(Yr["a"])(HoFormula,[{key:"initFormula",value:function initFormula(){var Tr=this,Dr=Rr("fb5e");if(this.hoKFEditor)this.hoKFEditor.execCommand("render",this.defaultLateX||"\\placeholder"),this.hoKFEditor.execCommand("focus");else{var Ur=Dr.create(document.querySelector("#HoKfEditorContainer"),{render:{fontsize:50},resource:{path:"111/fonts/"},lang:"zh_cn"});Ur.ready((function(Dr){Dr.execCommand("render",Tr.defaultLateX||"\\placeholder"),Dr.execCommand("focus"),Tr.hoKFEditor=Dr}))}}},{key:"insertFormula",value:function insertFormula(){var Tr=this;this.createFormula=!0,this.$nextTick((function(){return Tr.initFormula()}))}},{key:"sureInsertKityFormula",value:function sureInsertKityFormula(){var Tr=this,Dr=function createImage(Dr){var Rr=Tr.hoKFEditor.execCommand("get.source").replace(/\s/g,"");if(Dr.width&&Dr.height)Tr.vueController.insertImage(Dr.img,Dr.width/2,Dr.height/2,!0,Rr),Tr.createFormula=!1;else{var Ur=new Image;Ur.src=Dr.img,Ur.onload=function(){Tr.vueController.insertImage(Dr.img,Ur.width/2,Ur.height/2,!0,Rr),Tr.closeFormula()}}},Rr=function getUrl(Tr){Dr(Tr)};this.hoKFEditor.execCommand("get.image.data",Rr)}},{key:"closeFormula",value:function closeFormula(){this.createFormula=!1,this.hoKFEditor=null,this.kityformulaError="",this.defaultLateX=""}}]),HoFormula}(Kr.a);__decorate([Prop()],mh.prototype,"vueController",void 0),mh=__decorate([an({name:"HoFormula"})],mh);var vh=mh,yh=vh,bh=(Rr("7d45"),normalizeComponent(yh,HoFormulavue_type_template_id_88e6be42_render,gh,!1,null,null,null)),wh=bh.exports,xh=wh,Ch=function(Tr){Object(Qr["a"])(ToolControl,Tr);var Dr=Object(Zr["a"])(ToolControl);function ToolControl(){var Tr;return Object(Xr["a"])(this,ToolControl),Tr=Dr.apply(this,arguments),Tr.fileList=[],Tr}return Object(Yr["a"])(ToolControl,[{key:"uploadImage",value:function uploadImage(Tr){var Dr=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var Rr=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",Ur=new FormData;Ur.append(Rr,Tr.raw),rd({url:this.uploadImageParams.uploadUrl,method:"POST",data:Ur}).then((function(Tr){var Rr,Ur="";if(null!==(Rr=Dr.uploadImageParams)&&void 0!==Rr&&Rr.callbackParamName||"string"!==typeof Tr){var Hr,Wr=null===(Hr=Dr.uploadImageParams)||void 0===Hr?void 0:Hr.callbackParamName;Ur=Tr[Wr]}else Ur=Tr;if(Ur){var zr=new Image;zr.src=Ur,zr.onload=function(){Dr.loadImage(zr.width,zr.height,Ur)}}}),(function(){Dr.insertBase64Image(Tr)}))}else this.insertBase64Image(Tr)}},{key:"insertBase64Image",value:function insertBase64Image(Tr){var Dr=this,Rr=new FileReader;Rr.onload=function(Tr){Dr.fileList=[];var Rr=new Image,Ur=Tr.target.result;Rr.src=Ur,Rr.onload=function(){Dr.loadImage(Rr.width,Rr.height,Ur)}},Rr.readAsDataURL(Tr.raw)}},{key:"loadImage",value:function loadImage(Tr,Dr,Rr){var Ur,Hr=0,Wr=0,zr=this.vueController.pageProperty(),Vr=zr.widthPixes-zr.leftMarginPixes-zr.rightMarginPixes,Kr=this.vueController.getCaretPosition();if(-1!==Kr.indexOf("header")?Ur=zr.topMarginPixes:-1!==Kr.indexOf("footer")?Ur=zr.bottomMarginPixes:-1!==Kr.indexOf("main")&&(Ur=zr.heightPixes-zr.topMarginPixes-zr.bottomMarginPixes),Tr<=Vr&&Dr<=Ur)Hr=Tr,Wr=Dr;else if(Tr>Vr&&Dr<=Ur)Hr=Vr,Wr=Number((Dr*Vr/Tr).toFixed(0));else if(Tr<=Vr&&Dr>Ur)Hr=Number((Dr*Ur/Dr).toFixed(0)),Wr=Ur;else if(Tr>Vr&&Dr>Ur){var $r=.8*Vr/Tr,Gr=.8*Ur/Dr,Jr=Math.min($r,Gr);Hr=Number((Tr*Jr).toFixed(0)),Wr=Number((Dr*Jr).toFixed(0))}this.vueController.insertImage(Rr,Hr,Wr)}},{key:"createControl",value:function createControl(Tr){this.$emit("setModalStatus",[Tr,"add",""])}},{key:"openExpress",value:function openExpress(Tr){this.$emit("setModalStatus",["express","add",Tr])}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModalStatus",["","add",""])}}]),ToolControl}(mixins(xu));__decorate([Prop()],Ch.prototype,"vueController",void 0),__decorate([Prop()],Ch.prototype,"insert",void 0),__decorate([Prop()],Ch.prototype,"uploadImageParams",void 0),Ch=__decorate([an({name:"ToolControl",components:{HoMedicalExpression:ju,HoSpecialChars:lh,UploadImage:ld,HoDateTime:_h,HoFormula:xh,Poper:ns}})],Ch);var Ph=Ch,Eh=Ph,Sh=normalizeComponent(Eh,ToolControlvue_type_template_id_0d21dc43_render,rh,!1,null,null,null),Th=Sh.exports,ToolTablevue_type_template_id_3c999b04_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"sub-bar table-bar"},[Rr("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:Tr.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},[Rr("el-form",{attrs:{model:Tr.form}},[Rr("el-form-item",{attrs:{label:"行数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.rows,callback:function(Dr){Tr.$set(Tr.form,"rows",Dr)},expression:"form.rows"}})],1),Rr("el-form-item",{attrs:{label:"列数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.columns,callback:function(Dr){Tr.$set(Tr.form,"columns",Dr)},expression:"form.columns"}})],1)],1),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")]),Rr("el-button",{on:{click:function(Dr){Tr.dialogFormVisible=!1}}},[Tr._v("取 消")])],1)],1),Tr._t("insertBefore"),Tr.table.insertTable?Rr("li",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("span",[Tr._v("插入表格")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{staticClass:"ho-insert-table-item",attrs:{disabled:""}},[Rr("div",{staticClass:"columns",on:{mouseleave:Tr.clearData}},[Rr("p",{staticClass:"table-title"},[Tr._v(Tr._s(Tr.rows?Tr.rows+" x "+Tr.columns:"插入")+" 表格")]),Tr._l(10,(function(Dr){return Rr("div",{key:"row_"+Dr,staticClass:"rows",on:{mousemove:Tr.mouse,click:Tr.createdTables}},Tr._l(10,(function(Ur){return Rr("span",{key:"column_index"+Ur,class:Dr<=Tr.rows&&Ur<=Tr.columns?"selected":"",attrs:{"data-column":Ur,"data-row":Dr},on:{touchstart:Tr.touch,touchmove:Tr.touch,touchend:Tr.touchend}})})),0)}))],2),Rr("p",{staticClass:"table-bottom-title",on:{click:function(Dr){Tr.dialogFormVisible=!0}}},[Tr._v("自定义行列数")])])],1)],1)],1):Tr._e(),Rr("HoTableFeatures",{attrs:{vueController:Tr.vueController,dropdownClassName:Tr.dropdownClassName,table:Tr.table}}),Tr._t("hoTableItem")],2)},Dh=[],HoTableFeaturesvue_type_template_id_384eb379_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{ref:"hoTableFeatures",staticClass:"ho-table-features"},[Rr("el-dialog",{attrs:{width:"520px",top:"20%",center:"","append-to-body":"","close-on-click-modal":!1,title:Tr.dialogFormTitle,visible:Tr.dialogFormVisible},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},["a1: a2"===Tr.formula||"(a1 + a2) * 2"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[Tr._v(" "+Tr._s(Tr.dialogFormTitle)+" ")]),Rr("div",{staticStyle:{height:"36px","line-height":"36px"}},[Tr._v(" 示例: "+Tr._s("表格行列求和公式"===Tr.dialogFormTitle?"a1: a2":"(a1 + a2) * 2")+" ")]),Rr("el-checkbox",{model:{value:Tr.isHideZero,callback:function(Dr){Tr.isHideZero=Dr},expression:"isHideZero"}},[Tr._v("结果为 0 不显示")]),Rr("p",{staticStyle:{height:"10px"}}),Rr("el-input",{attrs:{autocomplete:"off"},model:{value:Tr.simpleFormula,callback:function(Dr){Tr.simpleFormula=Dr},expression:"simpleFormula"}})],1):Tr._e(),"bmi"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("身高")]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.height,callback:function(Dr){Tr.height=Dr},expression:"height"}})],1),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("体重")]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.weight,callback:function(Dr){Tr.weight=Dr},expression:"weight"}})],1)]):Tr._e(),"labor"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("el-checkbox",{model:{value:Tr.isHideZero,callback:function(Dr){Tr.isHideZero=Dr},expression:"isHideZero"}},[Tr._v("结果为 0 不显示")]),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("产程类型")]),Rr("el-select",{attrs:{size:"mini"},on:{change:Tr.laborTypeChange},model:{value:Tr.laborType,callback:function(Dr){Tr.laborType=Dr},expression:"laborType"}},[Rr("el-option",{attrs:{value:1,label:"第一产程"}}),Rr("el-option",{attrs:{value:2,label:"第二产程"}}),Rr("el-option",{attrs:{value:3,label:"第三产程"}}),Rr("el-option",{attrs:{value:0,label:"总产程"}})],1)],1),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v(Tr._s(["第一产程","宫缩开始","宫口全开","胎儿娩出"][Tr.laborType]))]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.labor1,callback:function(Dr){Tr.labor1=Dr},expression:"labor1"}})],1),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v(Tr._s(["第二产程","宫口全开","胎儿娩出","胎盘娩出"][Tr.laborType]))]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.labor2,callback:function(Dr){Tr.labor2=Dr},expression:"labor2"}})],1),0===Tr.laborType?Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v(Tr._s(["第三产程","宫缩开始","宫口全开","胎儿娩出"][Tr.laborType]))]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.labor3,callback:function(Dr){Tr.labor3=Dr},expression:"labor3"}})],1):Tr._e()],1):Tr._e(),"expectedDate"===Tr.formula||"pregnantDays"===Tr.formula||"pregnantWeeks"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("末次月经")]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.expectedDate,callback:function(Dr){Tr.expectedDate=Dr},expression:"expectedDate"}})],1)]):Tr._e(),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{type:"primary",size:"small"},on:{click:Tr.sure}},[Tr._v("确 定")]),Rr("el-button",{attrs:{size:"small"},on:{click:function(Dr){Tr.dialogFormVisible=!1}}},[Tr._v("取 消")])],1)]),Tr.table.tableFormula?Rr("div",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("span",[Tr._v("表格计算公式")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Tr.table.isTableCode?Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:Tr.setCellCode,expression:"setCellCode",arg:"30",modifiers:{click:!0}}]},[Rr("span",[Tr._v(Tr._s(Tr.tableCellCode?"隐藏":"显示")+"单元格编号")])])]):Tr._e(),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"sumFormula"},on:{click:function(Dr){return Tr.openFormula(["表格行列求和公式","a1: a2"])}}},[Tr._v(" 表格行列求和 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"arithmeticFormula"},on:{click:function(Dr){Tr.openFormula(["表格行列混合运算公式","(a1 + a2) * 2"])}}},[Tr._v(" 表格行列混合运算 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"bmiFormula"},on:{click:function(Dr){return Tr.openFormula(["BMI指数计算公式","bmi"])}}},[Tr._v(" BMI指数 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"laborFormula"},on:{click:function(Dr){return Tr.openFormula(["产程计算公式","labor"])}}},[Tr._v(" 产程 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"expectedDateFormula"},on:{click:function(Dr){return Tr.openFormula(["预产期计算公式","expectedDate"])}}},[Tr._v(" 预产期 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"expectedDateFormula"},on:{click:function(Dr){return Tr.openFormula(["孕周计算公式","pregnantWeeks"])}}},[Tr._v(" 孕周 ")])])],1)],1)],1):Tr._e(),Tr.table.insertRowAbove?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("上方插入 ")]),Rr("el-input-number",{staticClass:"insert-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.topRows,callback:function(Dr){Tr.topRows=Dr},expression:"topRows"}}),Rr("span",[Tr._v(" 行")])],1):Tr._e(),Tr.table.insertRowBelow?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("下方插入 ")]),Rr("el-input-number",{staticClass:"insert-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.bottomRows,callback:function(Dr){Tr.bottomRows=Dr},expression:"bottomRows"}}),Rr("span",[Tr._v(" 行")])],1):Tr._e(),Tr.table.insertColLeft?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("左侧插入 ")]),Rr("el-input-number",{staticClass:"insert-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.leftRows,callback:function(Dr){Tr.leftRows=Dr},expression:"leftRows"}}),Rr("span",[Tr._v(" 列")])],1):Tr._e(),Tr.table.insertColRight?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("右侧插入 ")]),Rr("el-input-number",{staticClass:"insert-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:Tr.rightRows,callback:function(Dr){Tr.rightRows=Dr},expression:"rightRows"}}),Rr("span",[Tr._v(" 列")])],1):Tr._e(),Tr.table.deleteRows?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("删除行")])]):Tr._e(),Tr.table.deleteCols?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("删除列")])]):Tr._e(),Tr.table.mergerCells?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("合并单元格")])]):Tr._e(),Tr.table.unMergerCells?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("取消合并单元格")])]):Tr._e()],1)},kh=[],Oh=function(Tr){Object(Qr["a"])(HoTableFeatures,Tr);var Dr=Object(Zr["a"])(HoTableFeatures);function HoTableFeatures(){var Tr;return Object(Xr["a"])(this,HoTableFeatures),Tr=Dr.apply(this,arguments),Tr.tableFormulaValue=[],Tr.tableCellCode=!1,Tr.dialogFormVisible=!1,Tr.dialogFormTitle="",Tr.formula="",Tr.simpleFormula="",Tr.isCellSplitModal=!1,Tr.row=1,Tr.column=1,Tr.topRows=1,Tr.bottomRows=1,Tr.leftRows=1,Tr.rightRows=1,Tr.height="",Tr.weight="",Tr.laborType=1,Tr.labor1="",Tr.labor2="",Tr.labor3="",Tr.expectedDate="",Tr.isHideZero=!0,Tr.isOnceClick=!1,Tr}return Object(Yr["a"])(HoTableFeatures,[{key:"disabledName",get:function get(){return this.isOnceClick?"sub-bar-items sub-bar-items-disabled":"sub-bar-items"}},{key:"setCellCode",value:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.init(),this.vueController.showCellAdress(this.tableCellCode)}},{key:"tableInsertRowAbove",value:function tableInsertRowAbove(Tr){var Dr=document.querySelector(".insert-top");Dr.contains(Tr.target)||this.vueController.insertTableRowAbove(this.topRows)}},{key:"tableInsertRowBelow",value:function tableInsertRowBelow(Tr){var Dr=document.querySelector(".insert-bottom");Dr.contains(Tr.target)||this.vueController.insertTableRowBelow(this.bottomRows)}},{key:"tableInsertColLeft",value:function tableInsertColLeft(Tr){var Dr=document.querySelector(".insert-left");Dr.contains(Tr.target)||this.vueController.insertTableColLeft(this.leftRows)}},{key:"tableInsertColRight",value:function tableInsertColRight(Tr){var Dr=document.querySelector(".insert-right");Dr.contains(Tr.target)||this.vueController.insertTableColRight(this.rightRows)}},{key:"tableDeleteRows",value:function tableDeleteRows(){this.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){this.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){this.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){this.vueController.tableUnMergerCells()}},{key:"init",value:function init(){this.topRows=1,this.bottomRows=1,this.leftRows=1,this.rightRows=1,this.formula="",this.height="",this.weight="",this.laborType=1,this.expectedDate=""}},{key:"laborTypeChange",value:function laborTypeChange(){this.labor1="",this.labor2="",this.labor3=""}},{key:"openFormula",value:function openFormula(Tr){this.dialogFormVisible=!0,this.dialogFormTitle=Tr[0],this.formula=Tr[1]}},{key:"sure",value:function sure(){this.dialogFormVisible=!1,this.$emit("closeMenu"),"bmi"===this.formula?this.vueController.insertTableFormula("".concat(this.weight,",").concat(this.height).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftBMI):"a1: a2"===this.formula?this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Qa["a"].ftSum):"(a1 + a2) * 2"===this.formula?this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Qa["a"].ftFormular):"labor"===this.formula?0===this.laborType?this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2,",").concat(this.labor3).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftLaborProcess):this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftLaborProcess):"expectedDate"===this.formula?this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftExpectedBirthDate):"pregnantWeeks"===this.formula?this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftPregnantWeeks):this.formula}},{key:"beforeDestroy",value:function beforeDestroy(){this.init()}}]),HoTableFeatures}(mixins(Nu));__decorate([Prop()],Oh.prototype,"vueController",void 0),__decorate([Prop()],Oh.prototype,"className",void 0),__decorate([Prop()],Oh.prototype,"table",void 0),__decorate([Ref()],Oh.prototype,"hoTableFeatures",void 0),Oh=__decorate([an({name:"HoTableFeatures"})],Oh);var Ih=Oh,Mh=Ih,Nh=(Rr("7c64"),normalizeComponent(Mh,HoTableFeaturesvue_type_template_id_384eb379_render,kh,!1,null,null,null)),Lh=Nh.exports,Ah=function(Tr){Object(Qr["a"])(ToolTable,Tr);var Dr=Object(Zr["a"])(ToolTable);function ToolTable(){var Tr;return Object(Xr["a"])(this,ToolTable),Tr=Dr.apply(this,arguments),Tr.rows=0,Tr.columns=0,Tr.dialogFormVisible=!1,Tr.form={rows:1,columns:1},Tr.formLabelWidth="72px",Tr}return Object(Yr["a"])(ToolTable,[{key:"createdTables",value:function createdTables(){this.vueController.insertTable(this.rows,this.columns)}},{key:"clearData",value:function clearData(){this.rows=0,this.columns=0}},{key:"sure",value:function sure(){this.vueController.insertTable(this.form.rows,this.form.columns),this.dialogFormVisible=!1}},{key:"mouse",value:function mouse(Tr){var Dr=Tr.target;if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touch",value:function touch(Tr){var Dr=document.elementFromPoint(Tr.changedTouches[0].pageX,Tr.changedTouches[0].pageY);if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touchend",value:function touchend(Tr){this.touch(Tr),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTable}(mixins(Nu));__decorate([Prop()],Ah.prototype,"vueController",void 0),__decorate([Prop()],Ah.prototype,"table",void 0),Ah=__decorate([an({name:"ToolTable",components:{HoTableFeatures:Lh}})],Ah);var Rh=Ah,Fh=Rh,jh=(Rr("b555"),normalizeComponent(Fh,ToolTablevue_type_template_id_3c999b04_render,Dh,!1,null,null,null)),Bh=jh.exports,Uh=function(Tr){Object(Qr["a"])(ToolBar,Tr);var Dr=Object(Zr["a"])(ToolBar);function ToolBar(){var Tr;return Object(Xr["a"])(this,ToolBar),Tr=Dr.apply(this,arguments),Tr.printModal=!1,Tr.ctrlS=!1,Tr.toolMenuOpenPathTest=[],Tr.printStatus="",Tr.isPrinted=!1,Tr.reviewLevel={limit:1,color:["#f19191","#8198f7","#7fd27f"],text:["一级质控","二级质控","三级质控"]},Tr.userInfoes=null,Tr.defaultToolBarParams={"ho-browse":5,"ho-edit":1,"ho-insert":1,"ho-table":1,"ho-review":4},Tr.tabKey="",Tr.defaultReviewJson={isReview:!0,clearSelectSign:!0,clearAllSign:!0,insertComment:!0,editComment:!0,deleteComment:!0,deleteAllComment:!0,qualityControl:!0,cancelDelete:!0,printStatus:!0},Tr.defaultBrowseJson={isBrowse:!0,saveAsFile:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0},Tr.defaultEditJson={isFooter:!0,isEdit:!0,isInsertElement:!0,isInsertTable:!0,editFile:!0,createNew:!0,openFile:!0,saveFile:!0,saveAsFile:!0,pageSetting:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0,unDoOperate:!0,reDoOperate:!0,formatPaint:!0,clearFormat:!0,family:!0,size:!0,enlargeSize:!0,decreaseSize:!0,superScript:!0,subScript:!0,bold:!0,italic:!0,underline:!0,strikeout:!0,fontColor:!0,backColor:!0,alignLeft:!0,alignCenter:!0,alignRight:!0,alignBoth:!0,addIndent:!0,decreaseIndent:!0,setHeight:!0,express:!0,specialChars:!0,datetime:!0,watermark:!0,select:!0,text:!0,uploadImage:!0,barcode:!0,qrcode:!0,radioBox:!0,checkBox:!0,pageInfoes:!0,delimiter:!0,sign:!0,mathFormula:!0,insertTable:!0,isTableCode:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,tableFormula:!0,findModal:!0,updateDocument:!1,test:!1},Tr}return Object(Yr["a"])(ToolBar,[{key:"isPrintClass",get:function get(){return this.isPrinted?"print-selected":""}},{key:"printedClass",get:function get(){return"print"===this.printStatus?"print print-selected":"print"}},{key:"printSelectedClass",get:function get(){return"selected"===this.printStatus?"print print-selected":"print"}},{key:"printCaretClass",get:function get(){return"caret"===this.printStatus?"print print-selected":"print"}},{key:"printContinueClass",get:function get(){return"continue"===this.printStatus?"print print-selected":"print"}},{key:"tabStatusChange",value:function tabStatusChange(){this.tabStatus&&(this.tabKey=this.tabStatus)}},{key:"editJsonChange",value:function editJsonChange(Tr){Tr&&null!==Tr&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),Tr))}},{key:"reviewJsonChange",value:function reviewJsonChange(Tr){Tr&&null!==Tr&&(this.defaultReviewJson=_objectSpread2(_objectSpread2({},this.defaultReviewJson),Tr))}},{key:"browseJsonChange",value:function browseJsonChange(Tr){Tr&&null!==Tr&&(this.defaultBrowseJson=_objectSpread2(_objectSpread2({},this.defaultBrowseJson),Tr))}},{key:"toolbarParamsChange",value:function toolbarParamsChange(Tr){this.toolbarParams&&(this.defaultToolBarParams=_objectSpread2(_objectSpread2({},this.defaultToolBarParams),this.toolbarParams)),this.tabKey&&this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]),this.emitToolBarStatus()}},{key:"vueControllerChange",value:function vueControllerChange(){"[object Function]"===Object.prototype.toString.call(this.vueController.setEditorStatus)&&(this.toolbarParams&&(this.defaultToolBarParams=_objectSpread2(_objectSpread2({},this.defaultToolBarParams),this.toolbarParams)),this.tabKey&&this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]),this.userInfoes=this.vueController.getUserInfoes(),this.emitToolBarStatus())}},{key:"mounted",value:function mounted(){var Tr=this;this.tabStatus&&(this.tabKey=this.tabStatus),"[object Function]"===Object.prototype.toString.call(this.vueController.setEditorStatus)&&this.tabKey&&this.$nextTick((function(){return Tr.vueController.setEditorStatus(Tr.defaultToolBarParams[Tr.tabKey])})),this.editJson&&null!==this.editJson&&this.editJson&&null!==this.editJson&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),this.editJson)),this.reviewJson&&null!==this.reviewJson&&(this.defaultReviewJson=_objectSpread2(_objectSpread2({},this.defaultReviewJson),this.reviewJson)),this.browseJson&&null!==this.browseJson&&(this.defaultBrowseJson=_objectSpread2(_objectSpread2({},this.defaultBrowseJson),this.browseJson))}},{key:"closeToolMenusTest",value:function closeToolMenusTest(Tr){var Dr=this;this.toolMenuOpenPathTest.length>0&&this.toolMenuOpenPathTest.forEach((function(Tr){Dr.controlMenus.closeMenu(Tr)}))}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(Tr,Dr){this.toolMenuOpenPathTest=Dr}},{key:"setLogin",value:function setLogin(Tr,Dr){var Rr=["李医生","张医生","王医生"],Ur=this.vueController.generateID("UI");this.vueController.setUserLoginInfo(Ur,Rr[Tr-1],Tr,""),this.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"})}},{key:"setModalStatus",value:function setModalStatus(Tr){this.$emit("setModalStatus",Tr)}},{key:"updateTabKey",value:function updateTabKey(Tr){var Dr=this;this.$nextTick((function(){return Dr.vueController.setEditorStatus(Dr.defaultToolBarParams[Tr])}))}},{key:"mainBarClick",value:function mainBarClick(Tr,Dr){var Rr=this.defaultToolBarParams[Tr],Ur=this.defaultToolBarParams[Dr];this.emitToolBarStatus(),Rr!==Ur&&this.vueController.setEditorStatus(Ur),this.printStatus="",this.isPrinted=!1}},{key:"emitToolBarStatus",value:function emitToolBarStatus(){this.$emit("switchDocStatus",{incomingParams:_objectSpread2({},this.toolbarParams),defaultParams:{"ho-browse":5,"ho-edit":1,"ho-insert":1,"ho-table":1,"ho-review":4},mergeParams:_objectSpread2({},this.defaultToolBarParams)})}},{key:"openExpress",value:function openExpress(Tr){this.$emit("setModalStatus",["express","add",Tr])}},{key:"reviewPrintStatus",value:function reviewPrintStatus(){this.isPrinted=!this.isPrinted,this.isPrinted?this.vueController.setEditorStatus(5):this.vueController.setEditorStatus(4)}},{key:"outPrinted",value:function outPrinted(){this.printStatus="",this.isPrinted=!1,this.vueController.setEditorStatus(5)}},{key:"closedHoPrintModal",value:function closedHoPrintModal(Tr){"sure"===Tr&&(this.isPrinted=!1),this.printModal=!1}},{key:"printed",value:function printed(){this.isPrinted?(this.vueController.printPromisePDF(5),this.isPrinted=!1):this.printModal=!0}},{key:"printSelected",value:function printSelected(){this.printStatus="selected",this.isPrinted=!0,this.vueController.setEditorStatus(2,1)}},{key:"printCaret",value:function printCaret(){this.printStatus="caret",this.isPrinted=!0,this.vueController.setEditorStatus(2,0)}},{key:"printContinue",value:function printContinue(){this.printStatus="continue",this.isPrinted=!0,this.vueController.setEditorStatus(2,3)}},{key:"createControlComment",value:function createControlComment(){if(this.vueController.getDomRange().isEmpty)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"请选择需要添加批注的内容",duration:3e3,offset:120});this.$emit("setModalStatus",["comment","add",""])}},{key:"editComment",value:function editComment(){var Tr=this.vueController.getOnSelectedComment();if(!Tr)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"点击右侧批注区域内已添加的批注进行编辑操作",duration:3e3,offset:120});this.$emit("setModalStatus",["comment","update",""])}},{key:"deleteComment",value:function deleteComment(){var Tr=this,Dr=this.vueController.getOnSelectedComment();if(!Dr)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"点击选中右侧批注区域内已添加的批注后,进行删除操作",duration:3e3,offset:120});this.$elConfirm("确定要删除选中的批注吗","删除确认",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then((function(){Tr.vueController.deleteComment(1)})).catch((function(){}))}},{key:"deleteAllComment",value:function deleteAllComment(){var Tr=this;this.$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)","删除确认",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then((function(){Tr.vueController.deleteComment(0)})).catch((function(){}))}},{key:"cancelDelete",value:function cancelDelete(){this.vueController.cancelDel()}},{key:"saveAsFile",value:function saveAsFile(Tr){var Dr=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档",Rr=this.vueController.saveAsFile(Tr,!0);"html"!==Tr&&this.downloadFile(Rr,Dr,Tr)}},{key:"downloadFile",value:function downloadFile(Tr,Dr,Rr){var Ur=window.URL.createObjectURL(new Blob([Tr],{type:"text/".concat(Rr)})),Hr=document.createElement("a");Hr.style.display="none",Hr.href=Ur,Hr.setAttribute("download",Dr),document.body.appendChild(Hr),Hr.click(),this.$nextTick((function(){return Hr.remove()}))}}]),ToolBar}(Kr.a);__decorate([Prop()],Uh.prototype,"vueController",void 0),__decorate([Prop({default:"ho-edit"})],Uh.prototype,"tabStatus",void 0),__decorate([Prop()],Uh.prototype,"editJson",void 0),__decorate([Prop()],Uh.prototype,"browseJson",void 0),__decorate([Prop()],Uh.prototype,"reviewJson",void 0),__decorate([Prop()],Uh.prototype,"toolbarParams",void 0),__decorate([Prop()],Uh.prototype,"uploadImageParams",void 0),__decorate([Ref()],Uh.prototype,"controlMenus",void 0),__decorate([Prop()],Uh.prototype,"textStyle",void 0),__decorate([Watch("tabStatus")],Uh.prototype,"tabStatusChange",null),__decorate([Watch("editJson",{deep:!0})],Uh.prototype,"editJsonChange",null),__decorate([Watch("reviewJson",{deep:!0})],Uh.prototype,"reviewJsonChange",null),__decorate([Watch("browseJson",{deep:!0})],Uh.prototype,"browseJsonChange",null),__decorate([Watch("toolbarParams",{deep:!0})],Uh.prototype,"toolbarParamsChange",null),__decorate([Watch("vueController",{deep:!0})],Uh.prototype,"vueControllerChange",null),Uh=__decorate([an({name:"ToolBar",components:{HoMedicalExpression:ju,HoPrintDialog:zu,ToolBarChild:th,ToolControl:Th,ToolTable:Bh,Tabs:Ps}})],Uh);var Hh=Uh,Wh=Hh,qh=(Rr("e530"),normalizeComponent(Wh,ToolBarvue_type_template_id_1ad97ddc_render,Iu,!1,null,null,null)),zh=qh.exports,TabPanevue_type_template_id_71cdc485_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{directives:[{name:"show",rawName:"v-show",value:Tr.show,expression:"show"}],class:Tr.className},[Tr._t("default")],2)},Vh=[],Kh=function(Tr){Object(Qr["a"])(TabPane,Tr);var Dr=Object(Zr["a"])(TabPane);function TabPane(){var Tr;return Object(Xr["a"])(this,TabPane),Tr=Dr.apply(this,arguments),Tr.show=!0,Tr}return Object(Yr["a"])(TabPane,[{key:"className",get:function get(){return this.notHover?"sub-bar":"sub-bar item-hover"}},{key:"mounted",value:function mounted(){this.updateNav()}},{key:"isShowChange",value:function isShowChange(){this.updateNav()}},{key:"labelChange",value:function labelChange(){this.updateNav()}},{key:"updateNav",value:function updateNav(){this.$parent.updateNav?this.$parent.updateNav():this.$parent.$parent.updateNav()}}]),TabPane}(Kr.a);__decorate([Prop()],Kh.prototype,"name",void 0),__decorate([Prop()],Kh.prototype,"label",void 0),__decorate([Prop()],Kh.prototype,"isShow",void 0),__decorate([Prop()],Kh.prototype,"notHover",void 0),__decorate([Prop()],Kh.prototype,"customProperty",void 0),__decorate([Watch("isShow")],Kh.prototype,"isShowChange",null),__decorate([Watch("label")],Kh.prototype,"labelChange",null),Kh=__decorate([an({name:"TabPane"})],Kh);var $h=Kh,Gh=$h,Jh=normalizeComponent(Gh,TabPanevue_type_template_id_71cdc485_render,Vh,!1,null,null,null),Xh=Jh.exports,Yh=(Rr("bd01"),function(Tr){Object(Qr["a"])(HoRightMenu,Tr);var Dr=Object(Zr["a"])(HoRightMenu);function HoRightMenu(){var Tr;return Object(Xr["a"])(this,HoRightMenu),Tr=Dr.apply(this,arguments),Tr.versions=zi,Tr.defaultTable={insertTable:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,isTableCode:!0,tableFormula:!0},Tr.poppernIstance=null,Tr.isIncludes="",Tr}return Object(Yr["a"])(HoRightMenu,[{key:"mounted",value:function mounted(){var Tr,Dr;this.isIncludes=null===(Tr=this.rightNode)||void 0===Tr?void 0:Tr.labelNode().isIncludes,this.isDeisgn=this.rightNode.paintStatus;var Rr={getBoundingClientRect:this.generateGetBoundingClientRect(null===(Dr=this.rightNode)||void 0===Dr?void 0:Dr.rightPosition)};this.poppernIstance=Object(di["a"])(Rr,this.mouseRightMenuPopup,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","bottom","right","left"],padding:10}}]})}},{key:"generateGetBoundingClientRect",value:function generateGetBoundingClientRect(Tr){var Dr=Tr.clientX,Rr=Tr.clientY;return function(){return{width:0,height:0,top:Rr,right:Dr,bottom:Rr,left:Dr}}}},{key:"toUpdateNodes",value:function toUpdateNodes(Tr,Dr){null===Dr||void 0===Dr||Dr.stopPropagation(),this.$emit("setModalStatus",[Tr,"update",this.rightNode.style]),this.handleClose()}},{key:"handleClose",value:function handleClose(){var Tr=this;this.$nextTick((function(){return Tr.$emit("closeRight")}))}},{key:"labelToText",value:function labelToText(){var Tr=this,Dr=this.rightNode.labelNode().labelNode;Dr.forEach((function(Dr){Tr.vueController.labelToText(Dr)})),this.handleClose()}},{key:"textToLabel",value:function textToLabel(){this.vueController.textToLabel(),this.handleClose()}},{key:"hoCopy",value:function hoCopy(){document.execCommand("Copy")}},{key:"hoPaste",value:function hoPaste(){this.editController.editKeyPaste()}},{key:"hideComments",value:function hideComments(){this.vueController.hideComments(!this.rightNode.isHideComments),this.handleClose()}},{key:"render",value:function render(){var Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr,Qr,Zr=this,en=arguments[0];return en("div",{directives:[{name:"click-outside",value:this.handleClose.bind(this)}],ref:"mouseRightMenuPopup",class:"mouse-right-menu-popup animation-in"},[null===(Tr=this.$slots.hoRightSlot)||void 0===Tr?void 0:Tr.map((function(Tr){return Tr})),en("p",["toLabel"===this.isIncludes&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:this.textToLabel.bind(this)}},["文本转标签"])]),"toText"===this.isIncludes&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:this.labelToText.bind(this)}},["标签转文本"])]),"express"===(null===(Dr=this.rightNode)||void 0===Dr?void 0:Dr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("express",event)}}},["医学表达式属性"])]),"RadioBox"===(null===(Rr=this.rightNode)||void 0===Rr?void 0:Rr.type)||"CheckBox"===(null===(Ur=this.rightNode)||void 0===Ur?void 0:Ur.type)?en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){var Tr;return Zr.toUpdateNodes(null===(Tr=Zr.rightNode)||void 0===Tr?void 0:Tr.type,event)}}},["RadioBox"===(null===(Hr=this.rightNode)||void 0===Hr?void 0:Hr.type)?"单选框属性":"复选框属性"])]):null,"date"===(null===(Wr=this.rightNode)||void 0===Wr?void 0:Wr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("date",event)}}},["日期属性"])]),"select"===(null===(zr=this.rightNode)||void 0===zr?void 0:zr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("select",event)}}},["下拉框属性"])]),"barcode"===(null===(Vr=this.rightNode)||void 0===Vr?void 0:Vr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("barcode",event)}}},["条形码属性"])]),"qrcode"===(null===(Kr=this.rightNode)||void 0===Kr?void 0:Kr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("qrcode",event)}}},["二维码属性"])]),"text"===(null===($r=this.rightNode)||void 0===$r?void 0:$r.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("text",event)}}},["文本域属性"])]),(null===(Gr=this.rightNode)||void 0===Gr?void 0:Gr.rightTypeIsTable)&&this.defaultTable&&0===(null===(Jr=this.rightNode)||void 0===Jr?void 0:Jr.paintStatus)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table",event)}}},["表格属性"]),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table-col",event)}}},["表格列属性"]),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table-row",event)}}},["表格行属性"]),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table-cell",event)}}},["单元格属性"])]),(null===(Xr=this.rightNode)||void 0===Xr?void 0:Xr.rightTypeIsTable)&&this.defaultTable&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en(Od,{on:{closeMenu:this.handleClose.bind(this)},attrs:_objectSpread2({},{vueController:this.vueController,className:"insert-rows-columns-right",table:this.defaultTable})})]),(null===(Yr=this.rightNode)||void 0===Yr?void 0:Yr.canShowComment)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.hideComments()}}},[null!==(Qr=this.rightNode)&&void 0!==Qr&&Qr.isHideComments?"显示":"隐藏","批注"])]),en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item"},["编辑器内核版本:  ",en("span",{style:"font-size: 14px;color: #0a77e3;"},["v ",this.versions])])])])])}}]),HoRightMenu}(mixins(Zn)));__decorate([Prop()],Yh.prototype,"rightPos",void 0),__decorate([Prop()],Yh.prototype,"vueController",void 0),__decorate([Prop()],Yh.prototype,"editController",void 0),__decorate([Prop()],Yh.prototype,"editJson",void 0),__decorate([Prop()],Yh.prototype,"rightNode",void 0),__decorate([Ref()],Yh.prototype,"mouseRightMenuPopup",void 0),Yh=__decorate([an({name:"HoRightMenu",components:{TableFeatures:Od}})],Yh);var Qh=Yh;Ou.install=function(Tr){Tr.component(Ou.name,Ou)},zh.install=function(Tr){Tr.component(zh.name,zh)},Xh.install=function(Tr){Tr.component(Xh.name,Xh)},Qh.install=function(Tr){Tr.component(Qh.name,Qh)},ju.install=function(Tr){Tr.component(ju.name,ju)};Rr("0fb7");var Zh=Rr("f529"),ep=Rr.n(Zh),tp=(Rr("1760"),Rr("9883")),rp=Rr.n(tp),ip=(Rr("0c67"),Rr("299c")),ap=Rr.n(ip),op=(Rr("5466"),Rr("ecdf")),sp=Rr.n(op),lp=(Rr("38a0"),Rr("ad41")),cp=Rr.n(lp),up=(Rr("a586"),Rr("7464")),dp=Rr.n(up),hp=(Rr("e612"),Rr("dd87")),fp=Rr.n(hp),gp=(Rr("075a"),Rr("72aa")),mp=Rr.n(gp),vp=(Rr("eca7"),Rr("3787")),yp=Rr.n(vp),bp=(Rr("425f"),Rr("4105")),wp=Rr.n(bp),xp=(Rr("f225"),Rr("89a9")),Cp=Rr.n(xp),Pp=(Rr("bd49"),Rr("18ff")),Ep=Rr.n(Pp),Sp=(Rr("960d"),Rr("defb")),Tp=Rr.n(Sp),Dp=(Rr("cb70"),Rr("b370")),kp=Rr.n(Dp),Op=(Rr("a7cc"),Rr("df33")),Ip=Rr.n(Op),Mp=(Rr("4ffc"),Rr("946e")),Np=Rr.n(Mp),Lp=(Rr("826b"),Rr("c263")),Ap=Rr.n(Lp),Rp=(Rr("6611"),Rr("e772")),Fp=Rr.n(Rp),jp=(Rr("1f1a"),Rr("4e4b")),Bp=Rr.n(jp),Up=(Rr("c526"),Rr("1599")),Hp=Rr.n(Up),Wp=(Rr("d4df"),Rr("7fc1")),qp=Rr.n(Wp),zp=(Rr("560b"),Rr("dcdc")),Vp=Rr.n(zp),Kp=(Rr("3c52"),Rr("0d7b")),$p=Rr.n(Kp),Gp=(Rr("fe07"),Rr("6ac5")),Jp=Rr.n(Gp),Xp=(Rr("b5d8"),Rr("f494")),Yp=Rr.n(Xp),Qp=(Rr("9d4c"),Rr("e450")),Zp=Rr.n(Qp),ef=(Rr("3db2"),Rr("58b8")),tf=Rr.n(ef),rf=(Rr("10cb"),Rr("f3ad")),nf=Rr.n(rf),af=(Rr("8bd8"),Rr("4cb2")),of=Rr.n(af),sf=(Rr("ce18"),Rr("f58e")),lf=Rr.n(sf),cf=(Rr("4ca3"),Rr("443e")),uf=Rr.n(cf),df=(Rr("19511"),Rr("eedf")),hf=Rr.n(df);Kr.a.use(hf.a),Kr.a.use(uf.a),Kr.a.use(lf.a),Kr.a.use(of.a),Kr.a.use(nf.a),Kr.a.use(tf.a),Kr.a.use(Zp.a),Kr.a.use(Yp.a),Kr.a.use(Jp.a),Kr.a.use($p.a),Kr.a.use(Vp.a),Kr.a.use(qp.a),Kr.a.use(Hp.a),Kr.a.use(Bp.a),Kr.a.use(Fp.a),Kr.a.use(Ap.a),Kr.a.use(Np.a),Kr.a.use(Ip.a),Kr.a.use(kp.a),Kr.a.use(Tp.a),Kr.a.use(Ep.a),Kr.a.use(Cp.a),Kr.a.use(wp.a),Kr.a.use(yp.a),Kr.a.use(mp.a),Kr.a.use(fp.a),Kr.a.use(dp.a),Kr.a.use(cp.a),Kr.a.use(sp.a),Kr.a.use(ap.a),Kr.a.use(rp.a),Kr.a.prototype.$elMessage=ep.a,Kr.a.prototype.$elConfirm=Ea.a.confirm;Rr("16eb"),Rr("f68b"),Rr("beda");var pf="click",ff=Object.create(null),_f=Object.create(null),gf=Object.create(null),mf=Object.create(null),vf=[ff,_f],yf=function onCommonEvent(Tr,Dr,Rr,Ur){var Hr=Rr.target,Wr=function itemIteratee(Dr){var Ur=Dr.el;if(Ur!==Hr&&!Ur.contains(Hr)){var Wr=Dr.binding;Wr.modifiers.stop&&Rr.stopPropagation(),Wr.modifiers.prevent&&Rr.preventDefault(),Wr.value.call(Tr,Rr)}};Dr[Ur].forEach(Wr)},bf=function getEventHandler(Tr,Dr){return Tr?(gf[Dr]||(gf[Dr]=function onCaptureEvent(Tr){yf(this,ff,Tr,Dr)}),gf[Dr]):(mf[Dr]||(mf[Dr]=function onNonCaptureEvent(Tr){yf(this,_f,Tr,Dr)}),mf[Dr])},wf=Object.defineProperties({},{$captureInstances:{value:ff},$nonCaptureInstances:{value:_f},$captureEventHandlers:{value:gf},$nonCaptureEventHandlers:{value:mf},bind:{value:function bind(Tr,Dr){if("function"!==typeof Dr.value)throw new TypeError("Binding value must be a function.");var Rr=Dr.arg||pf,Ur=_objectSpread2(_objectSpread2({},Dr),{arg:Rr,modifiers:_objectSpread2(_objectSpread2({},{capture:!1,prevent:!1,stop:!1}),Dr.modifiers)}),Hr=Ur.modifiers.capture,Wr=Hr?ff:_f;Array.isArray(Wr[Rr])||(Wr[Rr]=[]),1===Wr[Rr].push({el:Tr,binding:Ur})&&"object"===("undefined"===typeof document?"undefined":Object(Ma["a"])(document))&&document&&document.addEventListener(Rr,bf(Hr,Rr),Hr)}},unbind:{value:function unbind(Tr){var Dr=function compareElements(Dr){return Dr.el!==Tr},Rr=function instancesIteratee(Tr){var Rr=Object.keys(Tr);if(Rr.length){var Ur=Tr===ff,Hr=function keysIteratee(Rr){var Hr=Tr[Rr].filter(Dr);Hr.length?Tr[Rr]=Hr:("object"===("undefined"===typeof document?"undefined":Object(Ma["a"])(document))&&document&&document.removeEventListener(Rr,bf(Ur,Rr),Ur),delete Tr[Rr])};Rr.forEach(Hr)}};vf.forEach(Rr)}}});function install(Tr){Tr.directive("click-outside",wf)}var xf={install:function install(Tr){Tr.directive("clickOnce",{inserted:function inserted(Tr,Dr){Tr.addEventListener("click",(function(){Tr.disabled||(Tr.disabled=!0,setTimeout((function(){Tr.disabled=!1}),Dr.value||3e3))}))}})}},Cf=void 0,Pf=function debounce(Tr,Dr){var Rr,Ur=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(){for(var Hr=arguments.length,Wr=new Array(Hr),zr=0;zr<Hr;zr++)Wr[zr]=arguments[zr];if(Ur)return Tr.apply(Cf,Wr),void(Ur=!1);clearTimeout(Rr),Rr=setTimeout((function(){Tr.apply(Cf,Wr)}),Dr)}},Ef={install:function install(Tr){Tr.directive("debounce",{bind:function bind(Tr,Dr){var Rr=Dr.value,Ur=Dr.arg,Hr=Dr.modifiers,Wr=Object.keys(Hr)[0];Tr.addEventListener(Wr,Pf(Rr,Ur))}})}};Kr.a.use(Ur),Kr.a.use(xf),Kr.a.use(Ef);var Sf=[Ou,zh,Xh,Qh,ju],Tf=function install(Tr){Sf.forEach((function(Dr){Tr.component(Dr.name,Dr)}))};"undefined"!==typeof window&&window.Vue&&Tf(window.Vue);var Df={install:Tf,HoDocs:Ou,ToolBar:zh,TabPane:Xh,HoRightMenu:Qh,HoMedicalExpression:ju},kf=Df;Dr["default"]=kf},fb5e:function(Tr,Dr,Rr){Rr("6f0e"),Rr("6722"),Rr("6d4d"),Rr("e5f6");var Ur=Rr("617d"),Hr=Rr("db03");Ur.registerComponents("ui",Rr("93e0")),Ur.registerComponents("parser",Rr("987f")),Ur.registerComponents("render",Rr("0010")),Ur.registerComponents("position",Rr("c009")),Ur.registerComponents("syntax",Rr("3384")),Ur.registerComponents("control",Rr("3904")),Ur.registerComponents("print",Rr("8b5c")),Tr.exports=Hr},fb6a:function(Tr,Dr,Rr){"use strict";var Ur=Rr("23e7"),Hr=Rr("861d"),Wr=Rr("e8b5"),zr=Rr("23cb"),Vr=Rr("50c4"),Kr=Rr("fc6a"),$r=Rr("8418"),Gr=Rr("b622"),Jr=Rr("1dde"),Xr=Jr("slice"),Yr=Gr("species"),Qr=[].slice,Zr=Math.max;Ur({target:"Array",proto:!0,forced:!Xr},{slice:function slice(Tr,Dr){var Rr,Ur,Gr,Jr=Kr(this),Xr=Vr(Jr.length),en=zr(Tr,Xr),tn=zr(void 0===Dr?Xr:Dr,Xr);if(Wr(Jr)&&(Rr=Jr.constructor,"function"!=typeof Rr||Rr!==Array&&!Wr(Rr.prototype)?Hr(Rr)&&(Rr=Rr[Yr],null===Rr&&(Rr=void 0)):Rr=void 0,Rr===Array||void 0===Rr))return Qr.call(Jr,en,tn);for(Ur=new(void 0===Rr?Array:Rr)(Zr(tn-en,0)),Gr=0;en<tn;en++,Gr++)en in Jr&&$r(Ur,Gr,Jr[en]);return Ur.length=Gr,Ur}})},fbb2:function(Tr,Dr,Rr){"use strict";Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.GenericBarcode=void 0;var Ur=function(){function defineProperties(Tr,Dr){for(var Rr=0;Rr<Dr.length;Rr++){var Ur=Dr[Rr];Ur.enumerable=Ur.enumerable||!1,Ur.configurable=!0,"value"in Ur&&(Ur.writable=!0),Object.defineProperty(Tr,Ur.key,Ur)}}return function(Tr,Dr,Rr){return Dr&&defineProperties(Tr.prototype,Dr),Rr&&defineProperties(Tr,Rr),Tr}}(),Hr=Rr("e762"),Wr=_interopRequireDefault(Hr);function _interopRequireDefault(Tr){return Tr&&Tr.__esModule?Tr:{default:Tr}}function _classCallCheck(Tr,Dr){if(!(Tr instanceof Dr))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(Tr,Dr){if(!Tr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Dr||"object"!==typeof Dr&&"function"!==typeof Dr?Tr:Dr}function _inherits(Tr,Dr){if("function"!==typeof Dr&&null!==Dr)throw new TypeError("Super expression must either be null or a function, not "+typeof Dr);Tr.prototype=Object.create(Dr&&Dr.prototype,{constructor:{value:Tr,enumerable:!1,writable:!0,configurable:!0}}),Dr&&(Object.setPrototypeOf?Object.setPrototypeOf(Tr,Dr):Tr.__proto__=Dr)}var zr=function(Tr){function GenericBarcode(Tr,Dr){return _classCallCheck(this,GenericBarcode),_possibleConstructorReturn(this,(GenericBarcode.__proto__||Object.getPrototypeOf(GenericBarcode)).call(this,Tr,Dr))}return _inherits(GenericBarcode,Tr),Ur(GenericBarcode,[{key:"encode",value:function encode(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function valid(){return!0}}]),GenericBarcode}(Wr.default);Dr.GenericBarcode=zr},fc33:function(Tr,Dr,Rr){},fc5e:function(Tr,Dr){var Rr=Math.ceil,Ur=Math.floor;Tr.exports=function(Tr){return isNaN(Tr=+Tr)?0:(Tr>0?Ur:Rr)(Tr)}},fc6a:function(Tr,Dr,Rr){var Ur=Rr("44ad"),Hr=Rr("1d80");Tr.exports=function(Tr){return Ur(Hr(Tr))}},fcd4:function(Tr,Dr,Rr){Dr.f=Rr("cc15")},fce3:function(Tr,Dr,Rr){var Ur=Rr("d039"),Hr=Rr("da84"),Wr=Hr.RegExp;Tr.exports=Ur((function(){var Tr=Wr(".","s");return!(Tr.dotAll&&Tr.exec("\n")&&"s"===Tr.flags)}))},fd7c:function(Tr,Dr,Rr){"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Ur=Object.assign||function(Tr){for(var Dr=1;Dr<arguments.length;Dr++){var Rr=arguments[Dr];for(var Ur in Rr)Object.prototype.hasOwnProperty.call(Rr,Ur)&&(Tr[Ur]=Rr[Ur])}return Tr};Dr.default=function(Tr,Dr){return Ur({},Tr,Dr)}},fda6:function(Tr,Dr,Rr){var Ur;Ur=function(Tr){var Dr=Rr("99fc"),Ur="kf-editor-ui-",Hr=Rr("c732"),Wr=Dr.createClass("List",{constructor:function constructor(Tr,Dr){this.options=Dr,this.doc=Tr,this.onselectHandler=null,this.currentSelect=-1,this.element=this.createBox(),this.itemGroups=this.createItems(),this.mergeElement()},onselectHandler:function onselectHandler(Tr,Dr){},setSelectHandler:function setSelectHandler(Tr){this.onselectHandler=Tr},createBox:function createBox(){var Tr=Hr.ele(this.doc,"div",{className:Ur+"list"}),Dr=Hr.ele(this.doc,"div",{className:Ur+"list-bg"});return"width"in this.options&&(Tr.style.width=this.options.width+"px"),Tr.appendChild(Dr),Tr},select:function select(Tr){var Dr=this.currentSelect;-1===Dr&&(Dr=Tr),this.unselect(Dr),this.currentSelect=Tr,Hr.getClassList(this.itemGroups.items[Tr]).add(Ur+"list-item-select"),this.onselectHandler(Tr,Dr)},unselect:function unselect(Tr){Hr.getClassList(this.itemGroups.items[Tr]).remove(Ur+"list-item-select")},setOffset:function setOffset(Tr,Dr){this.element.style.left=Tr+"px",this.element.style.top=Dr+"px"},initEvent:function initEvent(){var Tr="."+Ur+"list-item",Dr=this;Hr.delegate(this.itemGroups.container,"mousedown",Tr,(function(Tr){Tr.preventDefault(),1===Tr.which&&Dr.select(this.getAttribute("data-index"))})),Hr.on(this.element,"mousedown",(function(Tr){Tr.stopPropagation(),Tr.preventDefault()}))},getPositionInfo:function getPositionInfo(){return Hr.getRectBox(this.element)},createItems:function createItems(){var Tr=this.doc,Rr=null,Wr=null,zr=null,Vr=[],Kr=null;return Rr=Hr.ele(this.doc,"div",{className:Ur+"list-item"}),Kr=Rr.cloneNode(!1),Kr.className=Ur+"list-item-container",Dr.Utils.each(this.options.items,(function(Dr,$r){Wr=Rr.cloneNode(!1),zr=Rr.cloneNode(!1),zr.className=Ur+"list-item-icon",Wr.appendChild(zr),Wr.appendChild(Hr.ele(Tr,"text",Dr)),Wr.setAttribute("data-index",$r),Vr.push(Wr),Kr.appendChild(Wr)})),{container:Kr,items:Vr}},mergeElement:function mergeElement(){this.element.appendChild(this.itemGroups.container)},mountTo:function mountTo(Tr){Tr.appendChild(this.element)}});return Wr}.call(Dr,Rr,Dr,Tr),void 0===Ur||(Tr.exports=Ur)},fdbc:function(Tr,Dr){Tr.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(Tr,Dr,Rr){var Ur=Rr("4930");Tr.exports=Ur&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe07:function(Tr,Dr,Rr){},fea9:function(Tr,Dr,Rr){var Ur=Rr("da84");Tr.exports=Ur.Promise},fed5:function(Tr,Dr){Dr.f=Object.getOwnPropertySymbols},feff:function(Tr,Dr,Rr){"use strict";Rr.d(Dr,"a",(function(){return sn}));var Ur=Rr("d4ec"),Hr=Rr("bee2"),Wr=(Rr("159b"),Rr("6d0b")),zr=Rr("110d"),Vr=Rr("8d79"),Kr=Rr("53b1"),$r=Rr("38a8"),Gr=Rr("454b"),Jr=Rr("e3c0"),Xr=Rr("ca11"),Yr=Rr("1551"),Qr=Rr("49d1"),Zr=Rr("c1cd"),en=Rr("49e9"),tn=Rr("8d1d"),rn=Rr("4b89"),nn=Rr("053b"),an=Rr("eb7b"),sn=function(){function ParseUndoUnit(Tr,Dr,Rr,Hr){Object(Ur["a"])(this,ParseUndoUnit),this._tmp={start:"",end:""},this._hoEditorFactoryID=Tr,this._startPath=Dr,this._endPath=Rr,this._undo=new Gr["a"](this._hoEditorFactoryID),this._undoNodes=new Array,this._nodes=Hr,this._opTime=new Date,this._affectText=tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(Hr)}return Object(Hr["a"])(ParseUndoUnit,[{key:"undo",value:function undo(){var Tr=new Vr["a"](this._hoEditorFactoryID,Wr["a"].daDelete,this._tmp.start,this._tmp.start);Tr.oldEndPath=this._tmp.end,Tr.oldDrawTreeLines=new en["a"](this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start,this._tmp.end);var Dr=tn["a"].instance().getFactory(this._hoEditorFactoryID);this._undoNodes.forEach((function(Tr){Dr.docTree.deleteNode(Tr,"update")}));while(!this._undo.atBottom())this._undo.undo();Dr.docTree.change(Tr),Dr.drawTree.moveCaretToPath(this._endPath);var Rr=Dr.docTree.findNodePositionByPath(this._endPath);Rr&&Rr.node instanceof nn["a"]&&Rr.node.parentNode&&Rr.node.parentNode instanceof rn["f"]&&2===Rr.node.parentNode.childNodes.length&&Dr.docController.resetEmptyInputFieldNode(Dr,Rr.node.parentNode),Dr.docTree.curDomRange=new Kr["a"](this._hoEditorFactoryID,this._startPath,this._endPath)}},{key:"initParam",value:function initParam(){this._undoNodes=new Array,this._undo.clear()}},{key:"redo",value:function redo(){var Tr,Dr=this;this.initParam();var Rr=new Kr["a"](this._hoEditorFactoryID,this._startPath,this._endPath).normalize(),Ur=tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.docTree.getPathRoots(this._startPath);if(!Hr)throw new Error("错误的插入位置".concat(this._startPath));Ur.drawTree.getDrawRootsByPath(this._startPath)[1];var Gr=Ur.docTree.getRootPathByNodes(Hr);Rr.isEmpty||(this._undo.begin(),this._undo.add(new Jr["a"](this._hoEditorFactoryID,Rr.startPath,Rr.endPath)),this._undo.commit());var en,nn=Ur.docTree.findNodePositionByPath(Rr.startPath);if(this._nodes){var sn=Ur.docTree.getNodeLastPath(nn.node),cn=nn.node,un=-1,dn=sn,hn=Xr["a"].treePathCompare(Rr.startPath,sn);if(hn<0&&nn.node instanceof zr["a"]){var pn=new $r["a"](this._hoEditorFactoryID,Rr.startPath,nn.node,new Kr["a"](this._hoEditorFactoryID,Rr.startPath,sn));this._undo.begin(),this._undo.add(pn),this._undo.commit();var _n=pn.items[0];cn=_n,un=1,dn=Ur.docTree.getNodeLastPath(_n)}var gn=function checkTableNode(Tr){var Rr;return{isTable:Dr._nodes[Tr]instanceof Qr["c"],prevNode:0==Tr?cn:Dr._nodes[Tr-1],nextNode:Tr==Dr._nodes.length-1?null===(Rr=cn)||void 0===Rr?void 0:Rr.nextSibling():Dr._nodes[Tr+1]}},mn=function checkTableNode2(Tr){return{isTable:Tr instanceof Qr["c"],node:Tr,prevNode:Tr.prevSibling(),nextNode:Tr.nextSibling()}},vn=function insertParaNode(Tr){if(Tr.isTable){if(!(Tr.prevNode instanceof Yr["a"])){var Rr=new Yr["a"](Dr._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(Tr.node.getNodePath()),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(Ur.docTree.getNodeLastPath(Tr.prevNode),Rr),Dr._undoNodes.push(Rr),Tr.node.paragraphNode=Rr}if(!(Tr.nextNode instanceof Yr["a"])){var Hr=new Yr["a"](Dr._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(Tr.node.getNodePath()),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(Ur.docTree.getNodeLastPath(Tr.node),Hr),Dr._undoNodes.push(Hr)}}},yn=function checkTables(Tr){var Dr=mn(Tr);Dr.isTable&&vn(Dr),Tr instanceof Zr["a"]&&Tr.childNodes.forEach((function(Tr){var Dr=mn(Tr);Dr.isTable&&vn(Dr),checkTables(Tr)}))};for(un=this._nodes.length-1;un>=0;un--){var bn=this._nodes[un];bn.rootPath=Gr,bn.rootNodes=Hr;var wn=gn(un);if(wn.isTable){if(!(wn.nextNode instanceof Yr["a"])){var xn=new Yr["a"](this._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(nn.path),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(dn,xn),this._undoNodes.push(xn),en=xn}if(Ur.docTree.insertNodeAfterPath(dn,bn),this._undoNodes.push(bn),wn.prevNode instanceof Yr["a"])bn.paragraphNode=wn.prevNode;else{var Cn=new Yr["a"](this._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(dn),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(dn,Cn),bn.paragraphNode=Cn,this._undoNodes.push(Cn)}}else Ur.docTree.insertNodeAfterPath(dn,bn),bn instanceof Yr["a"]&&bn.refreshDrootNodes(),this._undoNodes.push(bn)}for(var Pn=0;Pn<this._nodes.length;Pn++)yn(this._nodes[Pn]);en=this._nodes[this._nodes.length-1],en instanceof Qr["c"]&&(en=this._nodes[this._nodes.length-1].nextSibling())}var En=Ur.docTree.getNodeLastPath(en),Sn=new Vr["a"](this._hoEditorFactoryID,Wr["a"].daInsert,Rr.startPath,En);if(Ur.docTree.change(Sn),(null===(Tr=nn.node)||void 0===Tr?void 0:Tr.parentNode)instanceof rn["f"]){var Tn;null===(Tn=nn.node)||void 0===Tn||Tn.parentNode.update();var Dn=nn.node.parentNode.parentNode;Dn instanceof an["a"]&&Dn.drawCell.drawPageCells.length>1&&(Dn.drawCell.needUpdate=!0,Dn.table.update())}this._tmp.start=Rr.startPath,this._tmp.end=En,Ur.drawTree.moveCaretToPath(En),Ur.docTree.curDomRange=new Kr["a"](this._hoEditorFactoryID,En,En)}},{key:"isEmpty",get:function get(){return!1}},{key:"merge",value:function merge(Tr){return!1}},{key:"actionString",value:function actionString(){return"粘贴内容"}},{key:"opTime",get:function get(){return this._opTime}},{key:"affectText",get:function get(){return this._affectText}}]),ParseUndoUnit}()},ff4a:function(Tr,Dr,Rr){var Ur;Ur=function(){return{selectColor:"rgba(42, 106, 189, 0.2)",allSelectColor:"rgba(42, 106, 189, 0.6)"}}.call(Dr,Rr,Dr,Tr),void 0===Ur||(Tr.exports=Ur)},ff80:function(Tr,Dr,Rr){"use strict";Rr.d(Dr,"a",(function(){return Yr}));var Ur=Rr("3835"),Hr=Rr("d4ec"),Wr=Rr("bee2"),zr=Rr("262e"),Vr=Rr("2caf"),Kr=(Rr("a434"),Rr("159b"),Rr("120e"),Rr("8bda")),$r=Rr("5964"),Gr=Rr("0508"),Jr=Rr("1551"),Xr=Rr("26a9"),Yr=function(Tr){Object(zr["a"])(DrawCell,Tr);var Dr=Object(Vr["a"])(DrawCell);function DrawCell(Tr,Rr,Ur,Wr,zr){var Vr;return Object(Hr["a"])(this,DrawCell),Vr=Dr.call(this,Rr.rootPath,Ur),Vr._node=Rr,Vr._hoEditorFactoryID=Tr,Vr._discriminator=Kr["a"],Vr._cell=Rr,Vr._dHeight=zr,Vr._dWidth=Wr,Vr._drawLines=new Array,Vr._drawPageCells=new Array,Vr._docHeight=0,Vr._needUpdate=!0,Vr}return Object(Wr["a"])(DrawCell,[{key:"needUpdate",get:function get(){return this._needUpdate},set:function set(Tr){this._needUpdate=Tr}},{key:"drawPageCells",get:function get(){return this._drawPageCells},set:function set(Tr){this._drawPageCells=Tr}},{key:"node",get:function get(){return this._node},set:function set(Tr){this._node=Tr}},{key:"discriminator",get:function get(){return this._discriminator},set:function set(Tr){this._discriminator=Tr}},{key:"cell",get:function get(){return this._cell},set:function set(Tr){this._cell=Tr}},{key:"drawLines",get:function get(){return this._drawLines},set:function set(Tr){this._drawLines=Tr}},{key:"docHeight",get:function get(){return this._docHeight},set:function set(Tr){this._docHeight=Tr}},{key:"dWidth",get:function get(){return this._dWidth},set:function set(Tr){Tr!==this._dWidth&&(this._dWidth=Tr,this.dWidth=Tr)}},{key:"dHeight",get:function get(){return this._dHeight},set:function set(Tr){Tr!==this._dHeight&&(this._dHeight=Tr)}},{key:"calcCellHeight",value:function calcCellHeight(){for(var Tr=this._cell.table.rows.indexOf(this._cell.row),Dr=0,Rr=Tr,Ur=Tr+this._cell.rowSpan-1;Rr<=Ur;Rr++)Dr+=this._cell.table.rowInfos[Rr].rowHeight;return Dr}},{key:"getDrawPageCell",value:function getDrawPageCell(Tr){for(var Dr=0;Dr<this._drawPageCells.length;Dr++)if(this._drawPageCells[Dr].drawPageTable===Tr)return this._drawPageCells[Dr];return null}},{key:"clearOverDrawPageCell",value:function clearOverDrawPageCell(Tr){if(!(this.drawPageCells.length<=1)){var Dr=this._cell.table.getCellInfos(this._cell),Rr=Object(Ur["a"])(Dr,2),Hr=Rr[0];Rr[1];if(this._cell.table.rowInfos[Hr].rowProperty.repeatAsTitleAtPageTop)this.drawPageCells.splice(Tr.table.drawTable.drawPageTables.length,this.drawPageCells.length);else{var Wr=this.getDrawPageCell(Tr);if(Wr){var zr=this._cell.drawCell.drawPageCells.indexOf(Wr);while(this._cell.drawCell.drawPageCells.length-1>zr){var Vr=this._cell.drawCell.drawPageCells.pop();Vr&&Vr.parent&&Vr.parent.removeChild(Vr)}}}}}},{key:"getCellRestHeight",value:function getCellRestHeight(Tr){var Dr=0;while(Tr>=0){var Rr=this._drawPageCells[Tr];if(!Rr)break;Dr+=Rr.docHeight,Tr-=1}return this._dHeight-Dr}},{key:"copyPaintCell",value:function copyPaintCell(Tr,Dr,Rr){var Ur=Tr;if(Ur){var Hr=this._cell.drawCell._drawPageCells[0],Wr=this._cell.drawCell.getDrawPageCell(Ur);if(Hr){var zr,Vr=Hr.clone(!0),Kr=Hr.getChildIndex(Hr.borderShape);return Kr>=0&&Vr.removeChildAt(Kr),Wr?(zr=Wr,Wr.removeAllChildren(),Tr.contains(Wr)||Tr.addChild(zr)):(zr=new $r["a"](this._hoEditorFactoryID,Tr,this._cell,Hr.dLeft,Hr.dTop,Hr.dWidth,Hr.dHeight,Hr.index,Hr.startDline,Hr.maxHeight,!1),Tr.addChild(zr),this._cell.drawCell.drawPageCells.push(zr)),zr.children=Vr.children,zr.removeChildAt(0),zr.dHeight=Hr.dHeight,zr.dLeft=Hr.dLeft,zr.dTop=Rr,zr.maxHeight=Hr.maxHeight,zr.docWidth=Hr.docWidth,zr.docHeight=Hr.docHeight,zr.usedHeight=Hr.usedHeight,zr.bottomDline=Hr.bottomDline,zr.topDline=Hr.topDline,zr.lastDrawLine=Hr.lastDrawLine,zr.allowAcrossPage=Hr.allowAcrossPage,zr.x=Hr.x,zr.y=Rr,zr}return Wr}return null}},{key:"paintCell",value:function paintCell(Tr,Dr,Rr,Hr,Wr){var zr=this._cell.getLeftWidth(),Vr=Object(Ur["a"])(zr,2),Kr=Vr[0],Gr=Vr[1];this._dWidth=Gr;var Jr=0;if(0===Wr){var Yr=this._cell.drawCell.calcCellHeight();this._cell.cellProperty.align===Xr["k"].vatop?Jr=0:this._cell.cellProperty.align===Xr["k"].vacenter&&Yr>this._cell.drawCell.docHeight?Jr=(Yr-this._cell.drawCell.docHeight)/2:this._cell.cellProperty.align===Xr["k"].vabottom&&Yr>this._cell.drawCell.docHeight&&(Jr=Yr-this._cell.drawCell.docHeight)}var Qr=Tr,Zr=new $r["a"](this._hoEditorFactoryID,Qr,this._cell,Kr,Dr,Gr,Rr,this._drawPageCells.length,Wr,Hr);Zr.x=Kr,Zr.y=Dr,Tr.drawItems.push(Zr),Tr.addChild(Zr),this.drawPageCells.push(Zr),Zr.paintArea(this._drawLines,Wr,Jr),this._drawLines[this._drawLines.length-1].dHeight,this._drawLines[this._drawLines.length-1].dTop}},{key:"clear",value:function clear(){if(this._drawLines.length=0,this._cell.childNodes.length>0&&this._cell.childNodes[0]instanceof Jr["a"]){var Tr=this._cell.childNodes[0];Tr.node2DrawNode(),this._drawLines.push(Tr.drawlines[0]),this._drawPageCells.forEach((function(Tr,Dr){Tr.clear()})),this._drawPageCells.length>0&&this._drawPageCells[0].addChild(Tr.drawlines[0])}}},{key:"removeAllPartCell",value:function removeAllPartCell(){for(var Tr=0;Tr<this._drawPageCells.length;Tr++){var Dr=this._drawPageCells[Tr];Dr.parent&&Dr.parent.removeChild(Dr)}}},{key:"updateHeight",value:function updateHeight(){var Tr=!0,Dr=this.drawLines[this.drawLines.length-1].paragraphNode,Rr=this.drawLines[0].paragraphNode;this.docHeight=Dr.dTop+Dr.dHeight-Rr.dTop+Rr.combineParagraph.topMarginPixes;var Hr=this._cell.table.getCellInfos(this._cell),Wr=Object(Ur["a"])(Hr,2),zr=Wr[0];Wr[1];if(zr>=0){var Vr=this._cell.table.rowInfos[zr].rowProperty;Vr.rowHeight>0&&!Vr.isAutoRaiseHeight&&(Tr=!1)}Tr&&(this.dHeight=this.docHeight)}}]),DrawCell}(Gr["a"])},ff84:function(Tr,Dr,Rr){"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Ur=Rr("349c"),Hr=Rr("da3d"),Wr=Rr("241e"),zr=Rr("9ffa"),Vr=Rr("8e51"),Kr=Rr("7cb9"),$r=Rr("c17b"),Gr=Rr("fbb2");Dr.default={CODE39:Ur.CODE39,CODE128:Hr.CODE128,CODE128A:Hr.CODE128A,CODE128B:Hr.CODE128B,CODE128C:Hr.CODE128C,EAN13:Wr.EAN13,EAN8:Wr.EAN8,EAN5:Wr.EAN5,EAN2:Wr.EAN2,UPC:Wr.UPC,UPCE:Wr.UPCE,ITF14:zr.ITF14,ITF:zr.ITF,MSI:Vr.MSI,MSI10:Vr.MSI10,MSI11:Vr.MSI11,MSI1010:Vr.MSI1010,MSI1110:Vr.MSI1110,pharmacode:Kr.pharmacode,codabar:$r.codabar,GenericBarcode:Gr.GenericBarcode}},ff91:function(Tr,Dr,Rr){"use strict";Rr.d(Dr,"a",(function(){return Wr}));var Ur=Rr("d4ec"),Hr=Rr("bee2"),Wr=function(){function Exception(){Object(Ur["a"])(this,Exception)}return Object(Hr["a"])(Exception,null,[{key:"NodeUndefined",value:function NodeUndefined(){return new Error("节点没有定义")}},{key:"NodeNotFound",value:function NodeNotFound(){return new Error("节点没有找到")}},{key:"PathNotAtSameRoot",value:function PathNotAtSameRoot(){return new Error("节点不在同一根节点当中")}},{key:"LineNotDefined",value:function LineNotDefined(){return new Error("行没有定义")}},{key:"printCallStack",value:function printCallStack(){}}]),Exception}()}})["default"]}));
588
+ function _typeof(Tr){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Tr){return typeof Tr}:function(Tr){return Tr&&"function"===typeof Symbol&&Tr.constructor===Symbol&&Tr!==Symbol.prototype?"symbol":typeof Tr},_typeof(Tr)}function _defineProperty(Tr,Dr,Rr){return Dr in Tr?Object.defineProperty(Tr,Dr,{value:Rr,enumerable:!0,configurable:!0,writable:!0}):Tr[Dr]=Rr,Tr}function _toConsumableArray(Tr){return _arrayWithoutHoles(Tr)||_iterableToArray(Tr)||_nonIterableSpread()}function _arrayWithoutHoles(Tr){if(Array.isArray(Tr)){for(var Dr=0,Rr=new Array(Tr.length);Dr<Tr.length;Dr++)Rr[Dr]=Tr[Dr];return Rr}}function _iterableToArray(Tr){if(Symbol.iterator in Object(Tr)||"[object Arguments]"===Object.prototype.toString.call(Tr))return Array.from(Tr)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function reflectionIsSupported(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function copyReflectionMetadata(Tr,Dr){forwardMetadata(Tr,Dr),Object.getOwnPropertyNames(Dr.prototype).forEach((function(Rr){forwardMetadata(Tr.prototype,Dr.prototype,Rr)})),Object.getOwnPropertyNames(Dr).forEach((function(Rr){forwardMetadata(Tr,Dr,Rr)}))}function forwardMetadata(Tr,Dr,Rr){var Ur=Rr?Reflect.getOwnMetadataKeys(Dr,Rr):Reflect.getOwnMetadataKeys(Dr);Ur.forEach((function(Ur){var Hr=Rr?Reflect.getOwnMetadata(Ur,Dr,Rr):Reflect.getOwnMetadata(Ur,Dr);Rr?Reflect.defineMetadata(Ur,Hr,Tr,Rr):Reflect.defineMetadata(Ur,Hr,Tr)}))}var en={__proto__:[]},tn=en instanceof Array;function createDecorator(Tr){return function(Dr,Rr,Ur){var Hr="function"===typeof Dr?Dr:Dr.constructor;Hr.__decorators__||(Hr.__decorators__=[]),"number"!==typeof Ur&&(Ur=void 0),Hr.__decorators__.push((function(Dr){return Tr(Dr,Rr,Ur)}))}}function mixins(){for(var Tr=arguments.length,Dr=new Array(Tr),Rr=0;Rr<Tr;Rr++)Dr[Rr]=arguments[Rr];return Kr.a.extend({mixins:Dr})}function isPrimitive(Tr){var Dr=_typeof(Tr);return null==Tr||"object"!==Dr&&"function"!==Dr}function collectDataFromConstructor(Tr,Dr){var Rr=Dr.prototype._init;Dr.prototype._init=function(){var Dr=this,Rr=Object.getOwnPropertyNames(Tr);if(Tr.$options.props)for(var Ur in Tr.$options.props)Tr.hasOwnProperty(Ur)||Rr.push(Ur);Rr.forEach((function(Rr){Object.defineProperty(Dr,Rr,{get:function get(){return Tr[Rr]},set:function set(Dr){Tr[Rr]=Dr},configurable:!0})}))};var Ur=new Dr;Dr.prototype._init=Rr;var Hr={};return Object.keys(Ur).forEach((function(Tr){void 0!==Ur[Tr]&&(Hr[Tr]=Ur[Tr])})),Hr}var rn=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(Tr){var Dr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Dr.name=Dr.name||Tr._componentTag||Tr.name;var Rr=Tr.prototype;Object.getOwnPropertyNames(Rr).forEach((function(Tr){if("constructor"!==Tr)if(rn.indexOf(Tr)>-1)Dr[Tr]=Rr[Tr];else{var Ur=Object.getOwnPropertyDescriptor(Rr,Tr);void 0!==Ur.value?"function"===typeof Ur.value?(Dr.methods||(Dr.methods={}))[Tr]=Ur.value:(Dr.mixins||(Dr.mixins=[])).push({data:function data(){return _defineProperty({},Tr,Ur.value)}}):(Ur.get||Ur.set)&&((Dr.computed||(Dr.computed={}))[Tr]={get:Ur.get,set:Ur.set})}})),(Dr.mixins||(Dr.mixins=[])).push({data:function data(){return collectDataFromConstructor(this,Tr)}});var Ur=Tr.__decorators__;Ur&&(Ur.forEach((function(Tr){return Tr(Dr)})),delete Tr.__decorators__);var Hr=Object.getPrototypeOf(Tr.prototype),Wr=Hr instanceof Kr.a?Hr.constructor:Kr.a,zr=Wr.extend(Dr);return forwardStaticMembers(zr,Tr,Wr),reflectionIsSupported()&&copyReflectionMetadata(zr,Tr),zr}var nn={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(Tr,Dr,Rr){Object.getOwnPropertyNames(Dr).forEach((function(Ur){if(!nn[Ur]){var Hr=Object.getOwnPropertyDescriptor(Tr,Ur);if(!Hr||Hr.configurable){var Wr=Object.getOwnPropertyDescriptor(Dr,Ur);if(!tn){if("cid"===Ur)return;var zr=Object.getOwnPropertyDescriptor(Rr,Ur);if(!isPrimitive(Wr.value)&&zr&&zr.value===Wr.value)return}0,Object.defineProperty(Tr,Ur,Wr)}}}))}function vue_class_component_esm_Component(Tr){return"function"===typeof Tr?componentFactory(Tr):function(Dr){return componentFactory(Dr,Tr)}}vue_class_component_esm_Component.registerHooks=function registerHooks(Tr){rn.push.apply(rn,_toConsumableArray(Tr))};var an=vue_class_component_esm_Component,sn="__reactiveInject__";function Inject(Tr){return createDecorator((function(Dr,Rr){"undefined"===typeof Dr.inject&&(Dr.inject={}),Array.isArray(Dr.inject)||(Dr.inject[Rr]=Tr||Rr)}))}function produceProvide(Tr){var provide=function(){var Dr=this,Rr="function"===typeof Tr?Tr.call(this):Tr;for(var Ur in Rr=Object.create(Rr||null),Rr[sn]=this[sn]||{},provide.managed)Rr[provide.managed[Ur]]=this[Ur];var _loop_1=function(Tr){Rr[provide.managedReactive[Tr]]=Hr[Tr],Object.defineProperty(Rr[sn],provide.managedReactive[Tr],{enumerable:!0,get:function(){return Dr[Tr]}})},Hr=this;for(var Ur in provide.managedReactive)_loop_1(Ur);return Rr};return provide.managed={},provide.managedReactive={},provide}function needToProduceProvide(Tr){return"function"!==typeof Tr||!Tr.managed&&!Tr.managedReactive}function Provide(Tr){return createDecorator((function(Dr,Rr){var Ur=Dr.provide;needToProduceProvide(Ur)&&(Ur=Dr.provide=produceProvide(Ur)),Ur.managed[Rr]=Tr||Rr}))}var cn="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function applyMetadata(Tr,Dr,Rr){if(cn&&!Array.isArray(Tr)&&"function"!==typeof Tr&&"undefined"===typeof Tr.type){var Ur=Reflect.getMetadata("design:type",Dr,Rr);Ur!==Object&&(Tr.type=Ur)}}function Prop(Tr){return void 0===Tr&&(Tr={}),function(Dr,Rr){applyMetadata(Tr,Dr,Rr),createDecorator((function(Dr,Rr){(Dr.props||(Dr.props={}))[Rr]=Tr}))(Dr,Rr)}}function Watch(Tr,Dr){void 0===Dr&&(Dr={});var Rr=Dr.deep,Ur=void 0!==Rr&&Rr,Hr=Dr.immediate,Wr=void 0!==Hr&&Hr;return createDecorator((function(Dr,Rr){"object"!==typeof Dr.watch&&(Dr.watch=Object.create(null));var Hr=Dr.watch;"object"!==typeof Hr[Tr]||Array.isArray(Hr[Tr])?"undefined"===typeof Hr[Tr]&&(Hr[Tr]=[]):Hr[Tr]=[Hr[Tr]],Hr[Tr].push({handler:Rr,deep:Ur,immediate:Wr})}))}function Ref(Tr){return createDecorator((function(Dr,Rr){Dr.computed=Dr.computed||{},Dr.computed[Rr]={cache:!1,get:function(){return this.$refs[Tr||Rr]}}}))}var un,HoDocvue_type_template_id_f60e2e72_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.docClassNames},[Rr("div",{ref:"editorArea",staticClass:"editors"},[Tr.drawPageLength>0?Rr("div",{staticClass:"editor",on:{click:function(Dr){return Tr.setActiveDocIndex(Tr.hoEditorId)}}},[Tr._l(Tr.drawPageCount.count,(function(Dr){return[Rr("HoPage",{key:Dr-1,attrs:{"data-id":Dr-1,index:Dr-1,docIndex:Tr.docIndex,canvasWidth:Tr.canvasParams.width,canvasHeight:Tr.canvasParams.height,currentActivePages:Tr.activePageIndex.index,hoEditorId:Tr.hoEditorId,hoEditorFactoryIdList:Tr.hoEditorFactoryIdList,mouseMoveNodes:Tr.mouseMoveNodes,viewableAreaObserver:Tr.viewableAreaObserver,inViewPages:Tr.inViewPages,canvasHeadFootPos:Tr.canvasHeadFootPos,poperTipPos:Tr.poperTipPos},on:{pageReady:Tr.pageReady,canvasRightClick:Tr.mouseRightClickEvent},scopedSlots:Tr._u([{key:"hoPageHead",fn:function(){return[Tr._t("hoDocHead")]},proxy:!0},{key:"hoPageFoot",fn:function(){return[Tr._t("hoDocFoot")]},proxy:!0}],null,!0)})]}))],2):Tr._e()]),"datePoper"===Tr.poperType||"selectPoper"===Tr.poperType?Rr("PoperSelectModal",{attrs:{poperType:Tr.poperType,poperSelectList:Tr.poperSelectList,poperPos:Tr.poperPos,hoEditorId:Tr.hoEditorId},on:{poperClose:Tr.poperClose}}):Tr._e(),Rr("PoperMark",{directives:[{name:"show",rawName:"v-show",value:"datePoper"===Tr.poperType||"selectPoper"===Tr.poperType||"table-cell-poper"===Tr.poperType,expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),"table-cell-poper"===Tr.poperType?Rr("TableCellPoper",{attrs:{poperNode:Tr.nodeValue,poperPos:Tr.poperPos},on:{poperClose:Tr.poperClose}}):Tr._e(),Rr("HoToPage",{attrs:{hoEditorId:Tr.hoEditorId,inViewPages:Tr.inViewPages}}),Rr("PoperTipText",{attrs:{isPoperText:Tr.isPoperText,poperText:Tr.poperText,poperPos:Tr.poperTextPos},on:{poperTextClose:Tr.poperTextClose}}),Rr("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return Tr.isCreateRightMenuModal=!1},expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:Tr.isCreateRightMenuModal,expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[Tr.showCommentsBtn?Rr("li",{staticClass:"mouse-menu-item",on:{click:Tr.hideComments}},[Tr._v(Tr._s(Tr.isHideComments?"显示":"隐藏")+"批注")]):Tr._e(),Rr("li",{staticClass:"mouse-menu-item"},[Tr._v(" 编辑器内核版本:   "),Rr("span",{staticStyle:{"font-size":"14px",color:"#0a77e3"}},[Tr._v("v "+Tr._s(Tr.version))])])])],1)},dn=[],hn=(Rr("caad"),Rr("2532"),Rr("4e82"),Rr("5319"),function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"hoPage",class:Tr.pageClassNames,style:{height:Tr.canvasHeight+"px",width:Tr.canvasWidth+"px"}},[Rr("canvas",{ref:"domcanvas",class:Tr.domCanvasName,attrs:{width:Tr.doubleCanvasWidth,height:Tr.doubleCanvasHeight}}),Rr("canvas",{ref:"selectcanvas",staticClass:"selectcanvas",attrs:{width:Tr.doubleCanvasWidth,height:Tr.doubleCanvasHeight},on:{contextmenu:function(Dr){return Tr.canvasRightClick.apply(null,arguments)}}}),"header"===Tr.isHeadFoot||"footer"===Tr.isHeadFoot?Rr("ho-head-foot",{attrs:{headerFooterPosition:Tr.canvasHeadFootPos,isHeadFoot:Tr.isHeadFoot},scopedSlots:Tr._u([{key:"head",fn:function(){return[Tr._t("hoPageHead")]},proxy:!0},{key:"foot",fn:function(){return[Tr._t("hoPageFoot")]},proxy:!0}],null,!0)}):Tr._e()],1)}),pn=[],_n=(Rr("1276"),Rr("1da1")),gn=(Rr("96cf"),Rr("e260"),Rr("4ec9"),Rr("d3b7"),Rr("3ca3"),Rr("ddb0"),Rr("2ca0"),Rr("a434"),Rr("6d0b")),mn=Rr("7450"),vn=Rr("d22d"),yn=Rr("53b1"),bn=Rr("562e"),wn=Rr("91a4"),xn=Rr("2381"),Cn=Rr("2072"),Pn=Rr("8905"),En=Rr("eb7b"),Sn=Rr("26a9"),Tn=Rr("8d1d"),Dn=Rr("cf50"),kn=function(){function DrawSelectLevel(Tr,Dr,Rr,Ur,Hr){Object(Xr["a"])(this,DrawSelectLevel),this._hoEditorFactoryID=Tr,this._selectCanvas=Rr,this._pageIndex=Dr,this._docIndex=Ur,this._drawPageIndex=Hr,this._selectStage=null,this._mouseDownCount=0,this._oldRange=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,this._shapesColor=new Map}return Object(Yr["a"])(DrawSelectLevel,[{key:"bindStage",value:function bindStage(){var Tr=this;if(!this._selectStage){var Dr,Rr,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._selectCanvas.width=Ur.pageProperty.canvasParams.width,this._selectCanvas.height=Ur.pageProperty.canvasParams.height,this._selectStage=new createjs.Stage(this._selectCanvas),this._selectStage.scaleX=Dn["a"].instance().scaleXY,this._selectStage.scaleY=Dn["a"].instance().scaleXY;var Hr=Ur.drawTree.drawPages[this._pageIndex];null!==(Dr=Hr.drawDomLevel)&&void 0!==Dr&&Dr.stage&&(this._selectStage.nextStage=null===(Rr=Hr.drawDomLevel)||void 0===Rr?void 0:Rr.stage),Hr.setEnableMouseOver(5),this._selectStage.addChild(Hr.selectContainer),Ur.drawTree.paintStatus!==mn["b"].psPrint&&Ur.drawTree.paintStatus!==mn["b"].psPreview&&(this._selectStage.addChild(Hr.headerLeftTag),this._selectStage.addChild(Hr.headerRightTag),this._selectStage.addChild(Hr.footerLeftTag),this._selectStage.addChild(Hr.footerRightTag)),this._selectStage.addEventListener("stagemousedown",(function(Dr){switch(Ur.drawTree.paintStatus){case mn["b"].psPreview:Tr.mouseDownPreview(Dr);break;case mn["b"].psPrint:break;default:Tr.mouseDown(Dr);break}})),this._selectStage.addEventListener("stagemouseup",(function(Dr){switch(Ur.drawTree.paintStatus){case mn["b"].psPreview:Tr.mouseUpPreview(Dr);break;case mn["b"].psPrint:break;default:Tr.mouseup(Dr);break}})),this._selectStage.addEventListener("stagemousemove",(function(Dr){switch(Ur.drawTree.paintStatus){case mn["b"].psPreview:Tr.mouseMovePreview(Dr);break;case mn["b"].psPrint:break;default:Tr.mousemove(Dr);break}})),this._selectStage.update()}}},{key:"clearStage",value:function clearStage(){this._selectStage&&(this._selectStage.enableMouseOver(-1),this._selectStage.enableDOMEvents(!1),this._selectStage.removeAllEventListeners(),this._selectStage.removeAllChildren(),this._selectStage.canvas=null,this._selectStage=null,this._selectCanvas.width=0,this._selectCanvas.height=0)}},{key:"mouseDownPreview",value:function mouseDownPreview(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];if(Dr.printStatus.printRange==xn["b"].prCaret){var Ur=new createjs.Point(Tr.localX,Tr.localY),Hr=Rr.drawMainDoc;Hr&&(Ur.y<Hr.dTop&&(Ur.y=0),Dr.printStatus.drawPrintCaret.Position=[Rr.pageIndex,Ur.y])}else if(Dr.printStatus.printRange==xn["b"].prSelected){var Wr=new createjs.Point(Tr.localX,Tr.localY);Dr.printStatus.drawPrintSelected.mousePressed=!0;var zr=Dr.docTree.ctlKeyPressed(gn["e"].ckCtrl)?1:0;Dr.printStatus.drawPrintSelected.addPrintArea(Rr.pageIndex,new Pn["b"](Wr),zr)}}},{key:"mouseMovePreview",value:function mouseMovePreview(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.printStatus.printRange==xn["b"].prSelected&&Dr.printStatus.drawPrintSelected.mousePressed){var Rr,Ur=new createjs.Point(Tr.localX,Tr.localY);null===(Rr=Dr.printStatus.drawPrintSelected.selectedArea)||void 0===Rr||Rr.setEndPoint(Ur),Dr.printStatus.drawPrintSelected.paintArea()}}},{key:"mouseUpPreview",value:function mouseUpPreview(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.printStatus.printRange==xn["b"].prSelected){var Rr,Ur=new createjs.Point(Tr.localX,Tr.localY);Dr.printStatus.drawPrintSelected.mousePressed=!1,null===(Rr=Dr.printStatus.drawPrintSelected.selectedArea)||void 0===Rr||Rr.setEndPoint(Ur)}}},{key:"mouseDblClick",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr,Qr,Zr,en,tn,rn,nn,an,sn,cn,un,dn,hn,pn,_n,gn,mn,xn,Pn,Dn,kn,On,In,Mn,Nn,Ln;return regeneratorRuntime.wrap((function _callee$(An){while(1)switch(An.prev=An.next){case 0:if(Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex],Tr.currentTarget!==this.stage){An.next=43;break}if(Ur=Dr.drawTree.activePage,Hr=Ur?Ur.pageIndex:-1,Wr=null,Ur&&Ur.drawDomLevel&&Ur.activeDrawRect&&(Wr=Ur.activeDrawRect),Dr.drawTree.selectRange.clearAllSelectShape(),Dr.drawTree.selectRange.beginRangeSelect=!1,Dr.drawTree.activePage=Rr,Dr.drawTree.inViewPages.indexOf(this._pageIndex)<0&&Dr.drawTree.inViewPages.push(this._pageIndex),Rr.drawDomLevel){An.next=13;break}return An.abrupt("return",!1);case 13:if(zr=Rr.drawDomLevel.getDrawPlaceByPos(Tr.stageX,Tr.stageY),Vr=Wr==zr,Rr.activeDrawRect=zr,Wr===zr){An.next=20;break}return Kr=new Cn["a"](Hr,this._pageIndex,Wr,zr),An.next=20,Dr.drawTree.pageAreaChanged(Kr);case 20:if($r=Dr.drawTree.getStagePosition(Rr,zr,Tr.stageX,Tr.stageY),!$r){An.next=43;break}if(Vr||!$r.page){An.next=28;break}if(Dr.docTree.curDomRange.setSamePath($r.path),0!==zr.children.length){An.next=26;break}return An.abrupt("return",!0);case 26:return Dr.drawTree.moveCaretToPath($r.path),An.abrupt("return",!0);case 28:if(Gr=Dr.docTree.findNodePositionByPath($r.path),!Gr||!Gr.node){An.next=43;break}if(Xr=Gr.node.prevSibling(),Xr&&(Yr=Dr.docTree.curDomRange.clone(),Qr=Dr.docTree.getNodeLastPath(Xr),Zr=Dr.docTree.getNodeLastPath(Gr.node),en=new yn["a"](Dr.hoEditorFactoryId,Qr,Zr),tn=new vn["a"](Yr,en),Dr.docTree.selectChange(tn),Dr.docTree.curDomRange=en),Gr.node.nodeType!==wn["b"].ntMedicalExpression&&Gr.node.nodeType!==wn["b"].ntControl&&(null===(Jr=Gr.node.parentNode)||void 0===Jr?void 0:Jr.nodeType)!==wn["b"].ntField&&Gr.node.nodeType!==wn["b"].ntSign||(rn=new bn["a"](Gr.node,"dblclick",this._pageIndex),Dr.docTree.nodeNeedModify(rn)),!(Gr.node.parentNode instanceof En["a"])){An.next=43;break}if(nn=Gr.node.parentNode,an=nn.table.colInfos[Gr.node.parentNode.row.indexOf(Gr.node.parentNode)],an.isAllowEdit){An.next=38;break}return An.abrupt("return");case 38:if(sn=nn.table.rowInfos[Gr.node.parentNode.table.rows.indexOf(Gr.node.parentNode.row)],sn.isAllowEdit&&!sn.rowProperty.repeatAsTitleAtPageTop){An.next=41;break}return An.abrupt("return");case 41:if(cn=an.colProperty,cn.editorProperty===Sn["e"].DateTime||cn.editorProperty===Sn["e"].DownList)un=new bn["a"](Gr.node,"dblclick",this._pageIndex),Dr.docTree.nodeNeedModify(un);else if(nn.cellProperty.editorProperty===Sn["e"].DateTime||nn.cellProperty.editorProperty===Sn["e"].DownList)dn=new bn["a"](Gr.node,"dblclick",this._pageIndex),Dr.docTree.nodeNeedModify(dn);else if(nn.table.tableProperty.isAutoChangeLine&&(hn=nn.table.drawTable.getDrawTableByPageIndex(Rr.pageIndex),hn&&(pn=nn.drawCell.getDrawPageCell(hn),pn))){for(_n=pn.globalToLocal(Tr.stageX,Tr.stageY),0,gn=0,mn=nn.drawCell.drawPageCells.indexOf(pn),xn=0;xn<mn;xn++)nn.drawCell.drawPageCells[xn].docHeight,gn+=nn.drawCell.drawPageCells[xn].dHeight;if(Pn=nn.drawCell.drawLines[nn.drawCell.drawLines.length-1],Pn.dTop+Pn.docHeight<gn+_n.y){for(Dn=_n.y+gn-(Pn.dTop+Pn.dHeight),kn=nn.table.tableProperty.autoLineHeightPx,On=Math.floor(Dn/kn),In="",Mn=0;Mn<On;Mn++)In+="\n";""!=In&&(Dr.docTree.curDomRange.clone(),Nn=Dr.docTree.getNodeLastPath(nn.childNodes[nn.childNodes.length-1]),Ln=new yn["a"](Dr.hoEditorFactoryId,Nn,Nn),Dr.drawTree.moveCaretToPath(Nn),Dr.docTree.curDomRange=Ln,Dr.docController.insertPlainTextAfterPath(Nn,In))}}case 43:return An.abrupt("return",!0);case 44:case"end":return An.stop()}}),_callee,this)})));function mouseDblClick(Dr){return Tr.apply(this,arguments)}return mouseDblClick}()},{key:"mouseDownHandle",value:function mouseDownHandle(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];if(!Rr.drawDomLevel)return!1;if(Tr.currentTarget===this.stage){var Ur;Dr.drawTree.selectRange.clearAllSelectShape(),Dr.drawTree.selectRange.beginRangeSelect=!0,null!==(Ur=Dr.drawTree.activePage)&&void 0!==Ur&&Ur.activeDrawRect.rootPath.startsWith(gn["h"])&&(Dr.drawTree.activePage=Rr),Dr.drawTree.inViewPages.indexOf(this._pageIndex)<0&&Dr.drawTree.inViewPages.push(this._pageIndex),this._oldRange=Dr.docTree.curDomRange.clone();var Hr=Dr.drawTree.getStagePosition(Rr,Rr.activeDrawRect,Tr.stageX,Tr.stageY);if(Hr){var Wr=Dr.docTree.curOnDragNode;if(Wr){var zr=Wr.getNodePath();if(zr!==Hr.path)for(var Vr=Wr.drawNodes[0],Kr=Vr.children.length-1;Kr>=0;Kr--)Vr.children[Kr].name!==Wr.id&&Vr.children.splice(Kr,1);Dr.docTree.curOnDragNode=null,Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(Rr.pageIndex)}var $r=Dr.drawTree.curOnSelectedComment;if($r){var Gr=$r.eNode.drawNodes[0],Jr=Dr.drawPageTree.getMainRootArea(Gr);if(!Jr)return!1;for(var Xr=0;Xr<Jr.children.length;Xr++){var Yr=Jr.children[Xr];Yr instanceof createjs.Shape&&$r.id===Yr.name&&(Yr.alpha=.5),Yr instanceof createjs.Container&&$r.id===Yr.name&&Yr.children.forEach((function(Tr){"back"===Tr.name&&(Tr.alpha=.5)}))}Dr.drawTree.curOnSelectedComment=null,Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(Rr.pageIndex)}Dr.drawTree.selectRange.spStart=Hr,Dr.drawTree.selectRange.spEnd=Hr,Dr.docTree.curDomRange.setSamePath(Hr.path),Dr.drawTree.moveCaretToPath(Hr.path)}}return!0}},{key:"mouseDown",value:function mouseDown(Tr){var Dr=this,Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.structureConvert._superiorSign;if(Ur.length>0&&(Rr.drawTree.paintStatus===mn["b"].psEdit||Rr.drawTree.paintStatus===mn["b"].psReview)){if(this._pageIndex<Ur[1])return!1;if(this._pageIndex=Ur[1]){var Hr=Rr.drawPageTree.drawMainDocs[this._pageIndex].globalToLocal(Tr.stageX,Tr.stageY);if(Hr.y<Ur[2])return!1}}if(0===Tr.nativeEvent.button){this._mouseDownCount+=1;setTimeout((function(){Dr._mouseDownCount=0}),300);if(2===this._mouseDownCount)return this.mouseDblClick(Tr),this._mouseDownCount=0,Rr.drawTree.selectRange.beginRangeSelect=!1,!0;this.mouseDownHandle(Tr)}else 2===Tr.nativeEvent.button&&(Rr.drawTree.selectRange.beginRangeSelect=!1);return!0}},{key:"mousemove",value:function mousemove(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];if(!Rr.drawDomLevel)return!1;if(Dr.drawTree.activePage!==Rr&&(Dr.drawTree.activePage=Rr),Dr.drawTree.inViewPages.indexOf(this._pageIndex)<0&&Dr.drawTree.inViewPages.push(this._pageIndex),Dr.drawTree.selectRange.beginRangeSelect&&1===(parseInt(Tr.nativeEvent.buttons)&&1)){var Ur;null!==(Ur=Dr.drawTree.activePage)&&void 0!==Ur&&Ur.activeDrawRect.rootPath.startsWith(gn["h"])&&Dr.drawTree.activePage!==Rr&&(Dr.drawTree.activePage=Rr);var Hr=Dr.drawTree.getStagePosition(Rr,Rr.activeDrawRect,Tr.stageX,Tr.stageY);Hr&&(Dr.docTree.curDomRange.endPath=Hr.path,Dr.drawTree.selectRange.spEnd=Hr,Dr.drawTree.drawSelectRange())}}},{key:"mouseup",value:function mouseup(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.drawTree.selectRange){var Rr=Dr.drawTree.selectRange.spStart,Ur=Dr.drawTree.selectRange.spEnd;if(Dr.drawTree.selectRange.beginRangeSelect){if(Rr&&Rr.page&&Ur.dline===Rr.dline&&Ur.index===Rr.index&&Ur.path===Rr.path)Dr.docTree.curDomRange.setSamePath(Rr.path),-1===Ur.index?Dr.drawTree.moveCaretToDitem(Rr.page,Rr.dline,Rr.index):Dr.drawTree.moveCaretToPath(Rr.path);else if(Dr.drawTree.activePage&&Dr.drawTree.moveEditTo(Dr.drawTree.activePage.pageIndex,0,0),Dr.formatPainter.inuse)return Dr.drawTree.selectRange.beginRangeSelect=!1,void Dr.formatPainter.useFormatPainter();var Hr=new vn["a"](this._oldRange,Dr.docTree.curDomRange);Dr.docTree.selectChange(Hr)}if(Dr.drawTree.selectRange.beginRangeSelect=!1,Rr){var Wr=Dr.docTree.findNodePositionByPath(Rr.path);if(Wr&&Wr.node){var zr=parseInt(Tr.nativeEvent.button),Vr=0===zr?"leftclick":2===zr?"rightclick":"centerclick",Kr=new bn["a"](Wr.node,Vr,Rr.page?Rr.page.pageIndex:this._pageIndex);Dr.docTree.nodeNeedModify(Kr)}}}}},{key:"stage",get:function get(){return this._selectStage}},{key:"shapesColor",get:function get(){return this._shapesColor}},{key:"selectCanvas",get:function get(){return this._selectCanvas}}]),DrawSelectLevel}(),On=Rr("59dd");(function(Tr){Tr[Tr["dpNone"]=0]="dpNone",Tr[Tr["dpHeader"]=1]="dpHeader",Tr[Tr["dpMain"]=2]="dpMain",Tr[Tr["dpFooter"]=3]="dpFooter"})(un||(un={}));var In=function(){function DrawDomLevel(Tr,Dr,Rr){Object(Xr["a"])(this,DrawDomLevel),this._hoEditorFactoryID=Tr,this._pageIndex=Dr,this._domCanvas=Rr,this._domStage=null,this._headerTop=0,this._mainDocTop=0,this._footerTop=0}return Object(Yr["a"])(DrawDomLevel,[{key:"footerTop",get:function get(){return this._footerTop},set:function set(Tr){this._footerTop=Tr}},{key:"bindStage",value:function bindStage(Tr){if(this._domStage)Tr&&this._domStage.update();else{var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._domCanvas.width=Dr.pageProperty.canvasParams.width,this._domCanvas.height=Dr.pageProperty.canvasParams.height,this._domStage=new createjs.Stage(this._domCanvas),this._domStage.scaleX=Dn["a"].instance().scaleXY,this._domStage.scaleY=Dn["a"].instance().scaleXY;var Rr=Dr.drawTree.drawPages[this._pageIndex];this._domStage.addChild(Rr.drawDocContainer),Rr.paintBackGround(),Dr.subDocManger.paintSubDoc(Rr.pageIndex,On["a"].hftHead),Dr.subDocManger.repaintPageMarkNodes(Rr.drawHeader,On["a"].hftHead),Dr.subDocManger.paintSubDoc(Rr.pageIndex,On["a"].hftFoot),Dr.subDocManger.repaintPageMarkNodes(Rr.drawFooter,On["a"].hftFoot),Rr.drawHeader.x=Dr.pageProperty.leftMarginPixes,Rr.drawMainDoc.x=Dr.pageProperty.leftMarginPixes,Rr.drawFooter.x=Dr.pageProperty.leftMarginPixes,Rr.drawDocContainer.addChild(Rr.drawMainDoc)}}},{key:"clearStage",value:function clearStage(){if(this._domStage){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.drawTree.drawPages[this._pageIndex];this._domStage.enableMouseOver(-1),this._domStage.enableDOMEvents(!1),this._domStage.removeAllEventListeners(),this._domStage.removeAllChildren(),this._domStage.canvas=null,this._domStage=null,this._domCanvas.width=0,this._domCanvas.height=0}}},{key:"stage",get:function get(){return this._domStage}},{key:"mainDocTop",get:function get(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawTree.drawPages[this._pageIndex];return Math.max(Dr.drawHeader.dHeight,Dr.drawHeader.docHeight)},set:function set(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[this._pageIndex];this._mainDocTop=Tr,Rr.drawMainDoc&&(Rr.drawMainDoc.y=Tr)}},{key:"getDrawPlaceByPos",value:function getDrawPlaceByPos(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.drawTree.drawPages[this._pageIndex],Hr=Dr/Dn["a"].instance().scaleXY;return Hr>=0&&Hr<=this._mainDocTop?Ur.drawHeader:Hr>this._mainDocTop&&Hr<this._footerTop?Ur.drawMainDoc:Ur.drawFooter}},{key:"domCanvas",get:function get(){return this._domCanvas}}]),DrawDomLevel}(),HoHeadFootvue_type_template_id_5d96d796_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",[Rr("ul",{staticClass:"ho-headfoot-list ho-head-list",style:Tr.headTop},[Rr("li",{staticClass:"ho-headfoot-item"},[Tr._v("页眉")]),Rr("span",{staticStyle:{flex:"1"}}),Tr._t("head")],2),Rr("ul",{staticClass:"ho-headfoot-list ho-head-list",style:Tr.footerTop},[Rr("li",{staticClass:"ho-headfoot-item"},[Tr._v("页脚")]),Rr("span",{staticStyle:{flex:"1"}}),Tr._t("foot")],2)])},Mn=[],Nn=function(Tr){Object(Qr["a"])(HoHeadFoot,Tr);var Dr=Object(Zr["a"])(HoHeadFoot);function HoHeadFoot(){return Object(Xr["a"])(this,HoHeadFoot),Dr.apply(this,arguments)}return Object(Yr["a"])(HoHeadFoot,[{key:"headTop",get:function get(){return"top: "+(this.headerFooterPosition.headerY+1)+"px;border-top: 2px dotted #66b3ff;"}},{key:"footerTop",get:function get(){return"bottom: "+(this.headerFooterPosition.footerY+1)+"px;border-bottom: 2px dotted #66b3ff;"}}]),HoHeadFoot}(Kr.a);__decorate([Prop()],Nn.prototype,"headerFooterPosition",void 0),__decorate([Prop()],Nn.prototype,"isHeadFoot",void 0),Nn=__decorate([an({name:"HoHeadFoot"})],Nn);var Ln=Nn,An=Ln;Rr("5892");function normalizeComponent(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr){var Kr,$r="function"===typeof Tr?Tr.options:Tr;if(Dr&&($r.render=Dr,$r.staticRenderFns=Rr,$r._compiled=!0),Ur&&($r.functional=!0),Wr&&($r._scopeId="data-v-"+Wr),zr?(Kr=function(Tr){Tr=Tr||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,Tr||"undefined"===typeof __VUE_SSR_CONTEXT__||(Tr=__VUE_SSR_CONTEXT__),Hr&&Hr.call(this,Tr),Tr&&Tr._registeredComponents&&Tr._registeredComponents.add(zr)},$r._ssrRegister=Kr):Hr&&(Kr=Vr?function(){Hr.call(this,($r.functional?this.parent:this).$root.$options.shadowRoot)}:Hr),Kr)if($r.functional){$r._injectStyles=Kr;var Gr=$r.render;$r.render=function renderWithStyleInjection(Tr,Dr){return Kr.call(Dr),Gr(Tr,Dr)}}else{var Jr=$r.beforeCreate;$r.beforeCreate=Jr?[].concat(Jr,Kr):[Kr]}return{exports:Tr,options:$r}}var Rn=normalizeComponent(An,HoHeadFootvue_type_template_id_5d96d796_scoped_true_render,Mn,!1,null,"5d96d796",null),Fn=Rn.exports,jn=function(Tr){Object(Qr["a"])(HoPage,Tr);var Dr=Object(Zr["a"])(HoPage);function HoPage(){var Tr;return Object(Xr["a"])(this,HoPage),Tr=Dr.apply(this,arguments),Tr.isHeadFoot="",Tr}return Object(Yr["a"])(HoPage,[{key:"pageClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-container edit-container-margin":"edit-container"}},{key:"doubleCanvasHeight",get:function get(){return this.canvasHeight}},{key:"doubleCanvasWidth",get:function get(){return this.canvasWidth}},{key:"domCanvasName",get:function get(){return this.currentActivePages===this.index?"domcanvas domcanvas-selected":"domcanvas"}},{key:"inViewPagesChange",value:function inViewPagesChange(Tr){-1===Tr.indexOf(this.index)?this.selectcanvas.removeEventListener("dblclick",this.addEventerDblClick,!0):this.selectcanvas.addEventListener("dblclick",this.addEventerDblClick,!0)}},{key:"mounted",value:function mounted(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId),Rr=new In(this.hoEditorId,this.index,this.domcanvas),Ur=new kn(this.hoEditorId,this.index,this.selectcanvas,this.docIndex,this.index),Hr=Dr.drawTree.drawPages[this.index];Hr.init(Rr,Ur),this.$emit("pageReady",Hr),this.$nextTick((function(){var Dr;return null===(Dr=Tr.viewableAreaObserver)||void 0===Dr?void 0:Dr.observe(Tr.hoPage)}))}},{key:"addEventerDblClick",value:function addEventerDblClick(){var Tr=Tn["a"].instance().getFactory(this.hoEditorId).vueController.getCaretPosition(),Dr="";Tr&&(Dr=Tr.split("/")[0]),this.isHeadFoot=Dr}},{key:"canvasRightClick",value:function canvasRightClick(Tr){this.$emit("canvasRightClick",Tr)}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr;null===(Tr=this.viewableAreaObserver)||void 0===Tr||Tr.unobserve(this.hoPage)}}]),HoPage}(Kr.a);__decorate([Prop()],jn.prototype,"canvasWidth",void 0),__decorate([Prop()],jn.prototype,"canvasHeight",void 0),__decorate([Prop()],jn.prototype,"index",void 0),__decorate([Prop()],jn.prototype,"hoEditorId",void 0),__decorate([Prop()],jn.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],jn.prototype,"docIndex",void 0),__decorate([Prop()],jn.prototype,"currentActivePages",void 0),__decorate([Prop()],jn.prototype,"mouseMoveNodes",void 0),__decorate([Prop()],jn.prototype,"viewableAreaObserver",void 0),__decorate([Prop()],jn.prototype,"inViewPages",void 0),__decorate([Prop()],jn.prototype,"canvasHeadFootPos",void 0),__decorate([Prop()],jn.prototype,"poperTipPos",void 0),__decorate([Ref()],jn.prototype,"hoPage",void 0),__decorate([Ref()],jn.prototype,"domcanvas",void 0),__decorate([Ref()],jn.prototype,"selectcanvas",void 0),__decorate([Watch("inViewPages")],jn.prototype,"inViewPagesChange",null),jn=__decorate([an({name:"HoPage",components:{HoHeadFoot:Fn}})],jn);var Bn=jn,Un=Bn,Hn=(Rr("01ea"),normalizeComponent(Un,hn,pn,!1,null,"32825c78",null)),Wn=Hn.exports,HoToPagevue_type_template_id_2e02cb8f_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Tr.visible?Rr("div",{staticClass:"ho-to-page",style:{right:Tr.styleRight,bottom:Tr.styleBottom},on:{click:function(Dr){return Dr.stopPropagation(),Tr.handleClick.apply(null,arguments)}}},[Tr._t("default",(function(){return[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M536.797267 281.753035c-4.232394-6.344498-10.273994-11.05887-17.347087-13.536294-3.714602-1.481747-7.735172-2.266623-12.144598-2.266623l-0.183172 0-1.147126-0.12075c-0.575098 0-1.026376 0.090051-1.601474 0.150426-4.229325 0-8.18645 0.7552-11.69332 2.145873-7.312546 2.508123-13.385868 7.312546-17.223267 13.355169l-254.17698 254.752078c-5.952572 5.921873-9.18622 13.990642-9.18622 22.691815 0 9.66922 4.110621 19.24839 11.17962 26.318412 7.010671 6.980995 16.075117 10.850116 25.501814 10.850116 8.702196 0 16.861016-3.325745 23.024389-9.457396 0.242524-0.302899 0.544399-0.544399 0.847298-0.847298 0.63445-0.544399 1.388627-1.24127 1.721201-1.783623l195.588607-195.256032 0.393973 469.799876c-0.151449 1.026376-0.151449 1.962701-0.091074 2.870374l0.060375 1.088798c0 17.675568 15.47239 31.513738 35.233456 31.513738 19.942191 0 36.07666-14.140045 36.07666-31.513738l0.364297-473.759047 195.34506 194.98281c0.632403 0.787946 1.328251 1.452071 2.084475 2.087545l0.846274 0.816598c6.104021 6.131651 14.262842 9.457396 22.961968 9.457396 9.428743 0 18.49319-3.868097 25.504884-10.850116 14.07967-14.048971 14.987343-36.016285 1.991354-49.010227L536.797267 281.753035z"}}),Rr("path",{attrs:{d:"M887.66338 129.97933 124.346541 129.97933c-17.706267 0-32.073486 14.382569-32.073486 32.028461 0 17.675568 14.367219 32.05916 32.073486 32.05916l763.317862 0c17.677615 0 32.060183-14.383592 32.060183-32.05916C919.723563 144.361899 905.342018 129.97933 887.66338 129.97933"}})])]}))],2):Tr._e()},qn=[],zn={name:"HoToPage",props:{visibilityHeight:{type:Number,default:200},inViewPages:[Array],target:{type:String,default:".ho-editor-list"},right:{type:Number,default:40},bottom:{type:Number,default:40},hoEditorId:[String]},data:function data(){return{visible:!1,container:null,throttledScrollHandler:null}},computed:{styleBottom:function styleBottom(){return"".concat(this.bottom,"px")},styleRight:function styleRight(){return"".concat(this.right,"px")}},watch:{inViewPages:function inViewPages(){1===this.inViewPages.filter((function(Tr){return 0===Tr})).length?this.visible=!1:this.visible=!0}},created:function created(){this.initScrollPolyfill()},mounted:function mounted(){this.init()},methods:{handleClick:function handleClick(){this.toScroll()},toScroll:function toScroll(){var Tr,Dr=Tn["a"].instance().getFactory(this.hoEditorId),Rr=Dr.domController.getPageProperty(),Ur=Rr.heightPixes+10,Hr=1;null===(Tr=this.container)||void 0===Tr||Tr.scrollTo({top:Ur*(Hr-1),left:0,behavior:"smooth"})},init:function init(){this.container=document.querySelector(this.target)},initScrollPolyfill:function initScrollPolyfill(){window.scrollTo||(window.scrollTo=function(Tr,Dr){window.pageXOffset=Tr,window.pageYOffset=Dr}),window.scrollBy||(window.scrollBy=function(Tr,Dr){window.pageXOffset+=Tr,window.pageYOffset+=Dr}),document.body.scrollTo||(Element.prototype.scrollTo=function(Tr,Dr){this.scrollLeft=Tr,this.scrollTop=Dr}),document.body.scrollBy||(Element.prototype.scrollBy=function(Tr,Dr){this.scrollLeft+=Tr,this.scrollTop+=Dr})}}},Vn=zn,Kn=(Rr("ca95"),normalizeComponent(Vn,HoToPagevue_type_template_id_2e02cb8f_render,qn,!1,null,null,null)),$n=Kn.exports,Gn=$n,Jn=Rr("6ae4"),PoperSelectvue_type_template_id_79fdead8_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[Rr("div",{staticStyle:{height:"0",overflow:"hidden"}},[Rr("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("defs",[Rr("g",{attrs:{id:"selected"}},[Rr("path",{attrs:{d:"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636",fill:"#2175FF"}})])])])]),Tr.isCanSearch&&!Tr.mutexSelect?Rr("div",{staticStyle:{padding:"5px"}},[Rr("el-input",{attrs:{placeholder:Tr.currentListNameText+"搜索",size:"mini"},on:{input:Tr.searchList},model:{value:Tr.input,callback:function(Dr){Tr.input=Dr},expression:"input"}})],1):Tr._e(),"selectPoper"===Tr.poperType&&Tr.currentList.length>=0?Rr("div",{staticClass:"select-poper"},[Rr("div",{staticClass:"list-box"},[0==Tr.currentList.length?Rr("ul",{staticClass:"list"},[Rr("li",{staticStyle:{"text-align":"center"}},[Tr._v("无选项")])]):Tr._e(),Tr.isAllowMultiSelect&&!Tr.mutexSelect&&Tr.currentList.length>0?Rr("el-checkbox-group",{on:{change:Tr.selectItemsChange},model:{value:Tr.selectedIds,callback:function(Dr){Tr.selectedIds=Dr},expression:"selectedIds"}},[Rr("RecycleScroller",{staticClass:"scroller",attrs:{items:Tr.currentList,"item-size":32,"key-field":"id"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){var Ur=Dr.item;return[Ur.title?Rr("p",{staticClass:"poper-select-title"},[Tr._v(Tr._s(Ur.text))]):Tr._e(),Ur.title?Tr._e():Rr("el-checkbox",{key:Ur.id,attrs:{label:Ur.id}},[Tr._v(" "+Tr._s(Ur.text&&-1!==Ur.text.indexOf("<元素>")?Ur.text.split("<元素>")[0]:Ur.text.split("<搜索>")[0])+" ")])]}}],null,!1,1647146796)})],1):Tr._e(),Tr.isAllowMultiSelect&&Tr.mutexSelect&&Tr.currentList.length>0?[Rr("el-checkbox-group",{on:{change:Tr.mutexSelectItemsChange},model:{value:Tr.mutexSelectedIds,callback:function(Dr){Tr.mutexSelectedIds=Dr},expression:"mutexSelectedIds"}},[Tr._l(Tr.currentList,(function(Dr,Ur){return[Ur>=1&&Dr.type!=Tr.currentList[Ur-1].type?Rr("p",{staticClass:"el-checkbox-mutex-line"}):Tr._e(),Rr("el-checkbox",{key:Dr.id,attrs:{label:Dr.id,disabled:""!==Tr.mutexType&&Tr.mutexType!=Dr.type}},[Tr._v(" "+Tr._s(Dr.text&&-1!==Dr.text.indexOf("<元素>")?Dr.text.split("<元素>")[0]:Dr.text.split("<搜索>")[0])+" ")])]}))],2)]:Tr._e(),!Tr.isAllowMultiSelect&&Tr.currentList.length>0?Rr("el-radio-group",{on:{change:Tr.selectItemsChange},model:{value:Tr.selectedId,callback:function(Dr){Tr.selectedId=Dr},expression:"selectedId"}},Tr._l(Tr.currentList,(function(Dr){return Rr("el-radio",{key:Dr.id,attrs:{label:Dr.id}},[Tr._v(" "+Tr._s(Dr.text&&-1!==Dr.text.indexOf("<元素>")?Dr.text.split("<元素>")[0]:Dr.text.split("<搜索>")[0])+" ")])})),1):Tr._e(),Tr.selectedList.length>0&&Tr.isAllowMultiSelect&&!Tr.mutexSelect&&Tr.isCanSearch?Rr("transition-group",{staticClass:"list",attrs:{name:"drag",tag:"ul"}},[Rr("li",{key:"已选择",staticStyle:{position:"absolute",top:"0px","z-index":"111",background:"#fff"}},[Tr._v("已选择"+Tr._s(Tr.currentListNameText))]),Tr._l(Tr.selectedList,(function(Dr,Ur){return[Rr("li",{key:Dr.id,staticClass:"drag-item selected",attrs:{draggable:""},on:{dragenter:function(Dr){return Tr.dragenter(Dr,Ur)},dragover:function(Dr){return Tr.dragover(Dr,Ur)},dragstart:function(Dr){return Tr.dragstart(Ur)}}},[Rr("span",[Tr._v(Tr._s(Dr.text&&-1!==Dr.text.indexOf("<元素>")?Dr.text.split("<元素>")[0]:Dr.text.split("<搜索>")[0]))]),Rr("i",{staticClass:"el-icon-delete",on:{click:function(Rr){return Tr.deleteItems(Dr,Ur)}}})])]}))],2):Tr._e()],2)]):Tr._e(),"selectPoper"===Tr.poperType&&Tr.isAllowMultiSelect?Rr("footer",[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureSelect}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.cancelSelect}},[Tr._v("清空")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1):Tr._e(),"datePoper"===Tr.poperType?Rr("div",{staticClass:"date-poper"},[Tr.dateTimeStyle.includes("dd")?Rr("DatePanel",{attrs:{value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.dateTimeStyle.includes("MM")&&!Tr.dateTimeStyle.includes("dd")?Rr("DatePanel",{attrs:{dateType:"month",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.dateTimeStyle.includes("yyyy")&&!Tr.dateTimeStyle.includes("MM")?Rr("DatePanel",{attrs:{dateType:"year",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.dateTimeStyle.includes("HH")?Rr("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[Rr("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:Tr.timeStyle,"value-format":Tr.timeStyle,size:"mini"},model:{value:Tr.time,callback:function(Dr){Tr.time=Dr},expression:"time"}})],1):Tr._e(),Rr("footer",[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureDate}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.currentDateTime}},[Tr._v("此刻")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)],1):Tr._e()])},Xn=[],Yn=(Rr("cca6"),Rr("d81d"),Rr("9685")),Qn=Rr("f7fa"),Zn=function(Tr){Object(Qr["a"])(AppendToBodyMixins,Tr);var Dr=Object(Zr["a"])(AppendToBodyMixins);function AppendToBodyMixins(){return Object(Xr["a"])(this,AppendToBodyMixins),Dr.apply(this,arguments)}return Object(Yr["a"])(AppendToBodyMixins,[{key:"mounted",value:function mounted(){var Tr=this;this.$nextTick((function(){var Dr=document.querySelector("body");Dr.append?Dr.append(Tr.$el):Dr.appendChild(Tr.$el)}))}}]),AppendToBodyMixins}(Kr.a);Zn=__decorate([an],Zn);var ei=Rr("4b89"),ti={dataSourceEnabled:!0,dataSource:"",format:"",visitPath:"",isReadOnly:!1,autoUpdate:!1,executeStatus:0},ri={inputFieldType:0,id:"",innerCode:"",labelText:"",text:"",name:"",tipText:"",readOnlyStatus:ei["e"].false,fixedWidth:0,canModifyContent:!0,isAllowDelete:!1,enableGlobalColor:!1,defaultValue:"",downListProperty:new ei["c"],dataVerifyFormat:new ei["b"],bandDataSource:ti,customProperty:new Object,alignWithBlocked:!1,innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,keyValue:""},DatePanelvue_type_template_id_7e43cc0e_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"component-date",class:Tr.customClass},[Rr("div",{staticClass:"my-vue-date2 "},[Rr("div",{staticClass:"date-header"},[Rr("i",{staticClass:"el-icon-d-arrow-left last",on:{click:Tr.last}}),Rr("p",[Rr("span",{directives:[{name:"show",rawName:"v-show",value:"year"===Tr.type,expression:"type === 'year'"}]},[Tr._v(Tr._s(Tr.yearTitle)+" 年")]),Rr("span",{directives:[{name:"show",rawName:"v-show",value:"year"!==Tr.type,expression:"type !== 'year'"}],on:{click:Tr.showYear}},[Tr._v(Tr._s(Tr.year)+" 年")]),Rr("span",{directives:[{name:"show",rawName:"v-show",value:"date"===Tr.type,expression:"type === 'date'"}],on:{click:Tr.showMonth}},[Tr._v(Tr._s(Tr.month)+" 月")])]),Rr("i",{staticClass:"el-icon-d-arrow-right next",on:{click:Tr.next}})]),Rr("ul",{directives:[{name:"show",rawName:"v-show",value:"year"===Tr.type,expression:"type === 'year'"}],staticClass:"years"},Tr._l(Tr.yearList,(function(Dr){return Rr("li",{key:Dr+Math.random(0,1),class:Tr.nowYear==Dr?"active":"",on:{click:function(Rr){return Rr.stopPropagation(),Tr.getYear(Dr)}}},[Tr._v(Tr._s(Dr))])})),0),Rr("ul",{directives:[{name:"show",rawName:"v-show",value:"month"===Tr.type,expression:"type === 'month'"}],staticClass:"years "},Tr._l(12,(function(Dr){return Rr("li",{key:Dr,class:Tr.month==Dr?"active":"",on:{click:function(Rr){return Rr.stopPropagation(),Tr.getMonth(Dr)}}},[Tr._v(Tr._s(Dr)+"月")])})),0),Rr("table",{directives:[{name:"show",rawName:"v-show",value:"date"===Tr.type&&"date"===Tr.dateType,expression:"type === 'date' && dateType === 'date'"}],attrs:{colspan:"0",rowspan:"0"}},[Tr._m(0),Tr._l(Tr.rows,(function(Dr,Ur){return Rr("tr",{key:Ur},Tr._l(Dr,(function(Dr,Ur){return Rr("td",{key:Ur,class:Dr.date==Tr.nowDate?"today":""},[Rr("span",{staticClass:"date-item",class:{grey:"last"==Dr.month||"next"==Dr.month,active:Dr.date===Tr.date},attrs:{title:Dr.date},on:{dblclick:function(Rr){return Tr.getDate(Dr,Rr,"dblclick")},click:function(Rr){return Tr.getDate(Dr,Rr)}}},[Tr._v(Tr._s(Dr.text))])])})),0)}))],2)])])},ni=[function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("tr",[Rr("th",[Tr._v("日")]),Rr("th",[Tr._v("一")]),Rr("th",[Tr._v("二")]),Rr("th",[Tr._v("三")]),Rr("th",[Tr._v("四")]),Rr("th",[Tr._v("五")]),Rr("th",[Tr._v("六")])])}],ii={name:"DatePanel",props:{customClass:{type:String,default:""},value:{type:String,default:""},dateType:{type:String,default:"date"}},data:function data(){return{type:"",yearList:[],year:0,month:0,dateText:0,dateLength:0,startDay:0,rows:[],date:[],nowMonth:0,nowDate:"",weekIndex:"",nowYear:0,separator:"/"}},computed:{yearTitle:function yearTitle(){return this.yearList[0]+"-"+this.yearList[11]}},watch:{value:function value(Tr){this.init()}},mounted:function mounted(){this.type=this.dateType,this.yearList=[],this.init()},methods:{init:function init(){var Tr=this.value.replace(/[^\d]/g,"/"),Dr=Tr?new Date(Tr):new Date;this.year=Dr.getFullYear(),this.month=Dr.getMonth()+1,this.dateText=Dr.getDate(),this.nowMonth=this.month,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.dateLength=this.getDateLength(this.month),this.nowDate=this.format(this.year+this.separator+this.month+this.separator+Dr.getDate());for(var Rr=0;Rr<12;Rr++)this.yearList.push(this.year+Rr);this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows()},showYear:function showYear(){this.type="year"},getYear:function getYear(Tr){"year"===this.type&&(this.nowYear=Tr,this.year=Tr,this.yearDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},showMonth:function showMonth(){this.type="month"},getMonth:function getMonth(Tr){"month"===this.type&&(this.month=Tr,this.monthDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},getDateLength:function getDateLength(Tr){return 1==Tr||3==Tr||5==Tr||7==Tr||8==Tr||10==Tr||12==Tr?31:2==Tr?this.year%4===0&&this.year%100!==0||this.year%400===0?29:28:30},getRows:function getRows(){var Tr,Dr=[],Rr=0,Ur=this.month-1==0?12:this.month-1,Hr=this.getDateLength(Ur);if(0!=this.startDay)for(var Wr=this.startDay;Wr>0;Wr--){var zr={};zr.text=Hr-Wr+1,zr.month="last",Tr=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(Hr-Wr+1):this.year-1+this.separator+"12"+this.separator+(Hr-Wr+1),zr.date=this.format(Tr),Dr.push(zr)}else for(var Vr=7;Vr>0;Vr--){var Kr={};Kr.text=Hr-Vr+1,Kr.month="last",Tr=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(Hr-Vr+1):this.year-1+this.separator+"12"+this.separator+(Hr-Vr+1),Kr.date=this.format(Tr),Dr.push(Kr)}for(var $r=0;$r<this.getDateLength(this.month);$r++){var Gr={};Gr.text=$r+1,Gr.month="now",Gr.date=this.format(this.year+this.separator+this.month+this.separator+($r+1)),Dr.push(Gr)}for(var Jr=this.startDay+this.getDateLength(this.month);Jr<42;Jr++){var Xr={};Rr+=1,Xr.text=Rr,Xr.month="next",Tr=this.month<12?this.year+this.separator+(this.month+1)+this.separator+Rr:this.year+1+this.separator+1+this.separator+Rr,Xr.date=this.format(Tr),Dr.push(Xr)}for(var Yr=[],Qr=0;Qr<42;Qr+=7)Yr.push(Dr.splice(0,7));this.rows=Yr,"year"===this.type?"date"!==this.dateType&&"month"!==this.dateType||(this.type="month"):"month"===this.type&&"date"===this.dateType&&(this.type="date")},last:function last(){if("date"===this.type||"week"===this.type)this.month>1?this.month-=1:(this.month=12,this.year-=1),this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows();else if("year"===this.type){this.year-=11,this.yearList=[];for(var Tr=0;Tr<12;Tr++)this.yearList.push(this.year+Tr)}else"month"===this.type&&(this.year-=1)},hasChoosed:function hasChoosed(Tr){if(Tr===this.date)return!0},next:function next(){if("date"===this.type||"week"===this.type)this.month<12?this.month+=1:(this.month=1,this.year+=1),this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows();else if("year"===this.type){this.year+=11,this.yearList=[];for(var Tr=0;Tr<12;Tr++)this.yearList.push(this.year+Tr)}else"month"===this.type&&(this.year+=1)},getDate:function getDate(Tr,Dr,Rr){this.type,this.date=Tr.date,this.dateText=Tr.text,this.$emit("getValue",{value:Tr.date,type:Rr})},getWeek:function getWeek(Tr){if("week"===this.type){this.weekIndex=this.rows[Tr][3].date;this.rows[Tr][0].date,this.rows[Tr][6].date;var Dr=this.getWeekNumber(new Date(this.rows[Tr][3].date)),Rr=new Date(this.rows[Tr][3].date).getMonth(),Ur=new Date(this.rows[Tr][3].date);1===Dr&&11===Rr&&(Ur.setHours(0,0,0,0),Ur.setDate(Ur.getDate()+3-(Ur.getDay()+6)%7));var Hr=Ur.getFullYear(),Wr="".concat(Hr," 第 ").concat(Dr>9?Dr:"0"+Dr," 周"),zr={text:Wr,date:this.rows[Tr][3].date,range:[this.rows[Tr][0].date,this.rows[Tr][6].date]};this.$emit("getValue",zr)}},getWeekNumber:function getWeekNumber(Tr){var Dr=new Date(Tr.getTime());Dr.setHours(0,0,0,0),Dr.setDate(Dr.getDate()+3-(Dr.getDay()+6)%7);var Rr=new Date(Dr.getFullYear(),0,4);return 1+Math.round(((Dr.getTime()-Rr.getTime())/864e5-3+(Rr.getDay()+6)%7)/7)},format:function format(Tr){var Dr=Tr.split(this.separator);return Dr[1]=Dr[1]>9?Dr[1]:"0"+Dr[1],Dr[2]=Dr[2]>9?Dr[2]:"0"+Dr[2],Dr.join(this.separator)}}},ai=ii,oi=(Rr("a3ea"),normalizeComponent(ai,DatePanelvue_type_template_id_7e43cc0e_render,ni,!1,null,null,null)),si=oi.exports,li=Rr("053b"),ci=Rr("110d"),ui=Rr("e508"),di=(Rr("a899"),Rr("39c3")),hi=function(Tr){Object(Qr["a"])(PoperSelectModal,Tr);var Dr=Object(Zr["a"])(PoperSelectModal);function PoperSelectModal(){var Tr;return Object(Xr["a"])(this,PoperSelectModal),Tr=Dr.apply(this,arguments),Tr.textParam=Object.assign({},ri),Tr.isCanSearch=!1,Tr.mutexSelect=!1,Tr.input="",Tr.currentListNameText="",Tr.currentList=[],Tr.selectedIds=[],Tr.mutexSelectedIds=[],Tr.mutexType="",Tr.selectedId="",Tr.selectedList=[],Tr.posStyle={left:"",right:"",top:"",bottom:""},Tr.dateFormat=Jn["d"],Tr.computedPoperPosition=Jn["a"],Tr.date="",Tr.time="",Tr.dateStyle="",Tr.timeStyle="",Tr.dateTimeStyle="",Tr.dragIndex=0,Tr.enterIndex=0,Tr.endPath="",Tr.poppernIstance=null,Tr}return Object(Yr["a"])(PoperSelectModal,[{key:"isAllowMultiSelect",get:function get(){var Tr=this.getCurrentPoperNode();return Tr instanceof Qn["a"]?Tr.allowMultiSelect:Tr instanceof ei["f"]&&Tr.downListProperty.allowMultiSelected}},{key:"selectedListChange",value:function selectedListChange(Tr,Dr){(0===Tr.length&&Dr.length>0||Tr.length>0&&0===Dr.length)&&this.poppernIstance&&this.poppernIstance.update()}},{key:"created",value:function created(){var Tr,Dr=this;null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.addEventListener("scroll",this.handleClose,!0),window.addEventListener("keydown",this.arrowKeysController);var Rr=Tn["a"].instance().getFactory(this.hoEditorId);this.endPath=Rr.docTree.curDomRange.normalize().endPath;var Ur=this.getCurrentPoperNode();if("datePoper"===this.poperType){var Hr;if(Ur instanceof Yn["a"]){var Wr;this.dateTimeStyle=Ur.controlStyle;var zr=null===(Wr=Ur.controlStyle)||void 0===Wr?void 0:Wr.replace(/\hh/g,"HH");(zr.includes("yyyy")||zr.includes("MM"))&&zr.includes("HH")?(this.dateStyle=zr.split(" ")[0]?zr.split(" ")[0]:"yyyy/MM/dd",this.timeStyle=zr.split(" ")[1]?zr.split(" ")[1]:"HH:mm:ss"):((zr.includes("yyyy")||zr.includes("MM"))&&(this.dateStyle=zr),(zr.includes("HH")||zr.includes("mm"))&&(this.timeStyle=zr));var Vr=Ur.text.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,"");Vr&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(Vr=Object(Jn["d"])(new Date,"yyyy")+"/"+Vr),Vr&&":"===Vr[Vr.length-1]&&(Vr=Vr.substr(0,Vr.length-1)),Vr&&(Object(Jn["i"])(Vr)||Object(Jn["i"])("2021/10/08 "+Vr))?(zr.includes("yyyy")||zr.includes("MM"))&&(zr.includes("HH")||zr.includes("mm"))?(this.date=Vr.split(" ")[0],this.time=Vr):((zr.includes("yyyy")||zr.includes("MM"))&&(this.date=Vr),(zr.includes("HH")||zr.includes("mm"))&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd ")+Vr)):(this.date=Object(Jn["d"])(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd "+this.timeStyle)))}this.date=null===(Hr=this.date)||void 0===Hr?void 0:Hr.replace(/[^\d]/g,"/");var Kr=0;(Ur.controlStyle.includes("yyyy")||Ur.controlStyle.includes("MM"))&&(Kr=300),(Ur.controlStyle.includes("HH")||Ur.controlStyle.includes("mm"))&&(Kr=90),(Ur.controlStyle.includes("yyyy")||Ur.controlStyle.includes("MM"))&&(Ur.controlStyle.includes("HH")||Ur.controlStyle.includes("mm"))&&(Kr=350),this.posStyle=this.computedPoperPosition(Kr,this.poperPos)}else{var $r,Jr=[];Ur instanceof Qn["a"]?(Jr=Ur.keyValue?Ur.keyValue.split(","):[],this.mutexSelect=Ur.mutexSelect):Ur instanceof ei["f"]&&(Jr=Ur.keyValue?Ur.keyValue.split(","):[],this.mutexSelect=!!Ur.downListProperty.mutexSelect),null===($r=this.poperSelectList)||void 0===$r||$r.forEach((function(Tr,Rr){Tr.id?Tr.id=String(Tr.id):Tr.id="DL"+(new Date).getTime()+Rr,Tr.default=!1,Jr.length>0&&1===Jr.filter((function(Dr){return Tr.id==Dr})).length&&(Tr.default=!0,Dr.isAllowMultiSelect&&Dr.poperSelectList.length>=20&&(Dr.selectedList[Jr.indexOf(Tr.id)]=Tr),Dr.mutexType=String(Tr.type),Dr.selectedIds.push(Tr.id),Dr.mutexSelectedIds.push(Tr.id),Dr.selectedId=Tr.id)})),this.currentListNameText=Ur.name,this.poperSelectList&&this.poperSelectList.length>=20&&(this.isCanSearch=!0),this.currentList=Object(Gr["a"])(this.poperSelectList)}}},{key:"mounted",value:function mounted(){var Tr=this,Dr={getBoundingClientRect:Object(Jn["g"])(this.poperPos)};this.poppernIstance=Object(di["a"])(Dr,this.poperSelectedModal,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","top-start","right-start","left-start"],padding:10}}]}),setTimeout((function(){Tr.poppernIstance&&Tr.poppernIstance.update()}),0)}},{key:"arrowKeysController",value:function arrowKeysController(Tr){}},{key:"getCurrentPoperNode",value:function getCurrentPoperNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorId),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.endPath))||void 0===Tr?void 0:Tr.node;if(Ur instanceof li["a"]||Ur instanceof ei["f"]){var Hr=Ur.parentNode;Dr=Hr instanceof ei["f"]?Hr:Ur}else if(Ur instanceof ci["a"]){var Wr=Ur.parentNode;Wr instanceof ei["f"]&&(Dr=Wr)}else(Ur instanceof Yn["a"]||Ur instanceof Qn["a"])&&(Dr=Ur);return Dr}},{key:"getTime",value:function getTime(Tr){this.date=Tr.value,"dblclick"==Tr.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId),Rr=this.getCurrentPoperNode(),Ur=this.dateFormat(new Date,Rr.controlStyle),Hr={id:Rr.id,name:Rr.name,text:Ur,title:Rr.title,tipText:Rr.tipText,isAllowDelete:Rr.isAllowDelete,isReadOnly:Rr.isReadOnly,controlStyle:Rr.controlStyle};Dr.vueController.updateDateTime(JSON.stringify(Hr)),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"sureDate",value:function sureDate(){var Tr="";if(this.date){if(Tr=this.date,this.time){var Dr=this.time.replace(/[年|月|-]/g,"/").replace(/[时|分]/g,":").replace(/[秒]/g,"");Dr.includes("/")?Tr+=" "+Dr.split(" ")[1]:Tr+=" "+Dr}}else Tr="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);var Rr=this.getCurrentPoperNode();Tr=this.dateFormat(Tr,Rr.controlStyle);var Ur={id:Rr.id,name:Rr.name,text:Tr,title:Rr.title,tipText:Rr.tipText,isAllowDelete:Rr.isAllowDelete,isReadOnly:Rr.isReadOnly,controlStyle:Rr.controlStyle},Hr=Tn["a"].instance().getFactory(this.hoEditorId);Hr.vueController.updateDateTime(JSON.stringify(Ur)),this.handleClose()}},{key:"searchList",value:function searchList(Tr){var Dr=[];Tr?this.poperSelectList.forEach((function(Rr){-1!==Rr.text.indexOf(Tr)&&Dr.push(Rr)})):Dr=Object(Gr["a"])(this.poperSelectList),this.currentList=Object(Gr["a"])(Dr)}},{key:"deleteItems",value:function deleteItems(Tr,Dr){var Rr=0;this.poperSelectList.forEach((function(Dr,Ur){Dr.id==Tr.id&&(Rr=Ur)})),Tr.default=!1,this.poperSelectList.splice(Rr,1,Tr),this.currentList=this.currentList.filter((function(Dr){return Dr.id!==Tr.id})),this.selectedIds=this.selectedIds.filter((function(Dr){return Dr!==Tr.id})),this.selectedList=this.selectedList.filter((function(Dr){return Dr.id!==Tr.id})),this.isCanSearch&&this.searchList(this.input)}},{key:"mutexSelectItemsChange",value:function mutexSelectItemsChange(Tr){var Dr=this;Tr.length>0?(this.poperSelectList.forEach((function(Rr){Tr.includes(Rr.id)?(Rr.default=!0,Dr.mutexType=String(Rr.type)):Rr.default=!1})),this.currentList=Object(Gr["a"])(this.poperSelectList)):0===Tr.length&&(this.poperSelectList.forEach((function(Tr){Tr.default=!1,Dr.mutexType=""})),this.currentList=Object(Gr["a"])(this.poperSelectList))}},{key:"selectItemsChange",value:function selectItemsChange(Tr){var Dr=this;if(this.isAllowMultiSelect)this.poperSelectList.forEach((function(Rr){Tr.includes(Rr.id)?(Rr.default=!0,Dr.isCanSearch&&0==Dr.selectedList.filter((function(Tr){return Tr.id==Rr.id})).length&&Dr.selectedList.push(Rr)):(Rr.default=!1,Dr.isCanSearch&&(Dr.selectedList=Dr.selectedList.filter((function(Tr){return Tr.id!=Rr.id}))))})),this.currentList=Object(Gr["a"])(this.poperSelectList),this.isCanSearch&&this.searchList(this.input);else{var Rr={},Ur=0;this.poperSelectList.forEach((function(Dr,Hr){Dr.default=!1,Dr.id==Tr&&(Rr=Dr,Ur=Hr)})),Rr.default=!Rr.default,this.poperSelectList.splice(Ur,1,Rr),this.currentList=Object(Gr["a"])(this.poperSelectList),this.sureSelect()}}},{key:"selectItems",value:function selectItems(Tr,Dr){var Rr=this;this.isAllowMultiSelect?(this.poperSelectList.forEach((function(Dr){Dr.id==Tr.id&&(Dr.default=!Dr.default),Dr.default?Rr.isCanSearch&&0==Rr.selectedList.filter((function(Tr){return Tr.id==Dr.id})).length&&Rr.selectedList.push(Dr):Rr.isCanSearch&&(Rr.selectedList=Rr.selectedList.filter((function(Tr){return Tr.id!=Dr.id})))})),this.currentList=Object(Gr["a"])(this.poperSelectList),this.isCanSearch&&this.searchList(this.input)):(this.poperSelectList.forEach((function(Tr){Tr.default=!1})),Tr.default=!Tr.default,this.poperSelectList.splice(Dr,1,Tr),this.currentList=Object(Gr["a"])(this.poperSelectList),this.sureSelect())}},{key:"cancelSelect",value:function cancelSelect(){this.poperSelectList.forEach((function(Tr){Tr.default=!1})),this.currentList=Object(Gr["a"])(this.poperSelectList),this.selectedList=[],this.isAllowMultiSelect&&this.isCanSearch&&this.searchList(this.input),this.mutexSelectedIds=[],this.selectedIds=[],this.selectedId="",this.mutexType=""}},{key:"sureSelect",value:function sureSelect(){var Tr=this,Dr="",Rr="",Ur=this.getCurrentPoperNode(),Hr=this.isAllowMultiSelect&&this.isCanSearch?this.selectedList:this.poperSelectList.filter((function(Tr){return Tr.default})),Wr=Hr.length;0===Wr?(Ur instanceof Qn["a"]||Ur instanceof ei["f"])&&(Dr=Ur.name?Ur.name:" "):Hr.forEach((function(Tr,Wr){Wr<Hr.length-1?(Ur.customProperty&&Ur.customProperty.hasThirdData&&Tr.value?Dr+=Tr.value+",":Dr+=Tr.text+",",Rr+=Tr.id+","):(Ur.customProperty&&Ur.customProperty.hasThirdData&&Tr.value?Dr+=Tr.value:Dr+=Tr.text,Rr+=Tr.id)}));var zr=Tn["a"].instance().getFactory(this.hoEditorId);if(Ur instanceof Qn["a"]){var Vr=this.getCurrentPoperNode(),Kr={id:Vr.id,name:Vr.name,text:Dr,keyValue:Rr,title:"下拉选择框",tipText:Vr.tipText,isAllowDelete:Vr.isAllowDelete,isReadOnly:Vr.isReadOnly,allowMultiSelect:Vr.allowMultiSelect,innerIdentifier:Vr.innerIdentifier,dataMetaIdentifier:Vr.dataMetaIdentifier,identifierFormat:Vr.identifierFormat,readType:Vr.readType,mutexSelect:Vr.mutexSelect};zr.vueController.updateDownList(JSON.stringify(Kr),this.poperSelectList)}else Ur instanceof ei["f"]&&(Dr=Dr.replace(/,/g,Ur.downListProperty.splitCharacter),Ur.text=Dr,Ur.keyValue=Rr,Object.keys(this.textParam).map((function(Dr){Tr.textParam[Dr]=Ur[Dr]})),this.textParam.downListProperty.allowMultiSelected?zr.vueController.updateTextInputField(this.textParam):zr.elementController.updateTextInputFieldValue(Ur,Dr,void 0,Rr));1===Hr.length&&-1!==Hr[0].text.indexOf("<元素>")?setTimeout((function(){Tr.handleClose()}),200):this.handleClose()}},{key:"shuffle",value:function shuffle(){}},{key:"dragstart",value:function dragstart(Tr){this.dragIndex=Tr}},{key:"dragenter",value:function dragenter(Tr,Dr){if(Tr.preventDefault(),this.dragIndex!==Dr){var Rr=this.selectedList[this.dragIndex];this.selectedList.splice(Number(this.dragIndex),1),this.selectedList.splice(Dr,0,Rr),this.dragIndex=Dr}}},{key:"dragover",value:function dragover(Tr){Tr.preventDefault()}},{key:"listenScroller",value:function listenScroller(Tr){}},{key:"handleClose",value:function handleClose(){var Tr=this;this.$nextTick((function(){return Tr.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr;null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.removeEventListener("scroll",this.handleClose,!0),window.removeEventListener("keydown",this.arrowKeysController)}}]),PoperSelectModal}(mixins(Zn));__decorate([Prop({default:""})],hi.prototype,"poperType",void 0),__decorate([Prop()],hi.prototype,"poperPos",void 0),__decorate([Prop()],hi.prototype,"poperSelectList",void 0),__decorate([Prop()],hi.prototype,"hoEditorId",void 0),__decorate([Ref()],hi.prototype,"poperSelectedModal",void 0),__decorate([Ref()],hi.prototype,"selectPoperList",void 0),__decorate([Watch("selectedList")],hi.prototype,"selectedListChange",null),hi=__decorate([an({name:"PoperSelectModal",components:{DatePanel:si,RecycleScroller:ui["a"]}})],hi);var pi=hi,fi=pi,_i=(Rr("9e74"),normalizeComponent(fi,PoperSelectvue_type_template_id_79fdead8_scoped_true_render,Xn,!1,null,"79fdead8",null)),gi=_i.exports,PoperMarkvue_type_template_id_12c8c810_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"poper-mark"})},mi=[],vi=function(Tr){Object(Qr["a"])(PoperMark,Tr);var Dr=Object(Zr["a"])(PoperMark);function PoperMark(){return Object(Xr["a"])(this,PoperMark),Dr.apply(this,arguments)}return PoperMark}(Kr.a);vi=__decorate([an({name:"PoperMark"})],vi);var yi=vi,bi=yi,wi=(Rr("2ed0"),normalizeComponent(bi,PoperMarkvue_type_template_id_12c8c810_render,mi,!1,null,null,null)),xi=wi.exports,TableCellPopervue_type_template_id_43382d6b_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"cell-poper-selected-modal animation-in",style:Tr.posStyle},[Rr("div",{staticStyle:{height:"0",overflow:"hidden"}},[Rr("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("defs",[Rr("g",{attrs:{id:"selected"}},[Rr("path",{attrs:{d:"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636",fill:"#2175FF"}})])])])]),Tr.isCanSearch?Rr("el-input",{attrs:{placeholder:"可搜索",size:"mini"},on:{input:Tr.searchList},model:{value:Tr.input,callback:function(Dr){Tr.input=Dr},expression:"input"}}):Tr._e(),1===Tr.editorProperty?Rr("div",{staticClass:"select-poper"},[Rr("ul",{staticClass:"list"},[Tr._l(Tr.currentList,(function(Dr,Ur){return Rr("li",{key:Dr.id,class:Dr.default?"selected":"",on:{click:function(Rr){return Tr.selectItems(Dr,Ur)}}},[Rr("span",[Tr._v(Tr._s(Dr.text.split("<元素>")[0]))]),Rr("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#selected"}})])])})),0===Tr.currentList.length?Rr("li",{staticStyle:{"text-align":"center"}},[Tr._v("无选项")]):Tr._e()],2),Tr.isAllowMultiSelect?Rr("footer",{style:{bottom:Tr.isAllowMultiSelect?"-34px":"0px"}},[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureSelect}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(Dr){Tr.selected=[]}}},[Tr._v("清空")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1):Tr._e()]):Tr._e(),2===Tr.editorProperty?Rr("div",{staticClass:"date-poper"},[Tr.inputStyle.includes("dd")?Rr("DatePanel",{attrs:{value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.inputStyle.includes("MM")&&!Tr.inputStyle.includes("dd")?Rr("DatePanel",{attrs:{dateType:"month",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.inputStyle.includes("yyyy")&&!Tr.inputStyle.includes("MM")?Rr("DatePanel",{attrs:{dateType:"year",value:Tr.date},on:{getValue:Tr.getTime}}):Tr._e(),Tr.inputStyle.includes("HH")?Rr("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[Rr("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:Tr.timeStyle,"value-format":Tr.timeStyle,size:"mini"},model:{value:Tr.time,callback:function(Dr){Tr.time=Dr},expression:"time"}})],1):Tr._e(),Rr("footer",[Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.sureDate}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:Tr.currentDateTime}},[Tr._v(Tr._s(-1!==Tr.inputStyle.indexOf("HH")?"此刻":"今天"))]),Rr("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(Dr){return Tr.handleClose("cancel")}}},[Tr._v("取消")])],1)],1):Tr._e()],1)},Ci=[],Pi=function(Tr){Object(Qr["a"])(getCellNodeMixins,Tr);var Dr=Object(Zr["a"])(getCellNodeMixins);function getCellNodeMixins(){return Object(Xr["a"])(this,getCellNodeMixins),Dr.apply(this,arguments)}return Object(Yr["a"])(getCellNodeMixins,[{key:"getCellNode",value:function getCellNode(Tr){var Dr=null,Rr=function isFn(Tr){null!==(null===Tr||void 0===Tr?void 0:Tr.parentNode)&&null!==Tr&&void 0!==Tr&&Tr.parentNode&&(Tr.parentNode instanceof En["a"]?Dr=Tr.parentNode:isFn(Tr.parentNode))};return Tr instanceof En["a"]?Tr:(Rr(Tr),Dr)}}]),getCellNodeMixins}(Kr.a);Pi=__decorate([an],Pi);var Ei=function(Tr){Object(Qr["a"])(TableCellPoper,Tr);var Dr=Object(Zr["a"])(TableCellPoper);function TableCellPoper(){var Tr;return Object(Xr["a"])(this,TableCellPoper),Tr=Dr.apply(this,arguments),Tr.isCanSearch=!1,Tr.input="",Tr.poperList=[],Tr.currentList=[],Tr.posStyle={left:"",right:"",top:"",bottom:""},Tr.dateFormat=Jn["d"],Tr.computedPoperPosition=Jn["a"],Tr.endPath="",Tr}return Object(Yr["a"])(TableCellPoper,[{key:"colProperty",get:function get(){var Tr=this.getcellNodes();return null===Tr?null:Tr.table.colInfos[Tr.row.indexOf(Tr)].colProperty}},{key:"cellProperty",get:function get(){var Tr=this.getcellNodes();return null===Tr||null!==this.colProperty&&0!==this.colProperty.editorProperty?null:Tr.cellProperty}},{key:"isAllowMultiSelect",get:function get(){return null===this.colProperty?null!==this.cellProperty&&!(this.cellProperty.editorProperty!==Sn["e"].DownList||!this.cellProperty.downListProperty.allowMultiSelected):!(this.colProperty.editorProperty!==Sn["e"].DownList||!this.colProperty.downListProperty.allowMultiSelected)||0===this.colProperty.editorProperty&&(null!==this.cellProperty&&!(this.cellProperty.editorProperty!==Sn["e"].DownList||!this.cellProperty.downListProperty.allowMultiSelected))}},{key:"editorProperty",get:function get(){return null!==this.colProperty&&0!==this.colProperty.editorProperty?this.colProperty.editorProperty:null!==this.cellProperty?this.cellProperty.editorProperty:0}},{key:"created",value:function created(){var Tr,Dr=this.getActiveDocId(),Rr=Tn["a"].instance().getFactory(Dr);this.endPath=Rr.docTree.curDomRange.normalize().endPath,null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.addEventListener("scroll",this.handleClose,!0),null===this.colProperty||this.colProperty.editorProperty!==Sn["e"].DateTime&&this.colProperty.editorProperty!==Sn["e"].DownList?null!==this.cellProperty&&this.cellProperty.editorProperty!==Sn["e"].None&&this.initTalbePoper(this.cellProperty):this.initTalbePoper(this.colProperty)}},{key:"getcellNodes",value:function getcellNodes(){var Tr,Dr=this.getActiveDocId(),Rr=Tn["a"].instance().getFactory(Dr),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.endPath))||void 0===Tr?void 0:Tr.node;return this.getCellNode(Ur)}},{key:"initTalbePoper",value:function initTalbePoper(Tr){var Dr=this;if(Tr.editorProperty===Sn["e"].DateTime){var Rr,Ur;this.inputStyle=null===(Rr=Tr.dateTimeProperty.inputStyle)||void 0===Rr?void 0:Rr.replace(/\hh/g,"HH");var Hr="";Hr=this.poperNode?this.poperNode:this.dateFormat(new Date,this.inputStyle),(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&this.inputStyle.includes("HH")?(this.dateStyle=this.inputStyle.split(" ")[0]?this.inputStyle.split(" ")[0]:"yyyy/MM/dd",this.timeStyle=this.inputStyle.split(" ")[1]?this.inputStyle.split(" ")[1]:"HH:mm:ss"):((this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.dateStyle=this.inputStyle),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(this.timeStyle=this.inputStyle)),Hr=Hr.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,""),Hr&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(Hr=Object(Jn["d"])(new Date,"yyyy")+"/"+Hr),Hr&&":"===Hr[Hr.length-1]&&(Hr=Hr.substr(0,Hr.length-1)),Hr&&(Object(Jn["i"])(Hr)||Object(Jn["i"])("2021/10/08 "+Hr))?(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))?(this.date=Hr.split(" ")[0],this.time=Hr):((this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.date=Hr),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd ")+Hr)):(this.date=Object(Jn["d"])(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=Object(Jn["d"])(new Date,"yyyy/MM/dd "+this.timeStyle))),this.date=null===(Ur=this.date)||void 0===Ur?void 0:Ur.replace(/[^\d]/g,"/");var Wr=0;(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(Wr=300),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(Wr=90),(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(Wr=350),this.posStyle=this.computedPoperPosition(Wr,this.poperPos)}else if(Tr.editorProperty===Sn["e"].DownList){var zr,Vr=[];if(this.poperNode){var Kr=",";[",","、","/","-"].forEach((function(Tr){Dr.poperNode.includes(Tr)&&(Kr=Tr)})),Vr=this.poperNode.split(Kr)}this.poperList=Tr.downListProperty.listItems?Object(Gr["a"])(JSON.parse(Tr.downListProperty.listItems)):[],null===(zr=this.poperList)||void 0===zr||zr.forEach((function(Tr){Tr.default=!1,1===Vr.filter((function(Dr){return Tr.text.split("<元素>")[0]==Dr})).length&&(Tr.default=!0)})),this.currentList=Object(Gr["a"])(this.poperList),this.poperList.length>20&&(this.isCanSearch=!0);var $r=36*this.poperList.length+36;if(this.isAllowMultiSelect&&($r+=36),this.isCanSearch&&($r+=28),$r<360){var Jr=this.computedPoperPosition($r,this.poperPos);delete Jr["height"],this.posStyle=Jr}else{var Xr=this.computedPoperPosition(360,this.poperPos);delete Xr["height"],this.posStyle=Xr}}}},{key:"getTime",value:function getTime(Tr){this.date=Tr.value,"dblclick"==Tr.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var Tr=this.dateFormat(new Date,this.inputStyle),Dr=this.getcellNodes();null===Dr||void 0===Dr||Dr.setCellText(Tr),this.handleClose()}},{key:"sureDate",value:function sureDate(){var Tr="";if(this.date){if(Tr=this.date,this.time){var Dr=this.time.replace(/['年'|'月'|'-']/g,"/").replace(/['时'|'分']/g,":").replace(/['秒']/g,"");Dr.includes("/")?Tr+=" "+Dr.split(" ")[1]:Tr+=" "+Dr}}else Tr="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);Tr=this.dateFormat(Tr,this.inputStyle);var Rr=this.getcellNodes();null===Rr||void 0===Rr||Rr.setCellText(Tr),this.handleClose()}},{key:"searchList",value:function searchList(Tr){var Dr=[];Tr?this.poperList.map((function(Rr){-1!==Rr.value.indexOf(Tr)&&Dr.push(Rr)})):Dr=Object(Gr["a"])(this.poperList),this.currentList=Object(Gr["a"])(Dr)}},{key:"selectItems",value:function selectItems(Tr,Dr){this.isAllowMultiSelect?(this.poperList.forEach((function(Dr){Dr.id===Tr.id&&(Dr.default=!Dr.default)})),this.currentList=Object(Gr["a"])(this.poperList),this.searchList(this.input)):(this.poperList.forEach((function(Tr){Tr.default=!1})),Tr.default=!Tr.default,this.poperList.splice(Dr,1,Tr),this.currentList=Object(Gr["a"])(this.poperList),this.sureSelect())}},{key:"sureSelect",value:function sureSelect(){var Tr=this,Dr="",Rr=this.poperList.filter((function(Tr){return Tr.default})),Ur=Rr.length;Ur>0&&(Rr.map((function(Ur,Hr){var Wr,zr;Hr<Rr.length-1?(zr=null!==Tr.colProperty&&0!==Tr.colProperty.editorProperty?Tr.colProperty:Tr.cellProperty,Dr+=Ur.text+(null===(Wr=zr)||void 0===Wr?void 0:Wr.downListProperty.splitCharacter)):Dr+=Ur.text;return Ur})),""===Dr.replace(/\s*/g,"")&&(Dr=" "));var Hr=this.getcellNodes();null===Hr||void 0===Hr||Hr.setCellText(Dr),this.handleClose()}},{key:"handleClose",value:function handleClose(){var Tr=this;this.$nextTick((function(){return Tr.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr;null===(Tr=document.querySelector(".ho-editor-list"))||void 0===Tr||Tr.removeEventListener("scroll",this.handleClose,!0)}}]),TableCellPoper}(mixins(Zn,Pi));__decorate([Prop()],Ei.prototype,"poperNode",void 0),__decorate([Prop()],Ei.prototype,"poperPos",void 0),__decorate([Inject("getActiveDocId")],Ei.prototype,"getActiveDocId",void 0),Ei=__decorate([an({name:"TableCellPoper",components:{DatePanel:si}})],Ei);var Si=Ei,Ti=Si,Di=(Rr("87d2"),normalizeComponent(Ti,TableCellPopervue_type_template_id_43382d6b_scoped_true_render,Ci,!1,null,"43382d6b",null)),ki=Di.exports;const Oi="function"===typeof window.WeakMap&&"function"===typeof window.Map,Ii=function(){if(Oi)return window.WeakMap;function getIndex(Tr,Dr){let Rr=-1;return Tr.some((Tr,Ur)=>{let Hr=Tr[0]===Dr;return Hr&&(Rr=Ur),Hr}),Rr}return class{constructor(){this.__entries__=[]}get(Tr){let Dr=getIndex(this.__entries__,Tr);return this.__entries__[Dr][1]}set(Tr,Dr){let Rr=getIndex(this.__entries__,Tr);~Rr?this.__entries__[Rr][1]=Dr:this.__entries__.push([Tr,Dr])}delete(Tr){let Dr=this.__entries__,Rr=getIndex(Dr,Tr);~Rr&&Dr.splice(Rr,1)}has(Tr){return!!~getIndex(this.__entries__,Tr)}}}(),Mi=function(){return Oi?window.Map:class extends Ii{get size(){return this.__entries__.length}clear(){this.__entries__.splice(0,this.__entries__.length)}entries(){return this.__entries__.slice()}keys(){return this.__entries__.map(Tr=>Tr[0])}values(){return this.__entries__.map(Tr=>Tr[1])}forEach(Tr,Dr=null){for(const Rr of this.__entries__)Tr.call(Dr,Rr[1],Rr[0])}}}();var Ni=function(){return window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now()}();const Li="function"===typeof window.MutationObserver,Ai=function(){return window.requestAnimationFrame?window.requestAnimationFrame:Tr=>setTimeout(()=>Tr(Ni()),1e3/60)}();function debounce(Tr,Dr=0){let Rr=!1;return function(...Ur){!1!==Rr&&clearTimeout(Rr),Rr=setTimeout(()=>{Rr=!1,Tr.apply(this,Ur)},Dr)}}class IntersectionObserverController_IntersectionObserverController{constructor(Tr=50,Dr=!1){this._idleTimeout=Tr,this._trackHovers=Dr,this._cycleStartTime=-1,this._isUpdateScheduled=!1,this._repeatCycle=!1,this._hoverInitiated=!1,this._mutationsObserver=null,this._isListening=!1,this._observers=[],this.startUpdateCycle=this.startUpdateCycle.bind(this),this.scheduleUpdate=this.scheduleUpdate.bind(this),this._onMutation=this._onMutation.bind(this),this._repeatHandler=debounce(this.scheduleUpdate,200),this._onMouseOver=debounce(this.startUpdateCycle,200)}get idleTimeout(){return this._idleTimeout}set idleTimeout(Tr){this._idleTimeout=Tr}connect(Tr){this.isConnected(Tr)||this._observers.push(Tr),this._isListening||this._initListeners()}disconnect(Tr){let Dr=this._observers,Rr=Dr.indexOf(Tr);~Rr&&Dr.splice(Rr,1),!Dr.length&&this._isListening&&this._removeListeners()}isConnected(Tr){return!!~this._observers.indexOf(Tr)}_updateObservers(){let Tr=!1;for(const Dr of this._observers)Dr.updateObservations()&&(Tr=!0),Dr.hasEntries()&&Dr.notifySubscriber();return Tr}startUpdateCycle(){this._cycleStartTime=Ni(),this.scheduleUpdate()}scheduleUpdate(Tr){let Dr="number"===typeof Tr;if(Dr){const Tr=this._updateObservers();if(this._isUpdateScheduled=!1,!this._wasCycleStarted())return;Tr?this.startUpdateCycle():this._hasIdleTimeEnded()?this._onCycleEnded():this.scheduleUpdate()}else this._isUpdateScheduled||(Ai(this.scheduleUpdate),this._isUpdateScheduled=!0)}_hasIdleTimeEnded(){return Ni()-this._cycleStartTime>this._idleTimeout}_wasCycleStarted(){return-1!==this._cycleStartTime}_onCycleEnded(){this._cycleStartTime=-1,this._repeatCycle&&(this._cycleStartTime=0,this._repeatHandler())}_initListeners(){this._isListening||(this._isListening=!0,window.addEventListener("resize",this.startUpdateCycle,!0),window.addEventListener("scroll",this.scheduleUpdate,!0),this._trackHovers&&this._addHoverListener(),Li?(this._mutationsObserver=new MutationObserver(this._onMutation),this._mutationsObserver.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(this._repeatCycle=!0,window.addEventListener("click",this.startUpdateCycle,!0),this.startUpdateCycle()))}_removeListeners(){this._isListening&&(window.removeEventListener("resize",this.startUpdateCycle,!0),window.removeEventListener("scroll",this.scheduleUpdate,!0),this._removeHoverListener(),Li?this._mutationsObserver&&(this._mutationsObserver.disconnect(),this._mutationsObserver=null):(this._repeatCycle=!1,window.removeEventListener("click",this.startUpdateCycle,!0)),this._isListening=!1)}enableHover(){this._trackHovers=!0,this._isListening&&this._addHoverListener()}disableHover(){this._trackHovers=!1,this._removeHoverListener()}isHoverEnabled(){return this._trackHovers}_addHoverListener(){this._hoverInitiated||(window.addEventListener("mouseover",this._onMouseOver,!0),this._hoverInitiated=!0)}_removeHoverListener(){this._hoverInitiated&&(window.removeEventListener("mouseover",this._onMouseOver,!0),this._hoverInitiated=!1)}_onMutation(Tr){const Dr=Tr.every(Tr=>"attributes"!==Tr.type);Dr?this.scheduleUpdate():this.startUpdateCycle()}}function mapToClientRect(Tr){const Dr={};for(const Rr of Object.keys(Tr))Dr[Rr]={value:Tr[Rr]};return Object.defineProperties({},Dr)}function createRectangle(Tr=0,Dr=0,Rr=0,Ur=0){return{left:Tr,top:Dr,width:Rr,height:Ur,bottom:Dr+Ur,right:Tr+Rr}}function getRectangle(Tr){return Tr===document.documentElement?createRectangle(0,0,Tr.clientWidth,Tr.clientHeight):Tr.getBoundingClientRect()}function getArea(Tr){return Tr.width*Tr.height}function isEmpty(Tr){return 0===Tr.height&&0===Tr.width}function isEqual(Tr,Dr){return Tr.top===Dr.top&&Tr.left===Dr.left&&Tr.right===Dr.right&&Tr.bottom===Dr.bottom}class IntersectionObserverEntry_IntersectionObserverEntry{constructor(Tr,Dr,Rr,Ur,Hr,Wr){Object.defineProperties(this,{boundingClientRect:{value:Dr},intersectionRatio:{value:Ur},intersectionRect:{value:mapToClientRect(Rr)},rootBounds:{value:mapToClientRect(Hr)},target:{value:Tr},time:{value:Wr}})}}const Ri=createRectangle();function isDetached(Tr,Dr){const Rr=document.documentElement;return Tr!==Rr&&!Rr.contains(Tr)||!Tr.contains(Dr)}function computeIntersection(Tr,Dr){const Rr=Math.max(Dr.left,Tr.left),Ur=Math.min(Dr.right,Tr.right),Hr=Math.max(Dr.top,Tr.top),Wr=Math.min(Dr.bottom,Tr.bottom),zr=Ur-Rr,Vr=Wr-Hr;return createRectangle(Rr,Hr,zr,Vr)}function getIntersection(Tr,Dr,Rr,Ur){let Hr=Ur,Wr=Dr.parentNode,zr=!1;while(!zr){let Dr=null;Wr===Tr||1!==Wr.nodeType?(zr=!0,Dr=Rr):"visible"!==window.getComputedStyle(Wr).overflow&&(Dr=getRectangle(Wr)),Dr&&(Hr=computeIntersection(Hr,Dr)),Wr=Wr.parentNode}return Hr}class IntersectionObservation_IntersectionObservation{constructor(Tr,Dr){this.target=Tr,this.observer=Dr,this.prevTargetRect=Ri,this.prevThreshold=0,this.prevRatio=0}updateIntersection(Tr,Dr){let Rr,Ur=getRectangle(this.target),Hr=this.getIntersectionData(Tr,Dr,Ur),Wr=+Hr.exists,zr=Hr.ratio!==this.prevRatio,Vr=!isEqual(Ur,this.prevTargetRect);if(Hr.exists&&!isEmpty(Ur)&&(Wr=this.observer.getThresholdGreaterThan(Hr.ratio)),Rr=Wr!==this.prevThreshold,this.prevTargetRect=Ur,this.prevThreshold=Wr,this.prevRatio=Hr.ratio,Hr.exists||(Hr.ratio=0,Hr.rect=Ri),Rr){const Tr=new IntersectionObserverEntry_IntersectionObserverEntry(this.target,Ur,Hr.rect,Hr.ratio,Dr,Ni());this.observer.queueEntry(Tr)}return{ratioChanged:zr,thresholdChanged:Rr,targetRectChanged:Vr}}getIntersectionData(Tr,Dr,Rr){const Ur=this.target;Rr||(Rr=getRectangle(this.target)),Dr||(Dr=getRectangle(Tr));let Hr=isDetached(Tr,Ur),Wr=Hr?Ri:getIntersection(Tr,Ur,Dr,Rr),zr=!Hr&&Wr.width>=0&&Wr.height>=0,Vr=getArea(Wr)/getArea(Rr)||0;return{rect:Wr,ratio:Vr,exists:zr}}}function parseThresholds(Tr=0){let Dr=Tr;return Array.isArray(Tr)?Tr.length||(Dr=[0]):Dr=[Tr],Dr.map(Tr=>{if(Tr=Number(Tr),!window.isFinite(Tr))throw new TypeError("The provided double value is non-finite.");if(Tr<0||Tr>1)throw new RangeError("Threshold values must be between 0 and 1.");return Tr}).sort()}function parseMargins(Tr="0px"){if(Tr=(Tr+"").split(/\s+/),Tr.length>4)throw new Error("Extra text found at the end of rootMargin.");Tr[0]=Tr[0]||"0px",Tr[1]=Tr[1]||Tr[0],Tr[2]=Tr[2]||Tr[0],Tr[3]=Tr[3]||Tr[1];const Dr=Tr.join(" "),Rr=Tr.map(Tr=>{let[,Dr,Rr]=/^(-?\d*\.?\d+)(px|%)$/.exec(Tr)||[];const Ur="px"===Rr;if(Dr=parseFloat(Dr),!window.isFinite(Dr))throw new Error("rootMargin must be specified in pixels or percent.");return Ur||(Dr/=100),{value:Dr,pixels:Ur}});return{rawData:Dr,parsedData:Rr}}function applyMargins(Tr,Dr){Dr=Dr.map((Dr,Rr)=>{let Ur=Dr.value;return Dr.pixels||(Ur*=Rr%2?Tr.width:Tr.height),Ur});const Rr={top:Tr.top-Dr[0],right:Tr.right+Dr[1],bottom:Tr.bottom+Dr[2],left:Tr.left-Dr[3]};return Rr.width=Rr.right-Rr.left,Rr.height=Rr.bottom-Rr.top,Rr}class _IntersectionObserver_IntersectionObserver{constructor(Tr,Dr={},Rr,Ur){if("function"!==typeof Tr)throw new TypeError("The callback provided as parameter 1 is not a function.");if("object"!==typeof Dr)throw new TypeError("parameter 2 is not an object.");if("root"in Dr&&!(Dr.root instanceof Element))throw new TypeError("member root is not of type Element.");const Hr=parseThresholds(Dr.threshold),Wr=parseMargins(Dr.rootMargin);this.root=Dr.root||null,this.rootMargin=Wr.rawData,this.thresholds=Object.freeze(Hr),this._root=Dr.root||document.documentElement,this._callback=Tr,this._rootMargin=Wr.parsedData,this._targets=new Mi,this._quedEntries=[],this._publicObserver=Ur||this,this.controller=Rr}observe(Tr){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(Tr instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let Dr=this._targets;Dr.has(Tr)||(Dr.set(Tr,new IntersectionObservation_IntersectionObservation(Tr,this)),this.controller.isConnected(this)||this.controller.connect(this),this.controller.startUpdateCycle())}unobserve(Tr){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(Tr instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let Dr=this._targets;Dr.has(Tr)&&Dr.delete(Tr),Dr.size||this.disconnect()}disconnect(){this._targets.clear(),this.controller.disconnect(this)}takeRecords(){return this._quedEntries.splice(0)}notifySubscriber(){const Tr=this.takeRecords(),Dr=this._publicObserver;Tr.length&&this._callback.call(Dr,Tr,Dr)}queueEntry(Tr){this._quedEntries.push(Tr)}hasEntries(){return!!this._quedEntries.length}updateObservations(){let Tr=this._root,Dr=this.getRootRect(),Rr=!1;return this._targets.forEach(Ur=>{const Hr=Ur.updateIntersection(Tr,Dr);(Hr.ratioChanged||Hr.targetRectChanged)&&(Rr=!0)}),Rr}getThresholdGreaterThan(Tr){let Dr=this.thresholds,Rr=Dr.length,Ur=0;while(Ur<Rr&&Dr[Ur]<=Tr)++Ur;return Ur}getRootRect(){let Tr=getRectangle(this._root);return applyMargins(Tr,this._rootMargin)}}const Fi=new IntersectionObserverController_IntersectionObserverController,ji=new Ii;class IntersectionObserver_IntersectionObserver{constructor(Tr,Dr){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");const Rr=new _IntersectionObserver_IntersectionObserver(Tr,Dr,Fi,this);Object.defineProperties(this,{root:{value:Rr.root},thresholds:{value:Rr.thresholds},rootMargin:{value:Rr.rootMargin}}),ji.set(this,Rr)}static get idleTimeout(){return Fi.idleTimeout}static set idleTimeout(Tr){if("number"!==typeof Tr)throw new TypeError('type of "idleTimeout" value must be a number.');if(typeof Tr<0)throw new TypeError('"idleTimeout" value must be greater than 0.');Fi.idleTimeout=Tr}static get trackHovers(){return Fi.isHoverEnabled()}static set trackHovers(Tr){if("boolean"!==typeof Tr)throw new TypeError('type of "trackHovers" value must be a boolean.');Tr?Fi.enableHover():Fi.disableHover()}}["observe","unobserve","disconnect","takeRecords"].forEach(Tr=>{IntersectionObserver_IntersectionObserver.prototype[Tr]=function(){return ji.get(this)[Tr](...arguments)}});var Bi=IntersectionObserver_IntersectionObserver;let Ui;Ui="function"===typeof window.IntersectionObserver?window.IntersectionObserver:Bi;var Hi=Ui,Wi=Rr("2bc5"),qi=Rr("1551"),zi="2.0.9",PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"show",rawName:"v-show",value:Tr.isShow,expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:Tr.handleClose,expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:Tr.posStyle,on:{mouseenter:Tr.mouseEnter,mouseleave:Tr.mouseLeave}},Tr._l(Tr.poperText,(function(Dr){return Rr("div",{key:Dr+Math.random(0,1),staticClass:"poper-text"},[Tr._v(" "+Tr._s(Dr)+" ")])})),0)},Vi=[],Ki=(Rr("a630"),function(Tr){Object(Qr["a"])(PoperTipText,Tr);var Dr=Object(Zr["a"])(PoperTipText);function PoperTipText(){var Tr;return Object(Xr["a"])(this,PoperTipText),Tr=Dr.apply(this,arguments),Tr.posStyle={left:"",right:"",top:"",bottom:""},Tr.poperDirection="top",Tr.isShow=!1,Tr.isEnter=!1,Tr.poperTimer=null,Tr.poppernIstance=null,Tr.generateGetBoundingClientRect=function(Tr,Dr){var Rr=Array.from(document.querySelectorAll(".edit-area"))[Tr.docIndex],Ur=Array.from(Rr.querySelectorAll(".selectcanvas"))[Tr.pageIndex],Hr=Ur.getBoundingClientRect(),Wr=Hr.left+Tr.x,zr=Hr.top+Tr.y;return function(){return{width:Tr.width,height:Tr.height,top:zr-Tr.height,right:Wr,bottom:zr+Tr.height,left:Wr}}},Tr}return Object(Yr["a"])(PoperTipText,[{key:"isPoperTextChange",value:function isPoperTextChange(){var Tr=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.isPoperText?this.poperTimer=setTimeout((function(){Tr.isShow=Tr.isPoperText}),600):this.isEnter||(this.poperTimer=setTimeout((function(){Tr.isShow=Tr.isPoperText}),300))}},{key:"positionChange",value:function positionChange(Tr){"[]"!==JSON.stringify(this.poperText)&&this.init()}},{key:"init",value:function init(){if(void 0!=this.poperPos.docIndex){var Tr={getBoundingClientRect:this.generateGetBoundingClientRect(this.poperPos)};this.poppernIstance=Object(di["a"])(Tr,this.poperTextNode,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","top-start","right-start","left-start"],padding:10}}]})}}},{key:"mounted",value:function mounted(){window.addEventListener("scroll",this.handleClose,!0),"[]"!==JSON.stringify(this.poperText)&&null==this.poppernIstance&&this.init()}},{key:"mouseEnter",value:function mouseEnter(){this.isEnter=!0}},{key:"mouseLeave",value:function mouseLeave(){var Tr=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.poperTimer=setTimeout((function(){Tr.isEnter=!1,Tr.isShow=!1,Tr.handleClose()}),300)}},{key:"handleClose",value:function handleClose(){this.$emit("poperTextClose"),this.poppernIstance=null}},{key:"beforeDestroy",value:function beforeDestroy(){document.removeEventListener("scroll",this.handleClose,!0)}}]),PoperTipText}(mixins(Zn)));__decorate([Prop()],Ki.prototype,"poperPos",void 0),__decorate([Prop()],Ki.prototype,"poperText",void 0),__decorate([Prop()],Ki.prototype,"isPoperText",void 0),__decorate([Ref()],Ki.prototype,"poperTextNode",void 0),__decorate([Watch("isPoperText")],Ki.prototype,"isPoperTextChange",null),__decorate([Watch("poperPos",{deep:!0})],Ki.prototype,"positionChange",null),Ki=__decorate([an({name:"PoperTipText"})],Ki);var $i=Ki,Gi=$i,Ji=(Rr("f96b"),normalizeComponent(Gi,PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render,Vi,!1,null,"3fa4e4d3",null)),Xi=Ji.exports,Yi=Xi,Qi=function(Tr){Object(Qr["a"])(HoDoc,Tr);var Dr=Object(Zr["a"])(HoDoc);function HoDoc(){var Tr;return Object(Xr["a"])(this,HoDoc),Tr=Dr.apply(this,arguments),Tr.dateFormat=Jn["d"],Tr.canvasParams={width:794*Dn["a"].instance().scaleXY%2>=1?794*Dn["a"].instance().scaleXY+1:794*Dn["a"].instance().scaleXY,height:1122*Dn["a"].instance().scaleXY%2>=1?1122*Dn["a"].instance().scaleXY+1:1122*Dn["a"].instance().scaleXY},Tr.canvasHeadFootPos={headerY:48,footerY:48},Tr.poperTipPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},Tr.drawing=!1,Tr.nodeValue="",Tr.poperType="",Tr.poperTextPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},Tr.drawPageCount={count:-1},Tr.poperSelectList=[],Tr.activePageIndex={index:-1},Tr.viewableAreaObserver=null,Tr.inViewPages=[0],Tr.paginationCount=200,Tr.drawPageLength=0,Tr.isCreateRightMenuModal=!1,Tr.version=zi,Tr.isHideComments=!1,Tr.showCommentsBtn=!1,Tr.domRange={startPath:"",endPath:""},Tr.poperText=[],Tr.isPoperText=!1,Tr.poperId=[],Tr}return Object(Yr["a"])(HoDoc,[{key:"docClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-area edit-area-padding":"edit-area"}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(){this.$emit("drawPagesLengthChange",this.drawPageCount.count),this.drawPageLength=this.drawPageCount.count}},{key:"activePageIndexChange",value:function activePageIndexChange(){this.$emit("setActivePageIndex",this.activePageIndex.index)}},{key:"poperTipPosChange",value:function poperTipPosChange(Tr){if(Tr){var Dr=Tn["a"].instance().getFactory(this.hoEditorId);if(5===Dr.drawTree.paintStatus)return;if('[""]'===JSON.stringify(this.mouseMoveNodes.tipText))return;if(0===this.mouseMoveNodes.tipText.length)return;0===this.mouseMoveNodes.moveType?(this.isPoperText=!0,this.poperText=this.mouseMoveNodes.tipText,this.poperId=this.mouseMoveNodes.id,this.poperTextPos=_objectSpread2(_objectSpread2({},Tr),{},{docIndex:this.docIndex})):this.isPoperText=!1}}},{key:"isUseTipTextChange",value:function isUseTipTextChange(){var Tr=Tn["a"].instance().getFactory(this.hoEditorId);Tr.nodeMouseMove.isUseTipText=this.isUseTipText}},{key:"created",value:function created(){var Tr=Tn["a"].instance().getFactory(this.hoEditorId);Tr.hoEditorFactoryIndex=this.docIndex,Tr.docTree.initBlankDoc(),this.mouseMoveNodes=Tr.nodeMouseMove,window.addEventListener("keydown",(function(Dr){Tr.docTree.updateCtlKey(Dr)})),window.addEventListener("keyup",(function(Dr){Tr.docTree.updateCtlKey(Dr)}))}},{key:"mounted",value:function mounted(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId);Dr.pageProperty.canvasParams=this.canvasParams,Dr.nodeMouseMove.poperTipPos=this.poperTipPos,Dr.nodeMouseMove.isUseTipText=this.isUseTipText,Dr.pageProperty.canvasHeadFootPos=this.canvasHeadFootPos,Dr.drawPageTree.initDoc(),Dr.drawTree.drawPageCount=this.drawPageCount,Dr.drawTree.activePageIndex=this.activePageIndex,this.drawing=!1;var Rr=this.hoEditorFactoryIdList.length;0===this.docIndex&&Dr.drawTree.buildDrawTree(Dr.docTree.headerNodes[0],Dr.drawTree.headerDNodes[0]),this.docIndex===Rr-1&&Dr.drawTree.buildDrawTree(Dr.docTree.footerNodes[0],Dr.drawTree.footerDNodes[0]),Dr.drawTree.buildDrawTree(Dr.docTree.mainNodes,Dr.drawTree.mainDNodes),Dr.drawTree.addPage(),Dr.drawTree.drawPageCount.count=Dr.drawTree.drawPages.length,Dr.docTree.addEventListener(bn["a"].eventName,(function(Dr){return Tr.mouseClickEvent(Dr)})),Dr.drawPageTree.changeInViewPage()}},{key:"beforeDestroy",value:function beforeDestroy(){var Tr,Dr=this,Rr=Tn["a"].instance().getFactory(this.hoEditorId);null===(Tr=this.viewableAreaObserver)||void 0===Tr||Tr.disconnect(),Rr.docTree.removeEventListener(bn["a"].eventName,(function(Tr){return Dr.mouseClickEvent(Tr)}))}},{key:"pageIntersectionObserver",value:function pageIntersectionObserver(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorId);this.viewableAreaObserver=new Hi((function(Rr){if(Rr){var Ur=Object(Gr["a"])(Dr.drawTree.inViewPages);Rr.forEach((function(Tr){var Rr=Number(Tr.target.dataset.id),Hr=Dr.drawTree.drawPages[Rr],Wr=Dr.drawTree.drawPages.length;Hr&&Hr.needUpdateStage&&Hr.drawDomLevel&&(Dr.drawPageTree.updateDrawPage(Hr.pageIndex),Hr.needUpdateStage=!1),0===Tr.intersectionRatio?Ur=Ur.filter((function(Tr){return Hr&&Tr!==Hr.pageIndex})):!Ur.includes(Hr.pageIndex)&&Ur.push(Hr.pageIndex),Ur=Ur.filter((function(Tr){return Tr<Wr})).sort()})),Tr.inViewPages=Object(Gr["a"])(Ur),Dr.drawTree.inViewPages=Object(Gr["a"])(Ur),Dr.drawPageTree.changeInViewPage()}}),{root:null,rootMargin:"0px",threshold:[0,1]})}},{key:"setActiveDocIndex",value:function setActiveDocIndex(Tr){Tr!==this.activeDocId&&this.$emit("setActiveDocIndex",this.hoEditorId)}},{key:"poperClose",value:function poperClose(){this.poperType="",this.nodeValue=""}},{key:"mouseClickEvent",value:function mouseClickEvent(Tr){var Dr=this,Rr=Tn["a"].instance().getFactory(this.hoEditorId);if(4===Rr.drawTree.paintStatus||5===Rr.drawTree.paintStatus)return!1;if(!Tr.clickType||"move"===Tr.clickType)return!1;var Ur=Tr.node;if(this.poperClose(),Ur&&null!==Ur&&Ur instanceof wn["a"]){var Hr=Tr.pageIndex;"dblclick"===Tr.clickType?setTimeout((function(){Dr.dblclickModal(Ur,"dblclick",Hr)}),150):"leftclick"===Tr.clickType&&this.$emit("setFontStyles")}return!0}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.activeDocId),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.domRange.endPath))||void 0===Tr?void 0:Tr.node;if(Ur)return Ur.parentNode instanceof ei["f"]?Dr=Ur.parentNode:(Ur instanceof Wi["a"]||Ur instanceof Qn["a"])&&(Dr=Ur),Dr}},{key:"dblclickModal",value:function dblclickModal(Tr,Dr,Rr){var Ur=this;if(this.poperType)return!1;if("dblclick"!==Dr)return!1;var Hr=Tn["a"].instance().getFactory(this.activeDocId);if(this.domRange={startPath:Hr.docTree.curDomRange.normalize().startPath,endPath:Hr.docTree.curDomRange.normalize().endPath},Tr instanceof Wi["a"])this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"sign"});else if(Tr instanceof Yn["a"]){if(Tr.isReadOnly&&""!==Tr.text.replace(/\s*/g,""))return!1;this.computedPoperPosition(Tr,Rr),this.poperType="datePoper"}else if(Tr instanceof Qn["a"]){if(Tr.isReadOnly&&""!==Tr.text.replace(/\s*/g,""))return!1;var Wr=function callback(Dr){Ur.computedPoperPosition(Tr,Rr),Array.isArray(Dr)&&Dr.length>0?Ur.poperSelectList=Dr:Ur.poperSelectList=Tr.downListContent?Tr.downListContent:[],Ur.poperType="selectPoper"};Tr.customProperty&&1==Tr.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"downlist",callback:Wr}):Wr(void 0)}else if((Tr instanceof ci["a"]||Tr instanceof li["a"])&&Tr.parentNode instanceof ei["f"]){var zr=Tr.parentNode;if(0===Number(zr.inputFieldType))return this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"text"}),this.setUpdateNodeValue(this.getCurrentSelectNode()),!1;if(0===zr.readOnlyStatus&&""!==zr.text.replace(/\s*/g,""))return!1;if(2===Number(zr.inputFieldType))this.poperType="datePoper";else if(1===Number(zr.inputFieldType)){var Vr=function _callback(Dr){Ur.computedPoperPosition(Tr,Rr),Array.isArray(Dr)&&Dr.length>0?Ur.poperSelectList=Dr:Ur.poperSelectList=JSON.parse(zr.downListProperty.listItems),Ur.poperType="selectPoper"};zr.customProperty&&1==zr.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"textlist",callback:Vr}):Vr(void 0)}}else Tr.parentNode instanceof En["a"]?this.handleCellNode(Tr,Tr.parentNode,Rr):this.setDblclickNodeValue(Tr,"dblclick")}},{key:"handleCellNode",value:function handleCellNode(Tr,Dr,Rr){var Ur,Hr=Dr.table.colInfos[Dr.row.indexOf(Dr)].colProperty,Wr=Dr.cellProperty,zr=!0;if(null!==Hr&&0===Hr.editorProperty&&null!==Wr&&0!==Wr.editorProperty)if(1===Wr.editorProperty&&1===JSON.parse(null===(Ur=Wr.downListProperty)||void 0===Ur?void 0:Ur.listItems).length){var Vr,Kr=JSON.parse(null===(Vr=Wr.downListProperty)||void 0===Vr?void 0:Vr.listItems);Dr.setCellText(Kr[0].text),zr=!1}else if(2===Wr.editorProperty&&Wr.dateTimeProperty.isAutoInputCurDate){var $r=this.dateFormat(new Date,Wr.dateTimeProperty.inputStyle);Dr.setCellText($r),zr=!1}zr&&(Tr instanceof ci["a"]?this.nodeValue=Tr.text:Tr instanceof qi["a"]&&(this.nodeValue=""),this.poperType="table-cell-poper",this.computedPoperPosition(Tr,Rr))}},{key:"computedPoperPosition",value:function computedPoperPosition(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this.hoEditorId),Ur=Tr.drawNodes[0],Hr=Rr.drawTree.getDrawLineByDNode(Ur),Wr=Hr.localToGlobal(Ur.x,0===Ur.y?Hr.dHeight:Ur.y);this.poperPos={x:Wr.x/Dn["a"].instance().scaleXY,y:Wr.y/Dn["a"].instance().scaleXY+5,width:Ur.dWidth?Ur.dWidth:0,height:Hr.dHeight,pageIndex:Dr,docIndex:this.docIndex?this.docIndex:0}}},{key:"mouseRightClickEvent",value:function mouseRightClickEvent(Tr){var Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorId),Ur={clientX:Tr.clientX||Tr.pageX,clientY:Tr.clientY||Tr.pageY};if(0!==Rr.drawTree.paintStatus&&1!==Rr.drawTree.paintStatus){var Hr=Tn["a"].instance().getFactory(this.hoEditorId);return this.isCreateRightMenuModal=!0,Hr.drawTree.paintStatus!==mn["b"].psReview&&(this.isHideComments=Hr.isHideComments,this.showCommentsBtn=!0),void Object(Jn["c"])(Ur.clientX,Ur.clientY,this.rightMenuModal)}var Wr=Rr.vueController.getCaretPosition(),zr=null===(Dr=Rr.vueController.findNodebyPath(Wr))||void 0===Dr?void 0:Dr.node;zr&&null!==zr&&zr instanceof wn["a"]&&this.setRightClickNodeValue(zr),Rr.drawTree.selectRange.beginRangeSelect=!1,this.$emit("rightClickEvent",Ur)}},{key:"hideComments",value:function hideComments(){this.isCreateRightMenuModal=!1;var Tr=Tn["a"].instance().getFactory(this.hoEditorId);Tr.vueController.hideComments(!Tr.isHideComments)}},{key:"poperTextClose",value:function poperTextClose(){this.isPoperText=!1}},{key:"pageReady",value:function pageReady(Tr){try{null===this.viewableAreaObserver&&this.pageIntersectionObserver();var Dr=Tn["a"].instance().getFactory(this.hoEditorId);this.drawing=!0,Dr.drawTree.paintHeader(Tr.pageIndex),Dr.drawTree.paintFooter(Tr.pageIndex),Tr.reFreshBounds(),Dr.drawPageTree.changeInViewPage(),Tr.drawDomLevel&&Dr.drawPageTree.updateDrawPage(Tr.pageIndex)}finally{this.drawing=!1}}}]),HoDoc}(Kr.a);__decorate([Prop()],Qi.prototype,"docIndex",void 0),__decorate([Prop()],Qi.prototype,"hoEditorId",void 0),__decorate([Prop()],Qi.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],Qi.prototype,"activeDocId",void 0),__decorate([Prop()],Qi.prototype,"editJson",void 0),__decorate([Ref()],Qi.prototype,"editorArea",void 0),__decorate([Ref()],Qi.prototype,"rightMenuModal",void 0),__decorate([Prop()],Qi.prototype,"isUseTipText",void 0),__decorate([Watch("drawPageCount",{deep:!0})],Qi.prototype,"drawPagesLengthChange",null),__decorate([Inject("setRightClickNodeValue")],Qi.prototype,"setRightClickNodeValue",void 0),__decorate([Inject("setDblclickNodeValue")],Qi.prototype,"setDblclickNodeValue",void 0),__decorate([Inject("setUpdateNodeValue")],Qi.prototype,"setUpdateNodeValue",void 0),__decorate([Watch("activePageIndex",{deep:!0})],Qi.prototype,"activePageIndexChange",null),__decorate([Watch("poperTipPos",{deep:!0})],Qi.prototype,"poperTipPosChange",null),__decorate([Watch("isUseTipText")],Qi.prototype,"isUseTipTextChange",null),Qi=__decorate([an({name:"HoDoc",components:{HoPage:Wn,HoToPage:Gn,PoperMark:xi,PoperTipText:Yi,PoperSelectModal:gi,TableCellPoper:ki}})],Qi);var Zi,ea=Qi,ta=ea,ra=(Rr("560f"),normalizeComponent(ta,HoDocvue_type_template_id_f60e2e72_render,dn,!1,null,null,null)),na=ra.exports,ia=Rr("3fe7"),aa=Rr("8d8b"),oa=Rr("3835"),sa=Rr("1367"),la=Rr("bd18"),ca=Rr("65aa"),ua=Rr("20d3"),da=Rr("5964"),ha=Rr("e2ed"),pa=Rr("7d22"),fa=Rr("49d1"),_a=function(){function DrawPageTree(Tr){Object(Xr["a"])(this,DrawPageTree),this._oldPageCount=0,this._hoEditorFactoryID=Tr,this._drawFooters=[],this._drawHeaders=[],this._drawMainDocs=[],this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}return Object(Yr["a"])(DrawPageTree,[{key:"drawHeaders",get:function get(){return this._drawHeaders},set:function set(Tr){this._drawHeaders=Tr}},{key:"drawFooters",get:function get(){return this._drawFooters},set:function set(Tr){this._drawFooters=Tr}},{key:"drawMainDocs",get:function get(){return this._drawMainDocs},set:function set(Tr){this._drawMainDocs=Tr}},{key:"initDoc",value:function initDoc(){var Tr=new la["a"](this._hoEditorFactoryID,"header/0",0),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.x=Dr.pageProperty.leftMarginPixes,this._drawHeaders.push(Tr);var Rr=new sa["a"](this._hoEditorFactoryID,"footer/0",0);Rr.x=Dr.pageProperty.leftMarginPixes,this._drawFooters.push(Rr);var Ur=new ca["a"](this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(Ur),this.calcMainDocPosition(0),Dr.drawTree.inViewPages=[0]}},{key:"getMainDoc",value:function getMainDoc(Tr){if(Tr<this._drawMainDocs.length)return this._drawMainDocs[Tr];if(Tr===this._drawMainDocs.length){var Dr=new ca["a"](this._hoEditorFactoryID,"main",0,0);return this.calcMainDocPosition(Tr),Dr}throw new Error("需要按顺序创建mainDoc")}},{key:"getPrevDrawArea",value:function getPrevDrawArea(Tr){var Dr=Tr;if(Tr instanceof ca["a"]){var Rr=this._drawMainDocs.indexOf(Tr);if(Rr<this._drawMainDocs.length-1)Dr=this._drawMainDocs[Rr+1];else{var Ur=new ca["a"](this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(Ur),this.calcMainDocPosition(Rr+1),Dr=Ur}}return Dr}},{key:"getNextDrawArea",value:function getNextDrawArea(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Tr;if(Tr instanceof ca["a"]){var Hr=this._drawMainDocs.indexOf(Tr);if(Hr<this._drawMainDocs.length-1)Ur=this._drawMainDocs[Hr+1];else{var Wr=new ca["a"](this._hoEditorFactoryID,"main",Hr+1,0);this._drawMainDocs.push(Wr),this.calcMainDocPosition(Hr+1,Dr);while(Rr.drawTree.drawPages.length<this._drawMainDocs.length)Rr.drawTree.addPage(),Rr.drawTree.drawPageCount.count=Rr.drawTree.drawPages.length;Ur=Wr}}return Ur}},{key:"paint",value:function paint(Tr,Dr,Rr,Ur){new Array;var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof da["a"])this.paintDrawPageCell(Tr,Dr,Rr,Ur);else{var Wr=Ur,zr=Tr;this._oldPageCount=Hr.drawTree.drawPages.length;var Vr=1/0,Kr=Dr[Rr],$r=0;if(Kr instanceof pa["a"]){if(Kr.drawPageTables.length>0)Kr.drawPageTables[Kr.drawPageTables.length-1];else if(null,Rr>0){var Gr,Jr=Dr[Rr-1];Gr=Jr instanceof pa["a"]?Jr.drawPageTables[Jr.drawPageTables.length-1]:Jr;var Xr=this.getMainRootArea(Gr);Xr===zr&&($r=Gr.y+Gr.dHeight+Gr.paragraphNode.combineParagraph.lineSpace,Gr instanceof ha["a"]&&Gr.endRow==Gr.table.rowCount-1&&Gr.isEndRowFinished()&&($r-=Gr.paragraphNode.combineParagraph.lineSpace))}}else Kr,$r=Kr.y;if(zr.allowAcrossPage&&(Vr=zr.maxHeight-$r),zr){var Yr=this.getMainRootArea(zr);if(Yr){var Qr=Rr,Zr=new Map;try{this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1;while(Qr<=Ur){var en=Dr[Qr];en.paragraphNode.printAsSinglePage&&en.paragraphNode.drawlines[0]===en&&$r>0&&zr instanceof ca["a"]&&(this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr,!0),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r)),(en instanceof pa["a"]&&Vr<Hr.defaultLineHeight||en instanceof ua["a"]&&Vr<en.dHeight)&&(en instanceof ua["a"]&&Vr>=Hr.defaultLineHeight&&zr.contains(en)&&zr.removeChild(en),zr instanceof ca["a"]&&(this.afterAreaFinishPaint(zr),this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r)));var tn=Dr[Qr],rn=tn.paragraphNode.combineParagraph;if(tn instanceof pa["a"]){var nn=tn.drawPageTables.length>0&&tn.isFinishedPaint();if(nn)Qr<Wr&&(Wr=Qr>0?Qr-1:0);else{while(!nn){var an=0;if(tn.drawPageTables.length>0){var sn=tn.drawPageTables[tn.drawPageTables.length-1];an=sn.isEndRowFinished()?sn.endRow+1:sn.endRow,$r=0}zr.allowAcrossPage&&(Vr=zr.maxHeight-$r),Vr<fa["d"]&&zr instanceof ca["a"]&&(zr.endDline=Qr-1,this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r));var cn=tn.paintTable(zr,$r,Vr,an);if(cn&&($r=cn.y+cn.dHeight,zr.allowAcrossPage?Vr=zr.maxHeight-$r:Yr.docHeight=$r),nn=tn.isFinishedPaint(),!nn){if(!(zr instanceof ca["a"]))break;this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r,Zr.set(zr.index,!0))}}$r+=rn.lineSpace}}else tn.dHeight>Vr&&$r>0&&zr instanceof ca["a"]&&(zr.endDline=Qr-1,this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),Zr.set(zr.index,!0),zr=this.getNextDrawArea(zr),$r=0,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r)),(Qr>Rr||Qr===Rr&&!zr.contains(tn))&&(zr.addChild(tn),tn.y=$r),$r=tn.y+tn.dHeight+tn.paragraphNode.combineParagraph.lineSpace,Yr.docHeight=$r,zr.allowAcrossPage&&(Vr=zr.maxHeight-$r);if(Qr>=Ur)break;Qr+=1}var un=Math.min(Qr,Ur,Wr);if(zr instanceof ca["a"]&&un===Dr.length-1){zr.endDline=un;var dn=this._drawMainDocs.indexOf(zr);return this._drawMainDocs.splice(dn+1,this._drawMainDocs.length),Hr.drawTree.drawPages.splice(dn+1,this._drawMainDocs.length),Hr.drawTree.drawPageCount.count=Hr.drawTree.drawPages.length,this.afterAreaFinishPaint(zr),this._startNeedUpdatePage=Math.min(zr.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.pageIndex,this._endNeedUpdatePage),void(Hr.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,Hr.drawTree.updatePageCountNodes()))}if(zr===Yr&&Qr===this.drawMainDocs.length-1&&Wr===Qr)return this.afterAreaFinishPaint(zr),this._startNeedUpdatePage=Math.min(zr.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(zr.index,this._endNeedUpdatePage),void(Hr.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,Hr.drawTree.updatePageCountNodes()));var hn,pn=Dr[un],_n=Hr.drawTree.getDlineDrawRootLists(pn)[0],gn=_n.drawRoots;un=_n.index,zr instanceof ca["a"]&&(Yr=zr);var mn=Zr.get(Yr.index);if(mn){var vn=this._drawMainDocs.indexOf(Yr);Yr=vn===this._drawMainDocs.length-1?this.getNextDrawArea(Yr):this._drawMainDocs[vn+1]}if(pn=gn[un],pn instanceof pa["a"]){var yn=pn.getDrawTableByPageIndex(Yr.index);hn=yn||pn.drawPageTables[0]}else hn=pn;this.update(Yr,gn,hn,un,un)}finally{for(var bn=this._endNeedUpdatePage;bn>=this._startNeedUpdatePage;bn--)this.updateDrawPage(bn);this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}}}}}},{key:"paintDrawPageCell",value:function paintDrawPageCell(Tr,Dr,Rr,Ur){var Hr=Ur,Wr=Tr,zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Vr=zr.drawTree.drawPages.length;try{var Kr=Dr[Rr],$r=0;if(Kr instanceof pa["a"]){if(Kr.drawPageTables.length>0)Kr.drawPageTables[Kr.drawPageTables.length-1];else if(null,Rr>0){var Gr=Dr[Rr-1];if(Gr instanceof pa["a"]){var Jr=Gr.drawPageTables[Gr.drawPageTables.length-1];$r=Jr.y+Jr.dHeight}else $r=Gr.y+Gr.dHeight+Gr.paragraphNode.combineParagraph.lineSpace}}else Kr,$r=Kr.y;if(!Wr)return;var Xr=this.getMainRootArea(Wr);if(!Xr)return;var Yr=Xr.dHeight-Wr.localToLocal(0,0,Xr).y;Wr.maxHeight=Yr;var Qr=1/0;Wr.allowAcrossPage&&Xr.allowAcrossPage&&(Qr=Wr.maxHeight-$r);var Zr=Rr,en=!1;while(Zr<=Ur){var tn=Dr[Zr];(tn instanceof pa["a"]&&Qr<zr.defaultLineHeight||tn instanceof ua["a"]&&Qr<tn.dHeight)&&(tn instanceof ua["a"]&&Qr>=zr.defaultLineHeight&&Wr.contains(tn)&&Wr.removeChild(tn),en=!0);var rn=Dr[Zr];rn.paragraphNode.combineParagraph;if(rn instanceof pa["a"]){var nn=rn.drawPageTables.length>0&&rn.isFinishedPaint();if(nn)Zr<Hr&&(Hr=Zr>0?Zr-1:0);else{while(!nn){var an=0;if(rn.drawPageTables.length>0){var sn=rn.drawPageTables[rn.drawPageTables.length-1];an=sn.isEndRowFinished()?sn.endRow+1:sn.endRow}var cn=rn.paintTable(Wr,$r,Qr,an);cn&&($r=cn.y+cn.dHeight,Wr.allowAcrossPage&&Xr.allowAcrossPage&&(Qr=Wr.maxHeight-$r)),nn=rn.isFinishedPaint()}$r+=rn.paragraphNode.combineParagraph.lineSpace}}else{if(rn.dHeight>Qr&&$r>0){var un=zr.drawTree.getParentDrawArea(Wr);if(!un)throw new Error("无法绘制表格,找不到当前表格的父区域");var dn=Wr.drawPageTable,hn=dn.table.drawTable.drawPageTables.indexOf(dn),pn=null;hn>0&&(pn=dn.table.drawTable.drawPageTables[hn-1]);var _n=dn.getMainRestHeight();Wr.drawPageTable.table.drawTable.drawUpdate(un,pn,dn.y,_n);break}(Zr>Rr||Zr===Rr&&!Wr.contains(rn))&&(Wr.addChild(rn),rn.y=$r),$r=rn.y+rn.dHeight+rn.paragraphNode.combineParagraph.lineSpace,Wr.allowAcrossPage&&Xr.allowAcrossPage&&(Qr=Wr.maxHeight-$r)}if(Zr>=Ur)break;Zr+=1}var gn,mn=Math.min(Zr,Ur,Hr),vn=Dr[mn],yn=zr.drawTree.getDlineDrawRootLists(vn)[0],bn=yn.drawRoots;if(mn=yn.index,en){var wn=this._drawMainDocs.indexOf(Xr);wn===this._drawMainDocs.length-1?Xr=this.getNextDrawArea(Xr):(this.updateDrawPage(Wr.index),Xr=this._drawMainDocs[wn+1])}if(vn=bn[mn],vn instanceof pa["a"]){var xn=vn.getDrawTableByPageIndex(Xr.index);gn=xn||vn.drawPageTables[0]}else gn=vn;this.update(Xr,bn,gn,mn,mn)}finally{zr.drawTree.drawPages.length!==Vr&&zr.drawTree.updatePageCountNodes()}}},{key:"update",value:function update(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr){var zr=-1===this._startNeedUpdatePage&&-1===this._endNeedUpdatePage;try{0===this._oldPageCount&&(this._oldPageCount=Wr.drawTree.drawPages.length);var Vr=Ur,Kr=!1,$r=0;if(Vr===Hr&&Dr[Vr]instanceof pa["a"]&&(Kr=!0,Vr<Dr.length-1)){var Gr,Jr=Dr[Vr+1];Gr=Jr instanceof pa["a"]?Jr.drawPageTables[0]:Jr,$r=Gr.y}var Xr=Dr.length-1,Yr=Rr.y;Rr instanceof ha["a"]&&!Tr.contains(Rr)&&(Yr=0);var Qr=1/0;Tr.allowAcrossPage&&(Qr=Tr.maxHeight-Yr);var Zr=null;if(Tr instanceof ca["a"]){var en=this._drawMainDocs.indexOf(Tr);en>0&&(Zr=this._drawMainDocs[en-1])}do{if(!Tr)return;if(Tr.update(Zr,Dr,Vr,Yr,Qr),this.afterAreaFinishPaint(Tr),this._startNeedUpdatePage=Math.min(Tr.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(Tr.index,this._endNeedUpdatePage),Vr=Tr.endDline,Kr&&Vr>Hr+1){var tn=Dr[Hr+1],rn=void 0;if(rn=tn instanceof pa["a"]?tn.drawPageTables[0]:tn,rn.y===$r)return}if(Tr.isEndLineFinished()&&(Vr+=1),Tr instanceof ca["a"]&&(Vr<=Xr&&(Zr=Tr,Tr=this.getNextDrawArea(Tr),Yr=0,Tr.allowAcrossPage&&(Qr=Tr.maxHeight)),Vr===Dr.length-1)){var nn=this._drawMainDocs.indexOf(Tr);this._drawMainDocs.splice(nn+1,this._drawMainDocs.length),Wr.drawTree.drawPages.splice(nn+1,this._drawMainDocs.length),Wr.drawTree.drawPageCount.count=Wr.drawTree.drawPages.length}}while(Vr<=Xr);if(Tr instanceof ca["a"]&&Xr===Dr.length-1){var an=this._drawMainDocs.indexOf(Tr);this._drawMainDocs.splice(an+1,this._drawMainDocs.length),Wr.drawTree.drawPages.splice(an+1,this._drawMainDocs.length)}Wr.drawTree.drawPageCount.count=Wr.drawTree.drawPages.length,this.afterAreaFinishPaint(Tr),this._startNeedUpdatePage=Math.min(Tr.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(Tr.index,this._endNeedUpdatePage)}finally{if(this._oldPageCount!==Wr.drawTree.drawPages.length&&Wr.drawTree.updatePageCountNodes(),zr){for(var sn=this._endNeedUpdatePage;sn>=this._startNeedUpdatePage;sn--)this.updateDrawPage(sn);this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}}}}},{key:"calcMainDocPosition",value:function calcMainDocPosition(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.subDocManger.getSubDocIndex(Tr,On["a"].hftHead),Hr=Object(oa["a"])(Ur,2),Wr=Hr[0],zr=(Hr[1],Rr.subDocManger.getSubDocIndex(Tr,On["a"].hftFoot)),Vr=Object(oa["a"])(zr,2),Kr=Vr[0],$r=(Vr[1],Wr),Gr=Kr;Dr&&(this._drawHeaders.length>Tr&&this._drawHeaders[Tr]&&($r=Tr),this._drawFooters.length>Tr&&this._drawFooters[Tr]&&(Gr=Tr));var Jr=this._drawHeaders[$r],Xr=Jr?Jr.actualHeight+Rr.pageProperty.headerYPixes:0,Yr=this._drawFooters[Gr],Qr=Yr?Yr.actualHeight+Rr.pageProperty.footerYPixes:0,Zr=this._drawMainDocs[Tr];if(Zr){var en=Math.max(Rr.pageProperty.topMarginPixes,Xr),tn=Math.max(Rr.pageProperty.bottomMarginPixes,Qr);Zr.x=Rr.pageProperty.leftMarginPixes,Zr.y=en,Zr.maxHeight=Rr.pageProperty.heightPixes-en-tn,Zr.dHeight=Rr.pageProperty.heightPixes-en-tn}}},{key:"getMainRootArea",value:function getMainRootArea(Tr){var Dr=Tr;while(Dr){if(Dr instanceof ca["a"]||Dr instanceof la["a"]||Dr instanceof sa["a"])return Dr;Dr=Dr.parent}return null}},{key:"getDrawPageBySelectContainer",value:function getDrawPageBySelectContainer(Tr){return Tr&&Tr.id>=0&&Tr.id<this.drawMainDocs.length?Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[Tr.id]:null}},{key:"getFirstDrawArea",value:function getFirstDrawArea(Tr){if(Tr.startsWith("main"))return this._drawMainDocs[0];var Dr=Tr.split("/"),Rr=0;if(Dr.length>1&&!isNaN(parseInt(Dr[1]))&&(Rr=parseInt(Dr[1])),Tr.startsWith("header"))return this._drawHeaders[Rr];if(Tr.startsWith("footer"))return this._drawFooters[Rr];throw new Error("错误码的绘制路径".concat(Tr))}},{key:"clearAreas",value:function clearAreas(Tr){for(var Dr=0;Dr<Tr.length;Dr++)Tr[Dr]&&Tr[Dr].clear();Tr.length=0}},{key:"clear",value:function clear(){this.clearAreas(this._drawFooters),this.clearAreas(this._drawHeaders),this.clearAreas(this._drawMainDocs)}},{key:"dispalyComments",value:function dispalyComments(Tr,Dr){var Rr=Dr.areaComments;if(Rr.size>0){var Ur=function changeComment(Tr,Rr){for(var Ur=Dr.children,Hr=0;Hr<Ur.length;Hr++){var Wr=Ur[Hr];Wr.name===Rr.id&&(Tr?Wr instanceof createjs.Container?Wr.alpha=1:Wr.alpha=.5:Wr.alpha=.01)}};Rr.forEach((function(Dr){Ur(Tr,Dr)}))}}},{key:"afterAreaFinishPaint",value:function afterAreaFinishPaint(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.drawTree.paintStatus!==mn["b"].psReview&&(Dr.drawTree.paintStatus!==mn["b"].psEdit&&Dr.drawTree.paintStatus!==mn["b"].psReadOnly||Dr.isHideComments)||Tr.drawComments();var Rr=!1;Dr.drawTree.paintStatus!==mn["b"].psReview&&(Dr.drawTree.paintStatus!==mn["b"].psEdit&&Dr.drawTree.paintStatus!==mn["b"].psReadOnly||Dr.isHideComments)||(Rr=!0),this.dispalyComments(Rr,Tr);var Ur=Tr.rootPath;if(Ur.startsWith("main"))Dr.drawTree.repaintPageMarkNodes(Dr.drawTree.drawPages[Tr.index],Tr.rootPath);else{var Hr=Dr.subDocManger.getHeaderFooterType(Tr.rootPath);Dr.subDocManger.repaintPageMarkNodes(Tr,Hr)}}},{key:"updateDrawPage",value:function updateDrawPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[Tr];Rr&&(Rr.needUpdateStage=!0,Rr.drawDomLevel&&Rr.drawDomLevel.stage&&Dr.drawTree.inViewPages.indexOf(Rr.pageIndex)>=0&&(Rr.drawDomLevel.stage.update(),Rr.needUpdateStage=!1),Rr.drawSelectLevel&&Rr.drawSelectLevel.stage&&Dr.drawTree.inViewPages.indexOf(Rr.pageIndex)>=0&&(Rr.drawSelectLevel.stage.update(),Rr.needUpdateStage=!1))}},{key:"stopPageEvent",value:function stopPageEvent(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawTree.drawPages.length-1;Dr>=0;Dr--){var Rr=Tr.drawTree.drawPages[Dr];Rr.drawDomLevel&&Rr.drawDomLevel.stage&&(Rr.drawDomLevel.stage.enableMouseOver(0),Rr.drawDomLevel.stage.removeAllEventListeners()),Rr.drawSelectLevel&&Rr.drawSelectLevel.stage&&(Rr.drawSelectLevel.stage.enableMouseOver(0),Rr.drawSelectLevel.stage.removeAllEventListeners())}}},{key:"getSubDocDrawarea",value:function getSubDocDrawarea(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr===On["a"].hftHead?Rr.drawPageTree.drawHeaders[Tr]:Rr.drawPageTree.drawFooters[Tr]}},{key:"updatePageWidthHeight",value:function updatePageWidthHeight(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.pageProperty.widthPixes,Rr=Dr-Tr.pageProperty.leftMarginPixes-Tr.pageProperty.rightMarginPixes,Ur=0;Ur<this._drawHeaders.length;Ur++){var Hr=this._drawHeaders[Ur];Hr&&(Hr.docWidth=Rr)}for(var Wr=0;Wr<this.drawFooters.length;Wr++){var zr=this.drawFooters[Wr];zr&&(zr.docWidth=Rr)}for(var Vr=0;Vr<Tr.drawTree.drawPages.length;Vr++){var Kr=Tr.drawTree.drawPages[Vr];Kr.storeDrawFooter.docWidth=Rr,Kr.storeDrawHeader.docWidth=Rr}for(var $r=0;$r<this._drawMainDocs.length;$r++){var Gr=this._drawMainDocs[$r];Gr&&(Gr.docWidth=Rr)}}},{key:"changeInViewPage",value:function changeInViewPage(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=0;Dr<Tr.drawTree.drawPages.length;Dr++){var Rr=Tr.drawTree.drawPages[Dr];Tr.drawTree.inViewPages.indexOf(Rr.pageIndex)<0&&(Rr.drawSelectLevel&&Rr.drawSelectLevel.stage&&(Rr.drawSelectLevel.stage._nextStage=null,Rr.drawSelectLevel.clearStage()),Rr.drawDomLevel&&Rr.drawDomLevel.stage&&Rr.drawDomLevel.clearStage())}for(var Ur=0;Ur<Tr.drawTree.inViewPages.length;Ur++){var Hr=Tr.drawTree.drawPages[Tr.drawTree.inViewPages[Ur]];Hr.drawDomLevel&&!Hr.drawDomLevel.stage&&(Hr.drawDomLevel.bindStage(),this.updateDrawPage(Hr.pageIndex)),Hr.drawSelectLevel&&!Hr.drawSelectLevel.stage&&Hr.drawSelectLevel.bindStage()}}},{key:"getDrawPageByDNode",value:function getDrawPageByDNode(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=this.getMainRootArea(Tr);return Rr?Dr.drawTree.drawPages[Rr.index]:null}},{key:"getDrawPageBySelectShape",value:function getDrawPageBySelectShape(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=this.getMainRootArea(Tr);return Rr?Dr.drawTree.drawPages[Rr.index]:null}}]),DrawPageTree}(),ga=(Rr("fb6a"),Rr("4e47")),ma=Rr("b7de");(function(Tr){Tr[Tr["detOver"]=0]="detOver",Tr[Tr["detOut"]=1]="detOut",Tr[Tr["detClick"]=2]="detClick",Tr[Tr["detDblclick"]=3]="detDblclick"})(Zi||(Zi={}));var va=function(){function NodeMouseMoveEvent(Tr){Object(Xr["a"])(this,NodeMouseMoveEvent),this._pageIndex=0,this._moveType=Zi.detOut,this._hoEditorFactoryID=Tr,this._tipText=[],this._id=[]}return Object(Yr["a"])(NodeMouseMoveEvent,[{key:"pageIndex",get:function get(){return this._pageIndex}},{key:"moveType",get:function get(){return this._moveType}},{key:"id",get:function get(){return this._id}},{key:"tipText",get:function get(){return this._tipText}},{key:"position",get:function get(){return this._position}},{key:"deleterIndex",get:function get(){return this._deleterIndex}},{key:"poperTipPos",get:function get(){return this._poperTipPos},set:function set(Tr){this._poperTipPos!==Tr&&(this._poperTipPos=Tr)}},{key:"isUseTipText",get:function get(){return this._isUseTipText},set:function set(Tr){this._isUseTipText!==Tr&&(this._isUseTipText=Tr)}},{key:"setNode",value:function setNode(Tr,Dr){this._creatorIndex=-1,this._deleterIndex=-1,this._tipText=[],this._id=[];var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof ci["a"]){if(Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus===mn["b"].psReview){if(this._creatorIndex=Rr.docTree.styles[Tr.styleIndex].creatorIndex,this._deleterIndex=Rr.docTree.styles[Tr.styleIndex].deleterIndex,void 0!==this._creatorIndex&&this._creatorIndex>=0){var Ur=Rr.docTree.userHistories[this._creatorIndex];this._moveType=Dr,this._tipText.push("".concat(Ur.editDate," ").concat(Ur.name,"创建")),this._id.push(Ur.id),this.computedPosition(Tr.drawNodes[0])}if(void 0!==this._deleterIndex&&this._deleterIndex>=0){var Hr=Rr.docTree.userHistories[this._deleterIndex];this._moveType=Dr,this._tipText.push("".concat(Hr.editDate," ").concat(Hr.name,"删除")),this._id.push(Hr.id),this.computedPosition(Tr.drawNodes[0])}}else if(this._isUseTipText&&0!==this._deleterIndex&&Tr.parentNode&&Tr.parentNode instanceof ei["f"]&&(0===Rr.drawTree.paintStatus||1===Rr.drawTree.paintStatus||4===Rr.drawTree.paintStatus)){if(this._moveType=Dr,Tr.parentNode.tipText){var Wr=JSON.stringify(Tr.parentNode.tipText);Wr=Wr.slice(1,Wr.length-1);var zr=Wr.split("\\n").filter((function(Tr){return Tr}));this._tipText=zr}else this._tipText.push("");this._id.push(Tr.parentNode.id),this.computedPosition(Tr.drawNodes[0])}}else if(Tr instanceof li["a"]){if(this._isUseTipText&&0!==this._deleterIndex&&Tr.parentNode&&Tr.parentNode instanceof ei["f"]&&(0===Rr.drawTree.paintStatus||1===Rr.drawTree.paintStatus||4===Rr.drawTree.paintStatus)){if(this._moveType=Dr,Tr.parentNode.tipText){var Vr=JSON.stringify(Tr.parentNode.tipText);Vr=Vr.slice(1,Vr.length-1);var Kr=Vr.split("\\n").filter((function(Tr){return Tr}));this._tipText=Kr}else this._tipText.push("");this._id.push(Tr.parentNode.id),this.computedPosition(Tr.drawNodes[0])}}else if(this._isUseTipText&&(0===Rr.drawTree.paintStatus||1===Rr.drawTree.paintStatus||4===Rr.drawTree.paintStatus)&&Tr instanceof ei["f"]){if(this._moveType=Dr,Tr.tipText){var $r=JSON.stringify(Tr.tipText);$r=$r.slice(1,$r.length-1);var Gr=$r.split("\\n").filter((function(Tr){return Tr}));this._tipText=Gr}else this._tipText.push("");this._id.push(Tr.id),this.computedPosition(Tr.drawNodes[0])}}},{key:"NodeClick",value:function NodeClick(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof ga["a"]&&Dr===Zi.detClick){var Ur=Rr.drawTree.getDrawLineByDNode(Tr.drawNodes[0]),Hr=new ma["a"](Tr,"click");Rr.docTree.nodeClick(Hr),Tr.drawNodes[0].parent=Ur}}},{key:"computedPosition",value:function computedPosition(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.getDrawLineByDNode(Tr);if(Rr){var Ur=Rr.localToGlobal(Tr.x,0===Tr.y?Rr.dHeight:Tr.y);this._pageIndex=Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex,this._poperTipPos.width=Tr.dWidth?Tr.dWidth:0,this._poperTipPos.height=Rr.dHeight,this._poperTipPos.pageIndex=this._pageIndex,this._poperTipPos.moveType=this._moveType,this._poperTipPos.y=Ur.y/Dn["a"].instance().scaleXY+5,this._poperTipPos.x=Ur.x/Dn["a"].instance().scaleXY}}}]),NodeMouseMoveEvent}();va.eventName="nodeMouseMove";var ya=Rr("0684"),ba=function(){function Option(Tr){Object(Xr["a"])(this,Option),this._reviewLev1Color="#F19191",this._reviewLev2Color="#8198F7",this._reviewLev3Color="#7FD27F",this._fieldColor="#DFFFFF",this._dateTimeColor="#FBFAD0",this._downListColor="#D2ECB1",this._hoEditorFactoryID=Tr}return Object(Yr["a"])(Option,[{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID},set:function set(Tr){this._hoEditorFactoryID=Tr}},{key:"reviewLev1Color",get:function get(){return this._reviewLev1Color},set:function set(Tr){this._reviewLev1Color=Tr}},{key:"reviewLev2Color",get:function get(){return this._reviewLev2Color},set:function set(Tr){this._reviewLev2Color=Tr}},{key:"reviewLev3Color",get:function get(){return this._reviewLev3Color},set:function set(Tr){this._reviewLev3Color=Tr}},{key:"fieldColor",get:function get(){return this._fieldColor},set:function set(Tr){this._fieldColor=Tr}},{key:"dateTimeColor",get:function get(){return this._dateTimeColor},set:function set(Tr){this._dateTimeColor=Tr}},{key:"downListColor",get:function get(){return this._downListColor},set:function set(Tr){this._downListColor=Tr}},{key:"setReviewLevelColor",value:function setReviewLevelColor(Tr,Dr,Rr,Ur,Hr,Wr){Tr&&(this._reviewLev1Color=Tr),Dr&&(this._reviewLev2Color=Dr),Rr&&(this._reviewLev3Color=Rr),Ur&&(this._fieldColor=Ur),Hr&&(this._dateTimeColor=Hr),Wr&&(this._downListColor=Wr)}},{key:"getColorByLevel",value:function getColorByLevel(Tr){return 10===Tr?this._fieldColor:11===Tr?this._dateTimeColor:12===Tr?this._downListColor:1===Tr?this._reviewLev1Color:2===Tr?this._reviewLev2Color:3===Tr?this._reviewLev3Color:"transparent"}}]),Option}(),wa=function(){function TimeStamp(Tr){Object(Xr["a"])(this,TimeStamp),this._hoEditorFactoryID=Tr,this._last=(new Date).valueOf()}return Object(Yr["a"])(TimeStamp,[{key:"update",value:function update(){this._last=(new Date).valueOf()}},{key:"timeOut",value:function timeOut(Tr){return(new Date).valueOf()-this._last>(Tr||1e3)}}]),TimeStamp}(),xa=Rr("454b"),Ca=(Rr("25f0"),function(){function GenerateCode(Tr){Object(Xr["a"])(this,GenerateCode),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(GenerateCode,[{key:"generateID",value:function generateID(Tr){void 0===Tr&&(Tr="");var Dr=new Date,Rr=Dr.getFullYear().toString(),Ur=(Dr.getMonth()+1).toString(),Hr=Dr.getDate().toString(),Wr=Dr.getHours().toString(),zr=Dr.getMinutes().toString(),Vr=Dr.getSeconds().toString();1===Ur.length&&(Ur="0"+Ur),1===Hr.length&&(Hr="0"+Hr),1===Wr.length&&(Wr="0"+Wr),1===zr.length&&(zr="0"+zr),1===Vr.length&&(Vr="0"+Vr);var Kr=Math.floor(1e6*Math.random()).toString(),$r=Tr+Rr+Ur+Hr+Wr+zr+Vr+Kr;return $r}},{key:"generateTime",value:function generateTime(){var Tr=new Date,Dr=Tr.getFullYear().toString(),Rr=(Tr.getMonth()+1).toString(),Ur=Tr.getDate().toString(),Hr=Tr.getHours().toString(),Wr=Tr.getMinutes().toString(),zr=Tr.getSeconds().toString();1===Rr.length&&(Rr="0"+Rr),1===Ur.length&&(Ur="0"+Ur),1===Hr.length&&(Hr="0"+Hr),1===Wr.length&&(Wr="0"+Wr),1===zr.length&&(zr="0"+zr);var Vr=Dr+"-"+Rr+"-"+Ur+" "+Hr+":"+Wr+":"+zr;return Vr}}]),GenerateCode}()),Pa=(Rr("9e1f"),Rr("450d"),Rr("6ed5")),Ea=Rr.n(Pa),Sa=(Rr("8a79"),Rr("cc71"),Rr("c5d0"),Rr("b680"),Rr("498a"),Rr("1157")),Ta=Rr.n(Sa),Da=Rr("3365"),ka=Rr("c7e5"),Oa=Rr("80c7"),Ia=function(){function HTMLconverter2(Tr){var Dr=this;Object(Xr["a"])(this,HTMLconverter2),this._hoEditorFactoryID=Tr,this.convert=new Map,0===this.convert.size&&(this.convert=new Map,this.convert.set("div",(function(Tr,Rr){return Dr.TransHTML(Tr,Rr)})),this.convert.set("p",(function(Tr,Rr){return Dr.TransHTMLP(Tr,Rr)})),this.convert.set("br",(function(Tr,Rr){return Dr.TransHTMLP(Tr,Rr)})),this.convert.set("span",(function(Tr,Rr){return Dr.TransHTMLSPAN(Tr,Rr)})),this.convert.set("font",(function(Tr,Rr){return Dr.TransHTMLSPAN(Tr,Rr)})),this.convert.set("table",(function(Tr,Rr){return Dr.TransHTMLTABLE(Tr,Rr)})),this.convert.set("#text",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("b",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("strong",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("em",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("i",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("sup",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("sub",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("u",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("s",(function(Tr,Rr){return Dr.TransHTMLText(Tr,Rr)})),this.convert.set("img",(function(Tr,Rr){return Dr.TransHTMLIMG(Tr,Rr)})))}return Object(Yr["a"])(HTMLconverter2,[{key:"Exec",value:function Exec(Tr,Dr){var Rr=new Array;return Rr.push.apply(Rr,Object(Gr["a"])(this.TransHTML(Tr,Dr))),Rr}},{key:"TransHTML",value:function TransHTML(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Hr=new Array;if(0==Tr.childNodes.length){var Wr=this.HTMLStyleToCombineStyle(Ur),zr=Rr.docTree.styleCompare(Wr),Vr=new ci["a"](this._hoEditorFactoryID,Rr.docTree.activeNodes,null,wn["b"].ntText,Ta()(Tr).text(),zr);return Hr.push(Vr),Hr}for(var Kr=0;Kr<Tr.childNodes.length;Kr++){var $r=this.convert.get(Tr.childNodes[Kr].nodeName.toLowerCase());if($r&&Hr.push.apply(Hr,Object(Gr["a"])($r(Tr.childNodes[Kr],JSON.stringify(Ur)))),"p"===Tr.childNodes[Kr].nodeName.toLowerCase()&&Tr.childNodes[Kr+1]&&"p"!==Tr.childNodes[Kr+1].nodeName.toLowerCase()){var Jr=Object(Tr.childNodes[Kr]);Jr.className&&"MsoNormal"===Jr.className&&Hr[Hr.length-1]instanceof qi["a"]&&Hr.splice(Hr.length-1,1)}if("p"===Tr.childNodes[Kr].nodeName.toLowerCase()&&Tr.childNodes[Kr-1]&&"p"!==Tr.childNodes[Kr-1].nodeName.toLowerCase()){var Xr=Object(Tr.childNodes[Kr]);Xr.className&&"MsoNormal"===Xr.className&&Hr[0]instanceof qi["a"]&&Hr.splice(0,1)}}for(var Yr=0;Yr<Hr.length;Yr++){var Qr=Hr[Yr];if(Qr instanceof fa["c"]&&Qr.parentNode instanceof ei["f"])return Ea.a.alert("不能在文本域中插入表格"),[]}return Hr}},{key:"StyleToJSON",value:function StyleToJSON(Tr){if(""==Tr)return{};if(Tr.startsWith("{"))return JSON.parse(Tr);var Dr=Tr;Dr.endsWith(";")&&(Dr=Dr.substr(0,Dr.length-1)),Dr=Dr.split("\n").join(""),Dr=Dr.split('"').join(""),Dr=Dr.split(";").join('",\n"'),Dr=Dr.split(":").join('":"'),Dr=Dr.split("-").join("_"),Dr='{"'.concat(Dr,'"}');var Rr=JSON.parse(Dr);return Rr}},{key:"colorRGB2Hex",value:function colorRGB2Hex(Tr){var Dr=Tr.split(","),Rr=parseInt(Dr[0].split("(")[1]),Ur=parseInt(Dr[1]),Hr=parseInt(Dr[2].split(")")[0]),Wr="#"+((1<<24)+(Rr<<16)+(Ur<<8)+Hr).toString(16).slice(1);return Wr}},{key:"HTMLStyleToCombineStyle",value:function HTMLStyleToCombineStyle(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.styles[0].clone();if(Tr["font_size"]){Rr.size=Number(Tr["font_size"])||Rr.size;var Ur=Tr["font_size"],Hr=Ur.match(/^(.*)(px|pt)$/);if(Hr){var Wr=parseFloat(Hr[1]);"px"==Hr[2]&&(Wr=Math.round(25.4*Dr.unitConvert.pxConversionMm(Wr,!0))),Rr.size=Wr}}if(Tr["font_family"]&&""!==Object(Sa["trim"])(Tr["font_family"].toString())?Rr.font=Tr["font_family"]:Rr.font=Rr.combineStyle.font,Tr["font_weight"]&&(Rr.bold=!0),Tr["font_style"]&&"normal"!==Object(Sa["trim"])(Tr["font_style"].toString())&&(Rr.italic=!0),Tr["text_decoration"]){var zr=Tr["text_decoration"];Rr.underline=-1!=zr.indexOf("underline"),Rr.strikeout=-1!=zr.indexOf("line_through")}if(Tr["vertical_align"]){var Vr=Tr["vertical_align"];"super"==Vr?Rr.script=Da["b"].sstsup:"sub"==Vr&&(Rr.script=Da["b"].sstsub)}if(Tr["background_color"]){Rr.backColor=Tr["background_color"];var Kr=Tr["background_color"];Kr.indexOf("rgb")>=0&&(Rr.backColor=this.colorRGB2Hex(Kr))}if(Tr["background"]){Rr.backColor=Tr["background"];var $r=Tr["background"];$r.indexOf("rgb")>=0&&(Rr.backColor=this.colorRGB2Hex($r))}if(Tr["color"]){Rr.color=Tr["color"];var Gr=Tr["color"];Gr.indexOf("rgb")>=0&&(Rr.color=this.colorRGB2Hex(Gr))}return Rr}},{key:"parseHtmlString",value:function parseHtmlString(Tr){return this.Exec(Ta()(Tr)[0],"")}},{key:"HTMLStyleToParsStyle",value:function HTMLStyleToParsStyle(Tr){var Dr=new ka["c"](this._hoEditorFactoryID);if(Tr["text_align"]){var Rr=Tr["text_align"];Dr.align="center"==Rr?ka["a"].alcenter:"left"==Rr?ka["a"].alleft:"right"==Rr?ka["a"].alright:"justify"==Rr?ka["a"].alSpaceEqually:Dr.align}if(Tr["line_height"]){var Ur=Tr["line_height"];Dr.lineSpace=Number(Ur.substr(0,Ur.indexOf("%")))/100}if(Tr["mso_para_margin_left"]){var Hr=Tr["mso_para_margin_left"],Wr=Hr.match(/^(.*)gd$/);Wr&&Wr[1]&&(Dr.leftMargin=Number(Wr[1]))}if(Tr["text_indent"]){var zr=Tr["text_indent"],Vr=zr.match(/^(.*)gd$/);Vr&&Vr[1]&&(Dr.leftMargin=Number(Vr[1]))}return Dr}},{key:"mergestyle",value:function mergestyle(Tr,Dr){var Rr={},Ur={};return""!=Tr&&(Rr=this.StyleToJSON(Tr)),""!=Dr&&(Ur=this.StyleToJSON(Dr)),Object.assign(Ur,Rr)}},{key:"TransHTMLIMG",value:function TransHTMLIMG(Tr,Dr){var Rr=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Ur=(Ta()(Tr).attr("src"),new Oa["a"](this._hoEditorFactoryID,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,null,wn["b"].ntImage,Tn["a"].instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"),Ta()(Tr).attr("src")||"",Rr.height||20,Rr.width||20));return[Ur]}},{key:"generateTableProperty",value:function generateTableProperty(Tr){Ta()(Tr).attr;var Dr=new Sn["j"]("");return Dr.tightLineSpace=Dr["tightLineSpace"]||!1,Dr.layoutFullLine=Dr["layoutFullLine"]||!1,Dr.continuePrintBorders=Dr["continuePrintBorders"]||!1,Dr.canDeleteTable=Dr["canDeleteTable"]||!1,Dr.canDeleteRow=Dr["canDeleteRow"]||!1,Dr.canAddRow=Dr["canAddRow"]||!1,Dr.canAdjustRowWidth=Dr["canAdjustRowWidth"]||!1,Dr.canAdjustRowHeight=Dr["canAdjustRowHeight"]||!1,Dr.isAutoChangeLine=Dr["isAutoChangeLine"]||!1,Dr.autoLineHeight=Dr["autoLineHeight"]||.53,Dr}},{key:"SetTableProperty",value:function SetTableProperty(Tr,Dr){for(var Rr,Ur=Ta()(Tr).children(),Hr=new Array,Wr=new Array,zr=0,Vr=0;Vr<Ur.length;Vr++){for(var Kr=Ta()(Ur[Vr]).children(),$r=0;$r<Kr.length;$r++){var Gr=new Sn["i"](""),Jr=new fa["b"](Dr,Gr),Xr=Ta()(Kr[Vr]).css("height");if(Xr&&"0px"!=Xr){var Yr=parseFloat(Xr.substring(0,Xr.indexOf("pt")));Yr=parseFloat((96*Yr/72).toFixed(2)),Jr.rowHeight=Yr}Hr.push(Jr);var Qr=Ta()(Kr[$r]).children();Qr.length>zr&&(zr=Qr.length,Rr=Kr[$r])}if(!Rr)throw new Error("表格中没有发现列");for(var Zr=Ta()(Rr).children(),en=0;en<Zr.length;en++){var tn=Ta()(Zr[en]).css("width"),rn=parseFloat(tn.substring(0,tn.indexOf("pt")));rn=parseFloat((96*rn/72).toFixed(2));var nn=new Sn["c"](""),an=new fa["a"](Dr,rn,nn);Wr.push(an)}Dr.rowInfos=Hr,Dr.colInfos=Wr}}},{key:"TransHTMLTABLE",value:function TransHTMLTABLE(Tr,Dr){this.mergestyle(Ta()(Tr).attr("style")||"",Dr);for(var Rr=Ta()(Tr).children(),Ur=new Array,Hr=0,Wr=0,zr=0;zr<Rr.length;zr++){var Vr=Ta()(Rr[zr]).children();Hr+=Vr.length;for(var Kr=0;Kr<Vr.length;Kr++){var $r=new Array,Jr=Ta()(Vr[Kr]).children();Wr=Math.max(Jr.length,Wr),$r.push.apply($r,Object(Gr["a"])(Jr)),Ur.push($r)}}var Xr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),Yr=new fa["c"](this._hoEditorFactoryID,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,Xr,Hr,Wr,this.generateTableProperty(Tr));if(this.SetTableProperty(Tr,Yr),0==Ur.length)return[];for(var Qr=0;Qr<Hr;Qr++)for(var Zr=0;Zr<Wr;Zr++){var en=Ur[Qr][Zr];if(en){var tn=parseInt(Ta()(en).attr("rowSpan")||"1"),rn=parseInt(Ta()(en).attr("colSpan")||"1");if(rn>1){var nn,an=new Array(rn-1);if((nn=Ur[Qr]).splice.apply(nn,[Zr+1,0].concat(an)),tn>1)for(var sn=Qr+1;sn<Qr+tn;sn++){var cn,un=new Array(rn);(cn=Ur[sn]).splice.apply(cn,[Zr,0].concat(un))}}else if(tn>1)for(var dn=Qr+1;dn<Qr+tn;dn++){var hn,pn=new Array(rn);(hn=Ur[dn]).splice.apply(hn,[Zr,0].concat(pn))}}}for(var _n=function getitem(Tr,Dr){return Tr<Ur.length&&Dr<Ur[Tr].length?Ur[Tr][Dr]:void 0},gn=0;gn<Hr;gn++)for(var mn=0;mn<Wr;mn++){var vn=_n(gn,mn);vn?this.copyCellNode(vn,Yr,gn,mn):Yr.rows[gn][mn]=void 0}return Yr.node2DrawNode(),[Yr]}},{key:"TransHTMLSPAN",value:function TransHTMLSPAN(Tr,Dr){var Rr=this.mergestyle(Ta()(Tr).attr("style")||"",Dr);if(0==Tr.childNodes.length){var Ur=this.generateTextNode(Ta()(Tr).text(),Rr);return Ur?[Ur]:[]}for(var Hr=new Array,Wr=0;Wr<Tr.childNodes.length;Wr++){var zr=this.convert.get(Tr.childNodes[Wr].nodeName.toLowerCase());zr&&Hr.push.apply(Hr,Object(Gr["a"])(zr(Tr.childNodes[Wr],JSON.stringify(Rr))))}return Hr}},{key:"TransHTMLP",value:function TransHTMLP(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Hr=new Array,Wr=this.HTMLStyleToParsStyle(Ur);0===Wr.lineSpace&&(Wr.lineSpace=void 0);var zr=Rr.docTree.styleCompare(Wr),Vr=new qi["a"](this._hoEditorFactoryID,Rr.docTree.activeNodes,Rr.docTree.getParentNode(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),zr);if(Hr.push(Vr),0==Tr.childNodes.length){if("br"===Tr.nodeName.toLowerCase())return Hr;var Kr=this.generateTextNode(Ta()(Tr).text(),Ur);return Kr?[Kr]:[]}for(var $r=0;$r<Tr.childNodes.length;$r++){var Jr=this.convert.get(Tr.childNodes[$r].nodeName.toLowerCase());Jr&&Hr.push.apply(Hr,Object(Gr["a"])(Jr(Tr.childNodes[$r],JSON.stringify(Ur))))}return Hr}},{key:"TransHTMLText",value:function TransHTMLText(Tr,Dr){var Rr=this.mergestyle(Ta()(Tr).attr("style")||"",Dr),Ur=Tr.nodeName.toLowerCase();if("b"==Ur||"strong"==Ur)Rr["font_weight"]="bold";else if("em"==Ur||"i"==Ur)Rr["font_style"]="italic";else if("sup"==Ur){var Hr=Rr["vertical_align"]||"";-1==Hr.indexOf("sub")&&(Rr["vertical_align"]=(""==Hr?"":Hr+" ")+"super")}else if("sub"==Ur){var Wr=Rr["vertical_align"]||"";-1==Wr.indexOf("sub")&&(Rr["vertical_align"]=(""==Wr?"":Wr+" ")+"sub")}else if("u"==Ur){var zr=Rr["text_decoration"]||"";-1==zr.indexOf("underline")&&(Rr["text_decoration"]=(""==zr?"":zr+" ")+"underline")}else if("s"==Ur){var Vr=Rr["text_decoration"]||"";-1==Vr.indexOf("line_through")&&(Rr["text_decoration"]=(""==Vr?"":Vr+" ")+"line_through")}if(0==Tr.childNodes.length){var Kr=this.generateTextNode(Ta()(Tr).text(),Rr);return Kr?[Kr]:[]}for(var $r=new Array,Jr=0;Jr<Tr.childNodes.length;Jr++){var Xr=this.convert.get(Tr.childNodes[Jr].nodeName.toLowerCase());Xr&&$r.push.apply($r,Object(Gr["a"])(Xr(Tr.childNodes[Jr],JSON.stringify(Rr))))}return $r}},{key:"generateTextNode",value:function generateTextNode(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(""==Tr.split("\n").join(""))return null;if(""==Tr.trim())return null;var Ur=this.HTMLStyleToCombineStyle(Dr),Hr=Rr.docTree.styleCompare(Ur),Wr=new ci["a"](this._hoEditorFactoryID,Rr.docTree.activeNodes,Rr.docTree.getParentNode(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),wn["b"].ntText,Tr,Hr);return Wr}},{key:"copyCellNode",value:function copyCellNode(Tr,Dr,Rr,Ur){var Hr=Dr.rows[Rr][Ur];if(Hr){var Wr;Hr.rowSpan=parseInt(Ta()(Tr).attr("rowSpan")||"1")||1,Hr.colSpan=parseInt(Ta()(Tr).attr("colSpan")||"1")||1;var zr=this.mergestyle(Ta()(Tr).attr("style")||"","");zr["mso_diagonal_down"]&&"none"!=zr["mso_diagonal_down"]&&(Hr.crossLineType=En["b"].ct02),zr["mso_diagonal_up"]&&"none"!=zr["mso_diagonal_up"]&&(Hr.crossLineType=En["b"].ct13),"top"==Ta()(Tr).attr("valign")?Hr.cellProperty.align=Sn["k"].vatop:"bottom"==Ta()(Tr).attr("valign")?Hr.cellProperty.align=Sn["k"].vabottom:Hr.cellProperty.align=Sn["k"].vacenter;for(var Vr=Array(),Kr=0;Kr<Tr.childNodes.length;Kr++){var $r=this.convert.get(Tr.childNodes[Kr].nodeName.toLowerCase());$r&&Vr.push.apply(Vr,Object(Gr["a"])($r(Tr.childNodes[Kr],"")))}Hr.childNodes.splice(0,Hr.childNodes.length),Vr.forEach((function(Tr){Tr.parentNode=Hr,Tr instanceof qi["a"]&&Tr.drawlines.forEach((function(Tr){Tr.dWidth=Dr.colInfos[Ur].colWidth}))})),(Wr=Hr.childNodes).push.apply(Wr,Vr),Hr.cell2DrawNode(Rr,Ur)}}}]),HTMLconverter2}(),Ma=Rr("53ca"),Na=(Rr("7db0"),Rr("4d63"),Rr("e6cf"),Rr("98fc")),La=Rr.n(Na),Aa=Rr("38f6"),Ra=Rr("9fab"),Fa=Rr("b673"),ja=Rr("905c"),Ba=Rr("f635"),Ua=Rr("5073"),Ha=Rr("1460"),Wa=Rr("f1a6"),qa=Rr("8d79"),za=Rr("9f19"),Va=Rr("c1cd"),Ka=Rr("6f33"),$a=Rr("8ef2"),Ga=Rr("0aab"),Ja=Rr("d5e7"),Xa=Rr("8841"),Ya=Rr("49e9"),Qa=Rr("2273");Rr("841c");function xmlBeauty(Tr){for(var Dr=Tr.replace(/</g,"~::~<").replace(/xmlns:/g,"~::~xmlns:").replace(/xmlns=/g,"~::~xmlns=").split("~::~"),Rr=Dr.length,Ur=!1,Hr=0,Wr="",zr=["\n"],Vr=" ",Kr=0;Kr<100;Kr++)zr.push(zr[Kr]+Vr);for(var $r=null,Gr=0;Gr<Rr;Gr++)Dr[Gr].search(/<!/)>-1?(Wr+=zr[Hr]+Dr[Gr],Ur=!0,(Dr[Gr].search(/-->/)>-1||Dr[Gr].search(/\]>/)>-1||Dr[Gr].search(/!DOCTYPE/)>-1)&&(Ur=!1)):Dr[Gr].search(/-->/)>-1||Dr[Gr].search(/\]>/)>-1?(Wr+=Dr[Gr],Ur=!1):/^<\w/.exec(Dr[Gr-1])&&/^<\/\w/.exec(Dr[Gr])&&/^<[\w:\-.,]+/.exec(Dr[Gr-1])==($r=/^<\/[\w:\-.,]+/.exec(Dr[Gr]),null==$r?$r:$r[0].replace("/",""))?(Wr+=Dr[Gr],Ur||Hr--):Dr[Gr].search(/<\w/)>-1&&-1==Dr[Gr].search(/<\//)&&-1==Dr[Gr].search(/\/>/)?Wr=Wr+=Ur?Dr[Gr]:zr[Hr++]+Dr[Gr]:Dr[Gr].search(/<\w/)>-1&&Dr[Gr].search(/<\//)>-1?Wr=Wr+=Ur?Dr[Gr]:zr[Hr]+Dr[Gr]:Dr[Gr].search(/<\//)>-1?Wr=Wr+=Ur?Dr[Gr]:zr[--Hr]+Dr[Gr]:Dr[Gr].search(/\/>/)>-1?Wr=Wr+=Ur?Dr[Gr]:zr[Hr]+Dr[Gr]:Dr[Gr].search(/<\?/)>-1||Dr[Gr].search(/xmlns:/)>-1||Dr[Gr].search(/xmlns=/)>-1?Wr+=zr[Hr]+Dr[Gr]:Wr+=Dr[Gr];return"\n"==Wr[0]?Wr.slice(1):Wr}var Za,eo=Rr("2913"),to=Rr("d4b2"),ro=function(){function StructureConvert(Tr){Object(Xr["a"])(this,StructureConvert),this._comments=[],this._markNodes=[],this._superiorSign=[],this._hoEditorFactoryID=Tr,this._comments=[],this._markNodes=[],this._superiorSign=[]}return Object(Yr["a"])(StructureConvert,[{key:"nodes2Html",value:function nodes2Html(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.structureNode.Copy(Tr,null),Dr.structureNode.htmldata}},{key:"nodes2Text",value:function nodes2Text(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.structureNode.Copy(Tr,null),Dr.structureNode.textdata}},{key:"nodes2Json",value:function nodes2Json(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.structureNode.Copy(Tr,null),Dr.structureNode.jsondata}},{key:"htmlToNode",value:function htmlToNode(Tr){var Dr,Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=/<body[^>]*>([\s\S]+?)<\/body>/i,Hr=Ur.exec(Tr);if(!Hr)return[];Dr="<div>"+Hr[1]+"</div>";var Wr=[];if(Dr)for(var zr=Ta()(Dr).children(),Vr=0;Vr<zr.length;Vr++){var Kr=zr[Vr],$r=Ta()(Kr).prop("tagName").toLowerCase();if("p"==$r){var Gr=this.dealP(Kr),Jr=new qi["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,0),Xr=Jr.combineParagraph,Yr=this.dealStyle(Gr.style,"text-align");Yr&&(Xr.align="center"==Yr?ka["a"].alcenter:"left"==Yr?ka["a"].alleft:"right"==Yr?ka["a"].alright:"justify"==Yr?ka["a"].alSpaceEqually:Xr.align);var Qr=this.dealStyle(Gr.style,"line-height");Qr&&Qr.indexOf("%")>0&&(Xr.lineSpace=Number(Qr.substr(0,Qr.indexOf("%")))/100);var Zr=this.dealStyle(Gr.style,"mso-para-margin-left");if(Zr){var en=Zr.match(/^(.*)gd$/);en&&en[1]&&(Xr.leftMarginMm=Number(en[1]))}Wr.push(Jr);for(var tn=0;tn<Gr.children.length;tn++){var rn=Gr.children[tn];if(rn.text){var nn=rn.style;nn=nn.replace(/\r\n/g,""),nn=nn.replace(/\n/g,"");var an=new Da["c"](this._hoEditorFactoryID),sn=this.dealStyle(nn,"font-size");if(sn){var cn=sn.match(/^(.*)(px|pt)$/);if(cn){var un=parseFloat(cn[1]);"pt"==cn[2]&&(un=parseFloat((96*un/72).toFixed(2))),an.size=un}}var dn=this.dealStyle(nn,"font-family");dn&&(an.font=dn);var hn=this.dealStyle(nn,"font-weight");hn&&hn.indexOf("bold")>=0&&(an.bold=!0);var pn=this.dealStyle(nn,"font-style");pn&&pn.indexOf("italic")>=0&&(an.italic=!0);var _n=this.dealStyle(nn,"text-decoration");_n&&_n.indexOf("underline")>=0&&(an.underline=!0),_n&&_n.indexOf("line-through")>=0&&(an.strikeout=!0);var gn=this.dealStyle(nn,"vertical-align");gn&&gn.indexOf("super")>=0&&(an.script=2),gn&&gn.indexOf("sub")>=0&&(an.script=1);var mn=this.dealStyle(nn,"background");mn&&(mn.indexOf("rgb")>=0&&(mn=this.colorRGB2Hex(mn)),an.backColor=mn);var vn=this.dealStyle(nn,"color");vn&&(vn.indexOf("rgb")>=0&&(vn=this.colorRGB2Hex(vn)),an.color=vn);var yn=Rr.docTree.styleCompare(an),bn=new ci["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,wn["b"].ntText,rn.text,yn);Wr.push(bn)}}if(Vr==zr.length-1&&Ta()(Kr).html().indexOf("<o:p></o:p>")>0){var xn=new qi["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,0);Wr.push(xn)}}else if("table"==$r){var Cn=new qi["a"](this._hoEditorFactoryID,Rr.docTree.mainNodes,null,Rr.docTree.curParaNo);Wr.push(Cn),Wr.push(this.dealTable(Kr))}}return Wr}},{key:"dealTable",value:function dealTable(Tr){for(var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Ta()(Tr).find("tbody tr"),Ur=0,Hr=new Array,Wr=new Array,zr=new Array,Vr=0,Kr=new Map,$r=0;$r<Rr.length;$r++){var Gr=Ta()(Rr[$r]).children().length;Gr>Ur&&(Ur=Gr,Vr=$r)}new qi["a"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,Dr.docTree.curParaNo);for(var Jr=new Sn["j"](""),Xr=new fa["c"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,Rr.length,Ur,Jr),Yr=0;Yr<Rr.length;Yr++){var Qr=new Sn["i"](""),Zr=new fa["b"](Xr,Qr),en=Ta()(Rr[Yr]).css("height");if(en&&"0px"!=en){var tn=parseFloat(en.substring(0,en.indexOf("pt")));tn=parseFloat((96*tn/72).toFixed(2)),Zr.rowHeight=tn}Hr.push(Zr);for(var rn=Ta()(Rr[Yr]).children(),nn=0,an=0;an<rn.length;an++){if(Vr==Yr){var sn=Ta()(rn[an]).css("width"),cn=parseFloat(sn.substring(0,sn.indexOf("pt")));cn=parseFloat((96*cn/72).toFixed(2));var un=new Sn["c"](""),dn=new fa["a"](Xr,cn,un);Wr.push(dn)}var hn=Ta()(rn[an]).attr("colspan"),pn=Ta()(rn[an]).attr("rowspan");if(hn||pn){var _n=0;if(hn&&(_n=parseInt(hn)),pn){for(var gn=parseInt(pn),mn=0;mn<gn;mn++){for(var vn=0;vn<_n;vn++)this.arrayPush(Yr+mn,nn+vn,Ur,Yr+"-"+an,zr);0==_n&&this.arrayPush(Yr+mn,nn,Ur,Yr+"-"+an,zr)}nn+=0==_n?1:_n}else for(var yn=0;yn<_n;yn++)this.arrayPush(Yr,nn,Ur,Yr+"-"+an,zr),nn++}else this.arrayPush(Yr,nn,Ur,Yr+"-"+an,zr),nn++;Kr.set(Yr+"-"+an,rn[an])}}Xr.colInfos=Wr,Xr.rowInfos=Hr;for(var bn=new Map,wn=0;wn<zr.length;wn++)for(var xn=zr[wn],Cn=0;Cn<xn.length;Cn++){var Pn=zr[wn][Cn];if(bn.get(Pn))Xr.rows[wn][Cn]=void 0;else{var En=Kr.get(Pn),Dn=Ta()(En).css("border-left"),kn=Ta()(En).css("border-right"),On=Ta()(En).css("border-top"),In=Ta()(En).css("border-bottom"),Mn=Ta()(En).attr("colspan"),Nn=Ta()(En).attr("rowspan"),Ln=Xr.rows[wn][Cn],An=Nn?parseInt(Nn):1,Rn=Mn?parseInt(Mn):1;Ln.rowSpan=An,Ln.colSpan=Rn,Ln.borderVisible=["none"!=Dn,"none"!=kn,"none"!=On,"none"!=In];for(var Fn=Ta()(En).children(),jn=new Array,Bn=0;Bn<Fn.length;Bn++){var Un=Fn[Bn],Hn=this.htmlToNode("<body>"+Un.outerHTML+"</body>");jn=jn.concat(Hn)}for(var Wn=0;Wn<jn.length;Wn++)null===Ln||void 0===Ln||Ln.addChild(jn[Wn]);Ln.cell2DrawNode(wn,Cn),bn.set(Pn,Pn)}}return Xr.node2DrawNode(),Xr}},{key:"arrayPush",value:function arrayPush(Tr,Dr,Rr,Ur,Hr){for(Hr[Tr]||Hr.push(new Array);Dr<Rr;Dr++)if(!Hr[Tr][Dr]){Hr[Tr][Dr]=Ur;break}}},{key:"colorRGB2Hex",value:function colorRGB2Hex(Tr){var Dr=Tr.split(","),Rr=parseInt(Dr[0].split("(")[1]),Ur=parseInt(Dr[1]),Hr=parseInt(Dr[2].split(")")[0]),Wr="#"+((1<<24)+(Rr<<16)+(Ur<<8)+Hr).toString(16).slice(1);return Wr}},{key:"dealStyle",value:function dealStyle(Tr,Dr){if(!Tr)return"";for(var Rr=Tr.split(";"),Ur=0;Ur<Rr.length;Ur++){var Hr=Rr[Ur],Wr=Hr.split(":");if(Dr==Wr[0])return Wr[1]}return""}},{key:"dealP",value:function dealP(Tr){var Dr=Ta()(Tr).children(),Rr=Ta()(Tr).attr("style")||"",Ur=this.dealTagName(Dr,"");return{style:Rr,children:Ur}}},{key:"dealTagName",value:function dealTagName(Tr,Dr){for(var Rr=[],Ur=0;Ur<Tr.length;Ur++){var Hr=Tr[Ur],Wr=Ta()(Hr).prop("tagName").toLowerCase();"b"==Wr||"strong"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"font-weight:bold;")):"em"==Wr||"i"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"font-style:italic;")):"u"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"text-decoration: underline;")):"s"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"text-decoration: line-through;")):"sup"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"vertical-align:super;")):"sub"==Wr?Rr=Rr.concat(this.dealBaseTag(Hr,Dr+"vertical-align:sub;")):"span"==Wr&&(Rr=Rr.concat(this.dealSpan(Hr,Dr)))}return Rr}},{key:"dealBaseTag",value:function dealBaseTag(Tr,Dr){var Rr=Ta()(Tr).children();return 0==Rr.length?[{style:Dr,text:Ta()(Tr).text()}]:this.dealTagName(Rr,Dr)}},{key:"dealSpan",value:function dealSpan(Tr,Dr){var Rr=(Ta()(Tr).attr("style")||"")+Dr;Rr.endsWith(";")||(Rr+=";");var Ur=Ta()(Tr).children();if(0==Ur.length)return[{style:Rr,text:Ta()(Tr).text()}];for(var Hr=Ta()(Tr).html(),Wr=[],zr=0;zr<Ur.length;zr++){var Vr=Ur[zr],Kr=Vr.outerHTML,$r=Hr.indexOf(Kr);$r>0&&(Wr.push({style:Rr,text:Hr.substr(0,$r)}),Hr=Hr.substr($r));var Gr=Ta()(Vr).prop("tagName").toLowerCase(),Jr=Rr;if("b"==Gr||"strong"==Gr)Jr+="font-weight:bold;";else if("em"==Gr||"i"==Gr)Jr+="font-style:italic;";else if("u"==Gr)Jr+="text-decoration: underline;";else if("s"==Gr)Jr+="text-decoration: line-through;";else if("sup"==Gr)Jr+="vertical-align:super;";else if("sub"==Gr)Jr+="vertical-align:sub;";else if("span"==Gr)Jr+=Ta()(Vr).attr("style");else if("o:p"==Gr){Hr="";continue}var Xr=Ta()(Kr).children();Xr&&Xr.length>0?Wr.push(this.dealTagName(Xr,Jr)[0]):Wr.push({style:Jr,text:Ta()(Vr).text()}),Hr=Hr.substr(Kr.length)}return Hr&&Wr.push({style:Rr,text:Hr}),Wr}},{key:"doc2Text",value:function doc2Text(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.headerNodes,Rr="",Ur=0;Ur<Dr.length;Ur++){var Hr=Dr[Ur];Hr.length>1&&(Rr+=this.nodes2Text(Hr))}for(var Wr=Tr.docTree.mainNodes,zr=this.nodes2Text(Wr),Vr=Tr.docTree.footerNodes,Kr="",$r=0;$r<Vr.length;$r++){var Gr=Vr[$r];Gr.length>1&&(Kr+=this.nodes2Text(Gr))}var Jr="";return Jr=Rr.length>0?Rr+"\n"+zr+"\n"+Kr:zr+"\n"+Kr,Jr}},{key:"doc2Html",value:function doc2Html(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr="",Rr=Tr.docTree.headerNodes,Ur=0;Ur<Rr.length;Ur++){var Hr=Rr[Ur];Dr+=this.nodes2Html(Hr)}var Wr=Tr.docTree.mainNodes;Dr+=this.nodes2Html(Wr);for(var zr=Tr.docTree.footerNodes,Vr=0;Vr<zr.length;Vr++){var Kr=zr[Vr];Dr+=this.nodes2Html(Kr)}return Dr}},{key:"doc2Xml",value:function doc2Xml(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Rr&&(this.getValidStyles(0),this.getValidStyles(1)),"json"===Tr){var Hr=JSON.parse("{}"),Wr=this.doc2Json("docProperty");Hr.docProperty=Wr;var zr=this.doc2Json("pageSettings");Hr.pageSettings=zr;var Vr=this.doc2Json("styles");Hr.styles=Vr;var Kr=this.doc2Json("comments");Hr.comments=Kr;var $r=this.doc2Json("userHistories");Hr.userHistories=$r;var Gr=this.doc2Json("header","json");Hr.headers=Gr;var Jr=this.doc2Json("main","json");Hr.main=Jr;var Xr=this.doc2Json("footer","json");return Hr.footer=Xr,Hr}var Yr='<?xml version="1.0" encoding="utf-8"?>';Yr+="<root xml:space='preserve'>";var Qr=new La.a({stripWhitespaces:!1,arrayAccessForm:"property"});Yr+="<docProperty>";var Zr=this.doc2Json("docProperty");Yr+=Qr.js2xml(Zr),Yr+="</docProperty>",Yr+="<pageSettings>";var en=this.doc2Json("pageSettings");Yr+=Qr.js2xml(en),Yr+="</pageSettings>",Yr+="<styles>";var tn=this.doc2Json("styles");Yr+=Qr.js2xml(tn),Yr+="</styles>",Yr+="<comments>";var rn=this.doc2Json("comments");Yr+=Qr.js2xml(rn),Yr+="</comments>",Yr+="<userHistories>";var nn=this.doc2Json("userHistories");return Yr+=Qr.js2xml(nn),Yr+="</userHistories>",Yr+="<headers>",Yr=this.doc2Json("header","xml",Yr),Yr+="</headers>",Yr+="<main>",Yr=this.doc2Json("main","xml",Yr),Yr+="</main>",Yr+="<footers>",Yr=this.doc2Json("footer","xml",Yr),Yr+="</footers>",Yr+="<docText>",Yr+=Ur.vueController.getMainDocText(),Yr+="</docText>",Yr+="</root>",Yr=Ur.unitConvert.replaceAll(Yr,"<TempNode>",""),Yr=Ur.unitConvert.replaceAll(Yr,"</TempNode>",""),Ur.isThrowError=!0,Dr?Yr:xmlBeauty(Yr)}},{key:"xml2Doc",value:function xml2Doc(Tr){Tr=this.replaceNodesName(Tr);var Dr=new La.a({stripWhitespaces:!1}),Rr=Dr.xml2js(Tr),Ur=JSON.parse(JSON.stringify(Rr));if(Ur.root||Ur.rvxml){if(Ur.root){var Hr=Ur.root,Wr=Hr.headers.header;void 0===Wr.length&&(Wr=Array(Hr.headers.header));for(var zr=new Array,Vr=0;Vr<Wr.length;Vr++){var Kr=parseInt(Wr[Vr].index),$r=Wr[Vr].node;void 0===$r.length&&($r=Array(Wr[Vr].node));for(var Gr=0;Gr<$r.length;Gr++){var Jr=$r[Gr];zr[Kr]||(zr[Kr]=new Array),zr[Kr][Gr]=Jr}}var Xr=Hr.footers.footer;void 0===Xr.length&&(Xr=Array(Hr.footers.footer));for(var Yr=new Array,Qr=0;Qr<Xr.length;Qr++){var Zr=parseInt(Xr[Qr].index),en=Xr[Qr].node;void 0===en.length&&(en=Array(Xr[Qr].node));for(var tn=0;tn<en.length;tn++){var rn=en[tn];Yr[Zr]||(Yr[Zr]=new Array),Yr[Zr][tn]=rn}}return this.json2Doc({docProperty:Hr.docProperty,pageSettings:Hr.pageSettings,comments:Hr.comments,userHistories:Hr.userHistories,styles:Hr.styles,main:Hr.main.node,header:zr,footer:Yr})}if(Ur.rvxml)Ur.rvxml;else;}}},{key:"replaceNodesName",value:function replaceNodesName(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|PupilMapNode|LightLocationMapNode|MenstrualHistoryNode|FetalHeartMapNode|PermanentTeethMapNode|PrimaryTeethMapNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode/g);return Tr=Tr.replace(Rr,"node"),Tr=Dr.unitConvert.replaceAll(Tr,"<TableFormula>","<node>"),Tr=Dr.unitConvert.replaceAll(Tr,"</TableFormula>","</node>"),Tr=Dr.unitConvert.replaceAll(Tr,"<End>","<node>"),Tr=Dr.unitConvert.replaceAll(Tr,"</End>","</node>"),Tr}},{key:"getValidStyles",value:function getValidStyles(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=[];0===Tr&&(Rr=Dr.docTree.styles),1===Tr&&(Rr=Dr.docTree.paragraphs);for(var Ur=Dr.docTree.mainNodes,Hr=Dr.docTree.headerNodes,Wr=Dr.docTree.footerNodes,zr=function forEachAllNodes(Dr,Rr,zr,Vr){var Kr=function updateNodesStyle(Dr){for(var Ur=0;Ur<Dr.length;Ur++){var Hr=Dr[Ur];if(0===Tr){if(Hr instanceof ci["a"]||Hr instanceof Xa["a"]||Hr instanceof li["a"]||Hr instanceof qi["a"])if(0===Rr){if(Number(Hr.styleIndex)===zr){Vr=!0;break}}else Number(Hr.styleIndex)>zr&&(Hr.styleIndex=Number(Hr.styleIndex)-1)}else if(Hr instanceof qi["a"])if(0===Rr){if(Number(Hr.paraNo)===zr){Vr=!0;break}}else Number(Hr.paraNo)>zr&&(Hr.paraNo=Number(Hr.paraNo)-1);Hr instanceof Va["a"]&&updateNodesStyle(Hr.childNodes)}};if("all"===Dr||"head"===Dr)for(var $r=0;$r<Hr.length;$r++){var Gr=Hr[$r];Array.isArray(Gr)&&Gr.length>0&&Kr(Gr)}if("all"!==Dr&&"main"!==Dr||Kr(Ur),"all"===Dr||"foot"===Dr)for(var Jr=0;Jr<Wr.length;Jr++){var Xr=Wr[Jr];Array.isArray(Xr)&&Xr.length>0&&Kr(Xr)}if(0===Rr)return Vr},Vr=Rr.length-1;Vr>0;Vr--){var Kr=!1;Kr=zr("foot",0,Vr,Kr),Kr||(Kr=zr("main",0,Vr,Kr)),Kr||(Kr=zr("head",0,Vr,Kr)),Kr||(Rr.splice(Vr,1),zr("all",1,Vr))}return Rr}},{key:"doc2Json",value:function doc2Json(Tr,Dr,Rr){var Ur=this,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=new La.a({stripWhitespaces:!1,arrayAccessForm:"property"});if("docProperty"===Tr){var zr=Hr.docTree.docProperty,Vr=JSON.parse(JSON.stringify(zr,gn["b"].whiteList()));return Vr}if("pageSettings"===Tr){var Kr=Hr.pageProperty,$r=JSON.parse(JSON.stringify(Kr,aa["a"].whiteList()));return $r}if("styles"===Tr){for(var Gr=[],Jr=Hr.docTree.styles,Xr=Jr[0].combineStyle,Yr=JSON.parse(JSON.stringify(Xr,Da["a"].whiteList())),Qr=1;Qr<Jr.length;Qr++){var Zr=Jr[Qr],en=Zr.combineStyle,tn=JSON.parse(JSON.stringify(en,Da["a"].whiteList()));void 0!==Zr.size&&Zr.size!==Xr.size||delete tn["size"],void 0!==Zr.font&&Zr.font!==Xr.font||delete tn["font"],void 0!==Zr.color&&Zr.color!==Xr.color||delete tn["color"],void 0!==Zr.backColor&&Zr.backColor!==Xr.backColor||delete tn["backColor"],void 0!==Zr.bold&&Zr.bold!==Xr.bold||delete tn["bold"],void 0!==Zr.italic&&Zr.italic!==Xr.italic||delete tn["italic"],void 0!==Zr.underline&&Zr.underline!==Xr.underline||delete tn["underline"],void 0!==Zr.strikeout&&Zr.strikeout!==Xr.strikeout||delete tn["strikeout"],void 0!==Zr.script&&Zr.script!==Xr.script||delete tn["script"],-1!==Zr.deleterIndex&&void 0!==Zr.deleterIndex&&Zr.deleterIndex!==Xr.deleterIndex||delete tn["deleterIndex"],-1!==Zr.creatorIndex&&void 0!==Zr.creatorIndex&&Zr.creatorIndex!==Xr.creatorIndex||delete tn["creatorIndex"],"0"!==Zr.commentID&&void 0!==Zr.commentID&&Zr.commentID!==Xr.commentID||delete tn["commentID"],Gr.push(tn)}for(var rn=[],nn=Hr.docTree.paragraphs,an=nn[0].combineStyle,sn=JSON.parse(JSON.stringify(an,ka["b"].whiteList())),cn=1;cn<nn.length;cn++){var un=nn[cn],dn=un.combineStyle,hn=JSON.parse(JSON.stringify(dn,ka["b"].whiteList()));void 0!==un.charSpace&&un.charSpace!==an.charSpace||delete hn["charSpace"],void 0!==un.lineSpace&&un.lineSpace!==an.lineSpace||delete hn["lineSpace"],void 0!==un.leftMargin&&un.leftMargin!==an.leftMarginMm||delete hn["leftMarginMm"],void 0!==un.rightMargin&&un.rightMargin!==an.rightMarginMm||delete hn["rightMarginMm"],void 0!==un.topMargin&&un.topMargin!==an.topMarginMm||delete hn["topMarginMm"],void 0!==un.bottomMargin&&un.bottomMargin!==an.bottomMarginMm||delete hn["bottomMarginMm"],void 0!==un.align&&un.align!==an.align||delete hn["align"],rn.push(hn)}return{defaultFont:Yr,fontStyle:Gr,defaultPara:sn,paraStyle:rn}}if("comments"===Tr){var pn=[],_n=Hr.drawTree.commentsMap;return _n.forEach((function(Tr){var Dr=JSON.parse(JSON.stringify(Tr,Ka["a"].whiteList()));pn.push(Dr)})),{comment:pn}}if("userHistories"===Tr){for(var mn=[],vn=Hr.docTree.userHistories,yn=0;yn<vn.length;yn++){var bn=vn[yn],wn=JSON.parse(JSON.stringify(bn,$a["b"].whiteList()));mn.push(wn)}return{userHistory:mn}}var xn=function doc2XmlJson(Tr,Hr){for(var zr=[],Vr=0;Vr<Tr.length;Vr++){var Kr=Tr[Vr],$r=void 0;$r="json"===Hr&&(Kr instanceof fa["c"]||Kr instanceof ei["f"])?Ur.delStyle(Kr.node2Json(void 0,void 0,"json")):Ur.delStyle(Kr.node2Json()),"xml"===Hr?Rr+=Wr.js2xml($r):zr.push($r)}if("json"===Dr)return zr};if("header"===Tr){for(var Cn=Hr.docTree.headerNodes,Pn=[],En=0;En<Cn.length;En++){var Sn=Cn[En];if(Sn&&Sn.length>0)if("xml"===Dr)Rr+="<header>",Rr+=Wr.js2xml({index:En}),xn(Sn,Dr),Rr+="</header>";else{var Dn={header:xn(Sn,"json")};Pn.push(Dn)}}if("xml"===Dr)return Rr;if("json"===Dr)return Pn}if("footer"===Tr){for(var kn=Hr.docTree.footerNodes,On=[],In=0;In<kn.length;In++){var Mn=kn[In];if(Mn&&Mn.length>0)if("xml"===Dr)Rr+="<footer>",Rr+=Wr.js2xml({index:In}),xn(Mn,Dr),Rr+="</footer>";else{var Nn={footer:xn(Mn,"json")};On.push(Nn)}}if("xml"===Dr)return Rr;if("json"===Dr)return On}if("main"===Tr){var Ln=Hr.docTree.mainNodes;if("xml"===Dr)return xn(Ln,Dr),Rr;var An=xn(Ln,"json");return An}}},{key:"json2Doc",value:function json2Doc(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Tr.docProperty;if(Rr){var Ur=Dr.docTree.docProperty;Ur.type=Number(Rr["type"]?Rr["type"]:gn["d"].etCaseHistory),Ur.title=Rr["title"],Ur.docID=Rr["docID"],Ur.patientID=Rr["patientID"],Ur.patientName=Rr["patientName"],Ur.lastEditTime=Rr["lastEditTime"],Ur.lastEditorID=Rr["lastEditorID"],Ur.lastEditorName=Rr["lastEditorName"]}var Hr=Tr.pageSettings;if(Hr){var Wr=Dr.pageProperty;Wr.printDirection=Number(Hr.printDirection),Wr.borderColor=Hr.borderColor,Wr.paintRowLine=Number(Hr.paintRowLine),Wr.pageSize=Hr.pageSize,Wr.widthMm=Number(Hr.widthMm),Wr.heightMm=Number(Hr.heightMm),Wr.source=Hr.source,Wr.topMarginMm=Number(Hr.topMarginMm),Wr.bottomMarginMm=Number(Hr.bottomMarginMm),Wr.leftMarginMm=Number(Hr.leftMarginMm),Wr.rightMarginMm=Number(Hr.rightMarginMm),Wr.headerYMm=Number(Hr.headerYMm)>=3?Number(Hr.headerYMm):3,Wr.footerYMm=Number(Hr.footerYMm)>=3?Number(Hr.footerYMm):3,Wr.showFirstPageFoot="true"===Hr.showFirstPageFoot,Wr.showFirstPageHead="true"===Hr.showFirstPageHead,Wr.pageNumber=Number(Hr.pageNumber),Wr.isHaveBgImage="true"===Hr.isHaveBgImage,Wr.fontFormat=Hr.fontFormat?Hr.fontFormat:"宋体",Wr.fontSize=Hr.fontSize?Number(Hr.fontSize):14,Wr.fontColor=Hr.fontColor?Hr.fontColor:"#000000",Wr.backColor=Hr.backColor?Hr.backColor:"transparent",Wr.paraAlign=Hr.paraAlign?Number(Hr.paraAlign):0,Wr.charSpace=Hr.charSpace?Number(Hr.charSpace):1,Wr.lineHeight=Hr.lineHeight?Number(Hr.lineHeight):1.25}for(var zr=0;zr<Dr.drawTree.drawPages.length;zr++)Dr.drawTree.drawPages[zr].reFreshBounds();this._comments=[];var Vr=Tr.comments;this._comments=Vr.comment,Dr.docTree.userHistories=[];for(var Kr=Tr.userHistories,$r=Kr.userHistory,Gr=0;Gr<$r.length;Gr++){var Jr=$r[Gr],Xr=new $a["b"](this._hoEditorFactoryID,$a["a"].hetCreate);Object.assign(Xr,Jr),Xr.permissionLevel=Number(Jr._permissionLevel),Dr.docTree.userHistories.push(Xr)}Dr.docTree.styles=[];var Yr=new Da["c"](this._hoEditorFactoryID);Dr.docTree.styles.push(Yr);var Qr=Tr.styles,Zr=Qr.font?Qr.font:Qr.fontStyle,en=Qr.para?Qr.para:Qr.paraStyle;if(Zr&&void 0===Zr.length&&(Zr=Array(Zr)),en&&void 0===en.length&&(en=Array(en)),Array.isArray(Zr)&&Zr.forEach((function(Tr){Tr&&"string"===typeof Tr.font&&""===Tr.font.replace(/^\s+|\s+$/g,"")&&(Tr.font="宋体")})),Zr){var tn=this.getDocStyles("font",Zr);Dr.docTree.styles=Dr.docTree.styles.concat(tn)}Dr.docTree.paragraphs=[];var rn=new ka["c"](this._hoEditorFactoryID);if(Dr.docTree.paragraphs.push(rn),en){var nn=this.getDocStyles("para",en);Dr.docTree.paragraphs=Dr.docTree.paragraphs.concat(nn)}var an=Tr.header,sn=new Array;if(an)for(var cn=0;cn<an.length;cn++){var un=an[cn];if(!Dr.docTree.headerNodes[cn]){var dn=new Array;Dr.docTree.headerNodes[cn]=dn}var hn=new Array;if(sn.push(hn),un)for(var pn=0;pn<un.length;pn++){var _n=un[pn];if(_n){var mn=Dr.structureConvert.convertNode(_n,Dr.docTree.headerNodes[cn],null,hn);if(mn&&(mn.rootPath="header/"+cn.toString(),hn.push(mn),cn>0&&0===pn&&mn instanceof qi["a"])){var vn=new Array;vn.push(mn),mn.rootNodes=vn,Dr.docTree.headerNodes[cn]=vn;var yn=new la["a"](this._hoEditorFactoryID,mn.rootPath,cn);Dr.drawPageTree.drawHeaders[cn]=yn,Dr.drawTree.headerDNodes[cn]=new Array,Dr.drawTree.initAreaFirstNode(vn,Dr.drawTree.headerDNodes[cn])}}}}var bn=Tr.footer,wn=new Array;if(bn)for(var xn=0;xn<bn.length;xn++){if(!Dr.docTree.footerNodes[xn]){var Cn=new Array;Dr.docTree.footerNodes[xn]=Cn}var Pn=bn[xn],En=new Array;if(wn.push(En),Pn)for(var Sn=0;Sn<Pn.length;Sn++){var Dn=Pn[Sn];if(Dn){var kn=Dr.structureConvert.convertNode(Dn,Dr.docTree.footerNodes[xn],null,En);if(kn&&(kn.rootPath="footer/"+xn.toString(),En.push(kn),xn>0&&0===Sn&&kn instanceof qi["a"])){var On=new Array;On.push(kn),kn.rootNodes=On,Dr.docTree.footerNodes[xn]=On;var In=new sa["a"](this._hoEditorFactoryID,kn.rootPath,xn);Dr.drawPageTree.drawFooters[xn]=In,Dr.drawTree.footerDNodes[xn]=new Array,Dr.drawTree.initAreaFirstNode(On,Dr.drawTree.footerDNodes[xn])}}}}for(var Mn=Tr.main,Nn=new Array,Ln=0;Ln<Mn.length;Ln++){var An=Mn[Ln];if(An){var Rn=Dr.structureConvert.convertNode(An,Dr.docTree.mainNodes,null,Nn);Rn&&Nn.push(Rn)}}var Fn=new Map;return Fn.set("header",sn),Fn.set("footer",wn),Fn.set("main",Nn),Fn}},{key:"getDocStyles",value:function getDocStyles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if("font"===Tr){for(var Ur=[],Hr=Rr.docTree.styles[0].combineStyle,Wr=0;Wr<Dr.length;Wr++){var zr=Dr[Wr],Vr=new Da["c"](this._hoEditorFactoryID);"undefined"!==typeof zr["size"]&&zr["size"]!==Hr.size.toString()&&(Vr.size=Number(zr["size"])),"undefined"!==typeof zr["font"]&&zr["font"]!==Hr.font&&(Vr.font=zr["font"]),"undefined"!==typeof zr["color"]&&zr["color"]!==Hr.color&&(Vr.color=zr["color"]),"undefined"!==typeof zr["backColor"]&&zr["backColor"]!==Hr.backColor&&(Vr.backColor=zr["backColor"]),"undefined"!==typeof zr["bold"]&&zr["bold"]!==Hr.bold.toString()&&(Vr.bold="true"===zr["bold"]),"undefined"!==typeof zr["italic"]&&zr["italic"]!==Hr.italic.toString()&&(Vr.italic="true"===zr["italic"]),"undefined"!==typeof zr["underline"]&&zr["underline"]!==Hr.underline.toString()&&(Vr.underline="true"===zr["underline"]),"undefined"!==typeof zr["strikeout"]&&zr["strikeout"]!==Hr.strikeout.toString()&&(Vr.strikeout="true"===zr["strikeout"]),"undefined"!==typeof zr["script"]&&zr["script"]!==Hr.script.toString()&&(Vr.script=Number(zr["script"])),"undefined"!==typeof zr["creatorIndex"]&&zr["creatorIndex"]!==Hr.creatorIndex.toString()&&(Vr.creatorIndex=Number(zr["creatorIndex"])),"undefined"!==typeof zr["deleterIndex"]&&zr["deleterIndex"]!==Hr.deleterIndex.toString()&&(Vr.deleterIndex=Number(zr["deleterIndex"])),"undefined"!==typeof zr["commentID"]&&zr["commentID"]!==Hr.commentID.toString()&&(Vr.commentID=zr["commentID"]),Ur.push(Vr)}return Ur}for(var Kr=Rr.docTree.paragraphs[0].combineStyle,$r=[],Gr=0;Gr<Dr.length;Gr++){var Jr=Dr[Gr],Xr=new ka["c"](this._hoEditorFactoryID);"undefined"!==typeof Jr["leftMarginMm"]&&Jr["leftMarginMm"]!==Kr.leftMarginMm.toString()&&(Xr.leftMargin=Number(Jr["leftMarginMm"])),"undefined"!==typeof Jr["rightMarginMm"]&&Jr["rightMarginMm"]!==Kr.rightMarginMm.toString()&&(Xr.rightMargin=Number(Jr["rightMarginMm"])),"undefined"!==typeof Jr["topMarginMm"]&&Jr["topMarginMm"]!==Kr.topMarginMm.toString()&&(Xr.topMargin=Number(Jr["topMarginMm"])),"undefined"!==typeof Jr["bottomMarginMm"]&&Jr["bottomMarginMm"]!==Kr.bottomMarginMm.toString()&&(Xr.bottomMargin=Number(Jr["bottomMarginMm"])),"undefined"!==typeof Jr["align"]&&Jr["align"]!==Kr.align.toString()&&(Xr.align=Number(Jr["align"])),"undefined"!==typeof Jr["charSpace"]&&Jr["charSpace"]!==Kr.charSpace.toString()&&(Xr.charSpace=Number(Jr["charSpace"])),"undefined"!==typeof Jr["lineSpace"]&&Jr["lineSpace"]!==Kr.lineSpace.toString()&&(Xr.lineSpace=Number(Jr["lineSpace"])),$r.push(Xr)}return $r}},{key:"convertNode",value:function convertNode(Tr,Dr,Rr,Ur,Hr){if(""!==Tr){if(Tr.nodeType=wn["b"][Tr.nodeType],Tr.nodeType==wn["b"].ntTable){if(Hr&&Rr instanceof ei["f"])return void Ea.a.alert("不允许将表格粘贴到文本域");var Wr=fa["c"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);return Wr}if(Tr.nodeType==wn["b"].ntParagraph)return qi["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntText)return ci["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntMedicalExpression){if("PupilMap"==Tr.expressType)return Aa["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("LightLocationMap"==Tr.expressType)return Ra["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("MenstrualHistory"==Tr.expressType)return Fa["b"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("FetalHeartMap"==Tr.expressType)return ja["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("PermanentTeethMap"==Tr.expressType)return Ba["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("PrimaryTeethMap"==Tr.expressType)return Ua["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr)}else if(Tr.nodeType==wn["b"].ntImage){if("Image"==Tr.imageType)return Oa["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("Barcode"==Tr.imageType)return Ha["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if("Qrcode"==Tr.imageType)return Wa["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr)}else if(Tr.nodeType==wn["b"].ntControl){if("ctDateTime"==Tr.type)return Yn["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);if("ctDownList"==Tr.type)return Qn["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);if("ctRadioAndCheckBox"==Tr.type)return ga["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr)}else{if(Tr.nodeType==wn["b"].ntField)return ei["f"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr,Hr);if(Tr.nodeType==wn["b"].ntSpecialChar)return za["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntMark)return li["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntPageCount)return Ga["b"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntPageNum)return Ja["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntTableFormula)return Qa["b"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntSeparateChar)return eo["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntLabel)return to["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr);if(Tr.nodeType==wn["b"].ntSign)return Wi["a"].json2Node(this._hoEditorFactoryID,Tr,Dr,Rr)}}}},{key:"delStyle",value:function delStyle(Tr){var Dr=this;return Tr["style"]&&delete Tr["style"],Object.keys(Tr).forEach((function(Rr){"object"==Object(Ma["a"])(Tr[Rr])&&null!=Tr[Rr]&&(Tr[Rr]=Dr.delStyle(Tr[Rr]))})),Tr}},{key:"mergeJson",value:function mergeJson(Tr){var Dr=JSON.parse(JSON.stringify(Tr).replace(/}{/,",").replace(/{,/,"{"));return this.delStyle(Dr)}},{key:"openFile",value:function openFile(Tr,Dr,Rr){var Ur=this;this._superiorSign=[];var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=new FileReader;Wr.readAsText(Tr,"UTF-8"),Wr.onload=function(Rr){var Wr,zr=Rr.target.result,Vr="";zr&&(Vr=zr.toString()),Wr="text/xml"==Tr.type?Hr.structureConvert.xml2Doc(Vr):Hr.structureConvert.json2Doc(JSON.parse(Vr)),Promise.resolve().then((function(){Hr.drawTree.updateDrawTreeFirstLine(),Ur.openJson2Doc(Wr,Dr)}))}}},{key:"loadFiles",value:function loadFiles(Tr){var Dr=new Array;return Tr.forEach((function(Tr){var Rr=new FileReader;Rr.readAsText(Tr,"UTF-8"),Rr.onload=function(Tr){var Rr=Tr.target.result,Ur="";Rr&&(Ur=Rr.toString(),Dr.push(Ur))}})),Dr}},{key:"openXml",value:function openXml(Tr,Dr,Rr){var Ur=this,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._superiorSign=[],Hr.isThrowError=!1;var Wr=Hr.structureConvert.xml2Doc(Tr);Promise.resolve().then((function(){Hr.drawTree.updateDrawTreeFirstLine(),Ur.openJson2Doc(Wr,Dr,Rr)}))}},{key:"openJson2Doc",value:function openJson2Doc(Tr,Dr,Rr){var Ur=this,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr&&Dr({text:Hr.vueController.getDocTitle(),count:0}),Tr){var Wr=function insertNode(Tr,Dr){var Rr=Tr[0];Rr instanceof qi["a"]&&0!==Rr.paraNo&&Dr instanceof qi["a"]&&(Dr.paraNo=Rr.paraNo);for(var Wr=1;Wr<Tr.length;Wr++){var zr=Tr[Wr];if(!(zr instanceof ci["a"]&&0===zr.text.length)){var Vr="";if(zr.parentNode){if(Vr=Hr.docTree.getNodeLastPath(zr.parentNode),zr.parentNode instanceof ei["f"]){var Kr=Hr.docTree.findNodePositionByPath(Vr);if(Kr&&Kr.node){var $r=Kr.node.previousLeaf();$r&&(Vr=Hr.docTree.getNodeLastPath($r))}}Hr.docTree.insertNodeAfterPath(Vr,zr)}else if(zr instanceof fa["c"]){var Gr=Tr[Wr+1];Vr=Hr.docTree.getNodeLastPath(Dr),Hr.docTree.insertNodeAfterPath(Vr,Gr),Hr.docTree.insertNodeAfterPath(Vr,zr),Wr+=1,Dr=Gr}else Vr=Hr.docTree.getNodeLastPath(Dr),Hr.docTree.insertNodeAfterPath(Vr,zr),Dr=zr;zr instanceof li["a"]&&Ur._markNodes.push(zr),zr instanceof Wi["a"]&&Hr.superiorSigns.length>0&&Hr.superiorSigns.includes(zr.customProperty.bce01)&&(Ur._superiorSign[0]=zr)}}},zr=Tr.get("header");if(zr)for(var Vr=0;Vr<zr.length;Vr++){var Kr=zr[Vr];if(Kr.length>0){var $r=Hr.docTree.headerNodes[Vr][0];Wr(Kr,$r);var Gr=Hr.docTree.headerNodes[Vr].length-1,Jr=Hr.docTree.getNodeLastPath(Hr.docTree.headerNodes[Vr][Gr]),Xr=new qa["a"](this._hoEditorFactoryID,gn["a"].daInsert,"header/"+Vr.toString()+"/0",Jr);Xr.repaintImmediate=!0,Hr.docTree.change(Xr),Vr<=Hr.drawTree.drawPages.length-1&&Hr.subDocManger.updateAllSameSubDoc(Vr,On["a"].hftHead,!0,!0)}}var Yr=Tr.get("footer");if(Yr)for(var Qr=0;Qr<Yr.length;Qr++){var Zr=Yr[Qr];if(Zr.length>0){var en=Hr.docTree.footerNodes[Qr][0];Wr(Zr,en);var tn=Hr.docTree.footerNodes[Qr].length-1,rn=Hr.docTree.getNodeLastPath(Hr.docTree.footerNodes[Qr][tn]),nn=new qa["a"](this._hoEditorFactoryID,gn["a"].daInsert,"footer/"+Qr.toString()+"/0",rn);nn.repaintImmediate=!0,Hr.docTree.change(nn),Qr<=Hr.drawTree.drawPages.length-1&&Hr.subDocManger.updateAllSameSubDoc(Qr,On["a"].hftFoot,!0,!0)}}var an=Tr.get("main"),sn=Hr.docTree.mainNodes[0];Rr&&an.length>1&&an[an.length-1]instanceof qi["a"]&&!(an[an.length-2]instanceof fa["c"])&&an.splice(an.length-1,1),Wr(an,sn);var cn=Hr.docTree.mainNodes.length-1,un=Hr.docTree.getNodeLastPath(Hr.docTree.mainNodes[cn]),dn=new qa["a"](this._hoEditorFactoryID,gn["a"].daInsert,"main/0",un);Hr.docTree.change(dn);var hn=[];hn=void 0===this._comments.length?Array(this._comments):this._comments;for(var pn,_n=function _loop(Tr){var Dr=hn[Tr],Rr=Ur._markNodes[0],Wr=Dr["id"];Ur._markNodes.forEach((function(Tr){Tr.text===Wr&&(Rr=Tr)}));var zr=new Ka["a"](Ur._hoEditorFactoryID,Wr,Dr["text"],Rr);zr.date=Dr["date"],zr.lineHeight=Number(Dr["lineHeight"]),zr.userID=Dr["userID"],zr.userName=Dr["userName"],Hr.drawTree.commentsMap.set(zr.id,zr);var Vr=Hr.drawPageTree.getMainRootArea(Rr.drawNodes[0]);null===Vr||void 0===Vr||Vr.areaComments.set(zr.id,zr)},bn=0;bn<hn.length;bn++)_n(bn);pn=Hr.docTree.mainNodes.length>1?Hr.docTree.mainNodes[1]:Hr.docTree.mainNodes[0];var wn=Hr.docTree.getNodeFirstPath(pn),xn=new yn["a"](this._hoEditorFactoryID,wn,wn);Hr.docTree.curDomRange=xn;var Cn=new vn["a"](xn,xn);Hr.docTree.selectChange(Cn),this._superiorSign.length>0&&(Hr.drawTree.paintStatus===mn["b"].psEdit||Hr.drawTree.paintStatus===mn["b"].psReview?Hr.vueController.hiddenMask(!1):Hr.vueController.hiddenMask(!0));var Pn=Hr.drawTree.formularNodes;Pn.forEach((function(Tr,Dr){if(Tr.formularType===Qa["a"].ftSum||Tr.formularType===Qa["a"].ftFormular||Tr.formularType===Qa["a"].ftBMI||Tr.formularType===Qa["a"].ftLaborProcess||Tr.formularType===Qa["a"].ftExpectedBirthDate||Tr.formularType===Qa["a"].ftPregnantWeeks){Tr.updateResult(),Tr.getParentCell().drawCell.needUpdate=!0;var Rr=Tr.previousLeaf();if(!Rr)throw new Error("错误的绘制位置");var Wr=Hr.docTree.getNodeLastPath(Rr),zr=new qa["a"](Ur._hoEditorFactoryID,gn["a"].daModifyStyle,Wr,Wr);zr.oldEndPath=Wr,zr.oldDrawLines=new Ya["a"](Ur._hoEditorFactoryID).getRangeDrawLines(Wr,Wr,!1),Hr.docTree.change(zr)}})),Dr&&Dr({text:Hr.vueController.getDocTitle(),count:0}),Hr.isThrowError=!0}}},{key:"loadDataSet",value:function loadDataSet(Tr){void 0===Tr.length&&(Tr=Array(Tr));for(var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.mainNodes,Ur=null,Hr=0;Hr<Rr.length;Hr++){var Wr=Rr[Hr];if(Wr instanceof fa["c"]){Ur=Wr;break}}if(Ur){for(var zr=0,Vr=0;Vr<Ur.rowInfos.length;Vr++){var Kr=Ur.rowInfos[Vr],$r=Kr.rowProperty;$r.repeatAsTitleAtPageTop||zr++}Tr.length-zr>0&&Ur.insertRows(Ur.rowCount,Tr.length-zr,Ur.rowCount-1);for(var Gr=-1,Jr=0;Jr<Tr.length;Jr++){var Xr=Ur.rowInfos[Jr],Yr=Xr.rowProperty;if(!Yr.repeatAsTitleAtPageTop){Gr++;var Qr=Tr[Gr];Xr.id=Qr[Object.keys(Qr)[0]],Xr.isAllowEdit=Qr[Object.keys(Qr)[1]];for(var Zr=0;Zr<Ur.colInfos.length;Zr++){if("operType"===Object.keys(Qr)[Zr+2])break;var en=Ur.rows[Jr][Zr];if(en){var tn=Ur.childNodes.indexOf(en);en.childNodes.splice(1,en.childNodes.length-1);var rn=new ci["a"](this._hoEditorFactoryID,Rr,en,wn["b"].ntText,Qr[Object.keys(Qr)[Zr+2]].toString(),0);en.drawCell.needUpdate=!0,rn&&en.childNodes.push(rn),Ur.rows[Jr][Zr]=en,Ur.childNodes[tn]=en}}}}Ur.update()}}},{key:"getRowsJsonData",value:function getRowsJsonData(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=JSON.parse(JSON.stringify(Tr));void 0===Rr.length&&(Rr=Array(Rr));for(var Ur=Dr.docTree.mainNodes,Hr=null,Wr=0;Wr<Ur.length;Wr++){var zr=Ur[Wr];if(zr instanceof fa["c"]){Hr=zr;break}}if(Hr){for(var Vr=Object.keys(Rr[0]),Kr=0;Kr<Rr.length;Kr++){for(var $r=Rr[Kr]["id"],Gr=-1,Jr=0;Jr<Hr.rowInfos.length;Jr++)if($r===Hr.rowInfos[Jr].id){Gr=0;for(var Xr=0;Xr<Hr.rows[Jr].length;Xr++){var Yr=Hr.rows[Jr][Xr];if(Yr){var Qr=Yr.getCellText(),Zr=Rr[Kr][Vr[Xr+2]];Qr!==Zr.toString()&&(Rr[Kr][Vr[Xr+2]]=Qr,Rr[Kr]["operType"]="edit")}}}-1===Gr&&(Rr[Kr]["operType"]="del")}for(var en=0;en<Hr.rowInfos.length;en++){var tn=Hr.rowInfos[en];if(!tn.rowProperty.repeatAsTitleAtPageTop&&"0"===tn.id){var rn=JSON.parse(JSON.stringify(Rr[0]));rn["id"]="0",rn["isAllowEdit"]=!0;for(var nn=0;nn<Hr.rows[en].length;nn++){var an=Hr.rows[en][nn];an&&(rn[Vr[nn+2]]=an.getCellText())}rn["operType"]="add",Rr[Rr.length]=rn}}}for(var sn="",cn=0;cn<Rr.length;cn++)sn+=JSON.stringify(Rr[cn]);return sn}}]),StructureConvert}(),no=(Rr("bf19"),Rr("ff91")),io=Rr("ca11");(function(Tr){Tr["ctText"]="text/plain",Tr["ctHTML"]="text/html",Tr["ctJSON"]="application/json"})(Za||(Za={}));var ao=function(){function NodeConvert(Tr){Object(Xr["a"])(this,NodeConvert),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(NodeConvert,[{key:"FromJSON",value:function FromJSON(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=new Array,Hr=new Array;"main"===Dr&&(Hr=Rr.docTree.mainNodes);for(var Wr=JSON.parse(Tr),zr=Rr.docTree.curDomRange.normalize().startPath,Vr=Rr.docTree.getParentNode(zr),Kr=Dr?Hr:Rr.docTree.curDomRange.normalize().npStart.roots,$r=0;$r<Wr.length;$r++){var Gr=Wr[$r];if(Gr){var Jr=Rr.structureConvert.convertNode(Gr,Kr,Dr?null:Vr,void 0,!0);if(!Jr)return[];if(Jr){if(Jr instanceof ci["a"]&&0===Jr.text.length)continue;Dr&&(Jr.rootPath=Dr),Ur.push(Jr),Dr&&Dr.split("/").length>1&&(Hr.push(Jr),Jr.rootNodes=Hr)}}}return Ur}},{key:"FromHTML",value:function FromHTML(Tr){var Dr,Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=/<body[^>]*>([\s\S]+?)<\/body>/i,Hr=Ur.exec(Tr);if(!Hr)return[];Dr="<div>"+Hr[1]+"</div>";var Wr=Rr.htmlConverter.Exec(Ta()(Dr)[0],"");return Wr}},{key:"FromText",value:function FromText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=new Array,Ur=Tr;if(Ur)for(var Hr=Ur.split(/[(\n\r)|(\r\n)|\r|\n]+/),Wr=0;Wr<Hr.length;Wr++)if(Hr[Wr]){if(Wr>0){var zr=new qi["a"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,0);Rr.push(zr)}var Vr=new ci["a"](this._hoEditorFactoryID,Dr.docTree.mainNodes,null,wn["b"].ntText,Hr[Wr],0);Rr.push(Vr)}return Rr}},{key:"toJSON",value:function toJSON(Tr,Dr,Rr){var Ur=this,Hr=new Array;return Tr[0].node instanceof qi["a"]&&0===Tr[0].node.paraNo&&Tr.splice(0,1),Tr.forEach((function(Wr,zr){if(Dr&&(Wr.node instanceof ei["f"]&&(Wr.node.text="",Wr.node.childNodes.splice(1,Wr.node.childNodes.length-2)),Wr.node instanceof Yn["a"]&&(Wr.node.text=""),Wr.node instanceof Qn["a"]&&(Wr.node.text="")),Wr.node instanceof ei["f"]||Wr.node instanceof ga["a"]||Wr.node instanceof Qn["a"]||Wr.node instanceof Yn["a"])Hr.push(Wr.node.node2Json(Wr.range,!0,Rr));else if(Wr.node instanceof li["a"]&&Wr.node.parentNode instanceof ei["f"]){var Vr=Tn["a"].instance().getFactory(Ur._hoEditorFactoryID),Kr=Vr.docTree.curDomRange.normalize();if(Wr.node.MarkNodeType===li["b"].mtStart){var $r=Wr.node.parentNode.childNodes[Wr.node.parentNode.childNodes.length-1].isTotalSelected(Kr,!0);$r&&Hr.push(Wr.node.node2Json(Wr.range,!0))}if(Wr.node.MarkNodeType===li["b"].mtEnd){var Gr=Wr.node.parentNode.childNodes[0].isTotalSelected(Kr,!0);Gr?Hr.push(Wr.node.node2Json(Wr.range,!0)):zr===Tr.length-1&&(Vr.docTree.curDomRange.endPath=Vr.docTree.getNodeLastPath(Wr.node.previousLeaf()))}}else Hr.push(Wr.node.node2Json(Wr.range,!0))})),this._jsondata=JSON.stringify(Hr),JSON.stringify(Hr)}},{key:"toTHML",value:function toTHML(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr&&this.toJSON(Tr);var Rr=JSON.parse(this._jsondata);return Rr?Dr.toHtmlConverter.Exec(this._hoEditorFactoryID,Rr):""}},{key:"toText",value:function toText(Tr){Tr&&this.toJSON(Tr);var Dr=JSON.parse(this._jsondata);if(!Dr)return"";var Rr="",Ur=function json2text(Tr){for(var Dr=0;Dr<Tr.length;Dr++){var Ur=Tr[Dr];Ur["nodeType"]&&(Ur.nodeType==wn["b"][wn["b"].ntText]?Rr+=Ur.text:Ur.nodeType==wn["b"][wn["b"].ntParagraph]?0!=Dr&&(Rr+="\n"):Ur.nodeType==wn["b"][wn["b"].ntControl]?Rr+=Ur.text:Ur.nodeType==wn["b"][wn["b"].ntField]?json2text(Ur.childNodes.item):Ur.nodeType==wn["b"][wn["b"].ntTable]?Array.isArray(Ur.childNodes.item)&&json2text(Ur.childNodes.item):"ntRow"==Ur.nodeType?(0!=Dr&&(Rr+="\n"),json2text(Ur.childNodes.item)):Ur.nodeType==wn["b"][wn["b"].ntCell]&&(0!=Dr&&(Rr+="\t"),json2text(Ur.childNodes.item)))}};return Ur(Dr),Rr}}]),NodeConvert}(),oo=function(){function StructureRecord(Tr,Dr,Rr,Ur){Object(Xr["a"])(this,StructureRecord),this._hoEditorFactoryID=Tr,this._node=Rr,this._path=Dr,this._range=Ur}return Object(Yr["a"])(StructureRecord,[{key:"node",get:function get(){return this._node}},{key:"range",get:function get(){return this._range}}]),StructureRecord}(),so=function(){function StructureNode(Tr){Object(Xr["a"])(this,StructureNode),this._hoEditorFactoryID=Tr,this._Convertor=new ao(this._hoEditorFactoryID)}return Object(Yr["a"])(StructureNode,[{key:"Convertor",get:function get(){return this._Convertor}},{key:"jsondata",get:function get(){return this._json}},{key:"htmldata",get:function get(){return this._html}},{key:"textdata",get:function get(){return this._text}},{key:"getPrevLastPath",value:function getPrevLastPath(Tr){var Dr=Tr.range();return Dr.from}},{key:"Copy",value:function Copy(Tr,Dr,Rr,Ur){var Hr,Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr instanceof yn["a"])Hr=Tr.normalize();else{var zr=Tr[0].range();Hr=new yn["a"](this._hoEditorFactoryID,zr.from,Wr.docTree.getNodeLastPath(Tr[Tr.length-1]))}var Vr=this.getAncestorsChild(Hr.startPath,Hr.endPath),Kr=Hr.startPath.split("/").slice(0,Vr.level+1).join("/"),$r=Hr.endPath.split("/").slice(0,Vr.level+1).join("/"),Gr=Wr.docTree.findNodePositionByPath(Kr).node,Jr=Wr.docTree.findNodePositionByPath($r).node;if(this._structoredNode||(this._structoredNode=new Array),this._structoredNode=[],Gr==Jr)this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Gr),Gr,{from:Hr.startPath,to:Hr.endPath}));else if(Gr instanceof En["a"]&&Jr instanceof En["a"]&&Gr.table==Jr.table)this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Gr.table),Gr.table,{from:Gr.range().from,to:Jr.range().to}));else{var Xr=Wr.docTree.getNodeLastPath(Gr);Xr!==Hr.startPath&&this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Gr),Gr,{from:Gr instanceof fa["c"]?Gr.range().from:Hr.startPath}));for(var Yr=Gr.nextSibling();;){if(!Yr)break;if(Yr==Jr){this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Jr),Jr,{to:Jr instanceof fa["c"]?Jr.range().to:Hr.endPath}));break}this._structoredNode.push(new oo(this._hoEditorFactoryID,this.getPrevLastPath(Yr),Yr)),Yr=Yr.nextSibling()}}if(this._json=this._Convertor.toJSON(this._structoredNode,Rr,Ur),this._html=this._Convertor.toTHML(),this._text=this._Convertor.toText(),!Dr)return this._json;Dr.setData(Za.ctJSON,this._json),Dr.setData(Za.ctHTML,this._html),Dr.setData(Za.ctText,this._text)}},{key:"Parse",value:function Parse(Tr,Dr,Rr){return Tr==Za.ctJSON?this._Convertor.FromJSON(Dr,Rr):Tr==Za.ctHTML?this._Convertor.FromHTML(Dr):this._Convertor.FromText(Dr)}},{key:"getAncestorsChild",value:function getAncestorsChild(Tr,Dr){var Rr,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Tr.split("/"),Wr=Dr.split("/");if(!io["a"].pathCanCompare(Tr,Dr))throw no["a"].PathNotAtSameRoot();var zr=0;while(Hr[zr]==Wr[zr])if(zr+=1,zr>Hr.length||zr>Wr.length)break;if(1===zr||2===zr&&"main"!==Hr[0]){var Vr=Ur.docTree.findNodePositionByPath(Hr.slice(0,zr+1).join("/")).node;if(!Vr)throw no["a"].NodeNotFound();Rr=Vr.parentNode?Vr.parentNode.childNodes:Vr.rootNodes}else{var Kr=Hr.slice(0,zr).join("/"),$r=Ur.docTree.findNodePositionByPath(Kr).node;if(!$r)throw no["a"].NodeNotFound();Rr=$r.childNodes}return{level:zr,child:Rr}}}]),StructureNode}(),lo=function(){function TestDataSet(Tr){Object(Xr["a"])(this,TestDataSet),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(TestDataSet,[{key:"getTestJsonData",value:function getTestJsonData(){var Tr=[{id:"1",isAllowEdit:!0,date:"20210130",name:"one",age:10,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"2",isAllowEdit:!0,date:"20210230",name:"two",age:20,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"3",isAllowEdit:!0,date:"20210330",name:"three",age:30,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"4",isAllowEdit:!0,date:"20210430",name:"four",age:40,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"5",isAllowEdit:!0,date:"20210530",name:"five",age:50,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"6",isAllowEdit:!0,date:"20210630",name:"six",age:60,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"7",isAllowEdit:!0,date:"20210730",name:"seven",age:70,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"8",isAllowEdit:!0,date:"20210830",name:"eight",age:80,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"9",isAllowEdit:!0,date:"20210930",name:"nine",age:90,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""},{id:"10",isAllowEdit:!0,date:"20211030",name:"ten",age:100,c4:"c4",c5:"c5",c6:"c6",c7:"c7",c8:"c8",c9:"c9",c10:"c10",operType:""}];return Tr}}]),TestDataSet}(),co=function(){function TOHTMLConverter(Tr){var Dr=this;Object(Xr["a"])(this,TOHTMLConverter),this._valign=["top","center","bottom"],this._hoEditorFactoryID=Tr,this.convert=new Map,this.convert.set(wn["b"][wn["b"].ntText],(function(Tr){return Dr.TransText(Tr)})),this.convert.set(wn["b"][wn["b"].ntControl],(function(Tr){return Dr.TransText(Tr)})),this.convert.set(wn["b"][wn["b"].ntField],(function(Tr){return Dr.TransField(Tr)})),this.convert.set(wn["b"][wn["b"].ntImage],(function(Tr){return Dr.TransImg(Tr)})),this.convert.set(wn["b"][wn["b"].ntParagraph],(function(Tr){return Dr.TransPara(Tr)})),this.convert.set(wn["b"][wn["b"].ntTable],(function(Tr){return Dr.TransTable(Tr)})),this.convert.set("ntRow",(function(Tr){return Dr.TaransRow(Tr)})),this.convert.set(wn["b"][wn["b"].ntCell],(function(Tr){return Dr.TransCell(Tr)}))}return Object(Yr["a"])(TOHTMLConverter,[{key:"nextnode",value:regeneratorRuntime.mark((function nextnode(Tr){var Dr,Rr;return regeneratorRuntime.wrap((function nextnode$(Ur){while(1)switch(Ur.prev=Ur.next){case 0:Rr=0;case 1:if(!(Rr<Tr.length)){Ur.next=17;break}case 2:return Ur.next=4,Tr[Rr];case 4:if(Dr=Ur.sent,-1!=Dr){Ur.next=9;break}return Ur.abrupt("continue",10);case 9:return Ur.abrupt("break",12);case 10:Ur.next=2;break;case 12:if(!Tr[Rr]["childNodes"]){Ur.next=14;break}return Ur.delegateYield(this.nextnode(Tr[Rr]["childNodes"]["item"]),"t0",14);case 14:Rr++,Ur.next=1;break;case 17:case"end":return Ur.stop()}}),nextnode,this)}))},{key:"Exec",value:function Exec(Tr,Dr){var Rr="";for(this.nodes=Dr,this.iterator=this.nextnode(Dr);;){var Ur=this.iterator.next();if(Ur.done)break;Rr+=this.Link(Ur.value)}return"<html><body>\x3c!--StartFragment--\x3e".concat(Rr,"\x3c!--EndFragment--\x3e</body></html>")}},{key:"Link",value:function Link(Tr){if(Tr){var Dr=this.convert.get(Tr.nodeType);return Dr&&Tr?Dr(Tr):""}return""}},{key:"TransBody",value:function TransBody(Tr){return""}},{key:"TransControl",value:function TransControl(Tr){var Dr=this.getNodesStyle(Tr),Rr="";return"ctDateTime"==Tr.type?(Rr+=Tr.text,'<span style="'.concat(Dr,'">').concat(Rr,"</span>")):("ctDownList"==Tr.type||Tr.type,"")}},{key:"TransText",value:function TransText(Tr){var Dr=this.getNodesStyle(Tr),Rr="";return Tr.nodeType==wn["b"][wn["b"].ntText]&&(Rr+=Tr.text),Tr.nodeType==wn["b"][wn["b"].ntControl]&&(Rr+=Tr.text),'<span style="'.concat(Dr,'">').concat(Rr,"</span>")}},{key:"TransField",value:function TransField(Tr){var Dr=this.iterator.next();return this.Link(Dr.value)}},{key:"TransImg",value:function TransImg(Tr){var Dr=this.ToHTMLStyle(Tr),Rr=Tr.imageDataBase64String;return'<img id="'.concat(Tr.id,'" style="').concat(Dr,'" src="').concat(Rr,'"/>')}},{key:"TransPara",value:function TransPara(Tr){for(var Dr=this.ToHTMLStyle(Tr),Rr="",Ur="";;){var Hr=this.iterator.next();if(Hr.done)break;if(Hr.value.nodeType==wn["b"][wn["b"].ntParagraph])return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if(Hr.value.nodeType==wn["b"][wn["b"].ntTable])return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if(Hr.value.nodeType==wn["b"][wn["b"].ntCell])return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if("ntRow"==Hr.value.nodeType)return Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur+=this.Link(Hr.value),Ur;if("ntEnd"==Hr.value.nodeType)return Rr=""==Rr?"<span>&nbsp;</span>":Rr,Ur='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur;Rr+=this.Link(Hr.value)}return Ur+='<p style="'.concat(Dr,'">').concat(Rr,"</p>"),Ur}},{key:"TransTable",value:function TransTable(Tr){for(var Dr=this.ToHTMLStyle(Tr),Rr="",Ur=0;Ur<Tr.childNodes.item.length;Ur++){var Hr=this.iterator.next();if(Hr.done)break;Hr.value["style"]=Tr.rowInfos.item[Ur],Hr.value["colInfos"]=Tr.colInfos,Rr+=this.Link(Hr.value)}return'<table style="'.concat(Dr,'" border="1" cellspacing="0" cellpadding="0">').concat(Rr,"</table>")}},{key:"TaransRow",value:function TaransRow(Tr){for(var Dr=this.ToHTMLStyle(Tr),Rr="",Ur=0;Ur<Tr.childNodes.item.length;Ur++){var Hr=this.iterator.next();if(Hr.done)break;Hr.value["style"]=Tr.colInfos.item[Ur],Rr+=this.Link(Hr.value)}return'<tr style="'.concat(Dr,'">').concat(Rr,"</tr>")}},{key:"TransCell",value:function TransCell(Tr){Tr.crossLineType!=En["b"][En["b"].ctNone]&&(Tr["style"]["crossLineType"]=Tr.crossLineType);var Dr='valign="'.concat(this._valign[Number(Sn["k"][Tr.cellProperty.align])],'"'),Rr='rowSpan="'.concat(Tr.rowSpan,'" colSpan="').concat(Tr.colSpan,'"'),Ur=this.ToHTMLStyle(Tr),Hr="",Wr=this.iterator.next();return Hr=this.Link(Wr.value),"<td ".concat(Rr," ").concat(Dr,' style="').concat(Ur,'">').concat(Hr,"</td>")}},{key:"ToHTMLStyle",value:function ToHTMLStyle(Tr){var Dr="";if(Tr["style"]){var Rr=Tr.style;if("ntRow"==Tr["nodeType"]){Dr+="margin: 0;";var Ur=Rr["rowHeight"]?"height:".concat(Rr.rowHeight,"px;"):"";Rr["rowProperty"]&&(Ur=Rr.rowProperty["rowHeight"]&&0!=Rr.rowProperty["rowHeight"]?"height:".concat(Rr.rowProperty.rowHeight,"cm;"):Ur),Dr+=Ur}else if(Tr["nodeType"]==wn["b"][wn["b"].ntCell]){if(Dr+="margin: 0;",Dr+=Rr["colWidth"]?"width:".concat(Rr.colWidth,"px;"):"",Rr["crossLineType"])switch(Rr.crossLineType){case En["b"][En["b"].ct02]:Dr+="mso-diagonal-down: 0.5pt solid windowtext;";break;case En["b"][En["b"].ct13]:Dr+="mso-diagonal-up: 0.5pt solid windowtext;";break}}else{var Hr=Tr.style,Wr=Hr._align;Dr+=ka["a"].alleft==Wr?"text-align:left;":"",Dr+=ka["a"].alright==Wr?"text-align:right;":"",Dr+=ka["a"].alcenter==Wr?"text-align:center;":"",Dr+="line-height:".concat(Hr._lineSpace||1,";"),Dr+="letter-spacing:".concat(Hr._charSpace||2,"px;"),Dr+="margin-left:".concat(Hr._leftMarginPixes||0,"px;"),Dr+="margin-right:".concat(Hr._rightMarginPixes||0,"px; "),Dr+="margin-top:".concat(Hr._topMarginPixes||0,"px;"),Dr+="margin-bottom:".concat(Hr._bottomMarginPixes||0,"px;")}Tr["width"]&&(Dr+="width:".concat(Tr.width,"px;")),Tr["height"]&&(Dr+="height:".concat(Tr.height,"px;"))}else Tr["width"]&&(Dr+="width:".concat(Tr.width,"px;")),Tr["height"]&&(Dr+="height:".concat(Tr.height,"px;")),Tr["nodeType"]==wn["b"][wn["b"].ntTable]&&(Dr+="border-collapse: collapse;");return Dr}},{key:"CombineStyleToHTMLStyle",value:function CombineStyleToHTMLStyle(Tr){var Dr="";Dr+="font-size:"+Tr.size+"px;",Dr+="font-family:"+Tr.font+";",Dr+=Tr.bold?"font-weight:bold;":"",Dr+=Tr.italic?"font-style:italic;":"";var Rr="";return Tr.underline&&(Rr="text-decoration:underline"),Tr.strikeout&&(Rr?Rr+=" line-through":Rr="text-decoration:line-through"),Dr+=Rr?Rr+";":"",Tr.script&&(Tr.script==Da["b"].sstsup?Dr+="vertical-align:super;":Tr.script==Da["b"].sstsub&&(Dr+="vertical-align:sub;")),Dr+="background-color:"+Tr.backColor+";",Dr+="color:"+Tr.color,Dr}},{key:"getNodesStyle",value:function getNodesStyle(Tr){var Dr,Rr="",Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.docTree.styles[Tr.styleIndex];return Dr=Hr?Hr.combineStyle:Ur.docTree.styles[0].combineStyle,Rr+=this.CombineStyleToHTMLStyle(Dr),Rr}}]),TOHTMLConverter}(),uo=Rr("e802"),ho=(Rr("2b3d"),Rr("c119")),po=Rr("dee7"),fo=Rr.n(po),_o=Rr("2026"),go=Rr("bc73"),mo=Rr("e3c0"),vo=Rr("ecd9"),bo=Rr("b790"),wo=function(){function VueController(Tr){Object(Xr["a"])(this,VueController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(VueController,[{key:"combineStyle",get:function get(){return this._combineStyle},set:function set(Tr){Tr!==this._combineStyle&&(this._combineStyle=Tr)}},{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID}},{key:"getCurTextStyle",value:function getCurTextStyle(){var Tr=new Da["c"](this._hoEditorFactoryID),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize(),Ur=Rr.npStart.node,Hr=Rr.npEnd.node;if(!Ur||!Hr)throw new Error("错误的选择范围".concat(Rr.startPath," ").concat(Rr.endPath));if(Ur===Hr&&Hr instanceof bo["a"]){var Wr=Hr.drawNodes[0];return this._combineStyle=Wr.textStyle,Tr.setTextStyle(Wr.textStyle),void(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(Tr))}var zr=Ur,Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.styles,Kr=0;if(zr&&Hr){do{if(zr){if(zr instanceof ci["a"]||zr instanceof Xa["a"]||zr instanceof li["a"]||zr instanceof qi["a"]){Kr=zr.styleIndex;break}zr=zr.nextLeaf()}}while(zr&&zr!==Hr.nextLeaf());Tr.copyProperty(Vr[Kr],Tr);var $r=Vr[0].combineStyle;Vr[Kr]&&($r=Vr[Kr].combineStyle);do{if(zr){if((zr instanceof ci["a"]||zr instanceof Xa["a"]||zr instanceof li["a"]||zr instanceof qi["a"])&&zr.styleIndex!==Kr){var Gr=Vr[zr.styleIndex].combineStyle;Gr.font!==$r.font&&""!==Tr.font&&(Tr.font=""),Gr.size!==$r.size&&0!==Tr.size&&(Tr.size=0),Gr.script!==$r.script&&Tr.script!==Da["b"].sstnormal&&(Tr.script=Da["b"].sstnormal),Gr.bold!==$r.bold&&!1!==Tr.bold&&(Tr.bold=!1),Gr.italic!==$r.italic&&!1!==Tr.italic&&(Tr.italic=!1),Gr.underline!==$r.underline&&!1!==Tr.underline&&(Tr.underline=!1),Gr.strikeout!==$r.strikeout&&!1!==Tr.strikeout&&(Tr.strikeout=!1),Gr.color!==$r.color&&""!==Tr.color&&(Tr.color=""),Gr.backColor!==$r.backColor&&""!==Tr.backColor&&(Tr.backColor="")}zr=zr.nextLeaf()}}while(zr&&zr!==Hr.nextLeaf()&&Hr.nextLeaf());this._combineStyle=Tr.combineStyle,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(Tr)}}},{key:"unDoOperate",value:function unDoOperate(){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.undoOperate()}},{key:"reDoOperate",value:function reDoOperate(){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.redoOperate()}},{key:"fontFormat",value:function fontFormat(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontFormat);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontFormat",Dr,Tr)}},{key:"clearFormat",value:function clearFormat(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.formatClearOrPainter(Tr,0)}},{key:"formatPainter",value:function formatPainter(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.formatPainter.startFormatPainter(Tr,Dr.docTree.curStyleIndex,Dr.docTree.curParaNo,!1);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange}},{key:"fontSize",value:function fontSize(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontSize);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontSize",Dr,Tr.toString())}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daModifyStyle,Dr,Rr,ho["b"].fontSizeEnlarge);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeEnlarge",Tr)}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daModifyStyle,Dr,Rr,ho["b"].fontSizeDecrease);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeDecrease",Tr)}},{key:"fontSuperScript",value:function fontSuperScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontSuperScript);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSuperScript",Dr,Tr)}},{key:"fontSubScript",value:function fontSubScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontSubScript);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSubScript",Dr,Tr)}},{key:"fontBold",value:function fontBold(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontBold);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontBold",Dr,Tr)}},{key:"fontItalic",value:function fontItalic(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontItalic);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontItalic",Dr,Tr)}},{key:"fontUnderline",value:function fontUnderline(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontUnderline);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontUnderline",Dr,Tr)}},{key:"fontStrikeout",value:function fontStrikeout(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontStrikeout);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontStrikeout",Dr,Tr)}},{key:"fontColor",value:function fontColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontColor);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontColor",Dr,Tr)}},{key:"fontBackColor",value:function fontBackColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daModifyStyle,Rr,Ur,ho["b"].fontBackColor);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontBackColor",Dr,Tr)}},{key:"alignedLeft",value:function alignedLeft(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedLeft);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedLeft",Tr)}},{key:"alignedCenter",value:function alignedCenter(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedCenter);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedCenter",Tr)}},{key:"alignedRight",value:function alignedRight(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedRight);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedRight",Tr)}},{key:"alignedBothEnds",value:function alignedBothEnds(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].alignedBothEnds);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedBothEnds",Tr)}},{key:"addIndent",value:function addIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].addIndent);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("addIndent",Tr)}},{key:"decreaseIndent",value:function decreaseIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daParaStyleChange,Dr,Rr,ho["b"].decreaseIndent);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("decreaseIndent",Tr)}},{key:"setLineHeight",value:function setLineHeight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daParaStyleChange,Rr,Ur,ho["b"].setLineHeight);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("lineHeight",Dr,Tr)}},{key:"insertTable",value:function insertTable(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertTable);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTable(Rr,Tr,Dr)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertRowAbove);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowAbove(Dr,Tr)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertRowBelow);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowBelow(Dr,Tr)}},{key:"insertTableColLeft",value:function insertTableColLeft(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertColLeft);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableColLeft(Dr,Tr)}},{key:"insertTableColRight",value:function insertTableColRight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertColRight);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableColRight(Dr,Tr)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableDeleteRows);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteRows(Tr)}},{key:"tableDeleteCols",value:function tableDeleteCols(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableDeleteCols);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteCols(Tr)}},{key:"tableMergerCells",value:function tableMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableMergerCells);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableMergerCells(Tr)}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),Dr=Tr.normalize().startPath,Rr=Tr.normalize().endPath,Ur=new ho["a"](gn["a"].daInsert,Dr,Rr,ho["b"].tableUnMergerCells);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Ur)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.tableUnMergerCells(Tr)}},{key:"tableProperty",value:function tableProperty(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setTableProperty(Tr,Dr)}},{key:"rowProperty",value:function rowProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setRowProperty(Rr,Tr,Dr)}},{key:"colProperty",value:function colProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setColProperty(Rr,Tr,Dr)}},{key:"cellProperty",value:function cellProperty(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setCellProperty(Tr,Dr)}},{key:"insertMenstrualHistory",value:function insertMenstrualHistory(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Vr=zr.normalize().startPath,Kr=zr.normalize().endPath,$r=new ho["a"](gn["a"].daInsert,Vr,Kr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing($r)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory("add",zr,Dr,Rr,Ur,Hr,Wr)}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Kr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory("update",Wr,Tr,Dr,Rr,Ur,Hr)}},{key:"insertPupilMap",value:function insertPupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr){var Kr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,$r=Kr.normalize().startPath,Gr=Kr.normalize().endPath,Jr=new ho["a"](gn["a"].daInsert,$r,Gr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Jr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap("add",Kr,Dr,Rr,Ur,Hr,Wr,zr,Vr)}},{key:"updatePupilMap",value:function updatePupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daInsert,Kr,$r,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Gr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap("update",Vr,Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertLightLocation",value:function insertLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r){var Gr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Jr=Gr.normalize().startPath,Xr=Gr.normalize().endPath,Yr=new ho["a"](gn["a"].daInsert,Jr,Xr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Yr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation("add",Gr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r)}},{key:"updateLightLocation",value:function updateLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Gr=$r.normalize().startPath,Jr=$r.normalize().endPath,Xr=new ho["a"](gn["a"].daInsert,Gr,Jr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Xr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation("update",$r,Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daInsert,Kr,$r,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Gr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap("add",Vr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Vr=zr.normalize().startPath,Kr=zr.normalize().endPath,$r=new ho["a"](gn["a"].daInsert,Vr,Kr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing($r)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap("update",zr,Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Kr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPermanentTeethMap("add",Wr,Dr,Rr,Ur,Hr)}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPermanentTeethMap("update",Hr,Tr,Dr,Rr,Ur)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].insertMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Kr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPrimaryTeethMap("add",Wr,Dr,Rr,Ur,Hr)}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].updateMedicalExpression);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPrimaryTeethMap("update",Hr,Tr,Dr,Rr,Ur)}},{key:"insertTextInputField",value:function insertTextInputField(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertTextInputField);if(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("add",Rr,Dr);return zr}return Ur}},{key:"updateTextInputField",value:function updateTextInputField(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].updateTextInputField);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("update",Dr,Tr)}},{key:"insertImage",value:function insertImage(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].insertImage);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertImage(Hr,Tr,Dr,Rr,Ur)}},{key:"insertBarcode",value:function insertBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr){var Kr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,$r=Kr.normalize().startPath,Gr=Kr.normalize().endPath,Jr=new ho["a"](gn["a"].daInsert,$r,Gr,ho["b"].insertBarcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Jr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("add",Kr,Dr,Rr,Ur,Hr,Wr,zr,Vr)}},{key:"updateBarcode",value:function updateBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daInsert,Kr,$r,ho["b"].updateBarcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Gr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("update",Vr,Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertQrcode",value:function insertQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr){var Qr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Zr=Qr.normalize().startPath,en=Qr.normalize().endPath,tn=new ho["a"](gn["a"].daInsert,Zr,en,ho["b"].insertQrcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(tn)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("add",Qr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr)}},{key:"updateQrcode",value:function updateQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr){var Yr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Qr=Yr.normalize().startPath,Zr=Yr.normalize().endPath,en=new ho["a"](gn["a"].daInsert,Qr,Zr,ho["b"].updateQrcode);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(en)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("update",Yr,Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertRadioAndCheckBox);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("add",Rr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].updateRadioAndCheckBox);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("update",Dr,Tr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"find",value:function find(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.find(Ur,Tr,Dr,Rr);return Hr}},{key:"replace",value:function replace(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.replace(zr,Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertDateTime",value:function insertDateTime(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertDateTime);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("add",Rr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDateTime",value:function updateDateTime(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].updateDateTime);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("update",Dr,Tr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertDownList",value:function insertDownList(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Hr=Ur.normalize().startPath,Wr=Ur.normalize().endPath,zr=new ho["a"](gn["a"].daInsert,Hr,Wr,ho["b"].insertDownList);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(zr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("add",Ur,Dr,Rr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDownList",value:function updateDownList(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].updateDownList);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("update",Rr,Tr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertSpecialChars",value:function insertSpecialChars(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertSpecialChars);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertSpecialChars(Tr,Rr,Dr,Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"openLocalFiles",value:function openLocalFiles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.isThrowError=!1;var Ur=Rr.docTree.curDomRange,Hr=Ur.normalize().startPath,Wr=Ur.normalize().endPath,zr=new ho["a"](gn["a"].daInsert,Hr,Wr,ho["b"].openLocalFiles);Rr.docTree.changing(zr)&&(Rr.docController.initBlankDoc(),Rr.drawTree.inViewPages=[0],Rr.openXmled=!0,Rr.structureConvert.openFile(Tr,Dr))}},{key:"openLocalFilesTest",value:function openLocalFilesTest(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc(),Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.openFile(Tr,Dr,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=JSON.parse(JSON.stringify(Tr));Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(Dr)}},{key:"saveAsFile",value:function saveAsFile(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Rr.isThrowError=!1,!Dr){Rr.contentIsModify.isModify=!1;var Ur=Rr.undoService.stack;if(Ur.length>0){var Hr=Ur[Ur.length-1],Wr=Hr.undoUnits,zr=Wr[Wr.length-1];Rr.lastSaveTime=zr.opTime}else Rr.lastSaveTime=new Date(Date.now())}var Vr=Rr.docTree.curDomRange,Kr=Vr.normalize().startPath,$r=Vr.normalize().endPath,Gr=new ho["a"](gn["a"].daUnkown,Kr,$r,ho["b"].saveAsFile);if(Rr.docTree.changing(Gr)){var Jr="";return"xml"===Tr&&(Jr=Rr.structureConvert.doc2Xml("xml",void 0,!0)),"plain"===Tr&&(Jr=Rr.structureConvert.doc2Text()),"html"===Tr&&this.saveAsPDF("","html"),"json"===Tr&&(Jr=Rr.structureConvert.doc2Xml("json",void 0,!0),Jr=fo.a.pd.json(Jr)),Jr}return""}},{key:"getDocTitle",value:function getDocTitle(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.title}},{key:"getDocProperty",value:function getDocProperty(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty}},{key:"getDocXml",value:function getDocXml(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml("xml",Tr,Dr);return Rr}},{key:"getDocJson",value:function getDocJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(Tr);return Dr}},{key:"setPageProperty",value:function setPageProperty(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.setPageProperty(Tr);for(var Rr=0;Rr<Dr.drawTree.drawPages.length;Rr++)Dr.drawTree.drawPages[Rr].reFreshBounds();Dr.drawTree.drawPages.length>1||Dr.drawTree.mainDNodes.length>1||Dr.drawTree.mainDNodes[0]instanceof pa["a"]||Dr.drawTree.mainDNodes[0]instanceof ua["a"]&&Dr.drawTree.mainDNodes[0].drawItems.length>0||Dr.drawTree.headerDNodes.length>=1&&Dr.drawTree.headerDNodes[0].length>1||Dr.drawTree.footerDNodes.length>=1&&Dr.drawTree.footerDNodes[0].length>1?this.rebuildAll(!0):Dr.drawTree.updateDrawTreeFirstLine()}},{key:"insertComment",value:function insertComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daInsert,Rr,Ur,ho["b"].insertComment);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertComment(Tr,Dr)}},{key:"deleteComment",value:function deleteComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daDelete,Rr,Ur,ho["b"].deleteComment);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.deleteComment(Tr)}},{key:"insertPageNum",value:function insertPageNum(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Wr=Hr.normalize().startPath,zr=Hr.normalize().endPath,Vr=new ho["a"](gn["a"].daInsert,Wr,zr,ho["b"].insertPageNum);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Vr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertPageNum(Tr,Hr,Dr,Rr,Ur)}},{key:"newFile",value:function newFile(Tr){"caseHistory"===Tr&&(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.type=gn["d"].etCaseHistory),"form"===Tr&&(Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.type=gn["d"].etForm);var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Rr=Dr.normalize().startPath,Ur=Dr.normalize().endPath,Hr=new ho["a"](gn["a"].daUnkown,Rr,Ur,ho["b"].newFile);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Hr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc()}},{key:"editComment",value:function editComment(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daUpdate,Ur,Hr,ho["b"].editComment);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.editComment(Tr,Dr)}},{key:"insertTableFormula",value:function insertTableFormula(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Hr=Ur.normalize().startPath,Wr=Ur.normalize().endPath,zr=new ho["a"](gn["a"].daInsert,Hr,Wr,ho["b"].insertTableFormula);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(zr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertTableFormula(Ur,Tr,Dr,Rr)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=new ba(this.hoEditorFactoryID);Rr.setReviewLevelColor(Tr.reviewLev1Color,Tr.reviewLev2Color,Tr.reviewLev3Color,Tr.fieldColor,Tr.dateTimeColor,Tr.downListColor),Dr.option=Rr}},{key:"setUserLoginInfo",value:function setUserLoginInfo(Tr,Dr,Rr,Ur){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.setUserLoginInfo(Tr,Dr,Rr,Ur)}},{key:"setEditorStatus",value:function setEditorStatus(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.isHideComments=!0,Rr.drawTree.paintStatus=Tr,2===Tr?Dr&&(Rr.printStatus.printRange=Dr):(Rr.printStatus.printRange=2,Rr.printStatus.drawPrintRecord.clear(),Rr.printStatus.clearArea());var Ur=0;4===Tr&&(Ur=50,Rr.isHideComments=!1),Ur!==Rr.pageProperty.commentWidthMm&&Rr.vueController.setPageProperty(JSON.stringify({commentWidthMm:Ur})),Rr.structureConvert._superiorSign.length>0&&(1===Tr||4===Tr?this.hiddenMask(!1):this.hiddenMask(!0))}},{key:"hiddenMask",value:function hiddenMask(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr)for(var Rr=0;Rr<Dr.drawTree.drawPages.length;Rr++){for(var Ur=Dr.drawTree.drawPages[Rr],Hr=0;Hr<Ur.selectContainer.children.length;Hr++)Ur.selectContainer.children[Hr].name&&Ur.selectContainer.children[Hr].name.indexOf("mask")>=0&&Ur.selectContainer.children.splice(Hr,1);Dr.drawPageTree.updateDrawPage(Rr)}else{var Wr=Dr.structureConvert._superiorSign,zr=Wr[0],Vr=Dr.drawPageTree.getMainRootArea(zr.drawNodes[0]);if(Vr&&Vr instanceof ca["a"]){var Kr=Dr.pageProperty.widthPixes+1,$r=Dr.pageProperty.heightPixes,Gr=Dr.drawPageTree.drawMainDocs.indexOf(Vr),Jr=function paintMask(Tr,Rr){for(var Ur=Dr.drawTree.drawPages[Tr],Hr=Ur.selectContainer,Wr=0;Wr<Hr.children.length;Wr++)Hr.children[Wr].name&&Hr.children[Wr].name.indexOf("mask")>=0&&Hr.children.splice(Wr,1);var zr=new createjs.Shape;zr.graphics.clear(),zr.graphics.beginFill("#000000").drawRect(0,0,Kr,Rr).closePath(),zr.x=0,zr.y=0,zr.alpha=.1,zr.name=Rr<$r?"mask0":"mask"+(Tr+1).toString(),Hr.addChild(zr),Dr.drawPageTree.updateDrawPage(Tr)};if(Gr>0)for(var Xr=0;Xr<Gr;Xr++)Jr(Xr,$r);var Yr=zr.drawNodes[0],Qr=Dr.drawTree.getDrawLineByDNode(Yr),Zr=Dr.drawPageTree.drawHeaders[0].actualHeight;Wr[1]=Gr;var en=Qr.localToGlobal(Yr.x,Yr.y),tn=Vr.globalToLocal(en.x,en.y);Wr[2]=tn.y,Jr(Gr,tn.y+Zr+Yr.y)}}}},{key:"pageProperty",value:function pageProperty(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).pageProperty}},{key:"generateID",value:function generateID(Tr){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID(Tr)}},{key:"printToPDF",value:function printToPDF(Tr){xn["a"].printToPDF(this._hoEditorFactoryID)}},{key:"printPromisePDF",value:function printPromisePDF(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.printController.printPromisePDF(Tr,Dr,Rr)}},{key:"saveAsPDF",value:function saveAsPDF(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.printController.saveAsPDF(Tr,Dr)}},{key:"rebuildAll",value:function rebuildAll(Tr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(Tr)}},{key:"moveCaretToPath",value:function moveCaretToPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.drawTree.moveCaretToPath(Tr),Dr.docTree.curDomRange.setSamePath(Tr)}},{key:"getCaretPosition",value:function getCaretPosition(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange;return Dr.endPath}},{key:"findNodebyPath",value:function findNodebyPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.findNodePositionByPath(Tr);if(Rr)return Rr;Ea.a.alert("根据路径"+Tr+"未找到文档节点")}},{key:"getDomRange",value:function getDomRange(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();return Dr}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"setDomRange",value:function setDomRange(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.docTree.curDomRange,Hr=new yn["a"](Rr.hoEditorFactoryId,Tr,Dr),Wr=Hr.npStart.node,zr=Hr.npEnd.node;if(!Wr||!zr)throw new Error("错误的选择范围".concat(Tr," ").concat(Dr));Rr.docTree.curDomRange=Hr;var Vr=new vn["a"](Ur,Hr);Rr.docTree.selectChange(Vr)}},{key:"insertText",value:function insertText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.keyBoardInput(Tr)}},{key:"deleteText",value:function deleteText(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.docController.keyBoardDelete("Backspace")}},{key:"getTextStyles",value:function getTextStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.styles;return Dr}},{key:"getParaStyles",value:function getParaStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.paragraphs;return Dr}},{key:"clearUndos",value:function clearUndos(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.undoService.clear()}},{key:"iteratesDocTree",value:function iteratesDocTree(Tr){for(var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=function iteratesNodes(Dr){for(var Rr=0;Rr<Dr.length;Rr++){var Ur=Dr[Rr];Ur instanceof Va["a"]?iteratesNodes(Ur.childNodes):Tr(Ur)}},Ur=Dr.docTree.headerNodes,Hr=Dr.docTree.mainNodes,Wr=Dr.docTree.footerNodes,zr=0;zr<Ur.length;zr++)Rr(Ur[zr]);Rr(Hr);for(var Vr=0;Vr<Wr.length;Vr++)Rr(Wr[Vr])}},{key:"hasComment",value:function hasComment(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawTree.commentsMap;return Dr.size>0}},{key:"hideComments",value:function hideComments(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=0;Tr||(Rr=50),this.setPageProperty(JSON.stringify({commentWidthMm:Rr}));var Ur=Dr.drawTree.commentsMap;if(Dr.isHideComments=Tr,Ur.size>0){var Hr=function changeComments(Tr,Rr){var Ur=Dr.drawPageTree.getMainRootArea(Rr.eNode.drawNodes[0]);if(Ur){for(var Hr=Ur.children,Wr=Hr.length-1;Wr>=0;Wr--){var zr=Hr[Wr];zr.name===Rr.id&&(Tr?zr.alpha=.01:zr instanceof createjs.Container?zr.alpha=1:zr.alpha=.5)}Dr.drawPageTree.updateDrawPage(Ur.index)}};Ur.forEach((function(Dr){Hr(Tr,Dr)}))}}},{key:"getNodeByID",value:function getNodeByID(Tr,Dr){var Rr=null,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=function iteratesNodes(Tr){for(var Ur=0;Ur<Tr.length;Ur++){var Hr=Tr[Ur];if((Hr instanceof Ha["a"]||Hr instanceof Wa["a"]||Hr instanceof Oa["a"]||Hr instanceof Xa["a"]||Hr instanceof ei["f"])&&Hr.id===Dr){Rr=Hr;break}Hr instanceof Va["a"]&&iteratesNodes(Hr.childNodes)}};if("header"===Tr)for(var Wr=Ur.docTree.headerNodes,zr=0;zr<Wr.length;zr++)if(Wr[zr]&&(Hr(Wr[zr]),Rr))break;if("main"===Tr){var Vr=Ur.docTree.mainNodes;Hr(Vr)}if("footer"===Tr)for(var Kr=Ur.docTree.footerNodes,$r=0;$r<Kr.length;$r++)if(Kr[$r]&&(Hr(Kr[$r]),Rr))break;if("all"===Tr){for(var Gr=Ur.docTree.headerNodes,Jr=0;Jr<Gr.length;Jr++)if(Gr[Jr]&&(Hr(Gr[Jr]),Rr))break;if(!Rr){var Xr=Ur.docTree.mainNodes;Hr(Xr)}if(!Rr)for(var Yr=Ur.docTree.footerNodes,Qr=0;Qr<Yr.length;Qr++)if(Yr[Qr]&&(Hr(Yr[Qr]),Rr))break}return Rr}},{key:"getNodesByName",value:function getNodesByName(Tr,Dr,Rr){var Ur=[],Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=function iteratesNodes(Tr){for(var Hr=0;Hr<Tr.length;Hr++){var Wr=Tr[Hr];if((Wr instanceof Xa["a"]||Wr instanceof ei["f"])&&Wr.name===Rr&&(Ur.push(Wr),!Dr))break;Wr instanceof Va["a"]&&iteratesNodes(Wr.childNodes)}};if("header"===Tr)for(var zr=Hr.docTree.headerNodes,Vr=0;Vr<zr.length;Vr++)if(Wr(zr[Vr]),!Dr&&Ur.length>0)break;if("main"===Tr){var Kr=Hr.docTree.mainNodes;Wr(Kr)}if("footer"===Tr)for(var $r=Hr.docTree.footerNodes,Gr=0;Gr<$r.length;Gr++)if(Wr($r[Gr]),!Dr&&Ur.length>0)break;if("all"===Tr){for(var Jr=Hr.docTree.headerNodes,Xr=0;Xr<Jr.length;Xr++)if(Wr(Jr[Xr]),!Dr&&Ur.length>0)break;if(Dr||!Dr&&0===Ur.length){var Yr=Hr.docTree.mainNodes;Wr(Yr)}if(Dr||!Dr&&0===Ur.length)for(var Qr=Hr.docTree.footerNodes,Zr=0;Zr<Qr.length;Zr++)if(Wr(Qr[Zr]),!Dr&&Ur.length>0)break}return Ur}},{key:"insertHtmlText",value:function insertHtmlText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.htmlConverter.parseHtmlString(Tr);Dr.docController.parseNodeData(Rr)}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.modifyRedraw(Tr,Dr)}},{key:"deleteRedraw",value:function deleteRedraw(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.deleteRedraw(Tr)}},{key:"insertRedraw",value:function insertRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.insertRedraw(Tr,Dr)}},{key:"fullRedraw",value:function fullRedraw(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.drawTree.rebuildAllDrawLine(!1)}},{key:"updateStyles",value:function updateStyles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr=Rr.structureConvert.replaceNodesName(Dr);var Ur=new La.a({stripWhitespaces:!1}),Hr=Ur.xml2js(Dr),Wr=JSON.parse(JSON.stringify(Hr));if(Wr.root){var zr=Wr.root.docProperty.docId,Vr=Wr.root.styles,Kr=Array(Vr.defaultFont),$r=Rr.structureConvert.getDocStyles("font",Kr),Gr=Vr.font?Vr.font:Vr.fontStyle;if(Gr){void 0===Gr.length&&(Gr=Array(Gr));for(var Jr=0;Jr<Gr.length;Jr++){var Xr=Gr[Jr];0===Xr.length&&(Gr[Jr]=Vr.defaultFont)}var Yr=Rr.structureConvert.getDocStyles("font",Gr);$r=$r.concat(Yr)}var Qr=Array(Vr.defaultPara),Zr=Rr.structureConvert.getDocStyles("para",Qr),en=Vr.para?Vr.para:Vr.paraStyle;if(en){void 0===en.length&&(en=Array(en));var tn=Rr.structureConvert.getDocStyles("para",en);Zr=Zr.concat(tn)}var rn=function iteratesNode(Tr){for(var Dr=0;Dr<Tr.length;Dr++){var Ur=Tr[Dr];if("ntField"!==Ur.nodeType&&"ntCell"!==Ur.nodeType||Ur.childNodes&&Ur.childNodes.node&&Ur.childNodes.node.length>0&&iteratesNode(Ur.childNodes.node),"ntTable"===Ur.nodeType&&Ur.childNodes&&Ur.childNodes.item){var Hr=Ur.childNodes.item;void 0===Hr.length&&(Hr=Array(Ur.childNodes.item));for(var Wr=0;Wr<Hr.length;Wr++){var zr=Hr[Wr];if(zr.childNodes&&zr.childNodes.node){var Vr=zr.childNodes.node;void 0===Vr.length&&(Vr=Array(zr.childNodes.node)),iteratesNode(Vr)}}}if(Ur.styleIndex){var Kr=Number(Ur.styleIndex);if("ntParagraph"===Ur.nodeType){var Gr=Zr[Kr];Ur.styleIndex=Rr.docTree.styleCompare(Gr);var Jr=Number(Ur.textStyleNo||0),Xr=$r[Jr];Ur.textStyleNo=Rr.docTree.styleCompare(Xr)}else{var Yr=$r[Kr];Ur.styleIndex=Rr.docTree.styleCompare(Yr)}}}return Tr};if("header"===Tr){var nn=Wr.root.headers.header;void 0===nn.length&&(nn=Array(Wr.root.headers.header));var an=nn[0],sn=an.node;return void 0===sn.length&&(sn=Array(nn[0].node)),rn(sn),[sn,zr]}if("footer"===Tr){var cn=Wr.root.footers.footer;void 0===cn.length&&(cn=Array(Wr.root.footers.footer));var un=cn[0],dn=un.node;return void 0===dn.length&&(dn=Array(cn[0].node)),rn(dn),[dn,zr]}var hn=Wr.root.main.node;return void 0===hn.length&&(hn=Array(Wr.root.main.node)),rn(hn),[hn,zr]}}},{key:"showCellAdress",value:function showCellAdress(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docTree.mainNodes.forEach((function(Rr){if(Rr instanceof fa["c"]){for(var Ur=0;Ur<Rr.rowCount;Ur++)for(var Hr=0;Hr<Rr.colCount;Hr++){var Wr=Rr.rows[Ur][Hr];if(Wr)for(var zr=0,Vr=Wr.drawCell.drawPageCells.length;zr<Vr;zr++)Wr.drawCell.drawPageCells[zr].paintCellAdress(Tr)}for(var Kr=0,$r=Rr.drawTable.drawPageTables.length;Kr<$r;Kr++){var Gr=Dr.drawPageTree.getDrawPageByDNode(Rr.drawTable.drawPageTables[Kr]);Gr&&(Gr.needUpdateStage=!0,Dr.drawPageTree.updateDrawPage(Gr.pageIndex))}}}))}},{key:"insertXml",value:function insertXml(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=this.updateStyles(Dr,Tr),zr=JSON.stringify(Wr[0]),Vr=Wr[1],Kr=Hr.drawTree.drawPages.length,$r="main";"header"===Dr&&($r="header/"+Kr.toString()),"footer"===Dr&&($r="footer/"+Kr.toString());var Gr=Hr.structureNode.Parse(Za.ctJSON,zr,$r);if(Ur&&"main"===Dr&&Gr.length>1&&Gr[Gr.length-1]instanceof qi["a"]&&!(Gr[Gr.length-2]instanceof fa["c"])&&Gr.splice(Gr.length-1,1),"main"!==Dr){var Jr=new Array;if("header"===Dr){var Xr="header/"+Kr.toString(),Yr=new la["a"](this._hoEditorFactoryID,Xr,Kr);Hr.drawPageTree.drawHeaders[Kr]=Yr,Hr.drawTree.headerDNodes[Kr]=new Array;var Qr=new qi["a"](this._hoEditorFactoryID,Jr,null,0);Jr.push(Qr),Qr.rootPath=Xr,Qr.rootNodes=Jr,Hr.docTree.headerNodes[Kr]=Jr,Hr.drawTree.initAreaFirstNode(Jr,Hr.drawTree.headerDNodes[Kr]),Hr.docTree.curDomRange.setSamePath(Xr+"/0"),Gr[0]instanceof qi["a"]&&(Hr.docTree.headerNodes[Kr][0].paraNo=Gr[0].paraNo,Hr.docTree.headerNodes[Kr][0].styleIndex=Gr[0].styleIndex,Gr.splice(0,1)),Hr.docController.parseNodeData(Gr)}else if("footer"===Dr){var Zr="footer/"+Kr.toString(),en=new sa["a"](this._hoEditorFactoryID,Zr,Kr);Hr.drawPageTree.drawFooters[Kr]=en,Hr.drawTree.footerDNodes[Kr]=new Array;var tn=new qi["a"](this._hoEditorFactoryID,Jr,null,0);Jr.push(tn),tn.rootPath=Zr,tn.rootNodes=Jr,Hr.docTree.footerNodes[Kr]=Jr,Hr.drawTree.initAreaFirstNode(Jr,Hr.drawTree.footerDNodes[Kr]),Hr.docTree.curDomRange.setSamePath($r+"/0"),Gr[0]instanceof qi["a"]&&(Hr.docTree.footerNodes[Kr][0].paraNo=Gr[0].paraNo,Hr.docTree.footerNodes[Kr][0].styleIndex=Gr[0].styleIndex,Gr.splice(0,1)),Hr.docController.parseNodeData(Gr)}}else{var rn=Hr.docTree.mainNodes,nn=Hr.docTree.getNodeLastPath(rn[rn.length-1]);Rr||1!==Hr.docTree.mainNodes.length||(Hr.docTree.mainNodes[0].docId=Vr&&""!==Vr?Vr:Hr.gernerateCode.generateID("DocId"),Gr[0]instanceof qi["a"]&&(Hr.docTree.mainNodes[0].paraNo=Gr[0].paraNo,Hr.docTree.mainNodes[0].styleIndex=Gr[0].styleIndex,Gr.splice(0,1))),Rr&&(Gr[0].printAsSinglePage=Rr,Gr[0].docId=Vr&&""!==Vr?Vr:Hr.gernerateCode.generateID("DocId")),Hr.docTree.curDomRange.setSamePath(nn),Hr.docController.parseNodeData(Gr)}}},{key:"mergeDocs",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr,Dr,Rr,Ur){return regeneratorRuntime.wrap((function _callee$(Hr){while(1)switch(Hr.prev=Hr.next){case 0:return Dr?(this.insertXml(Tr,"header"),this.insertXml(Tr,"footer"),this.insertXml(Tr,"main",Dr,Ur)):this.insertXml(Tr,"main",void 0,Ur),Rr&&Rr(),Hr.abrupt("return",!0);case 3:case"end":return Hr.stop()}}),_callee,this)})));function mergeDocs(Dr,Rr,Ur,Hr){return Tr.apply(this,arguments)}return mergeDocs}()},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.headerNodes[0],Rr=Tr.docTree.getNodeLastPath(Dr[Dr.length-1]),Ur=new yn["a"](this._hoEditorFactoryID,"header/0/0",Rr),Hr=Tr.structureNode.Copy(Ur,null),Wr=this.getSubDocImg(Tr.drawTree.activePageIndex.index,On["a"].hftHead);return[Hr,Wr]}},{key:"insertHeaderJson",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee2(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr;return regeneratorRuntime.wrap((function _callee2$(Qr){while(1)switch(Qr.prev=Qr.next){case 0:return Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=0,Ur=Dr.docTree.headerNodes[Rr],Hr=Dr.docTree.getNodeLastPath(Ur[Ur.length-1]),Wr="header/"+Rr.toString()+"/0",zr=new yn["a"](this._hoEditorFactoryID,Wr,Hr),Qr.next=8,Dr.docController.deleteRange(zr,!0);case 8:for(Dr.docTree.curDomRange.setSamePath(Wr),Vr=Dr.structureNode.Parse(Za.ctJSON,Tr),Vr[0]instanceof qi["a"]&&(Ur[0].paraNo=Vr[0].paraNo,Vr.splice(0,1)),Dr.docController.parseNodeData(Vr),Kr=0;Kr<Dr.docTree.headerNodes.length;Kr++)$r=Dr.docTree.headerNodes[Kr],$r.length>0&&(Dr.drawTree.headerDNodes.length>0&&(Gr=Dr.drawTree.headerDNodes[0],Gr instanceof ua["a"]&&(Gr.dWidth=Gr.paragraphNode.getParagraphLeftWidth()[1]-Gr.paragraphNode.combineParagraph.leftMarginPixes-Gr.paragraphNode.combineParagraph.rightMarginPixes)),Jr=$r[0].getNodePath(),Xr=Dr.docTree.getNodeLastPath($r[$r.length-1]),Yr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,Jr,Xr),Yr.oldEndPath=Xr,Yr.oldDrawLines=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines(Jr,Xr,!0),Dr.docTree.change(Yr),Dr.subDocManger.updateAllSameSubDoc(Kr,On["a"].hftHead,!1,!1));case 13:case"end":return Qr.stop()}}),_callee2,this)})));function insertHeaderJson(Dr){return Tr.apply(this,arguments)}return insertHeaderJson}()},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.footerNodes[0],Rr=Tr.docTree.getNodeLastPath(Dr[Dr.length-1]),Ur=new yn["a"](this._hoEditorFactoryID,"footer/0/0",Rr),Hr=Tr.structureNode.Copy(Ur,null),Wr=this.getSubDocImg(Tr.drawTree.activePageIndex.index,On["a"].hftFoot);return[Hr,Wr]}},{key:"insertFooterJson",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee3(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr;return regeneratorRuntime.wrap((function _callee3$(Xr){while(1)switch(Xr.prev=Xr.next){case 0:return Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.docTree.footerNodes[0],Ur=Dr.docTree.getNodeLastPath(Rr[Rr.length-1]),Hr=new yn["a"](this._hoEditorFactoryID,"footer/0/0",Ur),Xr.next=6,Dr.docController.deleteRange(Hr,!0);case 6:for(Dr.docTree.curDomRange.setSamePath("footer/0/0"),Wr=Dr.structureNode.Parse(Za.ctJSON,Tr),Wr[0]instanceof qi["a"]&&(Rr[0].paraNo=Wr[0].paraNo,Wr.splice(0,1)),Dr.docController.parseNodeData(Wr),zr=0;zr<Dr.docTree.footerNodes.length;zr++)Vr=Dr.docTree.footerNodes[zr],Vr.length>0&&(Dr.drawTree.footerDNodes.length>0&&(Kr=Dr.drawTree.footerDNodes[0],Kr instanceof ua["a"]&&(Kr.dWidth=Kr.paragraphNode.getParagraphLeftWidth()[1]-Kr.paragraphNode.combineParagraph.leftMarginPixes-Kr.paragraphNode.combineParagraph.rightMarginPixes)),$r=Vr[0].getNodePath(),Gr=Dr.docTree.getNodeLastPath(Vr[Vr.length-1]),Jr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,$r,Gr),Jr.oldEndPath=Gr,Jr.oldDrawLines=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines($r,Gr,!0),Dr.docTree.change(Jr),Dr.subDocManger.updateAllSameSubDoc(zr,On["a"].hftFoot,!1,!1));case 11:case"end":return Xr.stop()}}),_callee3,this)})));function insertFooterJson(Dr){return Tr.apply(this,arguments)}return insertFooterJson}()},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.docTree.curDomRange.isEmpty)return"";var Rr=Dr.structureNode.Copy(Dr.docTree.curDomRange,null,Tr);return Rr}},{key:"insertSelectedJson",value:function insertSelectedJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if("object"===Object(Ma["a"])(JSON.parse(Tr))){var Rr=Dr.structureNode.Parse(Za.ctJSON,Tr);Dr.docController.parseNodeData(Rr)}else Dr.docController.keyBoardInput(Tr)}},{key:"openXml",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee4(Tr,Dr,Rr,Ur){var Hr,Wr,zr,Vr,Kr;return regeneratorRuntime.wrap((function _callee4$($r){while(1)switch($r.prev=$r.next){case 0:if(!1!==Ur){$r.next=2;break}return $r.abrupt("return");case 2:if(Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=Hr.docTree.curDomRange,zr=Wr.normalize().startPath,Vr=Wr.normalize().endPath,Kr=new ho["a"](gn["a"].daInsert,zr,Vr,ho["b"].openXml),Hr.openXmled=!0,!Hr.docTree.changing(Kr)){$r.next=15;break}return $r.next=11,Hr.docController.initBlankDoc();case 11:if(Hr.drawTree.inViewPages=[0],!(Tr>"")){$r.next=15;break}return $r.next=15,Hr.structureConvert.openXml(Tr,Dr,Rr);case 15:case"end":return $r.stop()}}),_callee4,this)})));function openXml(Dr,Rr,Ur,Hr){return Tr.apply(this,arguments)}return openXml}()},{key:"getSubDocImg",value:function getSubDocImg(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.subDocManger.getSubDocCopyDrawArea(Tr,Dr);if(Ur&&!Ur.stage&&(Ur=Dr===On["a"].hftHead?Rr.drawTree.drawPages[Tr].drawHeader:Rr.drawTree.drawPages[Tr].drawFooter),Ur&&Ur.stage&&Ur.stage.canvas){var Hr=Math.max(Math.min(Ur.docHeight,Ur.maxHeight),Ur.dHeight)*Dn["a"].instance().scaleXY,Wr=Ur.stage.canvas.getContext("2d");if(Wr){var zr=Wr.getImageData(0,Ur.y*Dn["a"].instance().scaleXY,Rr.pageProperty.widthPixes*Dn["a"].instance().scaleXY,Hr),Vr=document.createElement("canvas");Vr.width=Rr.pageProperty.widthPixes*Dn["a"].instance().scaleXY,Vr.height=Hr;var Kr=Vr.getContext("2d");if(Kr)return Kr.putImageData(zr,0,0),Vr.toDataURL()}}return""}},{key:"getRangeText",value:function getRangeText(Tr){Tr=Tr.normalize();var Dr="",Rr=[],Ur=Tr.npStart.childIndex,Hr=Tr.npEnd.childIndex,Wr=function getNodeText(Tr){var Dr="";return Tr instanceof Xa["a"]&&(Dr=Tr.text),Tr instanceof ei["f"]?Dr=Tr.getFieldText():Tr instanceof En["a"]?Dr=Tr.getCellText():Tr instanceof qi["a"]&&(Dr="\n"),Dr};if(Tr.npStart.node===Tr.npEnd.node)return Dr=Tr.npStart.node instanceof ci["a"]?Tr.npStart.node.text.substring(Ur+1,Hr+1):Wr(Tr.npStart.node),Dr;Rr=yn["a"].getSelectDomNodesForUpdate(this._hoEditorFactoryID,Tr.startPath,Tr.endPath);for(var zr=0;zr<Rr.length;zr++){var Vr=Rr[zr];Vr instanceof ci["a"]?zr===Rr.length-1&&Vr instanceof ci["a"]?Dr+=Vr.text.substring(0,Hr+1):Dr+=Vr.text:Dr+=Wr(Vr)}return Dr}},{key:"deleteNode",value:function deleteNode(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Tr){if(Tr.parentNode&&Tr.parentNode instanceof En["a"]){var Rr=Tr.parentNode.delCellNodeText();if(!Rr)return}if(Tr instanceof En["a"]){var Ur=Tr.delCellNodeText();if(!Ur)return}var Hr=Tr.previousLeaf(),Wr=Dr.docTree.getNodeLastPath(Hr),zr=Dr.docTree.getNodeLastPath(Tr);if(Tr instanceof Wi["a"]){var Vr=Tr.nextLeaf();if(""!==Tr.imgSrc&&Tr.isTemplate&&!(Hr instanceof Wi["a"])&&!(Vr instanceof Wi["a"])){var Kr=new Wi["a"](this._hoEditorFactoryID,Tr.rootNodes,Tr.parentNode,wn["b"].ntSign,0,0,""===Tr.name?"签名":Tr.name,Tr.signType,Tr.signFormat,"","",Tr.signTimeFormat,"",0,0,{},!0,Tr.connectMode,Tr.isFront,Tr.allowEditSignTime);return Dr.undoService.begin(),Dr.undoService.add(new go["a"](this._hoEditorFactoryID,Tr,zr)),Dr.undoService.add(new vo["a"](this._hoEditorFactoryID,Wr,Kr)),void Dr.undoService.commit()}if(Hr instanceof Wi["a"]){if(Dr.drawTree.paintStatus!==mn["b"].psDesign&&Tr.isTemplate)return void Ea.a.alert("该签名元素不允许删除!","系统提示");var $r=Dr.docTree.getNodeLastPath(Hr.previousLeaf()),Gr=new Wi["a"](this._hoEditorFactoryID,Hr.rootNodes,Hr.parentNode,wn["b"].ntSign,1,Hr.type,""===Hr.name?"签名":Hr.name,Hr.signType,Hr.signFormat,Hr.signor,Hr.signTime,Hr.signTimeFormat,Hr.imgSrc,Hr.imgWidth,Hr.imgHeight,Hr.customProperty,Hr.isTemplate,Hr.connectMode,Hr.isFront,Hr.allowEditSignTime);return Dr.undoService.begin(),Dr.undoService.add(new mo["a"](this._hoEditorFactoryID,$r,zr)),Dr.undoService.add(new vo["a"](this._hoEditorFactoryID,$r,Gr)),void Dr.undoService.commit()}}Dr.undoService.begin(),Dr.undoService.add(new go["a"](this._hoEditorFactoryID,Tr)),Dr.undoService.commit(),Dr.drawTree.moveCaretToPath(Wr)}}},{key:"insertSeparateChar",value:function insertSeparateChar(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,Ur=Rr.normalize().startPath,Hr=Rr.normalize().endPath,Wr=new ho["a"](gn["a"].daInsert,Ur,Hr,ho["b"].insertSeparateChar);Tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.changing(Wr)&&Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.insertSeparateChar(Rr,Tr,Dr)}},{key:"textToLabel",value:function textToLabel(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();Dr.isEmpty||Dr.npStart&&Dr.npEnd&&Dr.npStart.node&&Dr.npEnd.node&&Tr.docController.textToLabel(Dr)}},{key:"labelToText",value:function labelToText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.labelToText(Tr)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=[],Rr="",Ur=Tr.docTree.headerNodes,Hr=Tr.docTree.mainNodes,Wr=Tr.docTree.footerNodes,zr=function loopFieldNodes(Tr){for(var Ur=0;Ur<Tr.length;Ur++){var Hr=Tr[Ur],Wr=Hr.dataVerifyFormat;Wr.mustInputValue&&""===Hr.text?(Rr="必须输入,不能为空",Dr.push([Hr,Rr])):Wr.dataFormat===ei["a"].text?(Wr.minLength>0&&Hr.text.length<Wr.minLength&&(Rr="内容不能少于"+Wr.minLength.toString()+"个字符",Dr.push([Hr,Rr])),Wr.maxLength>0&&Hr.text.length>Wr.maxLength&&(Rr="内容不能多于"+Wr.maxLength.toString()+"个字符",Dr.push([Hr,Rr]))):Object(_o["a"])(Hr.text)?Wr.onlyInputInt?Number(Hr.text)%1!==0?(Rr="数值必须为整数",Dr.push([Hr,Rr])):(0!==Wr.maxValue&&Number(Hr.text)>Wr.maxValue&&(Rr="数值不能大于"+Wr.maxValue.toString(),Dr.push([Hr,Rr])),0!==Wr.minValue&&Number(Hr.text)<Wr.minValue&&(Rr="数值不能小于"+Wr.minValue.toString(),Dr.push([Hr,Rr]))):0!==Wr.maxSmallBits&&Hr.text.split(".")[1].length>Wr.maxSmallBits&&(Rr="小数位数不能多于"+Wr.maxSmallBits.toString()+"位",Dr.push([Hr,Rr])):(Rr="内容必须为数值",Dr.push([Hr,Rr]))}},Vr=0;Vr<Ur.length;Vr++){var Kr=Ur[Vr],$r=Kr[0].getNodePath(),Gr=Tr.docTree.getNodeLastPath(Kr[Kr.length-1]),Jr=yn["a"].getRangeTextInputField(this._hoEditorFactoryID,$r,Gr,!1);zr(Jr)}var Xr=Hr[0].getNodePath(),Yr=Tr.docTree.getNodeLastPath(Hr[Hr.length-1]),Qr=yn["a"].getRangeTextInputField(this._hoEditorFactoryID,Xr,Yr,!1);zr(Qr);for(var Zr=0;Zr<Wr.length;Zr++){var en=Wr[Zr],tn=en[0].getNodePath(),rn=Tr.docTree.getNodeLastPath(en[en.length-1]),nn=yn["a"].getRangeTextInputField(this._hoEditorFactoryID,tn,rn,!1);zr(nn)}return Dr}},{key:"insertEmptySignNode",value:function insertEmptySignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Kr=Vr.docTree.curDomRange.normalize(),$r=Kr.normalize().startPath,Gr=Kr.normalize().endPath,Jr=new ho["a"](gn["a"].daInsert,$r,Gr,ho["b"].insertSign);Vr.docTree.changing(Jr)&&Vr.docController.insertEmptySignNode(Kr,Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertSignNode",value:function insertSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Gr=$r.docTree.curDomRange.normalize(),Jr=Gr.normalize().startPath,Xr=Gr.normalize().endPath,Yr=new ho["a"](gn["a"].daInsert,Jr,Xr,ho["b"].insertSign);$r.docTree.changing(Yr)&&$r.docController.insertSignNode(Gr,Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateSignNode",value:function updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.docController.updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateSignTime",value:function updateSignTime(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.updateSignTime(Tr,Dr)}},{key:"forceDelete",value:function forceDelete(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize(),Rr=Dr.startPath,Ur=Dr.endPath;Tr.undoService.begin(),Tr.undoService.add(new mo["a"](this._hoEditorFactoryID,Rr,Ur,!0)),Tr.undoService.commit()}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(Tr,Dr){if(Tr&&Tr instanceof ga["a"]&&Tr.isEditText&&0!==Dr.trim().length){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=Rr.docTree.getNodeLastPath(Tr.previousLeaf()),Hr=Rr.docTree.getNodeLastPath(Tr),Wr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,Ur,Hr);Wr.oldEndPath=Hr,Wr.afterChangePath=Hr,Wr.oldDrawLines=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines(Ur,Hr,!0),Tr.appendText=Dr,Rr.docTree.change(Wr),Rr.drawTree.moveCaretToPath(Hr),Rr.docTree.curDomRange.setSamePath(Hr)}}},{key:"delCurPage",value:function delCurPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages[Tr],Ur=Dr.drawPageTree.drawMainDocs[Tr];Rr&&Ur||Ea.a.alert("删除页的索引传入有误:"+Tr.toString());var Hr,Wr="",zr="";if(Tr===Dr.drawTree.drawPages.length-1&&0!==Tr){var Vr=Dr.drawTree.drawPages[Tr-1],Kr=Dr.drawPageTree.drawMainDocs[Tr-1],$r=Kr.localToGlobal(Dr.pageProperty.widthPixes,Dr.pageProperty.heightPixes);Hr=Dr.drawTree.getStagePosition(Vr,Kr,$r.x,$r.y)}else Hr=Dr.drawTree.getStagePosition(Rr,Ur,0,0);if(Hr){var Gr=Hr.dline;Wr=Gr instanceof ua["a"]?Hr.path:Gr.table.paragraphNode.getNodePath()}var Jr=Ur.localToGlobal(Dr.pageProperty.widthPixes,Dr.pageProperty.heightPixes),Xr=Dr.drawTree.getStagePosition(Rr,Ur,Jr.x,Jr.y);if(Xr){var Yr=Xr.dline;zr=Yr instanceof ua["a"]?Xr.path:Yr.table.getNodePath()}Dr.undoService.begin(),Dr.undoService.add(new mo["a"](this._hoEditorFactoryID,Wr,zr,!0)),Dr.undoService.commit()}},{key:"getMainDocText",value:function getMainDocText(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.mainNodes,Rr="",Ur=function loopChildNodes(Tr){Tr.forEach((function(Tr){Tr instanceof ci["a"]||Tr instanceof Xa["a"]?Rr+=Tr.text:Tr instanceof Va["a"]?loopChildNodes(Tr.childNodes):Tr instanceof qi["a"]&&(Rr+="\n")}))};return Ur(Dr),Rr=Rr.replace(/</g,"&lt;"),Rr=Rr.replace(/>/g,"&gt;"),Rr=Rr.replace(/&/g,"&amp;"),Rr=Rr.replace(/\'/g,"&#39;"),Rr=Rr.replace(/\"/g,"&quot;"),Rr}},{key:"cancelDel",value:function cancelDel(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize(),Rr=Dr.startPath,Ur=Dr.endPath,Hr=yn["a"].getSelectDomNodes(this._hoEditorFactoryID,Rr,Ur,!0),Wr=Object(oa["a"])(Hr,3),zr=Wr[0],Vr=(Wr[1],Wr[2],zr.length-1);Vr>=0;Vr--){var Kr=zr[Vr];if(Kr instanceof ci["a"]){var $r=Tr.docTree.styles[Kr.styleIndex];$r=$r||Tr.docTree.styles[0],void 0!==$r.deleterIndex&&-1!==$r.deleterIndex&&($r.deleterIndex=-1,$r.strikeout=!1,Kr.styleIndex=Tr.docTree.styleCompare($r))}}var Gr=new Ya["a"](this._hoEditorFactoryID).getRangeDrawLines(Rr,Ur,!0),Jr=new qa["a"](this._hoEditorFactoryID,gn["a"].daModifyStyle,Rr,Ur);Jr.oldEndPath=Ur,Jr.oldDrawLines=Gr,Tr.docTree.change(Jr)}},{key:"isModifyDoc",value:function isModifyDoc(){var Tr=!0,Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.lastSaveTime,Ur=Dr.undoService.stack;if(Ur.length>0){var Hr=Ur[Ur.length-1],Wr=Hr.undoUnits,zr=Wr[Wr.length-1];Tr=zr.opTime!==Rr}else Tr=!1;return Tr}},{key:"getAllElements",value:function getAllElements(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=[],Rr=function getAllNodes(Tr){for(var Rr=0;Rr<Tr.length;Rr++){var Ur=Tr[Rr];if(Ur instanceof ei["f"]||Ur instanceof Qn["a"]||Ur instanceof Yn["a"]){var Hr={id:"",name:"",text:"",dataVerify:void 0,innerIdentifier:"",identifierFormat:""};Hr.id=Ur.id,Hr.name=Ur.name,Hr.text=Ur.text,Hr.innerIdentifier=Ur.innerIdentifier,Hr.identifierFormat=Ur.identifierFormat,Hr.customProperty=Ur.customProperty,Dr.push(Hr)}Ur instanceof Va["a"]&&getAllNodes(Ur.childNodes)}},Ur=Tr.docTree.headerNodes,Hr=0;Hr<Ur.length;Hr++)Ur[Hr]&&Rr(Ur[Hr]);var Wr=Tr.docTree.mainNodes;Rr(Wr);for(var zr=Tr.docTree.footerNodes,Vr=0;Vr<zr.length;Vr++)zr[Vr]&&Rr(zr[Vr]);return Dr}},{key:"getSysElements",value:function getSysElements(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=[],Rr=[],Ur=[],Hr=function getAllNodes(Tr,Dr){for(var Rr=0;Rr<Tr.length;Rr++){var Ur=Tr[Rr];if((Ur instanceof Qn["a"]||Ur instanceof Yn["a"]||Ur instanceof ei["f"]&&0===Ur.childNodes.filter((function(Tr){return Tr instanceof ei["f"]})).length)&&1===Ur.readType){var Hr={id:"",name:"",text:"",json:"",innerIdentifier:"",controlStyle:""};Hr.id=Ur.id,Hr.name=Ur.name,Hr.text=Ur.text,Hr.innerIdentifier=Ur.innerIdentifier,Ur instanceof Yn["a"]&&(Hr.controlStyle=Ur.controlStyle),Dr.push(Hr)}Ur instanceof Va["a"]&&getAllNodes(Ur.childNodes,Dr)}},Wr=Tr.docTree.headerNodes,zr=0;zr<Wr.length;zr++)Wr[zr]&&Hr(Wr[zr],Dr);var Vr=Tr.docTree.mainNodes;Hr(Vr,Rr);for(var Kr=Tr.docTree.footerNodes,$r=0;$r<Kr.length;$r++)Kr[$r]&&Hr(Kr[$r],Ur);return{header:Dr,main:Rr,footer:Ur}}},{key:"updateElementById",value:function updateElementById(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=this.getNodeByID("all",Tr);if(!Ur)throw new Error("根据元素id:"+Tr+"未找到对应的元素");if(!(Ur instanceof ei["f"]||Ur instanceof Yn["a"]||Ur instanceof Qn["a"]))throw new Error("根据元素id:"+Tr+"定位到的元素非可回填元素");var Hr=Rr.docTree.getNodeLastPath(Ur.previousLeaf()),Wr=Ur;Ur instanceof ei["f"]&&(Wr=ei["f"].json2Node(this._hoEditorFactoryID,Dr,Ur.rootNodes,Ur.parentNode)),Ur instanceof Yn["a"]&&(Wr=Yn["a"].json2Node(this._hoEditorFactoryID,Dr,Ur.rootNodes,Ur.parentNode)),Ur instanceof Qn["a"]&&(Wr=Qn["a"].json2Node(this._hoEditorFactoryID,Dr,Ur.rootNodes,Ur.parentNode)),Ur.isAllowDelete=!0,Rr.undoService.begin(),Rr.undoService.add(new go["a"](this._hoEditorFactoryID,Ur,Hr,"update")),Rr.undoService.add(new vo["a"](this._hoEditorFactoryID,Hr,Wr)),Rr.undoService.commit();var zr=Rr.docTree.getNodeLastPath(Wr);Rr.drawTree.moveCaretToPath(zr)}},{key:"updateElementText",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee5(Tr,Dr,Rr){var Ur;return regeneratorRuntime.wrap((function _callee5$(Hr){while(1)switch(Hr.prev=Hr.next){case 0:if(Ur=this.getNodeByID(Tr,Dr),!Ur){Hr.next=21;break}if(!(Ur instanceof Yn["a"]||Ur instanceof Qn["a"]||Ur instanceof ei["f"])){Hr.next=18;break}if(1!==Ur.readType){Hr.next=15;break}if(!(Ur instanceof ei["f"])){Hr.next=7;break}return Hr.next=7,Ur.setFieldText(Rr);case 7:if(!(Ur instanceof Yn["a"])){Hr.next=10;break}return Hr.next=10,Ur.setDateTimeText(Rr);case 10:if(!(Ur instanceof Qn["a"])){Hr.next=13;break}return Hr.next=13,Ur.setDownListText(Rr);case 13:Hr.next=16;break;case 15:throw new Error("根据元素id:"+Dr+"定位到的元素非可回填元素");case 16:Hr.next=19;break;case 18:throw new Error("根据元素id:"+Dr+"定位到的元素非可回填元素");case 19:Hr.next=22;break;case 21:throw new Error("根据元素id:"+Dr+"未找到对应的元素");case 22:case"end":return Hr.stop()}}),_callee5,this)})));function updateElementText(Dr,Rr,Ur){return Tr.apply(this,arguments)}return updateElementText}()},{key:"updateFirstPageHeader",value:function updateFirstPageHeader(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.drawPageTree.drawHeaders[0];Tr.subDocManger.updateAllSameSubDoc(Dr.index,On["a"].hftHead,!1,!1)}},{key:"rebuildArea",value:function rebuildArea(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.drawTree.rebuildArea(Tr,Dr,Rr)}},{key:"getUserInfoes",value:function getUserInfoes(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).userInfo}},{key:"hoLocalStorage",value:function hoLocalStorage(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).hoLocalStorage}},{key:"redrawPage",value:function redrawPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr>=0&&Tr<Dr.drawTree.drawPages.length&&Dr.drawPageTree.updateDrawPage(Tr)}},{key:"createPNG",value:function createPNG(){var Tr=this,Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.drawPages,Ur=document.createElement("div");Ur.id="hoImageFileBox",Rr.forEach((function(Tr){var Dr;Tr.drawDomLevel&&!Tr.drawDomLevel.stage&&(Tr.drawDomLevel.bindStage(),Tr.needUpdateStage=!0),Tr.needUpdateStage&&Tr.drawDomLevel&&Tr.drawDomLevel.stage&&(Tr.drawDomLevel.stage.update(),Tr.needUpdateStage=!1);var Rr=document.createElement("img"),Hr=null===(Dr=Tr.drawDomLevel)||void 0===Dr?void 0:Dr.domCanvas;Rr.src=Hr.toDataURL("image/jpeg",1),Ur.appendChild(Rr)})),Ur.id="hoImageFileBox";var Hr=document.createElement("button");Hr.id="hoDownLoadImageBtn",Hr.style.position="fixed",Hr.style.left="20px",Hr.style.top="200px",Hr.style.padding="10px 20px",Hr.style.background="#f2f4f7",Hr.style.border="none",Hr.style.outline="none",document.body.appendChild(Hr),document.body.appendChild(Ur),document.querySelector("#hoDownLoadImageBtn").onclick=function(){Tr.downLoadPNGHTML()}}},{key:"createPDF",value:function createPDF(){var Tr=this,Dr=document.createElement("button");Dr.id="hoDownLoadPDFBtn",Dr.style.position="fixed",Dr.style.left="20px",Dr.style.top="300px",Dr.style.padding="10px 20px",Dr.style.background="transparent",Dr.style.border="none",Dr.style.outline="none",document.body.appendChild(Dr),document.querySelector("#hoDownLoadPDFBtn").onclick=function(){Tr.saveAsPDF()}}},{key:"downLoadPNGHTML",value:function downLoadPNGHTML(){var Tr=document.querySelector("#hoImageFileBox"),Dr=this.getDocTitle()?this.getDocTitle():"电子病历文档",Rr='\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <style>\n body, html {\n margin: 0;\n background: #f2f4f7;\n text-align: center;\n }\n img {\n margin: 10px auto;\n display: block;\n border: 0;\n box-shadow: rgb(158 161 165 / 40%) 0px 2px 12px 0px;\n }\n </style>\n </head>\n <body>'.concat(null===Tr||void 0===Tr?void 0:Tr.innerHTML,"</body>\n </html>\n "),Ur=window.URL.createObjectURL(new Blob([Rr],{type:"text/html"})),Hr=document.createElement("a");Hr.style.display="none",Hr.href=Ur,Hr.setAttribute("download",Dr+".html"),document.body.appendChild(Hr),Hr.click(),setTimeout((function(){Hr.remove(),document.body.removeChild(Tr),document.body.removeChild(document.querySelector("#hoDownLoadImageBtn"))}),300)}},{key:"moveCaretToElement",value:function moveCaretToElement(Tr,Dr){var Rr=this.getNodeByID(Tr,Dr);if(Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.docTree.curDomRange,Wr=Ur.docTree.getNodeLastPath(Rr.previousLeaf()),zr=Ur.docTree.getNodeLastPath(Rr),Vr=zr;Rr instanceof ei["f"]&&(Wr=Ur.docTree.getNodeLastPath(Rr.childNodes[0]),zr=Ur.docTree.getNodeLastPath(Rr.childNodes[Rr.childNodes.length-1].previousLeaf()),Vr=Rr.childNodes[1]instanceof li["a"]?Wr:zr),Ur.drawTree.moveCaretToPath(Vr);var Kr=new yn["a"](this.hoEditorFactoryID,Wr,zr);Ur.docTree.curDomRange=Kr;var $r=new vn["a"](Hr,Kr);Ur.docTree.selectChange($r)}}}]),VueController}(),xo=function(){function BaseController(Tr){Object(Xr["a"])(this,BaseController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(BaseController,[{key:"unDoOperate",value:function unDoOperate(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.unDoOperate()}},{key:"reDoOperate",value:function reDoOperate(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.reDoOperate()}},{key:"setUserLoginInfo",value:function setUserLoginInfo(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.setUserLoginInfo(Tr,Dr,Rr,Ur)}},{key:"setEditorStatus",value:function setEditorStatus(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.setEditorStatus(Tr,Dr)}},{key:"generateID",value:function generateID(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.vueController.generateID(Tr)}},{key:"rebuildAll",value:function rebuildAll(Tr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(Tr)}},{key:"getTextStyles",value:function getTextStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.docTree.styles}},{key:"getParaStyles",value:function getParaStyles(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.docTree.paragraphs}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.docController.getRedrawObject(Tr,Dr,gn["a"].daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.modifyRedraw(Tr,Dr)}},{key:"deleteRedraw",value:function deleteRedraw(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.deleteRedraw(Tr)}},{key:"insertRedraw",value:function insertRedraw(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.docController.insertRedraw(Tr,Dr)}},{key:"fullRedraw",value:function fullRedraw(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.drawTree.rebuildAllDrawLine(!1)}},{key:"copy",value:function copy(){}}]),BaseController}(),Co=function(){function DomController(Tr){Object(Xr["a"])(this,DomController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(DomController,[{key:"newFile",value:function newFile(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.newFile(Tr)}},{key:"openLocalFiles",value:function openLocalFiles(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.openLocalFiles(Tr,Dr)}},{key:"saveAsFile",value:function saveAsFile(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.vueController.saveAsFile(Tr);return Rr}},{key:"setPageProperty",value:function setPageProperty(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.setPageProperty(Tr)}},{key:"getPageProperty",value:function getPageProperty(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.vueController.pageProperty()}},{key:"openLocalFilesTest",value:function openLocalFilesTest(Tr,Dr){Tn["a"].instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc(),Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.openFile(Tr,Dr,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=JSON.parse(JSON.stringify(Tr));Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(Dr)}},{key:"getDocXml",value:function getDocXml(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.vueController.saveAsFile("xml");return Dr}},{key:"getDocJson",value:function getDocJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(Tr);return Dr}},{key:"iteratesDocTree",value:function iteratesDocTree(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.iteratesDocTree(Tr)}},{key:"insertText",value:function insertText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.keyBoardInput(Tr)}},{key:"deleteRange",value:function deleteRange(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.deleteRange(Tr,!1)}},{key:"insertXml",value:function insertXml(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertXml(Tr,"main")}},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.vueController.saveHeaderAsJson();return Dr[0]}},{key:"insertHeaderJson",value:function insertHeaderJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertHeaderJson(Tr)}},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.vueController.saveFooterAsJson();return Dr[0]}},{key:"insertFooterJson",value:function insertFooterJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertFooterJson(Tr)}},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.vueController.saveSelectedAsJson(Tr);return Rr}},{key:"insertSelectedJson",value:function insertSelectedJson(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertSelectedJson(Tr)}},{key:"openXml",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr,Dr){var Rr;return regeneratorRuntime.wrap((function _callee$(Ur){while(1)switch(Ur.prev=Ur.next){case 0:if(void 0!==Dr&&!0!==Dr){Ur.next=4;break}return Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur.next=4,Rr.vueController.openXml(Tr,void 0,void 0,Dr);case 4:case"end":return Ur.stop()}}),_callee,this)})));function openXml(Dr,Rr){return Tr.apply(this,arguments)}return openXml}()},{key:"mergeDocs",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee2(Tr,Dr){var Rr,Ur;return regeneratorRuntime.wrap((function _callee2$(Hr){while(1)switch(Hr.prev=Hr.next){case 0:return Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr.next=3,Rr.vueController.mergeDocs(Tr,Dr);case 3:return Ur=Hr.sent,Hr.abrupt("return",Ur);case 5:case"end":return Hr.stop()}}),_callee2,this)})));function mergeDocs(Dr,Rr){return Tr.apply(this,arguments)}return mergeDocs}()},{key:"loadFileList",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee3(Tr){var Dr,Rr;return regeneratorRuntime.wrap((function _callee3$(Ur){while(1)switch(Ur.prev=Ur.next){case 0:Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=0;case 2:if(!(Rr<Tr.length)){Ur.next=13;break}if(0!=Rr){Ur.next=8;break}return Ur.next=6,Dr.vueController.openXml(Tr[Rr].xml);case 6:Ur.next=10;break;case 8:return Ur.next=10,this.mergeDocs(Tr[Rr].xml,Tr[Rr].isMerge);case 10:Rr++,Ur.next=2;break;case 13:case"end":return Ur.stop()}}),_callee3,this)})));function loadFileList(Dr){return Tr.apply(this,arguments)}return loadFileList}()},{key:"getLogs",value:function getLogs(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.undoService.getModifyHistory()}},{key:"registOnNodeInsertByID",value:function registOnNodeInsertByID(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docController.onInsertNodeByID=Tr}},{key:"delCurPage",value:function delCurPage(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.delCurPage(Tr)}},{key:"isModifyDoc",value:function isModifyDoc(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.vueController.isModifyDoc()}}]),DomController}(),Po=function(){function EditController(Tr){Object(Xr["a"])(this,EditController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(EditController,[{key:"fontFormat",value:function fontFormat(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontFormat(Tr)}},{key:"fontSize",value:function fontSize(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontSize(Tr)}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.fontSizeEnlarge()}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.fontSizeDecrease()}},{key:"fontSuperScript",value:function fontSuperScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontSuperScript(Tr)}},{key:"fontSubScript",value:function fontSubScript(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontSubScript(Tr)}},{key:"fontBold",value:function fontBold(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontBold(Tr)}},{key:"fontItalic",value:function fontItalic(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontItalic(Tr)}},{key:"fontUnderline",value:function fontUnderline(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontUnderline(Tr)}},{key:"fontStrikeout",value:function fontStrikeout(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontStrikeout(Tr)}},{key:"fontColor",value:function fontColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontColor(Tr)}},{key:"fontBackColor",value:function fontBackColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.fontBackColor(Tr)}},{key:"alignedLeft",value:function alignedLeft(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedLeft()}},{key:"alignedCenter",value:function alignedCenter(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedCenter()}},{key:"alignedRight",value:function alignedRight(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedRight()}},{key:"alignedBothEnds",value:function alignedBothEnds(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.alignedBothEnds()}},{key:"addIndent",value:function addIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.addIndent()}},{key:"decreaseIndent",value:function decreaseIndent(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.decreaseIndent()}},{key:"setLineHeight",value:function setLineHeight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.setLineHeight(Tr)}},{key:"find",value:function find(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.vueController.find(Tr,Dr,Rr);return Hr}},{key:"replace",value:function replace(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);zr.vueController.replace(Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertHtmlText",value:function insertHtmlText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertHtmlText(Tr)}},{key:"clearUndos",value:function clearUndos(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.undoService.clear()}},{key:"editKeyCopy",value:function editKeyCopy(Tr){if(Tr&&Tr.clipboardData){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.docTree.curDomRange.isEmpty||Dr.structureNode.Copy(Dr.docTree.curDomRange,Tr.clipboardData,void 0,"copy"),Tr.preventDefault()}}},{key:"editKeyPaste",value:function editKeyPaste(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Dr.drawTree.paintStatus!==mn["b"].psReadOnly&&Dr.drawTree.paintStatus!==mn["b"].psPreview&&Dr.drawTree.paintStatus!==mn["b"].psPrint){var Rr=Dr.docTree.curDomRange.startPath,Ur=Dr.docTree.getParentNode(Rr);if(!(Ur instanceof ei["f"])||Ur.canModifyContent){var Hr,Wr="",zr="",Vr="";if(Tr instanceof DataTransfer&&(Wr=Tr.getData("application/json"),zr=Tr.getData("text/html"),Vr=Tr.getData("text/plain")),Hr=Wr&&Dr.drawTree.paintStatus===mn["b"].psDesign?Dr.structureNode.Parse(Za.ctJSON,Wr):zr?Dr.structureNode.Parse(Za.ctHTML,zr):Dr.structureNode.Parse(Za.ctText,Vr),!Dr.pasteBase)for(var Kr=0;Kr<Hr.length;Kr++){var $r=Hr[Kr];($r instanceof qi["a"]||$r instanceof ci["a"]||$r instanceof li["a"]||$r instanceof Xa["a"])&&($r.styleIndex=Dr.docTree.curStyleIndex)}Dr.docController.parseNodeData(Hr)}}}}]),EditController}(),Eo=function(){function ElementController(Tr){Object(Xr["a"])(this,ElementController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(ElementController,[{key:"findNodebyPath",value:function findNodebyPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Dr.vueController.findNodebyPath(Tr)}},{key:"getNodeByID",value:function getNodeByID(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Rr.vueController.getNodeByID(Tr,Dr)}},{key:"getNodesByName",value:function getNodesByName(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Ur.vueController.getNodesByName(Tr,Dr,Rr)}},{key:"getTextInputFieldValue",value:function getTextInputFieldValue(Tr){var Dr=Tr.getFieldText();return Dr}},{key:"getCellText",value:function getCellText(Tr){var Dr=Tr.getCellText();return Dr}},{key:"updateTextInputFieldValue",value:function updateTextInputFieldValue(Tr,Dr,Rr,Ur){var Hr=Promise.resolve();Hr=Hr.then((function(Hr){return new Promise(function(){var Hr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Hr){return regeneratorRuntime.wrap((function _callee$(Wr){while(1)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Tr.setFieldText(Dr,Rr,Ur);case 2:Hr();case 3:case"end":return Wr.stop()}}),_callee)})));return function(Tr){return Hr.apply(this,arguments)}}())}))}},{key:"updateCellText",value:function updateCellText(Tr,Dr){Tr.setCellText(Dr)}},{key:"updateDateTimeText",value:function updateDateTimeText(Tr,Dr){Tr.setDateTimeText(Dr)}},{key:"updateDownListText",value:function updateDownListText(Tr,Dr){Tr.setDownListText(Dr)}},{key:"deleteNode",value:function deleteNode(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.deleteNode(Tr)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.vueController.verifyTextFieldsDataFormat()}},{key:"getAllElementNodes",value:function getAllElementNodes(){for(var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.headerNodes,Rr=Tr.docTree.mainNodes,Ur=Tr.docTree.footerNodes,Hr=new Array,Wr=0;Wr<Dr.length;Wr++){var zr=Dr[Wr],Vr=zr[0].getNodePath(),Kr=Tr.docTree.getNodeLastPath(zr[zr.length-1]);Hr=Hr.concat(yn["a"].getElementNode(this._hoEditorFactoryID,Vr,Kr,!0))}var $r=Rr[0].getNodePath(),Gr=Tr.docTree.getNodeLastPath(Rr[Rr.length-1]);Hr=Hr.concat(yn["a"].getElementNode(this._hoEditorFactoryID,$r,Gr,!0));for(var Jr=0;Jr<Ur.length;Jr++){var Xr=Ur[Jr],Yr=Xr[0].getNodePath(),Qr=Tr.docTree.getNodeLastPath(Xr[Xr.length-1]);Hr=Hr.concat(yn["a"].getElementNode(this._hoEditorFactoryID,Yr,Qr,!0))}return Hr}},{key:"insertSignNode",value:function insertSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.insertSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateSignNode",value:function updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.updateSignNode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"forceDelete",value:function forceDelete(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.forceDelete()}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(Tr,Dr){if(Tr&&Tr instanceof ga["a"]&&Tr.isEditText&&0!==Dr.trim().length){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.editRadioCheckBoxText(Tr,Dr)}}},{key:"getAllElements",value:function getAllElements(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.getAllElements()}},{key:"updateElementById",value:function updateElementById(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.updateElementById(Tr,Dr)}},{key:"moveCaretToElement",value:function moveCaretToElement(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.moveCaretToElement(Tr,Dr)}}]),ElementController}(),So=function(){function NodeController(Tr){Object(Xr["a"])(this,NodeController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(NodeController,[{key:"insertMenstrualHistory",value:function insertMenstrualHistory(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Wr.vueController.insertMenstrualHistory("add",Tr,Dr,Rr,Ur,Hr)}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(Tr,Dr,Rr,Ur,Hr){var Wr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Wr.vueController.updateMenstrualHistory(Tr,Dr,Rr,Ur,Hr)}},{key:"insertPupilMap",value:function insertPupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.insertPupilMap("add",Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"updatePupilMap",value:function updatePupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.updatePupilMap(Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertLightLocation",value:function insertLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.insertLightLocation("add",Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"updateLightLocation",value:function updateLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr){var $r=Tn["a"].instance().getFactory(this._hoEditorFactoryID);$r.vueController.updateLightLocation(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);zr.vueController.insertFetalHeartMap("add",Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr){var zr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);zr.vueController.updateFetalHeartMap(Tr,Dr,Rr,Ur,Hr,Wr)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.insertPermanentTeethMap("add",Tr,Dr,Rr,Ur)}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.updatePermanentTeethMap(Tr,Dr,Rr,Ur)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.insertPrimaryTeethMap("add",Tr,Dr,Rr,Ur)}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(Tr,Dr,Rr,Ur){var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Hr.vueController.updatePrimaryTeethMap(Tr,Dr,Rr,Ur)}},{key:"insertTextInputField",value:function insertTextInputField(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.vueController.insertTextInputField("add",Tr);return Rr}},{key:"updateTextInputField",value:function updateTextInputField(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.updateTextInputField(Tr)}},{key:"insertImage",value:function insertImage(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.vueController.insertImage(Tr,Dr,Rr)}},{key:"insertBarcode",value:function insertBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.insertBarcode("add",Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"updateBarcode",value:function updateBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr){var Vr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Vr.vueController.updateBarcode(Tr,Dr,Rr,Ur,Hr,Wr,zr)}},{key:"insertQrcode",value:function insertQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr){var Yr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Yr.vueController.insertQrcode("add",Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr)}},{key:"updateQrcode",value:function updateQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr){var Yr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Yr.vueController.updateQrcode(Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertRadioAndCheckBox("add",Tr)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.updateRadioAndCheckBox(Tr)}},{key:"insertDateTime",value:function insertDateTime(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertDateTime("add",Tr)}},{key:"updateDateTime",value:function updateDateTime(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.updateDateTime(Tr)}},{key:"insertDownList",value:function insertDownList(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.insertDownList("add",Tr,Dr)}},{key:"updateDownList",value:function updateDownList(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.updateDownList(Tr,Dr)}},{key:"insertSpecialChars",value:function insertSpecialChars(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertSpecialChars("add",Tr)}},{key:"insertPageNum",value:function insertPageNum(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.vueController.insertPageNum("add",Tr,Dr,Rr)}},{key:"insertSeparateChar",value:function insertSeparateChar(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.insertSeparateChar(Tr,Dr)}}]),NodeController}(),To=(Rr("be4f"),Rr("896a")),ko=Rr.n(To),Oo=Rr("8baf"),Io=function(){function PrintController(Tr){Object(Xr["a"])(this,PrintController),this._viewXmlList=[],this._xmlIndex=0,this._isSetFont=!1,this._isFont=!1,this._waitPrint=!1,this._waitSavepdf=!1,this._hoEditorFactoryID=Tr}return Object(Yr["a"])(PrintController,[{key:"setjsPDFFonts",value:function setjsPDFFonts(Tr){this._isSetFont=!0,Oo["d"].API.events.push(["addFonts",function(){this.addFileToVFS("SimSun-normal.ttf",Tr),this.addFont("SimSun-normal.ttf","SimSun","normal")}]),this._waitPrint&&(Ea.a.close(),this.printPromisePDF()),this._waitSavepdf&&this.saveAsPDF()}},{key:"saveAsPDF",value:function saveAsPDF(Tr,Dr){var Rr=this;if(this._isSetFont){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Dr||"pdf",Wr=Tr||(Ur.vueController.getDocTitle()?Ur.vueController.getDocTitle():"电子病历文档"),zr=Ur.drawTree.paintStatus,Vr=Ur.vueController.getDocXml(),Kr=Promise.resolve();Kr=Kr.then((function(){return new Promise((function(Tr){Ur.printStatus.printMode=0,Ur.drawTree.paintStatus=mn["b"].psPreview,Ur.drawTree.rebuildAllDrawLine(!1,Tr)}))})),Kr=Kr.then((function(){return new Promise((function(Tr){var Dr=Ur.pageProperty.widthMm>Ur.pageProperty.heightMm?"l":"p",zr={orientation:Dr,unit:"px",format:[Ur.pageProperty.widthPixes,Ur.pageProperty.heightPixes],hotfixes:["px_scaling"]},Vr=new Oo["d"](zr);Vr.setFont("SimSun"),xn["a"].printToPDF(Rr._hoEditorFactoryID,Vr,Hr,Wr,Tr)}))})),Kr.then((function(Tr){Ur.drawTree.paintStatus=zr,Ur.vueController.openXml(Vr)}))}else this._waitSavepdf=!0}},{key:"printPromisePDF",value:function printPromisePDF(Tr,Dr,Rr){var Ur=this;if(!this._isSetFont)return this._waitPrint=!0,void Ea.a.alert("<p>打印所需文件正在加载中,请稍候</p><p>加载完成后会自动进行打印</p>","提示",{iconClass:"el-icon-loading",center:!0,showConfirmButton:!1,dangerouslyUseHTMLString:!0});var Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);if(Hr.isHideComments||Hr.vueController.hideComments(!0),void 0==Tr&&(Tr=Hr.drawTree.paintStatus),Dr&&Rr){var Wr=Rr.replace(/\s*/g,"").replace(/[^\d]/g,",").split(","),zr=Hr.drawTree.drawPages.length,Vr=Wr.filter((function(Tr){return Tr&&Number(Tr)>zr}));if(Vr.length>0)return"指定页输入超出文档页范围"}var Kr=new Promise((function(Tr,Ur){try{Hr.printStatus.printMode=Dr||0,3===Dr&&Rr&&(Hr.printStatus.printAppoint=Rr),Hr.drawTree.paintStatus=mn["b"].psPreview,Hr.drawTree.rebuildAllDrawLine(!1,Tr)}catch(Wr){Ur(!1)}}));Kr.then((function(Tr){if(Tr)return new Promise((function(Tr,Dr){var Rr=Hr.pageProperty.widthMm>Hr.pageProperty.heightMm?"l":"p",Wr={orientation:Rr,unit:"px",format:[Hr.pageProperty.widthPixes,Hr.pageProperty.heightPixes],hotfixes:["px_scaling"]},zr=new Oo["d"](Wr);zr.setFont("SimSun"),xn["a"].printToPDF(Ur._hoEditorFactoryID,zr,void 0,void 0,Tr)}))})).then((function(Dr){"printend"===Dr&&(Hr.drawTree.paintStatus=Tr,Hr.printStatus.printRange=2,Hr.printStatus.drawPrintRecord.clear(),Hr.printStatus.clearArea(),Hr.vueController.rebuildAll(!1))}))}},{key:"printToPDF",value:function printToPDF(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return xn["a"].printToPDF(this._hoEditorFactoryID),Tr.printStatus.printRecord.last()}},{key:"setDocStartInfo",value:function setDocStartInfo(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.startPageNum=Tr,Rr.firstPageStartTop=Dr,Rr.drawTree.rebuildAllDrawLine(!1)}},{key:"setEditorStatus",value:function setEditorStatus(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.printStatus.printRange=Tr}},{key:"mergeXmlToPrintPDF",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee2(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r=this;return regeneratorRuntime.wrap((function _callee2$(Jr){while(1)switch(Jr.prev=Jr.next){case 0:return Dr=Tr.xmlList,Rr=Tr.positionY,Ur=Tr.pageNum,Hr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Wr=Hr.drawTree.paintStatus,zr=Hr.vueController.getDocXml(),Hr.isHideComments||Hr.vueController.hideComments(!0),Hr.printStatus.printMode=0,Hr.drawTree.paintStatus=mn["b"].psPreview,Vr=Promise.resolve(),Dr.forEach((function(Tr,Dr){Vr=Vr.then((function(Rr){return new Promise((function(Rr){0===Dr?(void 0!==Ur&&(Hr.startPageNum=Ur),Promise.all([Hr.vueController.openXml(Tr.xml,void 0,!0)]).then((function(){0===Hr.loadImageCount?(Rr(),Hr.loadImageCallback=null):Hr.loadImageCallback=Rr}))):Promise.all([Hr.vueController.mergeDocs(Tr.xml,Tr.isMerge,void 0,!0)]).then((function(){0===Hr.loadImageCount?(Rr(),Hr.loadImageCallback=null):Hr.loadImageCallback=Rr}))}))}))})),Vr=Vr.then((function(){return new Promise(function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee(Tr){var Dr,Ur,Wr;return regeneratorRuntime.wrap((function _callee$(zr){while(1)switch(zr.prev=zr.next){case 0:Dr=Hr.pageProperty.widthMm>Hr.pageProperty.heightMm?"l":"p",Ur={orientation:Dr,unit:"px",format:[Hr.pageProperty.widthPixes,Hr.pageProperty.heightPixes],hotfixes:["px_scaling"]},Wr=new Oo["d"](Ur),Wr.setFont("SimSun"),xn["a"].printToPDF($r._hoEditorFactoryID,Wr,void 0,void 0,Tr,Rr);case 5:case"end":return zr.stop()}}),_callee)})));return function(Dr){return Tr.apply(this,arguments)}}())})),Jr.next=14,Vr.then((function(Tr){return new Promise((function(Tr){var Dr,Ur=Hr.printStatus.printRecord.last(),Vr=Hr.drawTree.drawPages[Hr.startPageNum],Kr=Vr.drawMainDoc.dHeight,$r=Vr.drawHeader.dHeight,Jr=0;Jr=Kr+$r-Rr<Hr.defaultLineHeight?Hr.startPageNum+1:Hr.startPageNum,Ur&&(Dr=[Jr].concat(Object(Gr["a"])(Ur))),Hr.drawTree.paintStatus=Wr,Hr.printStatus.drawPrintRecord.Position=[0,0],Hr.startPageNum=0,Hr.firstPageStartTop=0,Hr.vueController.openXml(zr),Tr(Dr)}))}));case 14:if(Kr=Jr.sent,!Kr){Jr.next=17;break}return Jr.abrupt("return",{startPageNum:Kr[0],pageNum:Kr[1],positionY:Kr[2]});case 17:return Jr.abrupt("return",null);case 18:case"end":return Jr.stop()}}),_callee2,this)})));function mergeXmlToPrintPDF(Dr){return Tr.apply(this,arguments)}return mergeXmlToPrintPDF}()},{key:"pintAllToPDF",value:function(){var Tr=Object(_n["a"])(regeneratorRuntime.mark((function _callee3(Tr){var Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr=this;return regeneratorRuntime.wrap((function _callee3$(Jr){while(1)switch(Jr.prev=Jr.next){case 0:Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Rr=Dr.drawTree.paintStatus,Ur=Dr.vueController.getDocXml(),Dr.isHideComments||Dr.vueController.hideComments(!0),Dr.printStatus.printMode=0,Dr.drawTree.paintStatus=mn["b"].psPreview,Hr=-1,zr=ko.a.service({target:"ho-docs",spinner:"el-icon-loading",background:"rgba(246, 246, 246, 1)",text:"准备打印中"}),Vr=function callback(Tr){zr.text="正在加载病历文件:"+Tr.text},Kr=function toPrint(Tr){xn["a"].printAllXml(Gr._hoEditorFactoryID,$r,Wr)},$r=function createSvg(){if(Hr++,Hr<=Tr.length-1)Promise.all([Dr.vueController.openXml(Tr[Hr],Vr)]).then((function(){if(0===Hr){var Tr=Dr.pageProperty.widthMm>Dr.pageProperty.heightMm?"l":"p",Rr={orientation:Tr,unit:"px",format:[Dr.pageProperty.widthPixes,Dr.pageProperty.heightPixes],hotfixes:["px_scaling"]};Wr=new Oo["d"](Rr),Wr.setFont("SimSun")}0===Dr.loadImageCount?(Kr(),Dr.loadImageCallback=null):Dr.loadImageCallback=Kr}));else{zr&&zr.close(),Dr.drawTree.paintStatus=Rr,Dr.vueController.openXml(Ur),Wr.deletePage(1);var $r=Dr.vueController.getDocTitle()?Dr.vueController.getDocTitle():"电子病历文档";xn["a"].openDataUriInWindow(Wr,$r,Dr.pageProperty.widthPixes)}},$r();case 12:case"end":return Jr.stop()}}),_callee3,this)})));function pintAllToPDF(Dr){return Tr.apply(this,arguments)}return pintAllToPDF}()},{key:"viewAll",value:function viewAll(Tr){var Dr,Rr=this,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.printStatus.printMode=0,Ur.drawTree.paintStatus=mn["b"].psPreview,Ur.continuousView.status?this._viewXmlList=[].concat(Object(Gr["a"])(this._viewXmlList),Object(Gr["a"])(Tr)):(Ur.continuousView.status=!0,Ur.continuousView.currentList=[],this._viewXmlList=Object(Gr["a"])(Tr),this._xmlIndex=0);var Hr=function toPrint(){Dr=document.createElement("div"),xn["a"].printToHtml(Rr._hoEditorFactoryID,Wr,Dr)},Wr=function createSvg(){if(Rr._xmlIndex>0&&Dr){var Tr=Ur.pageProperty.widthMm>Ur.pageProperty.heightMm?"l":"p";Dr.dataset.size=Ur.pageProperty.pageSize,Dr.dataset.orientation=Tr,Rr._xmlIndex<3?(Ur.continuousView.currentList.push(Dr),Ur.continuousView.allList.push(Dr)):Ur.continuousView.allList.push(Dr)}Rr._xmlIndex<=Rr._viewXmlList.length-1&&Rr._viewXmlList[Rr._xmlIndex]&&(Promise.all([Ur.vueController.openXml(Rr._viewXmlList[Rr._xmlIndex])]).then((function(){0===Ur.loadImageCount?(Hr(),Ur.loadImageCallback=null):Ur.loadImageCallback=Hr})),Rr._xmlIndex++)};Wr()}},{key:"mergeViewAll",value:function mergeViewAll(Tr,Dr){var Rr=this,Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.isHideComments||Ur.vueController.hideComments(!0),Ur.printStatus.printMode=0,Ur.drawTree.paintStatus=mn["b"].psReadOnly,Ur.continuousView.status?this._viewXmlList=[].concat(Object(Gr["a"])(this._viewXmlList),Object(Gr["a"])(Tr)):(Ur.continuousView.status=!0,this._viewXmlList=Object(Gr["a"])(Tr),this._xmlIndex=-1);var Hr=function createSvg(){if(Rr._xmlIndex++,Rr._xmlIndex<=Rr._viewXmlList.length-1){var Tr="string"!=typeof Rr._viewXmlList[Rr._xmlIndex],Hr=Tr?Rr._viewXmlList[Rr._xmlIndex].xml:Rr._viewXmlList[Rr._xmlIndex],Wr=!!Tr&&Rr._viewXmlList[Rr._xmlIndex].isMerge;0===Rr._xmlIndex?Promise.all([Ur.vueController.openXml(Hr,void 0,!0)]).then((function(){0==Ur.loadImageCount?(Ur.loadImageCallback=null,createSvg()):Ur.loadImageCallback=createSvg})):Promise.all([Ur.vueController.mergeDocs(Hr,Wr,void 0,!0)]).then((function(){0==Ur.loadImageCount?(Ur.loadImageCallback=null,createSvg()):Ur.loadImageCallback=createSvg})),Rr._xmlIndex,Rr._viewXmlList.length,Dr&&(Rr._xmlIndex=0,Rr._viewXmlList=[])}};Hr()}}]),PrintController}(),Mo=function(){function ReviewController(Tr){Object(Xr["a"])(this,ReviewController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(ReviewController,[{key:"insertComment",value:function insertComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertComment(Tr)}},{key:"deleteComment",value:function deleteComment(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.deleteComment(Tr)}},{key:"editComment",value:function editComment(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.editComment(Tr,Dr)}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return Tn["a"].instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"hideComments",value:function hideComments(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.hideComments(Tr)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.setReviewLevelColor(Tr)}},{key:"cancelDel",value:function cancelDel(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.cancelDel()}}]),ReviewController}(),No=function(){function SelectController(Tr){Object(Xr["a"])(this,SelectController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(SelectController,[{key:"getDomRange",value:function getDomRange(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();return Dr}},{key:"setDomRange",value:function setDomRange(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.setDomRange(Tr,Dr)}},{key:"moveCaretToPath",value:function moveCaretToPath(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.drawTree.moveCaretToPath(Tr)}},{key:"getCaretPosition",value:function getCaretPosition(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return Tr.docTree.curDomRange.endPath}},{key:"getRangeText",value:function getRangeText(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.getRangeText(Tr)}}]),SelectController}(),Lo=function(){function TableController(Tr){Object(Xr["a"])(this,TableController),this._hoEditorFactoryID=Tr}return Object(Yr["a"])(TableController,[{key:"insertTable",value:function insertTable(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.insertTable(Tr,Dr)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableRowAbove(Tr)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableRowBelow(Tr)}},{key:"insertTableColLeft",value:function insertTableColLeft(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableColLeft(Tr)}},{key:"insertTableColRight",value:function insertTableColRight(Tr){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Dr.vueController.insertTableColRight(Tr)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Tr.vueController.tableUnMergerCells()}},{key:"tableProperty",value:function tableProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.tableProperty(Tr,Dr)}},{key:"rowProperty",value:function rowProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.rowProperty(Tr,Dr)}},{key:"colProperty",value:function colProperty(Tr,Dr){var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Rr.vueController.colProperty(Tr,Dr)}},{key:"cellProperty",value:function cellProperty(Tr,Dr){for(var Rr=Tn["a"].instance().getFactory(this._hoEditorFactoryID),Ur=0,Hr=Dr.length;Ur<Hr;Ur++){var Wr=Dr[Ur];Rr.vueController.cellProperty(Tr,Wr),Wr.drawCell.needUpdate=!0}Dr.length>0&&Dr[0].table.update()}},{key:"insertTableFormula",value:function insertTableFormula(Tr,Dr,Rr){var Ur=Tn["a"].instance().getFactory(this._hoEditorFactoryID);Ur.vueController.insertTableFormula(Tr,Dr,Rr)}}]),TableController}(),Ao=Rr("4c9c"),Ro=Rr("9cfd"),Fo=function(){function FormatPainterUndoUnit(Tr,Dr,Rr,Ur,Hr){Object(Xr["a"])(this,FormatPainterUndoUnit),this._hoEditorFactoryID=Tr,this._undo=new xa["a"](this._hoEditorFactoryID),this._startPath=Dr,this._endPath=Rr,this._newStyle=Ur,this._newParaNo=Hr,this._undoNodes=new Array,this._opTime=new Date,this._affectText=""}return Object(Yr["a"])(FormatPainterUndoUnit,[{key:"isEmpty",get:function get(){return!1}},{key:"undo",value:function undo(){while(!this._undo.atBottom())this._undo.undo()}},{key:"redo",value:function redo(){this._undoNodes.length=0,this._undo.clear(),this._undo.begin();var Tr=new Ro["b"]("formatPainter",this._newParaNo);this._undo.add(new Ao["a"](this._hoEditorFactoryID,this._startPath,this._endPath,Tr)),this._undo.commit(),this._undo.begin();var Dr=new Ro["b"]("formatPainter",this._newStyle);this._undo.add(new Ro["a"](this._hoEditorFactoryID,this._startPath,this._endPath,Dr)),this._undo.commit()}},{key:"merge",value:function merge(Tr){return!1}},{key:"actionString",value:function actionString(){return"格式刷"}},{key:"affectText",get:function get(){return this._affectText}},{key:"opTime",get:function get(){return this._opTime}}]),FormatPainterUndoUnit}(),jo=function(){function FormatPainter(Tr){Object(Xr["a"])(this,FormatPainter),this._hoeditorFactoryID=Tr,this._storeFontStyleNo=0,this._storeParaStyleNo=0,this._continuePainter=!1,this._inuse=!1}return Object(Yr["a"])(FormatPainter,[{key:"inuse",get:function get(){return this._inuse}},{key:"startFormatPainter",value:function startFormatPainter(Tr,Dr,Rr,Ur){this._storeFontStyleNo=Dr,this._storeParaStyleNo=Rr,this._continuePainter=Ur,this._inuse=!0,this._formatNode=Tr,this._formatNode.className="sub-bar-item ho-format-paint selected",document.body.className="format-cursor"}},{key:"useFormatPainter",value:function useFormatPainter(){var Tr=Tn["a"].instance().getFactory(this._hoeditorFactoryID),Dr=Tr.docTree.curDomRange.normalize();Tr.undoService.begin(),Tr.undoService.add(new Fo(this._hoeditorFactoryID,Dr.startPath,Dr.endPath,this._storeFontStyleNo,this._storeParaStyleNo)),Tr.undoService.commit(),this._continuePainter||this.finishFormatPainter()}},{key:"finishFormatPainter",value:function finishFormatPainter(){this._inuse=!1,this._continuePainter=!1,this._formatNode.className="sub-bar-item ho-format-paint",document.body.className=""}}]),FormatPainter}(),Bo=Rr("a002"),Uo=Rr.n(Bo),Ho=function(){function HoLocalStorage(Tr){Object(Xr["a"])(this,HoLocalStorage),this._intervalsTime=3e4,this._expirationTime=108e5,this._storeName="web_list",this._hoEditorFactoryID=Tr}return Object(Yr["a"])(HoLocalStorage,[{key:"initHoWebSql",value:function initHoWebSql(){this._ho_web=Uo.a.createInstance({name:"_ho_web",storeName:this._storeName}),this._print_font=Uo.a.createInstance({name:"_ho_web",storeName:"_print_font"}),this._cache_clear_time=Uo.a.createInstance({name:"_ho_web",storeName:"_cache_clear_time"})}},{key:"getLocalStorage",value:function getLocalStorage(){var Tr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);return this._key=Tr.userInfo.id+Tr.docTree.docProperty.patientID+Tr.docTree.docProperty.title,this._ho_web.getItem(this._key)}},{key:"removeLocalStorage",value:function removeLocalStorage(Tr){var Dr=this;this._ho_web.keys().then((function(Tr){Tr.forEach((function(Tr){Dr._ho_web.getItem(Tr).then((function(Rr){Array.isArray(Rr)?(new Date).getTime()-new Date(Rr[0].saveTime).getTime()&&Dr._ho_web.removeItem(Tr):(new Date).getTime()-new Date(Rr.saveTime).getTime()&&Dr._ho_web.removeItem(Tr)}))}))}))}},{key:"clearLocalStorage",value:function clearLocalStorage(){this._ho_web.clear().then((function(){}))}},{key:"autoSaveLocalStorage",value:function autoSaveLocalStorage(){var Tr=this;if(!(this._lastSaveTime&&(new Date).getTime()-this._lastSaveTime<=this._intervalsTime)){var Dr=Tn["a"].instance().getFactory(this._hoEditorFactoryID);this._key=Dr.userInfo.id+Dr.docTree.docProperty.patientID+Dr.docTree.docProperty.title,this._ho_web.getItem(this._key).then((function(Rr){var Ur=Object(Jn["d"])(new Date);if(Rr){if(Array.isArray(Rr)?Tr._lastSaveTime=new Date(Rr[0].saveTime).getTime():Tr._lastSaveTime=new Date(Rr.saveTime).getTime(),(new Date).getTime()-Tr._lastSaveTime<=Tr._intervalsTime)return}else Tr._lastSaveTime=new Date(Ur).getTime();var Hr=Object(Gr["a"])(Dr.domController.getLogs());if(Rr)if(Array.isArray(Rr))Rr.unshift({xml:Dr.structureConvert.doc2Xml("xml",!0),saveTime:Ur,logs:Hr}),3===Rr.length&&Rr.pop(),Tr._ho_web.setItem(Tr._key,Rr);else{var Wr=[];Wr.push({xml:Dr.structureConvert.doc2Xml("xml",!0),saveTime:Ur,logs:Hr}),Wr.push(Rr),Tr._ho_web.setItem(Tr._key,Wr)}else{var zr=[];zr.push({xml:Dr.structureConvert.doc2Xml("xml",!0),saveTime:Ur,logs:Hr}),Tr._ho_web.setItem(Tr._key,zr)}Tr._cache_clear_time.getItem("_cache_clear_time").then((function(Dr){var Rr=Dr;Dr||(Rr=(new Date).getTime(),Tr._cache_clear_time.setItem("_cache_clear_time",Rr)),Tr._lastClearTime=Rr,(new Date).getTime()-Dr>=Tr._expirationTime&&(Tr.removeLocalStorage(Dr),setTimeout((function(){Tr._cache_clear_time.setItem("_cache_clear_time",(new Date).getTime())}),0))}))}))}}},{key:"saveFontString",value:function saveFontString(Tr){this._print_font.setItem("sunsim_font",Tr)}},{key:"loadFontString",value:function loadFontString(){return this._print_font.getItem("sunsim_font")}}]),HoLocalStorage}(),Wo=Ho,qo=function(){function HOEditorFactory(Tr){Object(Xr["a"])(this,HOEditorFactory),this._loadImageCount=0,this._loadImageCallback=null,this._defaultLineHeight=-1,this._startPageNum=0,this._firstPageStartTop=0,this._signHeight=20,this._pasteBase=!1,this._isHideComments=!0,this._openXmled=!1,this._isThrowError=!0,this._lastSaveTime=new Date(Date.now()),this._superiorSigns=[],this._hoEditorFactoryId=Tr}return Object(Yr["a"])(HOEditorFactory,[{key:"hoLocalStorage",get:function get(){return this._hoLocalStorage||(this._hoLocalStorage=new Wo(this._hoEditorFactoryId)),this._hoLocalStorage}},{key:"baseController",get:function get(){return this._baseController||(this._baseController=new xo(this._hoEditorFactoryId)),this._baseController}},{key:"domController",get:function get(){return this._domController||(this._domController=new Co(this._hoEditorFactoryId)),this._domController}},{key:"editController",get:function get(){return this._editController||(this._editController=new Po(this._hoEditorFactoryId)),this._editController}},{key:"elementController",get:function get(){return this._elementController||(this._elementController=new Eo(this._hoEditorFactoryId)),this._elementController}},{key:"nodeController",get:function get(){return this._nodeController||(this._nodeController=new So(this._hoEditorFactoryId)),this._nodeController}},{key:"printController",get:function get(){return this._printController||(this._printController=new Io(this._hoEditorFactoryId)),this._printController}},{key:"reviewController",get:function get(){return this._reviewController||(this._reviewController=new Mo(this._hoEditorFactoryId)),this._reviewController}},{key:"selectController",get:function get(){return this._selectController||(this._selectController=new No(this._hoEditorFactoryId)),this._selectController}},{key:"tableController",get:function get(){return this._tableController||(this._tableController=new Lo(this._hoEditorFactoryId)),this._tableController}},{key:"defaultLineHeight",get:function get(){return-1==this._defaultLineHeight&&(this._defaultLineHeight=Math.round(this.docTree.defaultCombineStyle.getFontHeightByFontSize(this.docTree.defaultCombineStyle.size))),this._defaultLineHeight},set:function set(Tr){Tr!==this._defaultLineHeight&&(this._defaultLineHeight=Tr)}},{key:"userInfo",get:function get(){if(!this._userInfo){var Tr=this.gernerateCode.generateID("USER");this._userInfo=new ya["a"](this._hoEditorFactoryId),this._userInfo.setUserInfo(Tr,"李医生",1,"")}return this._userInfo},set:function set(Tr){this._userInfo=Tr}},{key:"option",get:function get(){return this._option||(this._option=new ba(this._hoEditorFactoryId)),this._option},set:function set(Tr){this._option=Tr}},{key:"hoEditorFactoryIndex",get:function get(){return this._hoEditorFactoryIndex},set:function set(Tr){this._hoEditorFactoryIndex=Tr}},{key:"docTree",get:function get(){return this._docTree||(this._docTree=new gn["c"](this._hoEditorFactoryId)),this._docTree}},{key:"drawTree",get:function get(){return this._drawTree||(this._drawTree=new mn["a"](this._hoEditorFactoryId),this._drawTree.init()),this._drawTree}},{key:"drawPageTree",get:function get(){return this._drawPageTree||(this._drawPageTree=new _a(this._hoEditorFactoryId)),this._drawPageTree}},{key:"vueController",get:function get(){return this._vueController||(this._vueController=new wo(this._hoEditorFactoryId)),this._vueController}},{key:"docController",get:function get(){return this._docController||(this._docController=new ia["a"](this._hoEditorFactoryId)),this._docController}},{key:"pageProperty",get:function get(){return this._pageProperty||(this._pageProperty=new aa["a"](this._hoEditorFactoryId)),this._pageProperty},set:function set(Tr){Tr!==this._pageProperty&&(this._pageProperty=Tr)}},{key:"undoService",get:function get(){return this._undoService||(this._undoService=new xa["a"](this._hoEditorFactoryId)),this._undoService}},{key:"subDocManger",get:function get(){return this._subDocManger||(this._subDocManger=new On["b"](this._hoEditorFactoryId)),this._subDocManger}},{key:"formatPainter",get:function get(){return this._formatPainter||(this._formatPainter=new jo(this._hoEditorFactoryId)),this._formatPainter}},{key:"printStatus",get:function get(){return this._printStatus||(this._printStatus=new xn["c"](this._hoEditorFactoryId)),this._printStatus}},{key:"timeStamp",get:function get(){return this._timeStamp||(this._timeStamp=new wa(this._hoEditorFactoryId)),this._timeStamp}},{key:"gernerateCode",get:function get(){return this._gernerateCode||(this._gernerateCode=new Ca(this._hoEditorFactoryId)),this._gernerateCode}},{key:"htmlConverter",get:function get(){return this._htmlConverter||(this._htmlConverter=new Ia(this._hoEditorFactoryId)),this._htmlConverter}},{key:"structureConvert",get:function get(){return this._structureConvert||(this._structureConvert=new ro(this._hoEditorFactoryId)),this._structureConvert}},{key:"structureNode",get:function get(){return this._structureNode||(this._structureNode=new so(this._hoEditorFactoryId)),this._structureNode}},{key:"toHtmlConverter",get:function get(){return this._toHtmlConverter||(this._toHtmlConverter=new co(this._hoEditorFactoryId)),this._toHtmlConverter}},{key:"unitConvert",get:function get(){return this._unitConvert||(this._unitConvert=new uo["a"]),this._unitConvert}},{key:"nodeMouseMove",get:function get(){return this._nodeMouseMove||(this._nodeMouseMove=new va(this._hoEditorFactoryId)),this._nodeMouseMove}},{key:"testDataSet",get:function get(){return this._testDataSet||(this._testDataSet=new lo(this._hoEditorFactoryId)),this._testDataSet}},{key:"hoEditorFactoryId",get:function get(){return this._hoEditorFactoryId}},{key:"startPageNum",get:function get(){return this._startPageNum},set:function set(Tr){this._startPageNum!=Tr&&(this._startPageNum=Tr)}},{key:"firstPageStartTop",get:function get(){return this._firstPageStartTop},set:function set(Tr){this._firstPageStartTop!=Tr&&(this._firstPageStartTop=Tr)}},{key:"signHeight",get:function get(){return this._signHeight},set:function set(Tr){this._signHeight!==Tr&&(this._signHeight=Tr)}},{key:"pasteBase",get:function get(){return this._pasteBase},set:function set(Tr){this._pasteBase!==Tr&&(this._pasteBase=Tr)}},{key:"isHideComments",get:function get(){return this._isHideComments},set:function set(Tr){this._isHideComments!==Tr&&(this._isHideComments=Tr)}},{key:"continuousView",get:function get(){return this._continuousView},set:function set(Tr){this._continuousView!==Tr&&(this._continuousView=Tr)}},{key:"openXmled",get:function get(){return this._openXmled},set:function set(Tr){this._openXmled!==Tr&&(this._openXmled=Tr)}},{key:"isThrowError",get:function get(){return this._isThrowError},set:function set(Tr){this._isThrowError!==Tr&&(this._isThrowError=Tr)}},{key:"loadImageCount",get:function get(){return this._loadImageCount},set:function set(Tr){this._loadImageCount!==Tr&&(this._loadImageCount=Tr),this._loadImageCount<=0&&this._loadImageCallback&&(this._loadImageCallback(),this._loadImageCallback=null)}},{key:"loadImageCallback",set:function set(Tr){this._loadImageCallback=Tr}},{key:"lastSaveTime",get:function get(){return this._lastSaveTime},set:function set(Tr){this._lastSaveTime!==Tr&&(this._lastSaveTime=Tr)}},{key:"contentIsModify",get:function get(){return this._contentIsModify},set:function set(Tr){this._contentIsModify!==Tr&&(this._contentIsModify=Tr)}},{key:"superiorSigns",get:function get(){return this._superiorSigns},set:function set(Tr){this._superiorSigns!==Tr&&(this._superiorSigns=Tr)}}]),HOEditorFactory}(),HoFootervue_type_template_id_5908306a_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"ho-footer"},[Rr("div",{staticClass:"footer-item"}),Rr("div",{staticClass:"footer-item"},[Rr("span",{staticClass:"text"},[Tr._v("第 "+Tr._s(Tr.currentActivePages+1===0?1:Tr.currentActivePages+1)+" 页 / 共 "+Tr._s(Tr.drawPages)+" 页")]),Tr.docName?Rr("span",{staticClass:"text"},[Tr._v("名称:"+Tr._s(Tr.docName))]):Tr._e(),Tr.userNames?Rr("span",{staticClass:"text"},[Tr._v("书写人:"+Tr._s(Tr.userNames))]):Tr._e(),Tr.historyTime?Rr("span",{staticClass:"text"},[Tr._v("书写时间:"+Tr._s(Tr.historyTime))]):Tr._e()]),Rr("p",{staticStyle:{flex:"1"}}),Rr("div",{staticClass:"footer-item"})])},zo=[],Popervue_type_template_id_0f8bfa37_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.classSelected,style:Tr.poperStyle,on:{mouseenter:Tr.mouseenter,mouseleave:Tr.mouseleave}},[Tr._t("default",(function(){return[Rr("span",{class:Tr.classNames})]})),Tr.title&&Tr.show?Rr("Title",{attrs:{title:Tr.title,styles:Tr.styles}}):Tr._e()],2)},Vo=[],Titlevue_type_template_id_3d9d462b_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("transition",{attrs:{name:"fade"}},[Rr("span",{staticClass:"poper-title",style:Tr.styles},[Tr._v(Tr._s(Tr.title))])])},Ko=[],$o=function(Tr){Object(Qr["a"])(Title,Tr);var Dr=Object(Zr["a"])(Title);function Title(){return Object(Xr["a"])(this,Title),Dr.apply(this,arguments)}return Title}(mixins(Zn));__decorate([Prop()],$o.prototype,"title",void 0),__decorate([Prop({default:"bottom"})],$o.prototype,"placement",void 0),__decorate([Prop()],$o.prototype,"styles",void 0),$o=__decorate([an({name:"Title"})],$o);var Go=$o,Jo=Go,Xo=(Rr("6f4d"),normalizeComponent(Jo,Titlevue_type_template_id_3d9d462b_scoped_true_render,Ko,!1,null,"3d9d462b",null)),Yo=Xo.exports,Qo=function(Tr){Object(Qr["a"])(Poper,Tr);var Dr=Object(Zr["a"])(Poper);function Poper(){var Tr;return Object(Xr["a"])(this,Poper),Tr=Dr.apply(this,arguments),Tr.show=!1,Tr.styles={left:"0px",top:"0px"},Tr}return Object(Yr["a"])(Poper,[{key:"classNames",get:function get(){return"svg svg-"+this.svg}},{key:"classSelected",get:function get(){return this.selected?"sub-bar-item "+this.name+" selected":"sub-bar-item "+this.name}},{key:"created",value:function created(){this.bodyElement=document.querySelector("body")}},{key:"mouseenter",value:function mouseenter(Tr){if(Tr.currentTarget){var Dr=Tr.currentTarget.getBoundingClientRect();this.styles.left=Dr.x+"px","bottom"===this.placement?this.styles.top=Dr.y+Dr.height+13+"px":this.styles.top=Dr.y-Dr.height-3+"px",this.show=!0}}},{key:"mouseleave",value:function mouseleave(){this.show=!1,this.styles={left:"0px",top:"0px"}}}]),Poper}(Kr.a);__decorate([Prop()],Qo.prototype,"poperStyle",void 0),__decorate([Prop()],Qo.prototype,"selected",void 0),__decorate([Prop()],Qo.prototype,"title",void 0),__decorate([Prop()],Qo.prototype,"svg",void 0),__decorate([Prop({default:"bottom"})],Qo.prototype,"placement",void 0),__decorate([Prop({default:""})],Qo.prototype,"name",void 0),Qo=__decorate([an({name:"Poper",components:{Title:Yo}})],Qo);var Zo=Qo,es=Zo,ts=normalizeComponent(es,Popervue_type_template_id_0f8bfa37_render,Vo,!1,null,null,null),rs=ts.exports,ns=rs,as=function(Tr){Object(Qr["a"])(HoFooter,Tr);var Dr=Object(Zr["a"])(HoFooter);function HoFooter(){var Tr;return Object(Xr["a"])(this,HoFooter),Tr=Dr.apply(this,arguments),Tr.docType="",Tr.docName="",Tr.userNames="",Tr.historyTime="",Tr}return Object(Yr["a"])(HoFooter,[{key:"docPropertyChange",value:function docPropertyChange(Tr){this.setDocProperty(Tr)}},{key:"mounted",value:function mounted(){this.setDocProperty(this.docProperty)}},{key:"setDocProperty",value:function setDocProperty(Tr){this.docName=null===Tr||void 0===Tr?void 0:Tr.title,this.userNames=null===Tr||void 0===Tr?void 0:Tr.lastEditorName,this.historyTime=null===Tr||void 0===Tr?void 0:Tr.lastEditTime}}]),HoFooter}(Kr.a);__decorate([Prop()],as.prototype,"drawPages",void 0),__decorate([Prop()],as.prototype,"currentActivePages",void 0),__decorate([Prop()],as.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],as.prototype,"docProperty",void 0),__decorate([Watch("docProperty",{deep:!0})],as.prototype,"docPropertyChange",null),as=__decorate([an({name:"HoFooter",components:{Poper:ns}})],as);var os=as,ls=os,cs=(Rr("6d28"),normalizeComponent(ls,HoFootervue_type_template_id_5908306a_scoped_true_render,zo,!1,null,"5908306a",null)),us=cs.exports,ControlModalvue_type_template_id_3be7d6ee_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"toolModals",staticClass:"control-modal",on:{mousedown:Tr.toolModalDown}},["barcode"===Tr.controlType?Rr("Barcode",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose}}):Tr._e(),"qrcode"===Tr.controlType?Rr("QrCode",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose}}):Tr._e(),"express"===Tr.controlType?Rr("ExpressionForm",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController,controlStatus:Tr.controlStatus,controlProperty:Tr.controlProperty},on:{closed:Tr.handleClose}}):Tr._e(),"text"===Tr.controlType?Rr("TextDialog",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose},scopedSlots:Tr._u([{key:"hoTextFieldModal",fn:function(){return[Tr._t("hoTextModal")]},proxy:!0}],null,!0)}):Tr._e(),"date"===Tr.controlType?Rr("DateDialog",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId},on:{closed:Tr.handleClose},scopedSlots:Tr._u([{key:"hoDateFieldModal",fn:function(){return[Tr._t("hoDateModal")]},proxy:!0},{key:"hoTextFieldModal",fn:function(){return[Tr._t("hoTextModal")]},proxy:!0}],null,!0)}):Tr._e(),"select"===Tr.controlType?Rr("SelectDialog",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController,controlStatus:Tr.controlStatus},on:{closed:Tr.handleClose}}):Tr._e(),"table"===Tr.controlType?Rr("TableProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"table-row"===Tr.controlType?Rr("TableRowProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"table-cell"===Tr.controlType?Rr("TableCellProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"table-col"===Tr.controlType?Rr("TableColProperty",{attrs:{hoEditorFactoryId:Tr.hoEditorFactoryId,vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),Tr.isCustoms?Rr("CustomAttributes",{on:{closed:Tr.handleClose}}):Tr._e(),Tr.isDataSource?Rr("DataSourceDialog",{on:{closed:Tr.handleClose}}):Tr._e(),Tr.isListStyle?Rr("ListSource",{on:{closed:Tr.handleClose}}):Tr._e(),"RadioBox"===Tr.controlType||"CheckBox"===Tr.controlType?Rr("RadioCheckbox",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus,hoEditorFactoryId:Tr.hoEditorFactoryId,controlProperty:Tr.controlProperty},on:{closed:Tr.handleClose}}):Tr._e(),"waterset"===Tr.controlType?Rr("WaterSetDialog",{attrs:{vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"comment"===Tr.controlType?Rr("CommentDialog",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus},on:{insertComments:Tr.insertComments,closed:Tr.handleClose}}):Tr._e(),"pageInfoes"===Tr.controlType?Rr("PageInfoes",{attrs:{vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"delimiter"===Tr.controlType?Rr("Delimiter",{attrs:{vueController:Tr.vueController},on:{closed:Tr.handleClose}}):Tr._e(),"sign"===Tr.controlType?Rr("Sign",{attrs:{vueController:Tr.vueController,controlStatus:Tr.controlStatus},on:{closed:Tr.handleClose}}):Tr._e()],1)},ds=[],SelectDialogvue_type_template_id_3cb0320e_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("下拉框")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.innerIdentifier,callback:function(Dr){Tr.innerIdentifier=Dr},expression:"innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.dataMetaIdentifier,callback:function(Dr){Tr.dataMetaIdentifier=Dr},expression:"dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.identifierFormat,callback:function(Dr){Tr.identifierFormat=Dr},expression:"identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:Tr.name,callback:function(Dr){Tr.name=Dr},expression:"name"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:Tr.tipText,callback:function(Dr){Tr.tipText=Dr},expression:"tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{model:{value:Tr.isReadOnly,callback:function(Dr){Tr.isReadOnly=Dr},expression:"isReadOnly"}},[Tr._v("内容只读")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{model:{value:Tr.isAllowDelete,callback:function(Dr){Tr.isAllowDelete=Dr},expression:"isAllowDelete"}},[Tr._v("允许删除")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{on:{change:Tr.allowMultiSelectChange},model:{value:Tr.allowMultiSelect,callback:function(Dr){Tr.allowMultiSelect=Dr},expression:"allowMultiSelect"}},[Tr._v("允许多选")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{model:{value:Tr.readType,callback:function(Dr){Tr.readType=Dr},expression:"readType"}},[Tr._v("自动回填")])],1),Rr("div",{staticStyle:{width:"20%"}},[Rr("el-checkbox",{attrs:{disabled:!Tr.allowMultiSelect},model:{value:Tr.mutexSelect,callback:function(Dr){Tr.mutexSelect=Dr},expression:"mutexSelect"}},[Tr._v("选项互斥")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.downListContent,height:"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.type,callback:function(Rr){Tr.$set(Dr.row,"type",Rr)},expression:"scope.row.type"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Dr.row.default?Rr("span",{staticClass:"tags"},[Tr._v("默认")]):Tr._e(),Dr.row.default?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.cancelDefault(Dr.row.id)}}},[Tr._v("取消")]):Tr._e(),!Dr.row.default&&Dr.row.text?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.setDefault(Dr.row.id)}}},[Tr._v("设为默认")]):Tr._e(),Dr.$index!==Tr.downListContent.length-1&&Tr.focusIndexs===Dr.$index?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")]):Tr._e()]}}])})],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},hs=[],ps=function(Tr){Object(Qr["a"])(SelectDialog,Tr);var Dr=Object(Zr["a"])(SelectDialog);function SelectDialog(){var Tr;return Object(Xr["a"])(this,SelectDialog),Tr=Dr.apply(this,arguments),Tr.focusIndexs=-1,Tr.id="",Tr.name="",Tr.text="",Tr.title="下拉选择框",Tr.tipText="",Tr.isAllowDelete=!1,Tr.isReadOnly=!1,Tr.mutexSelect=!1,Tr.allowMultiSelect=!1,Tr.innerIdentifier="",Tr.dataMetaIdentifier="",Tr.identifierFormat="",Tr.readType=!1,Tr.keyValue="",Tr.customProperty={},Tr.errorArr=[],Tr.errorIndex=[],Tr.animationClassNames="control-modal-contents select-modal animation-in",Tr}return Object(Yr["a"])(SelectDialog,[{key:"created",value:function created(){var Tr=this,Dr=this.getKeyId(0),Rr=[{value:"",text:"",type:0,id:Dr,default:!1}];if("update"===this.controlStatus){var Ur=this.getSelectNode();this.id=Ur.id,this.name=Ur.name,this.text=Ur.text,this.title=Ur.title,this.tipText=Ur.tipText,this.isAllowDelete=Ur.isAllowDelete,this.isReadOnly=Ur.isReadOnly,this.mutexSelect=Ur.mutexSelect,this.allowMultiSelect=Ur.allowMultiSelect;var Hr=[];Ur.downListContent&&(Hr=Ur.downListContent),this.readType=1==Ur.readType,this.downListContent=[].concat(Object(Gr["a"])(Hr),Rr),this.downListContent=Object(Gr["a"])(this.downListContent.map((function(Dr,Rr){return void 0===Dr.id&&(Dr.id=Tr.getKeyId(Rr)),Ur.keyValue.includes(Dr.id)?Dr.default=!0:Dr.default=!1,Dr}))),this.innerIdentifier=Ur.innerIdentifier,this.dataMetaIdentifier=Ur.dataMetaIdentifier,this.identifierFormat=Ur.identifierFormat,this.keyValue=Ur.keyValue,this.customProperty=Ur.customProperty}else this.id=this.vueController.generateID("DL"),this.downListContent=[].concat(Rr)}},{key:"getSelectNode",value:function getSelectNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Qn["a"]&&(Dr=Hr),Dr}},{key:"allowMultiSelectChange",value:function allowMultiSelectChange(){this.allowMultiSelect||(this.mutexSelect=!1)}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.downListContent[Tr];if(""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.downListContent.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.downListContent.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0)this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id);else{this.errorIndex=[];var Rr=this.downListContent.filter((function(Tr){if(""===(null===Tr||void 0===Tr?void 0:Tr.value.replace(/\s*/g,""))&&""===(null===Tr||void 0===Tr?void 0:Tr.text.replace(/\s*/g,"")))return Tr}));0===Rr.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this,Rr=this.downListContent[Tr];this.errorArr=Object(Gr["a"])(this.downListContent.filter((function(Tr){if(Tr.text===(null===Rr||void 0===Rr?void 0:Rr.text)&&Tr.id!==(null===Rr||void 0===Rr?void 0:Rr.id))return Tr})));var Ur=Object(Gr["a"])(this.downListContent.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr})));this.errorArr.length>0?(this.errorIndex.includes(Rr.id)||this.errorIndex.push(Rr.id),Ur.forEach((function(Tr){Dr.deleteCurrentRow(Tr.id)}))):(this.errorIndex=[],0===Ur.length&&this.addCustoms())}},{key:"addCustoms",value:function addCustoms(){this.downListContent.push({text:"",value:"",type:0,id:this.getKeyId(),default:!1})}},{key:"setDefault",value:function setDefault(Tr){var Dr=this;this.downListContent=Object(Gr["a"])(this.downListContent.map((function(Rr){return Rr.id===Tr?""!==Rr.text.replace(/\s*/g,"")&&(Rr.default=!0):Dr.allowMultiSelect||(Rr.default=!1),Rr})))}},{key:"cancelDefault",value:function cancelDefault(Tr){this.downListContent=Object(Gr["a"])(this.downListContent.map((function(Dr){return Dr.id===Tr&&(Dr.default=!1),Dr})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.downListContent.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.downListContent.splice(Dr,1)}},{key:"arrToObject",value:function arrToObject(){var Tr={};return this.downListContent.map((function(Dr){var Rr=Dr;Tr[Rr.text]=Rr.value})),Tr}},{key:"sure",value:function sure(){var Tr=this;if(0!==this.errorArr.length)return!1;var Dr=this.downListContent.filter((function(Tr){if(Tr.text||Tr.value)return Tr})),Rr=[],Ur="";this.downListContent.forEach((function(Tr,Dr){Tr.default&&(Rr.push(Tr.text),Ur+=Tr.id+",")})),this.text=Rr.join(","),""===this.text&&(this.name?this.text=this.name:this.text="请选择");var Hr={id:this.id,name:this.name,text:this.text,keyValue:Ur,title:"下拉选择框",tipText:this.tipText,isAllowDelete:this.isAllowDelete,isReadOnly:this.isReadOnly,allowMultiSelect:this.allowMultiSelect,innerIdentifier:this.innerIdentifier,dataMetaIdentifier:this.dataMetaIdentifier,identifierFormat:this.identifierFormat,readType:this.readType,mutexSelect:this.mutexSelect,customProperty:this.customProperty};Hr.readType?Hr.readType=1:Hr.readType=0,"add"===this.controlStatus?this.vueController.insertDownList("add",JSON.stringify(Hr),Dr):"update"===this.controlStatus&&this.vueController.updateDownList(JSON.stringify(Hr),Dr),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents select-modal animation-out",this.$emit("closed")}}]),SelectDialog}(Kr.a);__decorate([Prop()],ps.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],ps.prototype,"controlStatus",void 0),__decorate([Prop()],ps.prototype,"vueController",void 0),ps=__decorate([an({name:"SelectDialog"})],ps);var fs=ps,_s=fs,gs=(Rr("d6dc"),normalizeComponent(_s,SelectDialogvue_type_template_id_3cb0320e_scoped_true_render,hs,!1,null,"3cb0320e",null)),ms=gs.exports,vs=ms,DateDialogvue_type_template_id_3f07b3fe_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("日期时间")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("tabs",{attrs:{tabKey:Tr.textActiveName}},[Rr("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.innerIdentifier,callback:function(Dr){Tr.innerIdentifier=Dr},expression:"innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.dataMetaIdentifier,callback:function(Dr){Tr.dataMetaIdentifier=Dr},expression:"dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.identifierFormat,callback:function(Dr){Tr.identifierFormat=Dr},expression:"identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:Tr.name,callback:function(Dr){Tr.name=Dr},expression:"name"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("输入样式")]),Rr("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:Tr.controlStyle,callback:function(Dr){Tr.controlStyle=Dr},expression:"controlStyle"}},Tr._l(Tr.dateFormatList,(function(Tr){return Rr("el-option",{key:Tr,attrs:{label:Tr,value:Tr}})})),1)],1)]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("日期时间")]),Tr.controlStyle.includes("MM")&&!Tr.controlStyle.includes("dd")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"month",placeholder:"选择月"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),Tr.controlStyle.includes("yyyy")&&!Tr.controlStyle.includes("MM")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"year",placeholder:"选择年"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),Tr.controlStyle.includes("dd")&&Tr.controlStyle.includes("mm")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"datetime",format:Tr.controlStyle,placeholder:"日期时间"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),!Tr.controlStyle.includes("dd")&&Tr.controlStyle.includes("mm")?Rr("el-time-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"time",format:Tr.controlStyle,placeholder:"时间"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e(),!Tr.controlStyle.includes("mm")&&Tr.controlStyle.includes("dd")?Rr("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"date",format:Tr.controlStyle,placeholder:"日期"},model:{value:Tr.text,callback:function(Dr){Tr.text=Dr},expression:"text"}}):Tr._e()],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:Tr.tipText,callback:function(Dr){Tr.tipText=Dr},expression:"tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{model:{value:Tr.isReadOnly,callback:function(Dr){Tr.isReadOnly=Dr},expression:"isReadOnly"}},[Tr._v("内容只读")])],1),Rr("div",{staticStyle:{margin:"0 0 0 20px"}},[Rr("el-checkbox",{model:{value:Tr.isAllowDelete,callback:function(Dr){Tr.isAllowDelete=Dr},expression:"isAllowDelete"}},[Tr._v("允许删除")])],1),Rr("div",{staticClass:"control-item",staticStyle:{"margin-left":"20px"}},[Rr("el-checkbox",{model:{value:Tr.readType,callback:function(Dr){Tr.readType=Dr},expression:"readType"}},[Tr._v("自动回填")])],1)])])]),Tr._t("hoTextFieldModal")],2)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},ys=[],Tabvue_type_template_id_7c6c4d81_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"ho-toolbar"},[Rr("ul",{staticClass:"main-bar"},[Tr._l(Tr.navList,(function(Dr){return Rr("li",{key:Dr.name,class:{selected:Dr.name===Tr.currentValue},on:{click:function(Rr){return Tr.handleChange(Tr.currentValue,Dr.name)}}},[Tr._v(" "+Tr._s(Dr.label)+" ")])})),Rr("li",{staticClass:"tabs-active-bar",style:Tr.activeBarStyle})],2),Rr("div",{staticClass:"sub-bar-box"},[Tr._t("default")],2)])},bs=[],ws={name:"Tabs",props:["tabKey"],data:function data(){return{currentValue:this.tabKey?this.tabKey:"ho-edit",navList:[],activeBarStyle:{left:"0px",width:"68px"}}},methods:{getTabs:function getTabs(){return this.$children.filter((function(Tr){return"TabPane"===Tr.$options.name}))},updateNav:function updateNav(){var Tr=this;this.navList=[],this.getTabs().forEach((function(Dr,Rr){!1!==Dr.isShow&&(Tr.navList.push({label:Dr.label,name:Dr.name||Rr}),Dr.name||(Dr.name=Rr))})),this.currentValue||(this.currentValue=this.navList[0].name),this.updateStatus()},updateStatus:function updateStatus(){var Tr=this,Dr=this.getTabs();Dr.forEach((function(Dr){var Rr=Dr.name===Tr.currentValue;return Dr.show=Rr,Dr.show}))},handleChange:function handleChange(Tr,Dr){var Rr=this;this.currentValue=Dr,this.$emit("tabClick",Tr,Dr),this.$nextTick((function(){var Tr=0,Dr=0;if(event){var Ur=event.target.parentNode;if("main-bar"===Ur.className){var Hr=Array.from(Ur.childNodes);Hr.forEach((function(Rr){var Ur=Rr.className;"selected"!==Ur&&"tabs-active-bar"!==Ur&&0===Tr&&(Dr+=Rr.offsetWidth),"selected"===Ur&&(Tr=Rr.offsetWidth)})),Rr.activeBarStyle={left:Dr+"px",width:Tr+"px"}}}}))}},watch:{tabKey:function tabKey(Tr){this.currentValue=Tr},currentValue:function currentValue(Tr,Dr){var Rr=this;this.updateStatus(),setTimeout((function(){Rr.$emit("updateTabKey",Rr.currentValue)}),0)}}},xs=ws,Cs=(Rr("7b87"),normalizeComponent(xs,Tabvue_type_template_id_7c6c4d81_render,bs,!1,null,null,null)),Ps=Cs.exports,Es=function(Tr){Object(Qr["a"])(DateDialog,Tr);var Dr=Object(Zr["a"])(DateDialog);function DateDialog(){var Tr;return Object(Xr["a"])(this,DateDialog),Tr=Dr.apply(this,arguments),Tr.dateFormat=Jn["d"],Tr.dateFormatList=Jn["e"],Tr.textActiveName="first",Tr.customPropertyValue=new Object,Tr.id="",Tr.name="",Tr.text="",Tr.title="日期时间",Tr.tipText="",Tr.isAllowDelete=!1,Tr.isReadOnly=!1,Tr.controlStyle="yyyy/MM/dd",Tr.innerIdentifier="",Tr.dataMetaIdentifier="",Tr.identifierFormat="",Tr.readType=!1,Tr.animationClassNames="control-modal-contents date-modal animation-in",Tr}return Object(Yr["a"])(DateDialog,[{key:"customProperty",get:function get(){return this.getCustomProperty()}},{key:"created",value:function created(){var Tr=this;if("update"===this.controlStatus){var Dr=this.getDateNode();this.id=Dr.id,this.name=Dr.name,this.text=Dr.text&&Dr.text!==Dr.controlStyle&&Dr.text!==Dr.name?this.stringToDate(Dr.text,Dr.controlStyle):"",this.title=Dr.title,this.tipText=Dr.tipText,this.isAllowDelete=Dr.isAllowDelete,this.isReadOnly=Dr.isReadOnly,this.controlStyle=Dr.controlStyle,this.innerIdentifier=Dr.innerIdentifier,this.dataMetaIdentifier=Dr.dataMetaIdentifier,this.identifierFormat=Dr.identifierFormat,this.readType=1===Dr.readType,Object(_o["b"])(Dr.customProperty)?this.customPropertys=Dr.customProperty:this.customPropertys=new Object;var Rr=new Object;Object.keys(this.customPropertys).forEach((function(Dr){Rr[Dr]=Tr.customPropertys[Dr]})),this.customPropertyValue=_objectSpread2({},Rr)}else this.id=this.vueController.generateID("DT")}},{key:"getDateNode",value:function getDateNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Yn["a"]&&(Dr=Hr),Dr}},{key:"querySearch",value:function querySearch(Tr,Dr){Dr(Jn["f"])}},{key:"stringToDate",value:function stringToDate(Tr,Dr){var Rr="",Ur="",Hr="";return Dr.includes("yyyy")&&Dr.includes("mm")?Tr&&(Rr=Tr.split(" ")[0],Ur=Tr.split(" ")[1]):(Dr.includes("yyyy")&&(Rr=Tr),Dr.includes("mm")&&(Ur=Tr)),Rr&&(Rr=Rr.replace(/[^\d]/g,"/").substr(0,10)),Ur&&(Ur=Ur.replace(/[^\d]/g,":").substr(0,8)),Rr?(Hr=Rr,Ur&&(Hr+=" "+Ur.replace(/[^\d]/g,":").substr(0,8))):Hr=Ur.replace(/[^\d]/g,":").substr(0,8),Hr}},{key:"sure",value:function sure(){var Tr=this,Dr={id:this.id,name:this.name?this.name:this.controlStyle,text:this.text&&this.name!==this.text?this.dateFormat(this.text,this.controlStyle):"",title:"日期时间",tipText:this.tipText,isAllowDelete:this.isAllowDelete,isReadOnly:this.isReadOnly,controlStyle:this.controlStyle,innerIdentifier:this.innerIdentifier,dataMetaIdentifier:this.dataMetaIdentifier,identifierFormat:this.identifierFormat,readType:this.readType,labelText:this.name,customProperty:_objectSpread2({},this.customProperty)};Dr.readType?Dr.readType=1:Dr.readType=0,"add"===this.controlStatus?this.vueController.insertDateTime(this.controlStatus,JSON.stringify(Dr)):"update"===this.controlStatus&&this.vueController.updateDateTime(JSON.stringify(Dr)),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents date-modal animation-out",this.$emit("closed")}}]),DateDialog}(Kr.a);__decorate([Prop()],Es.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Es.prototype,"controlStatus",void 0),__decorate([Prop()],Es.prototype,"vueController",void 0),__decorate([Inject("getCustomProperty")],Es.prototype,"getCustomProperty",void 0),Es=__decorate([an({name:"DateDialog",components:{Tabs:Ps}})],Es);var Ss=Es,Ts=Ss,Ds=(Rr("839e"),normalizeComponent(Ts,DateDialogvue_type_template_id_3f07b3fe_render,ys,!1,null,null,null)),ks=Ds.exports,Os=ks,BarCodesvue_type_template_id_b90e0398_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("条形码")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("条形码内容")]),Rr("el-input",{attrs:{size:"mini",placeholder:"条形码内容不能为空",maxlength:"20","show-word-limit":""},on:{input:Tr.codeChange},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("是否显示文本")]),Rr("el-checkbox",{on:{change:Tr.codeChange},model:{value:Tr.isDisplayText,callback:function(Dr){Tr.isDisplayText=Dr},expression:"isDisplayText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1),Rr("fieldset",{staticClass:"fieldset"},[Rr("legend",[Tr._v("预 览")]),Rr("div",{staticClass:"bar-code"},[Rr("img",{directives:[{name:"show",rawName:"v-show",value:Tr.textContent&&!Tr.textField,expression:"textContent && !textField"}],ref:"barcode",attrs:{id:"barcode"}}),Rr("span",{directives:[{name:"show",rawName:"v-show",value:Tr.textContent&&Tr.textField,expression:"textContent && textField"}]},[Tr._v(Tr._s(Tr.textField))])])])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Is=[],Ms=Rr("62c5"),Ns=Rr.n(Ms),Ls=function(Tr){Object(Qr["a"])(Barcode,Tr);var Dr=Object(Zr["a"])(Barcode);function Barcode(){var Tr;return Object(Xr["a"])(this,Barcode),Tr=Dr.apply(this,arguments),Tr.id="",Tr.textContent="",Tr.barCodeStyle="CODE39",Tr.textAlign="center",Tr.isDisplayText=!1,Tr.stripWidth=2,Tr.textField="",Tr.textEslint=/^[a-zA-Z0-9_]+$/,Tr.animationClassNames="control-modal-contents barcode-modal animation-in",Tr}return Object(Yr["a"])(Barcode,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var Tr=this;if("update"===this.controlStatus){var Dr=this.getBarCodeNode();this.id=Dr.id,this.textContent=Dr.textContent,this.isDisplayText=Dr.isDisplayText,this.$nextTick((function(){return Tr.codeChange()}))}else this.id=this.vueController.generateID("BC")}},{key:"getBarCodeNode",value:function getBarCodeNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Ha["a"]&&(Dr=Hr),Dr}},{key:"codeChange",value:function codeChange(){if(this.textField="",this.textEslint.test(this.textContent)){var Tr=38;this.isDisplayText&&(Tr=24),Ns()("#barcode",this.textContent,{format:"",width:2,textAlign:"textAlign",text:this.textContent,fontSize:14,margin:0,height:Tr,textPosition:"bottom",textMargin:0,font:"宋体",displayValue:this.isDisplayText})}else this.textField=""}},{key:"sure",value:function sure(){var Tr=[this.barcode.naturalWidth,this.barcode.naturalHeight],Dr=Tr[0],Rr=Tr[1];"add"===this.controlStatus?this.vueController.insertBarcode(this.controlStatus,this.id,this.textContent,this.isDisplayText,this.barcode.src,Dr,Rr,JSON.stringify(this.dataSource)):"update"===this.controlStatus&&this.vueController.updateBarcode(this.id,this.textContent,this.isDisplayText,this.barcode.src,Dr,Rr,JSON.stringify(this.dataSource)),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents barcode-modal animation-out",this.$emit("closed")}}]),Barcode}(Kr.a);__decorate([Ref()],Ls.prototype,"barcode",void 0),__decorate([Prop()],Ls.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Ls.prototype,"controlStatus",void 0),__decorate([Prop()],Ls.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],Ls.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Ls.prototype,"getDataSource",void 0),Ls=__decorate([an({name:"Barcode"})],Ls);var As=Ls,Rs=As,Fs=(Rr("439c"),normalizeComponent(Rs,BarCodesvue_type_template_id_b90e0398_render,Is,!1,null,null,null)),js=Fs.exports,Bs=js,QrCodevue_type_template_id_bff70498_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("二维码")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("文本内容")]),Rr("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:4,maxRows:8},clearable:"",placeholder:"文本内容",maxlength:"256","show-word-limit":""},on:{input:Tr.codeChange},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("宽(高)")]),Rr("el-input-number",{attrs:{controls:!1,size:"mini",autocomplete:"off"},on:{change:Tr.qrSizeChange},model:{value:Tr.size,callback:function(Dr){Tr.size=Dr},expression:"size"}}),Rr("span",{staticStyle:{padding:"0 20px 0 10px"}},[Tr._v("px")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("纠错能力")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.correctLevel,callback:function(Dr){Tr.correctLevel=Dr},expression:"correctLevel"}},[Rr("el-option",{attrs:{label:"L: 7%的字码可被修正",value:"L"}}),Rr("el-option",{attrs:{label:"M: 15%的字码可被修正",value:"M"}}),Rr("el-option",{attrs:{label:"Q: 25%的字码可被修正",value:"Q"}}),Rr("el-option",{attrs:{label:"H: 30%的字码可被修正",value:"H"}})],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)]),Rr("div",{staticClass:"section-right"},[Rr("fieldset",{staticClass:"fieldset"},[Rr("legend",[Tr._v("预 览")]),Rr("div",{ref:"hoQrcode",style:Tr.qrCanvasBoxStyle,attrs:{id:"qrcode"}})])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Us=[],Hs=Rr("f2e5"),Ws=function(Tr){Object(Qr["a"])(QrCodeDialog,Tr);var Dr=Object(Zr["a"])(QrCodeDialog);function QrCodeDialog(){var Tr;return Object(Xr["a"])(this,QrCodeDialog),Tr=Dr.apply(this,arguments),Tr.id="",Tr.textContent="",Tr.correctLevel="M",Tr.size=80,Tr.animationClassNames="control-modal-contents qrcode-modal animation-in",Tr.qrCanvasBoxStyle={width:"170px",height:"170px"},Tr}return Object(Yr["a"])(QrCodeDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"mounted",value:function mounted(){var Tr=this;if("update"===this.controlStatus){var Dr=this.getQrcodeNode();this.id=Dr.id,this.textContent=Dr.textContent,this.correctLevel=Dr.correctLevel,setTimeout((function(){return Tr.codeChange()}),100)}else this.id=this.vueController.generateID("QC")}},{key:"getQrcodeNode",value:function getQrcodeNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof Wa["a"]&&(Dr=Hr),Dr}},{key:"qrSizeChange",value:function qrSizeChange(){this.size>400&&(this.size=400),this.size>150?this.qrCanvasBoxStyle={width:this.size+20+"px",height:this.size+20+"px"}:this.qrCanvasBoxStyle={width:"170px",height:"170px"},this.codeChange()}},{key:"codeChange",value:function codeChange(){if(this.textContent){var Tr=Object(Hs["a"])({data:this.textContent,size:this.size>400?400:this.size,correctLevel:this.correctLevel});this.hoQrcode.innerHTML="",this.hoQrcode.appendChild(Tr)}}},{key:"sure",value:function sure(){"add"===this.controlStatus?this.vueController.insertQrcode(this.controlStatus,this.id,this.textContent,"qr",this.correctLevel,this.dataSource.dataSourceEnabled,this.dataSource.dataSource,this.dataSource.format,this.dataSource.visitPath,this.dataSource.isReadOnly,this.dataSource.autoUpdate,String(this.dataSource.executeStatus),this.size,this.size):this.vueController.updateQrcode(this.id,this.textContent,"qr",this.correctLevel,this.dataSource.dataSourceEnabled,this.dataSource.dataSource,this.dataSource.format,this.dataSource.visitPath,this.dataSource.isReadOnly,this.dataSource.autoUpdate,String(this.dataSource.executeStatus),this.size,this.size),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents qrcode-modal animation-out",this.$emit("closed")}}]),QrCodeDialog}(Kr.a);__decorate([Prop()],Ws.prototype,"vueController",void 0),__decorate([Ref()],Ws.prototype,"hoQrcode",void 0),__decorate([Inject("setIsDataSource")],Ws.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Ws.prototype,"getDataSource",void 0),__decorate([Prop()],Ws.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Ws.prototype,"controlStatus",void 0),Ws=__decorate([an({name:"QrCodeDialog"})],Ws);var qs=Ws,zs=qs,Vs=(Rr("ca29"),normalizeComponent(zs,QrCodevue_type_template_id_bff70498_render,Us,!1,null,null,null)),Ks=Vs.exports,$s=Ks,TextDialogvue_type_template_id_8c37eab6_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("文本域")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("tabs",{attrs:{tabKey:Tr.textActiveName}},[Rr("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("类型")]),Rr("el-radio",{attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:0},model:{value:Tr.textParam.inputFieldType,callback:function(Dr){Tr.$set(Tr.textParam,"inputFieldType",Dr)},expression:"textParam.inputFieldType"}},[Tr._v("直接输入文本数据")]),Rr("el-radio",{attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:1},model:{value:Tr.textParam.inputFieldType,callback:function(Dr){Tr.$set(Tr.textParam,"inputFieldType",Dr)},expression:"textParam.inputFieldType"}},[Tr._v("下拉列表方式")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.textParam.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.textParam.innerIdentifier,callback:function(Dr){Tr.$set(Tr.textParam,"innerIdentifier",Dr)},expression:"textParam.innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.textParam.dataMetaIdentifier,callback:function(Dr){Tr.$set(Tr.textParam,"dataMetaIdentifier",Dr)},expression:"textParam.dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.textParam.identifierFormat,callback:function(Dr){Tr.$set(Tr.textParam,"identifierFormat",Dr)},expression:"textParam.identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:Tr.textParam.name,callback:function(Dr){Tr.$set(Tr.textParam,"name",Dr)},expression:"textParam.name"}})],1),Rr("li",{staticClass:"line"}),0===Tr.textParam.inputFieldType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("文本内容")]),Rr("el-input",{attrs:{disabled:"update"===Tr.controlStatus,size:"mini",placeholder:"文本内容"},model:{value:Tr.textParam.text,callback:function(Dr){Tr.$set(Tr.textParam,"text",Dr)},expression:"textParam.text"}})],1):Tr._e(),1===Tr.textParam.inputFieldType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("下拉列表")]),Rr("el-input",{attrs:{size:"mini",disabled:!0,placeholder:"下拉列表项"},model:{value:Tr.textParam.downListProperty.source,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"source",Dr)},expression:"textParam.downListProperty.source"}}),Rr("el-button",{attrs:{size:"mini"},on:{click:function(Dr){return Dr.stopPropagation(),Tr.openListArrModel.apply(null,arguments)}}},[Tr._v("浏览")])],1):Tr._e(),1===Tr.textParam.inputFieldType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("是否多选")]),Rr("div",{staticStyle:{width:"40%"}},[Rr("el-checkbox",{on:{change:Tr.allowMultiSelectChange},model:{value:Tr.textParam.downListProperty.allowMultiSelected,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"allowMultiSelected",Dr)},expression:"textParam.downListProperty.allowMultiSelected"}},[Tr._v("允许多选")]),Rr("el-checkbox",{model:{value:Tr.textParam.downListProperty.mutexSelect,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"mutexSelect",Dr)},expression:"textParam.downListProperty.mutexSelect"}},[Tr._v("选项互斥")])],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"60px"}},[Tr._v("分隔符")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:Tr.textParam.downListProperty.splitCharacter,callback:function(Dr){Tr.$set(Tr.textParam.downListProperty,"splitCharacter",Dr)},expression:"textParam.downListProperty.splitCharacter"}},[Rr("el-option",{attrs:{label:",",value:","}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"-",value:"-"}}),Rr("el-option",{attrs:{label:"\\",value:"\\"}})],1)],1)]):Tr._e(),Rr("li",{staticClass:"line"}),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{type:"textarea",size:"mini",placeholder:"提示文本"},model:{value:Tr.textParam.tipText,callback:function(Dr){Tr.$set(Tr.textParam,"tipText",Dr)},expression:"textParam.tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内容只读状态")]),Rr("el-select",{staticStyle:{"text-align":"left"},attrs:{placeholder:"请选择",size:"mini"},model:{value:Tr.textParam.readOnlyStatus,callback:function(Dr){Tr.$set(Tr.textParam,"readOnlyStatus",Dr)},expression:"textParam.readOnlyStatus"}},[Rr("el-option",{attrs:{label:"继承父元素",value:2}}),Rr("el-option",{attrs:{label:"是",value:0}}),Rr("el-option",{attrs:{label:"否",value:1}})],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("固定宽度")]),Rr("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:Tr.textParam.fixedWidth,callback:function(Dr){Tr.$set(Tr.textParam,"fixedWidth",Dr)},expression:"textParam.fixedWidth"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("厘米")])],1),Rr("li",{staticClass:"line"}),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.canModifyContent,callback:function(Dr){Tr.$set(Tr.textParam,"canModifyContent",Dr)},expression:"textParam.canModifyContent"}},[Tr._v("用户可以直接编辑修改内容")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.isAllowDelete,callback:function(Dr){Tr.$set(Tr.textParam,"isAllowDelete",Dr)},expression:"textParam.isAllowDelete"}},[Tr._v("允许被删除")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.enableGlobalColor,callback:function(Dr){Tr.$set(Tr.textParam,"enableGlobalColor",Dr)},expression:"textParam.enableGlobalColor"}},[Tr._v("启用全局文本颜色")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.textParam.alignWithBlocked,callback:function(Dr){Tr.$set(Tr.textParam,"alignWithBlocked",Dr)},expression:"textParam.alignWithBlocked"}},[Tr._v("文本域中的段落使用块对齐(诊断专用)")])],1),Rr("div",{staticClass:"control-item",staticStyle:{"margin-left":"38px"}},[Rr("el-checkbox",{model:{value:Tr.textParam.readType,callback:function(Dr){Tr.$set(Tr.textParam,"readType",Dr)},expression:"textParam.readType"}},[Tr._v("自动回填")])],1)])])]),Rr("tab-pane",{attrs:{label:"其他属性",notHover:!1,name:"third"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)])]),Tr._t("hoTextFieldModal")],2)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Gs=[],Js=function(Tr){Object(Qr["a"])(TextDialog,Tr);var Dr=Object(Zr["a"])(TextDialog);function TextDialog(){var Tr;return Object(Xr["a"])(this,TextDialog),Tr=Dr.apply(this,arguments),Tr.textParam=Object.assign({},ri),Tr.textActiveName="first",Tr.isMinLenth=!1,Tr.isMaxLenth=!1,Tr.isMin=!1,Tr.isMax=!1,Tr.animationClassNames="control-modal-contents text-modal animation-in",Tr.customPropertyValue=new Object,Tr.endPath="",Tr}return Object(Yr["a"])(TextDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"customsValue",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.text||Tr.value)return Tr}))}},{key:"listArrSource",get:function get(){return this.getListArrSource()}},{key:"customProperty",get:function get(){return this.getCustomProperty()}},{key:"created",value:function created(){var Tr=this,Dr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);if(this.endPath=Dr.docTree.curDomRange.normalize().endPath,"update"===this.controlStatus){var Rr=this.getTextNode();if(Object.keys(this.textParam).forEach((function(Dr){var Ur=Dr.replace(/_/g,"");if(Object.prototype.hasOwnProperty.call(Tr.textParam,Ur))if("readOnlyStatus"===Ur)Tr.textParam.readOnlyStatus=Number(Rr.readOnlyStatus);else if("customProperty"===Ur){Object(_o["b"])(Rr[Ur])?Tr.textParam.customProperty=Rr.customProperty:Tr.textParam.customProperty=new Object;var Hr=new Object;Object.keys(Tr.textParam.customProperty).forEach((function(Dr){Hr[Dr]=Tr.textParam.customProperty[Dr]})),Tr.customPropertyValue=_objectSpread2({},Hr)}else"readType"===Ur?Tr.textParam.readType=1==Rr.readType:Tr.textParam[Ur]=Rr[Ur]})),1===this.textParam.inputFieldType){var Ur=this.textParam.downListProperty.listItems,Hr=Ur?JSON.parse(Ur):[];this.setListStyle(Hr,this.textParam.downListProperty.source)}else this.textParam.inputFieldType=0}else this.textParam.id=this.vueController.generateID("TF"),this.textParam.downListProperty.splitCharacter=","}},{key:"getTextNode",value:function getTextNode(){var Tr,Dr,Rr=null===(Tr=this.vueController.findNodebyPath(this.endPath))||void 0===Tr?void 0:Tr.node;if(Rr instanceof li["a"]||Rr instanceof ei["f"]){var Ur=Rr.parentNode;Dr=Ur instanceof ei["f"]?Ur:Rr}else if(Rr instanceof ci["a"]){var Hr=Rr.parentNode;Hr instanceof ei["f"]&&(Dr=Hr)}return Dr}},{key:"allowMultiSelectChange",value:function allowMultiSelectChange(){this.textParam.downListProperty.allowMultiSelected||(this.textParam.downListProperty.mutexSelect=!1)}},{key:"openListArrModel",value:function openListArrModel(){this.setListAllowMultiSelected(this.textParam.downListProperty.allowMultiSelected),this.setIsListStyle(!0)}},{key:"minLengthChange",value:function minLengthChange(Tr){}},{key:"maxLengthChange",value:function maxLengthChange(Tr){}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){if(1===this.textParam.inputFieldType){this.textParam.downListProperty.source=this.listArrSource,this.textParam.downListProperty.listItems=JSON.stringify(this.getListStyle());var Tr=[];this.getListStyle().forEach((function(Dr){Dr.default&&Tr.push(Dr.text)})),this.textParam.text=Tr.join(",")}else this.textParam.downListProperty=new ei["c"];this.textParam.bandDataSource=this.dataSource,0===this.textParam.inputFieldType?this.textParam.name=this.textParam.name?this.textParam.name:"请输入":1===this.textParam.inputFieldType&&(this.textParam.name=this.textParam.name?this.textParam.name:"请选择"),this.textParam.labelText=this.textParam.name,this.textParam.customProperty=_objectSpread2({},this.customProperty),this.textParam.readType?this.textParam.readType=1:this.textParam.readType=0,"add"===this.controlStatus?this.vueController.insertTextInputField(this.controlStatus,this.textParam):"update"===this.controlStatus&&this.vueController.updateTextInputField(this.textParam),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents text-modal animation-out",this.$emit("closed"),this.endPath=""}}]),TextDialog}(Kr.a);__decorate([Ref()],Js.prototype,"barcode",void 0),__decorate([Prop()],Js.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Js.prototype,"controlStatus",void 0),__decorate([Prop()],Js.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],Js.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Js.prototype,"getDataSource",void 0),__decorate([Inject("setIsCustoms")],Js.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Js.prototype,"getCustomsValue",void 0),__decorate([Inject("setListAllowMultiSelected")],Js.prototype,"setListAllowMultiSelected",void 0),__decorate([Inject("setIsListStyle")],Js.prototype,"setIsListStyle",void 0),__decorate([Inject("getListStyle")],Js.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],Js.prototype,"getListArrSource",void 0),__decorate([Inject("setListStyle")],Js.prototype,"setListStyle",void 0),__decorate([Inject("getCustomProperty")],Js.prototype,"getCustomProperty",void 0),Js=__decorate([an({name:"TextDialog",components:{Tabs:Ps}})],Js);var Xs=Js,Ys=Xs,Qs=(Rr("e8ee"),normalizeComponent(Ys,TextDialogvue_type_template_id_8c37eab6_render,Gs,!1,null,null,null)),Zs=Qs.exports,el=Zs,ExpressionFormvue_type_template_id_0fa85a23_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v(Tr._s(Tr.names[Tr.expressStyle]))]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.cancel}})]),Rr("section",{staticClass:"expression-form"},["style1"===Tr.expressStyle?[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1),Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"line style1-line"}),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("末次月经/绝经年龄")]),Tr.isUseDate?Rr("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:Tr.useDateFormat,"value-format":Tr.useDateFormat,placeholder:"日期"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}}):Tr._e(),Tr.isUseDate?Tr._e():Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}})],1)]),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)]:Tr._e(),"style2"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1)]),Rr("div",{staticClass:"line style21-line"}),Rr("div",{staticClass:"line style22-line"}),Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("末次月经/绝经年龄")]),Tr.isUseDate?Rr("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:Tr.useDateFormat,"value-format":Tr.useDateFormat,placeholder:"日期"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}}):Tr._e(),Tr.isUseDate?Tr._e():Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}})],1),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)])]:Tr._e(),"style3"===Tr.expressStyle?[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1),Rr("div",{staticClass:"expression-style1"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"line style31-line"}),Rr("div",{staticClass:"line style32-line"}),Rr("div",{staticClass:"expression-item",staticStyle:{"margin-left":"73px"}},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)]),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("末次月经/绝经年龄")]),Tr.isUseDate?Rr("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:Tr.useDateFormat,"value-format":Tr.useDateFormat,placeholder:"日期"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}}):Tr._e(),Tr.isUseDate?Tr._e():Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menoPauseAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menoPauseAge",Dr)},expression:"menstrualHistory.menoPauseAge"}})],1)]:Tr._e(),"style4"===Tr.expressStyle?Rr("div",{staticClass:"style4"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("初潮年龄")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menarcheAge,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menarcheAge",Dr)},expression:"menstrualHistory.menarcheAge"}})],1),Rr("div",{staticClass:"line style41-line"}),Rr("div",{staticClass:"expression-style4"},[Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("经期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.menseDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"menseDays",Dr)},expression:"menstrualHistory.menseDays"}})],1),Rr("div",{staticClass:"line style42-line"}),Rr("div",{staticClass:"expression-item"},[Rr("span",[Tr._v("周期(天)")]),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.menstrualHistory.cycleDays,callback:function(Dr){Tr.$set(Tr.menstrualHistory,"cycleDays",Dr)},expression:"menstrualHistory.cycleDays"}})],1)])]):Tr._e(),"style1"===Tr.expressStyle||"style2"===Tr.expressStyle||"style3"===Tr.expressStyle?[Rr("div",{staticClass:"express-date-items"},[Rr("el-checkbox",{on:{change:Tr.useDateChange},model:{value:Tr.isUseDate,callback:function(Dr){Tr.isUseDate=Dr},expression:"isUseDate"}},[Tr._v("使用日期")])],1),Tr.isUseDate?Rr("div",{staticClass:"express-date-items"},[Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:Tr.dateFormatChange},model:{value:Tr.useDateFormat,callback:function(Dr){Tr.useDateFormat=Dr},expression:"useDateFormat"}},[Rr("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),Rr("el-option",{attrs:{label:"yyyy/MM/dd",value:"yyyy/MM/dd"}}),Rr("el-option",{attrs:{label:"yyyy年MM月dd日",value:"yyyy年MM月dd日"}})],1)],1):Tr._e()]:Tr._e(),"style5"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style5"},[Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value1,callback:function(Dr){Tr.$set(Tr.style567,"value1",Dr)},expression:"style567.value1"}}),Rr("div",{staticStyle:{width:"100px"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value2,callback:function(Dr){Tr.$set(Tr.style567,"value2",Dr)},expression:"style567.value2"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value3,callback:function(Dr){Tr.$set(Tr.style567,"value3",Dr)},expression:"style567.value3"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value4,callback:function(Dr){Tr.$set(Tr.style567,"value4",Dr)},expression:"style567.value4"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value5,callback:function(Dr){Tr.$set(Tr.style567,"value5",Dr)},expression:"style567.value5"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value6,callback:function(Dr){Tr.$set(Tr.style567,"value6",Dr)},expression:"style567.value6"}}),Rr("div",{staticStyle:{width:"100px"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value7,callback:function(Dr){Tr.$set(Tr.style567,"value7",Dr)},expression:"style567.value7"}})],1)]:Tr._e(),"style6"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style5"},[Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value1,callback:function(Dr){Tr.$set(Tr.style567,"value1",Dr)},expression:"style567.value1"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value2,callback:function(Dr){Tr.$set(Tr.style567,"value2",Dr)},expression:"style567.value2"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value3,callback:function(Dr){Tr.$set(Tr.style567,"value3",Dr)},expression:"style567.value3"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value4,callback:function(Dr){Tr.$set(Tr.style567,"value4",Dr)},expression:"style567.value4"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value5,callback:function(Dr){Tr.$set(Tr.style567,"value5",Dr)},expression:"style567.value5"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value6,callback:function(Dr){Tr.$set(Tr.style567,"value6",Dr)},expression:"style567.value6"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value7,callback:function(Dr){Tr.$set(Tr.style567,"value7",Dr)},expression:"style567.value7"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value8,callback:function(Dr){Tr.$set(Tr.style567,"value8",Dr)},expression:"style567.value8"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value9,callback:function(Dr){Tr.$set(Tr.style567,"value9",Dr)},expression:"style567.value9"}})],1)]:Tr._e(),"style7"===Tr.expressStyle?[Rr("div",{staticClass:"expression-style5 style7"},[Rr("div",{staticClass:"line style71-line"}),Rr("div",{staticClass:"line style72-line"}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value1,callback:function(Dr){Tr.$set(Tr.style567,"value1",Dr)},expression:"style567.value1"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value2,callback:function(Dr){Tr.$set(Tr.style567,"value2",Dr)},expression:"style567.value2"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value3,callback:function(Dr){Tr.$set(Tr.style567,"value3",Dr)},expression:"style567.value3"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value4,callback:function(Dr){Tr.$set(Tr.style567,"value4",Dr)},expression:"style567.value4"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value5,callback:function(Dr){Tr.$set(Tr.style567,"value5",Dr)},expression:"style567.value5"}}),Rr("el-input",{attrs:{type:"text",size:"small"},model:{value:Tr.style567.value6,callback:function(Dr){Tr.$set(Tr.style567,"value6",Dr)},expression:"style567.value6"}})],1)]:Tr._e(),"style8"===Tr.expressStyle?[Rr("div",{staticClass:"style89"},[Rr("span",{staticClass:"pos-top"},[Tr._v("上颌")]),Rr("span",{staticClass:"pos-bottom"},[Tr._v("下颌")]),Rr("span",{staticClass:"pos-left"},[Tr._v("左")]),Rr("span",{staticClass:"pos-right"},[Tr._v("右")]),Tr._m(0),Rr("ul",[Tr._l(["8","7","6","5","4","3","2","1"],(function(Dr){return Rr("li",{key:Dr+"a"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topLeft,callback:function(Dr){Tr.$set(Tr.style89,"topLeft",Dr)},expression:"style89.topLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["1","2","3","4","5","6","7","8"],(function(Dr){return Rr("li",{key:Dr+"b"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topRight,callback:function(Dr){Tr.$set(Tr.style89,"topRight",Dr)},expression:"style89.topRight"}},[Rr("el-checkbox-button",{attrs:{size:"mini",label:Dr}})],1)],1)}))],2),Rr("ul",[Tr._l(["8","7","6","5","4","3","2","1"],(function(Dr){return Rr("li",{key:Dr+"c"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomLeft,callback:function(Dr){Tr.$set(Tr.style89,"bottomLeft",Dr)},expression:"style89.bottomLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["1","2","3","4","5","6","7","8"],(function(Dr){return Rr("li",{key:Dr+"d"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomRight,callback:function(Dr){Tr.$set(Tr.style89,"bottomRight",Dr)},expression:"style89.bottomRight"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)}))],2)])]:Tr._e(),"style9"===Tr.expressStyle?[Rr("div",{staticClass:"style89 style9"},[Rr("span",{staticClass:"pos-top"},[Tr._v("上颌")]),Rr("span",{staticClass:"pos-bottom"},[Tr._v("下颌")]),Rr("span",{staticClass:"pos-left"},[Tr._v("左")]),Rr("span",{staticClass:"pos-right"},[Tr._v("右")]),Tr._m(1),Rr("ul",[Tr._l(["V","IV","III","II","I"],(function(Dr){return Rr("li",{key:Dr+"a"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topLeft,callback:function(Dr){Tr.$set(Tr.style89,"topLeft",Dr)},expression:"style89.topLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["I","II","III","IV","V"],(function(Dr){return Rr("li",{key:Dr+"b"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.topRight,callback:function(Dr){Tr.$set(Tr.style89,"topRight",Dr)},expression:"style89.topRight"}},[Rr("el-checkbox-button",{attrs:{size:"mini",label:Dr}})],1)],1)}))],2),Rr("ul",[Tr._l(["V","IV","III","II","I"],(function(Dr){return Rr("li",{key:Dr+"c"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomLeft,callback:function(Dr){Tr.$set(Tr.style89,"bottomLeft",Dr)},expression:"style89.bottomLeft"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)})),Tr._l(["I","II","III","IV","V"],(function(Dr){return Rr("li",{key:Dr+"d"},[Rr("el-checkbox-group",{attrs:{size:"mini"},model:{value:Tr.style89.bottomRight,callback:function(Dr){Tr.$set(Tr.style89,"bottomRight",Dr)},expression:"style89.bottomRight"}},[Rr("el-checkbox-button",{attrs:{label:Dr}})],1)],1)}))],2)])]:Tr._e()],2),Rr("footer",{staticClass:"dialog-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")]),"style8"===Tr.expressStyle||"style9"===Tr.expressStyle?Rr("el-button",{attrs:{size:"small"},on:{click:Tr.reset}},[Tr._v("重 置")]):Tr._e(),"style8"===Tr.expressStyle||"style9"===Tr.expressStyle?Rr("el-button",{attrs:{size:"small"},on:{click:Tr.reverse}},[Tr._v("反 选")]):Tr._e(),"style8"===Tr.expressStyle||"style9"===Tr.expressStyle?Rr("el-button",{attrs:{size:"small"},on:{click:Tr.all}},[Tr._v("全 选")]):Tr._e(),Rr("el-button",{attrs:{size:"small"},on:{click:Tr.cancel}},[Tr._v("取 消")])],1)])},tl=[function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"titles"},[Rr("li",[Tr._v("第三磨牙")]),Rr("li",[Tr._v("第二磨牙")]),Rr("li",[Tr._v("第一磨牙")]),Rr("li",[Tr._v("第二前磨牙")]),Rr("li",[Tr._v("第一前磨牙")]),Rr("li",[Tr._v("尖牙")]),Rr("li",[Tr._v("侧切牙")]),Rr("li",[Tr._v("中切牙")]),Rr("li",[Tr._v("中切牙")]),Rr("li",[Tr._v("侧切牙")]),Rr("li",[Tr._v("尖牙")]),Rr("li",[Tr._v("第一前磨牙")]),Rr("li",[Tr._v("第二前磨牙")]),Rr("li",[Tr._v("第一磨牙")]),Rr("li",[Tr._v("第二磨牙")]),Rr("li",[Tr._v("第三磨牙")])])},function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"titles"},[Rr("li",[Tr._v("第二乳磨牙")]),Rr("li",[Tr._v("第一乳磨牙")]),Rr("li",[Tr._v("乳尖牙")]),Rr("li",[Tr._v("乳侧切牙")]),Rr("li",[Tr._v("乳中切牙")]),Rr("li",[Tr._v("乳中切牙")]),Rr("li",[Tr._v("乳侧切牙")]),Rr("li",[Tr._v("乳尖牙")]),Rr("li",[Tr._v("第一乳磨牙")]),Rr("li",[Tr._v("第二乳磨牙")])])}],rl=function(Tr){Object(Qr["a"])(ExpressionForm,Tr);var Dr=Object(Zr["a"])(ExpressionForm);function ExpressionForm(){var Tr;return Object(Xr["a"])(this,ExpressionForm),Tr=Dr.apply(this,arguments),Tr.animationClassNames="control-modal-contents express-dialog animation-in",Tr.isUseDate=!1,Tr.useDateFormat="yyyy-MM-dd",Tr.names={style1:"经期史",style2:"经期史",style3:"经期史",style4:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"},Tr.menstrualHistory={menseDays:"",cycleDays:"",menarcheAge:"14",menoPauseAge:"52"},Tr.style567={value1:"1",value2:"2",value3:"3",value4:"4",value5:"5",value6:"6",value7:"7",value8:"8",value9:"9"},Tr.style89={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]},Tr.style8={topLeft:["8","7","6","5","4","3","2","1"],topRight:["1","2","3","4","5","6","7","8"],bottomLeft:["8","7","6","5","4","3","2","1"],bottomRight:["1","2","3","4","5","6","7","8"]},Tr.style9={topLeft:["V","IV","III","II","I"],topRight:["I","II","III","IV","V"],bottomLeft:["V","IV","III","II","I"],bottomRight:["I","II","III","IV","V"]},Tr.styleObjectArray={style1:1,style2:1,style3:1,style4:1,style5:2,style6:2,style7:2,style8:3,style9:3},Tr}return Object(Yr["a"])(ExpressionForm,[{key:"controlType",get:function get(){return this.controlProperty.controlType}},{key:"controlStatus",get:function get(){return this.controlProperty.controlStatus}},{key:"expressStyle",get:function get(){return this.controlProperty.expressStyle}},{key:"created",value:function created(){if("update"===this.controlStatus){var Tr=this.getUpdateNodeValue();if(1===this.styleObjectArray[this.expressStyle]){var Dr=Tr,Rr=/^[0-9]*$/,Ur=Dr[3];!Rr.test(Ur)&&Ur&&(this.isUseDate=!0,-1!==Ur.indexOf("-")?this.useDateFormat="yyyy-MM-dd":-1!==Ur.indexOf("/")?this.useDateFormat="yyyy/MM/dd":-1!==Ur.indexOf("年")&&(this.useDateFormat="yyyy年MM月dd日")),this.menstrualHistory={menseDays:Dr[0]?Dr[0].replace("天",""):"",cycleDays:Dr[1]?Dr[1].replace("天",""):"",menarcheAge:Dr[2]?Dr[2].replace("岁",""):"",menoPauseAge:Ur}}else if(2===this.styleObjectArray[this.expressStyle]){var Hr=Tr,Wr=Object(Gr["a"])(Hr);this.style567.value1=Wr[0],this.style567.value2=Wr[1],this.style567.value3=Wr[2],this.style567.value4=Wr[3],this.style567.value5=Wr[4],this.style567.value6=Wr[5],this.style567.value7=Wr[6],this.style567.value8=Wr[7],this.style567.value9=Wr[8]}else if(3===this.styleObjectArray[this.expressStyle]){var zr=Tr,Vr=Object(Gr["a"])(zr);this.style89.topLeft=Vr[0],this.style89.topRight=Vr[1],this.style89.bottomLeft=Vr[2],this.style89.bottomRight=Vr[3]}}}},{key:"useDateChange",value:function useDateChange(){this.isUseDate?this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:""}):this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:"52"})}},{key:"dateFormatChange",value:function dateFormatChange(){this.menstrualHistory.menoPauseAge&&(this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:Object(Jn["d"])(this.menstrualHistory.menoPauseAge,this.useDateFormat)}))}},{key:"reset",value:function reset(){this.style89={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]}}},{key:"all",value:function all(){"style8"===this.expressStyle&&(this.style89=Object.assign({},this.style8)),"style9"===this.expressStyle&&(this.style89=Object.assign({},this.style9))}},{key:"reverse",value:function reverse(){this.reverseOrSort("reverse")}},{key:"sureSort",value:function sureSort(){this.reverseOrSort("sort")}},{key:"reverseOrSort",value:function reverseOrSort(Tr){var Dr,Rr=this,Ur={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]};"style8"===this.expressStyle?Dr=Object.assign({},this.style8):"style9"===this.expressStyle&&(Dr=Object.assign({},this.style9)),Object.keys(this.style89).map((function(Hr){Dr[Hr].map((function(Dr){return"reverse"===Tr?Rr.style89[Hr].includes(Dr)||Ur[Hr].push(Dr):"sort"===Tr&&(Rr.style89[Hr].includes(Dr)?Ur[Hr].push(Dr):Ur[Hr].push("")),Dr}))})),this.style89=Object.assign({},Ur)}},{key:"objectToArray",value:function objectToArray(Tr){var Dr=[];return Object.keys(Tr).forEach((function(Rr){Dr.push(Tr[Rr])})),Dr}},{key:"cancel",value:function cancel(){this.animationClassNames="control-modal-contents express-dialog animation-out",this.$emit("closed")}},{key:"sure",value:function sure(){if(""===this.expressStyle||"style1"===this.expressStyle||"style2"===this.expressStyle||"style3"===this.expressStyle||"style4"===this.expressStyle){var Tr=/^[\u2E80-\u9FFF]+$/;Tr.test(this.menstrualHistory.menseDays)||(this.menstrualHistory.menseDays=this.menstrualHistory.menseDays+"天"),Tr.test(this.menstrualHistory.cycleDays)||(this.menstrualHistory.cycleDays=this.menstrualHistory.cycleDays+"天"),Tr.test(this.menstrualHistory.menarcheAge)||(this.menstrualHistory.menarcheAge=this.menstrualHistory.menarcheAge+"岁"),this.insertMenstrualHistory([this.controlStatus,this.expressStyle].concat(Object(Gr["a"])(this.objectToArray(this.menstrualHistory))))}else"style5"===this.expressStyle?this.insertPupilMap([this.controlStatus].concat(Object(Gr["a"])(this.objectToArray(this.style567)))):"style6"===this.expressStyle?this.insertLightLocation([this.controlStatus].concat(Object(Gr["a"])(this.objectToArray(this.style567)))):"style7"===this.expressStyle?this.insertFetalHeartMap([this.controlStatus].concat(Object(Gr["a"])(this.objectToArray(this.style567)))):"style8"===this.expressStyle?(this.reverseOrSort("sort"),this.insertPermanentTeethMap(this.controlStatus,[this.style89.topLeft,this.style89.topRight,this.style89.bottomLeft,this.style89.bottomRight])):"style9"===this.expressStyle&&(this.reverseOrSort("sort"),this.insertPrimaryTeethMap(this.controlStatus,[this.style89.topLeft,this.style89.topRight,this.style89.bottomLeft,this.style89.bottomRight]));this.cancel()}},{key:"insertMenstrualHistory",value:function insertMenstrualHistory(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5];"add"===Rr?this.vueController.insertMenstrualHistory(Rr,Ur,Hr,Wr,zr,Vr):this.vueController.updateMenstrualHistory(Ur,Hr,Wr,zr,Vr)}},{key:"insertPupilMap",value:function insertPupilMap(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5],Kr=Dr[6],$r=Dr[7];"add"===Rr?this.vueController.insertPupilMap(Rr,Ur,Hr,Wr,zr,Vr,Kr,$r):this.vueController.updatePupilMap(Ur,Hr,Wr,zr,Vr,Kr,$r)}},{key:"insertLightLocation",value:function insertLightLocation(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5],Kr=Dr[6],$r=Dr[7],Jr=Dr[8],Xr=Dr[9];"add"===Rr?this.vueController.insertLightLocation(Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Jr,Xr):this.vueController.updateLightLocation(Ur,Hr,Wr,zr,Vr,Kr,$r,Jr,Xr)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(Tr){var Dr=Object(Gr["a"])(Tr),Rr=Dr[0],Ur=Dr[1],Hr=Dr[2],Wr=Dr[3],zr=Dr[4],Vr=Dr[5],Kr=Dr[6];"add"===Rr?this.vueController.insertFetalHeartMap(Rr,Ur,Hr,Wr,zr,Vr,Kr):this.vueController.updateFetalHeartMap(Ur,Hr,Wr,zr,Vr,Kr)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(Tr,Dr){var Rr=Object(Gr["a"])(Dr),Ur=Rr[0],Hr=Rr[1],Wr=Rr[2],zr=Rr[3];"add"===Tr?this.vueController.insertPermanentTeethMap(Tr,Ur,Hr,Wr,zr):this.vueController.updatePermanentTeethMap(Ur,Hr,Wr,zr)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(Tr,Dr){var Rr=Object(Gr["a"])(Dr),Ur=Rr[0],Hr=Rr[1],Wr=Rr[2],zr=Rr[3];"add"===Tr?this.vueController.insertPrimaryTeethMap(Tr,Ur,Hr,Wr,zr):this.vueController.updatePrimaryTeethMap(Ur,Hr,Wr,zr)}}]),ExpressionForm}(Kr.a);__decorate([Prop()],rl.prototype,"controlProperty",void 0),__decorate([Prop()],rl.prototype,"vueController",void 0),__decorate([Prop()],rl.prototype,"updateNode",void 0),__decorate([Inject("getUpdateNodeValue")],rl.prototype,"getUpdateNodeValue",void 0),rl=__decorate([an({name:"ExpressionForm"})],rl);var nl=rl,il=nl,al=(Rr("b9af"),normalizeComponent(il,ExpressionFormvue_type_template_id_0fa85a23_scoped_true_render,tl,!1,null,"0fa85a23",null)),ol=al.exports,sl=ol,RadioCheckboxvue_type_template_id_63a63a26_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:"control-modal-contents radio-checkbox-modal "+Tr.animationClassName,style:{width:1===Tr.boxGroup?"1060px":"500px"}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v(Tr._s("RadioBox"===Tr.controlType?"单选框":"复选框")+Tr._s(1===Tr.boxGroup?"组":""))]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("类型")]),Rr("el-radio",{attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:1},model:{value:Tr.boxGroup,callback:function(Dr){Tr.boxGroup=Dr},expression:"boxGroup"}},[Tr._v("多项")]),Rr("el-radio",{staticStyle:{"margin-left":"30px"},attrs:{disabled:"update"===Tr.controlStatus,size:"small",label:0},model:{value:Tr.boxGroup,callback:function(Dr){Tr.boxGroup=Dr},expression:"boxGroup"}},[Tr._v("单项")])],1),1===Tr.boxGroup?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:Tr.groupName,callback:function(Dr){Tr.groupName=Dr},expression:"groupName"}})],1):Tr._e(),1===Tr.boxGroup?Rr("li",{staticClass:"control-item",staticStyle:{padding:"0"}},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.radioCheckBoxGroup,height:"300px"}},[Rr("el-table-column",{attrs:{label:"文本",width:"160"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}],null,!1,4204152597)}),Rr("el-table-column",{attrs:{label:"提示文本",width:"100"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:Dr.row.tipText,callback:function(Rr){Tr.$set(Dr.row,"tipText",Rr)},expression:"scope.row.tipText"}})]}}],null,!1,2396764658)}),Rr("el-table-column",{attrs:{label:"数值",width:"80"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:Dr.row.numericValue,callback:function(Rr){Tr.$set(Dr.row,"numericValue",Rr)},expression:"scope.row.numericValue"}})]}}],null,!1,3789767535)}),Rr("el-table-column",{attrs:{label:"内部标识符",width:"120"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"内部标识符"},model:{value:Dr.row.innerIdentifier,callback:function(Rr){Tr.$set(Dr.row,"innerIdentifier",Rr)},expression:"scope.row.innerIdentifier"}})]}}],null,!1,1119088692)}),Rr("el-table-column",{attrs:{label:"数据元标识符",width:"120"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"数据元标识符"},model:{value:Dr.row.dataMetaIdentifier,callback:function(Rr){Tr.$set(Dr.row,"dataMetaIdentifier",Rr)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,!1,479119831)}),Rr("el-table-column",{attrs:{label:"表示格式",width:"100"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"表示格式"},model:{value:Dr.row.identifierFormat,callback:function(Rr){Tr.$set(Dr.row,"identifierFormat",Rr)},expression:"scope.row.identifierFormat"}})]}}],null,!1,241604674)}),Rr("el-table-column",{attrs:{label:"默认选中",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return["RadioBox"===Tr.controlType?Rr("el-radio",{staticClass:"table-radio",attrs:{label:Dr.row.id},model:{value:Tr.tableRadio,callback:function(Dr){Tr.tableRadio=Dr},expression:"tableRadio"}}):Tr._e(),"CheckBox"===Tr.controlType?Rr("el-checkbox",{model:{value:Dr.row.isSelected,callback:function(Rr){Tr.$set(Dr.row,"isSelected",Rr)},expression:"scope.row.isSelected"}}):Tr._e()]}}],null,!1,1265273066)}),Rr("el-table-column",{attrs:{label:"勾选框左对齐",width:"58"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.boxAlign,callback:function(Rr){Tr.$set(Dr.row,"boxAlign",Rr)},expression:"scope.row.boxAlign"}})]}}],null,!1,599012276)}),Rr("el-table-column",{attrs:{label:"内容转文本",width:"58"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.isTransToText,callback:function(Rr){Tr.$set(Dr.row,"isTransToText",Rr)},expression:"scope.row.isTransToText"}})]}}],null,!1,1354544746)}),Rr("el-table-column",{attrs:{label:"编辑文本",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.isEditText,callback:function(Rr){Tr.$set(Dr.row,"isEditText",Rr)},expression:"scope.row.isEditText"}})]}}],null,!1,3019799127)}),Rr("el-table-column",{attrs:{label:"可以删除",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.isAllowDelete,callback:function(Rr){Tr.$set(Dr.row,"isAllowDelete",Rr)},expression:"scope.row.isAllowDelete"}})]}}],null,!1,2012793206)}),Rr("el-table-column",{attrs:{label:"自动回填",width:"44"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-checkbox",{model:{value:Dr.row.readType,callback:function(Rr){Tr.$set(Dr.row,"readType",Rr)},expression:"scope.row.readType"}})]}}],null,!1,373021414)}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")])]}}],null,!1,1240557165)})],1)],1):Tr._e(),0===Tr.boxGroup?[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.radioCheckbox.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内部标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:Tr.radioCheckbox.innerIdentifier,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"innerIdentifier",Dr)},expression:"radioCheckbox.innerIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据元标识符")]),Rr("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:Tr.radioCheckbox.dataMetaIdentifier,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"dataMetaIdentifier",Dr)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("表示格式")]),Rr("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:Tr.radioCheckbox.identifierFormat,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"identifierFormat",Dr)},expression:"radioCheckbox.identifierFormat"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("名称")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:Tr.radioCheckbox.groupName,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"groupName",Dr)},expression:"radioCheckbox.groupName"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("文本")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},model:{value:Tr.radioCheckbox.text,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"text",Dr)},expression:"radioCheckbox.text"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("提示文本")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:Tr.radioCheckbox.tipText,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"tipText",Dr)},expression:"radioCheckbox.tipText"}})],1),Rr("li",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isSelected,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isSelected",Dr)},expression:"radioCheckbox.isSelected"}},[Tr._v("处于选择状态")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isAllowDelete,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isAllowDelete",Dr)},expression:"radioCheckbox.isAllowDelete"}},[Tr._v("可以删除")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.boxAlign,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"boxAlign",Dr)},expression:"radioCheckbox.boxAlign"}},[Tr._v("勾选框左对齐")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.readType,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"readType",Dr)},expression:"radioCheckbox.readType"}},[Tr._v("自动回填")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isTransToText,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isTransToText",Dr)},expression:"radioCheckbox.isTransToText"}},[Tr._v("内容转文本")]),Rr("el-checkbox",{model:{value:Tr.radioCheckbox.isEditText,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"isEditText",Dr)},expression:"radioCheckbox.isEditText"}},[Tr._v("编辑文本")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数值")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:Tr.radioCheckbox.numericValue,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"numericValue",Dr)},expression:"radioCheckbox.numericValue"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("附加数据")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"附加数据"},model:{value:Tr.radioCheckbox.additionalData,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"additionalData",Dr)},expression:"radioCheckbox.additionalData"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("勾选级联对象")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"勾选级联对象"},model:{value:Tr.radioCheckbox.checkCascadeObject,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"checkCascadeObject",Dr)},expression:"radioCheckbox.checkCascadeObject"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("不勾选级联对象")]),Rr("el-input",{attrs:{type:"text",size:"mini",placeholder:"不勾选级联对象"},model:{value:Tr.radioCheckbox.unCheckCascadeObject,callback:function(Dr){Tr.$set(Tr.radioCheckbox,"unCheckCascadeObject",Dr)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)]:Tr._e()],2)]),Rr("footer",{staticClass:"modal-footer"},[1===Tr.boxGroup?Rr("el-button",{staticStyle:{transform:"translateX(-352px)"},attrs:{type:"primary",size:"small"},on:{click:Tr.addBox}},[Tr._v("增加"+Tr._s("RadioBox"===Tr.controlType?"单选项":"复选项"))]):Tr._e(),Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},ll=[],cl={id:"",title:"",groupName:"",controlStyle:"",isSelected:!1,isAllowDelete:!1,boxAlign:!0,numericValue:"",additionalData:"",tipText:"",bandDataSource:"",text:"",checkCascadeObject:"",unCheckCascadeObject:"",innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,isTransToText:!1,isEditText:!1},ul=function(Tr){Object(Qr["a"])(RadioCheckbox,Tr);var Dr=Object(Zr["a"])(RadioCheckbox);function RadioCheckbox(){var Tr;return Object(Xr["a"])(this,RadioCheckbox),Tr=Dr.apply(this,arguments),Tr.boxGroup=1,Tr.groupName="",Tr.tableRadio="",Tr.radioCheckBoxGroup=[],Tr.animationClassName="animation-in",Tr.radioCheckbox=JSON.parse(JSON.stringify(cl)),Tr.dynamicTags=[],Tr.inputVisible=!1,Tr.inputValue="",Tr}return Object(Yr["a"])(RadioCheckbox,[{key:"controlType",get:function get(){return this.controlProperty.controlType}},{key:"controlTypeStatus",get:function get(){return this.controlProperty.controlStatus}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var Tr=this;if("update"===this.controlTypeStatus){var Dr=this.getRadioCheckNode();Object.keys(this.radioCheckbox).forEach((function(Rr){"readType"===Rr?Tr.radioCheckbox.readType=1==Dr.readType:Tr.radioCheckbox[Rr]=Dr[Rr]})),this.boxGroup=0}else this.radioCheckbox.id="RadioBox"===this.controlType?this.vueController.generateID("RB"):this.vueController.generateID("CB"),this.radioCheckbox.controlStyle=this.controlType,this.radioCheckbox.title="RadioBox"===this.controlType?"单选框":"复选框";1===this.boxGroup&&(this.addBox(),this.addBox())}},{key:"getRadioCheckNode",value:function getRadioCheckNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Ur=Rr.docTree.curDomRange.normalize().endPath,Hr=null===(Tr=Rr.vueController.findNodebyPath(Ur))||void 0===Tr?void 0:Tr.node;return Hr instanceof ga["a"]&&(Dr=Hr),Dr}},{key:"addBox",value:function addBox(){var Tr=_objectSpread2({},cl);Tr.id="RadioBox"===this.controlType?this.vueController.generateID("RB"):this.vueController.generateID("CB"),Tr.groupName=this.groupName,this.radioCheckBoxGroup.push(Tr)}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.radioCheckBoxGroup.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.radioCheckBoxGroup.splice(Dr,1)}},{key:"sure",value:function sure(){var Tr=this;0===this.boxGroup?(this.radioCheckbox.bandDataSource=JSON.stringify(this.dataSource),this.radioCheckbox.readType?this.radioCheckbox.readType=1:this.radioCheckbox.readType=0,"add"===this.controlStatus?this.vueController.insertRadioAndCheckBox(this.controlTypeStatus,JSON.stringify(this.radioCheckbox)):"update"===this.controlStatus&&this.vueController.updateRadioAndCheckBox(JSON.stringify(this.radioCheckbox))):1===this.boxGroup&&"add"===this.controlStatus&&this.radioCheckBoxGroup.forEach((function(Dr){Dr.groupName=Tr.groupName,Dr.controlStyle=Tr.controlType,Dr.id===Tr.tableRadio&&(Dr.isSelected=!0),Tr.vueController.insertRadioAndCheckBox("add",JSON.stringify(Dr))})),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassName="animation-out",this.$emit("closed")}}]),RadioCheckbox}(Kr.a);__decorate([Ref()],ul.prototype,"saveTagInput",void 0),__decorate([Prop()],ul.prototype,"controlProperty",void 0),__decorate([Prop()],ul.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],ul.prototype,"controlStatus",void 0),__decorate([Prop()],ul.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],ul.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],ul.prototype,"getDataSource",void 0),ul=__decorate([an({name:"RadioCheckbox"})],ul);var dl=ul,hl=dl,pl=(Rr("5bc0"),normalizeComponent(hl,RadioCheckboxvue_type_template_id_63a63a26_render,ll,!1,null,null,null)),fl=pl.exports,_l=fl,CommentDialogvue_type_template_id_34f4e997_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents comment-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("批注")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:function(Dr){return Tr.$emit("closed")}}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:13,maxRows:13},clearable:"",placeholder:"批注内容",maxlength:"256","show-word-limit":""},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:function(Dr){return Tr.$emit("closed")}}},[Tr._v("取消")])],1)])},gl=[],ml=function(Tr){Object(Qr["a"])(CommentDialog,Tr);var Dr=Object(Zr["a"])(CommentDialog);function CommentDialog(){var Tr;return Object(Xr["a"])(this,CommentDialog),Tr=Dr.apply(this,arguments),Tr.textContent="",Tr.commentValue=null,Tr}return Object(Yr["a"])(CommentDialog,[{key:"created",value:function created(){this.commentValue=this.vueController.getOnSelectedComment(),"update"===this.controlStatus&&this.commentValue&&(this.textContent=this.commentValue.text)}},{key:"sure",value:function sure(){this.textContent&&("update"===this.controlStatus?this.vueController.editComment(this.commentValue.id,this.textContent):(this.$emit("insertComments",this.textContent),this.vueController.insertComment(this.textContent)),this.$emit("closed"))}}]),CommentDialog}(Kr.a);__decorate([Prop()],ml.prototype,"vueController",void 0),__decorate([Prop()],ml.prototype,"controlStatus",void 0),ml=__decorate([an({name:"CommentDialog"})],ml);var vl=ml,yl=vl,bl=(Rr("2661"),normalizeComponent(yl,CommentDialogvue_type_template_id_34f4e997_render,gl,!1,null,null,null)),wl=bl.exports,xl=wl,WaterSetvue_type_template_id_468ee214_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents water-set animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("水印")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"50px"}},[Tr._v("内容")]),Rr("el-input",{attrs:{type:"text",size:"mini",clearable:"",placeholder:"文本内容",maxlength:"20","show-word-limit":""},on:{input:Tr.codeChange},model:{value:Tr.textContent,callback:function(Dr){Tr.textContent=Dr},expression:"textContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"50px"}},[Tr._v("角度")]),Rr("el-radio-group",{attrs:{size:"mini"},on:{change:Tr.codeChange},model:{value:Tr.rotate,callback:function(Dr){Tr.rotate=Dr},expression:"rotate"}},[Rr("el-radio-button",{attrs:{label:0}},[Tr._v("水平")]),Rr("el-radio-button",{attrs:{label:1}},[Tr._v("倾斜")])],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"50px"}},[Tr._v("颜色")]),Rr("el-color-picker",{attrs:{"show-alpha":""},on:{change:Tr.codeChange},model:{value:Tr.color,callback:function(Dr){Tr.color=Dr},expression:"color"}})],1)]),Rr("div",{staticClass:"section-right"},[Rr("fieldset",{staticClass:"fieldset"},[Rr("legend",[Tr._v("预 览")]),Rr("div",{attrs:{id:"water"}},[Rr("img",{directives:[{name:"show",rawName:"v-show",value:Tr.waterUrl,expression:"waterUrl"}],attrs:{src:Tr.waterUrl,alt:"背景水印"}})])])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Cl=[],Pl=function(Tr){Object(Qr["a"])(WaterSetDialog,Tr);var Dr=Object(Zr["a"])(WaterSetDialog);function WaterSetDialog(){var Tr;return Object(Xr["a"])(this,WaterSetDialog),Tr=Dr.apply(this,arguments),Tr.textContent="",Tr.rotate=1,Tr.waterUrl="",Tr.color="rgba(0, 0, 0, 0.2)",Tr}return Object(Yr["a"])(WaterSetDialog,[{key:"created",value:function created(){var Tr=this.getWaterMark(),Dr=Object(oa["a"])(Tr,3);this.textContent=Dr[0],this.rotate=Dr[1],this.color=Dr[2]}},{key:"codeChange",value:function codeChange(){this.setWaterMark(this.textContent,150,150,this.callbacks,this.rotate,this.color)}},{key:"callbacks",value:function callbacks(Tr){this.waterUrl=Tr}},{key:"sure",value:function sure(){this.setWaterMark(this.textContent,0,0,"setwaterwork",this.rotate,this.color),this.vueController.setPageProperty(JSON.stringify({isHaveBgImage:!0})),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),WaterSetDialog}(Kr.a);__decorate([Prop()],Pl.prototype,"controlStatus",void 0),__decorate([Prop()],Pl.prototype,"vueController",void 0),__decorate([Inject("setWaterMark")],Pl.prototype,"setWaterMark",void 0),__decorate([Inject("getWaterMark")],Pl.prototype,"getWaterMark",void 0),Pl=__decorate([an({name:"WaterSetDialog"})],Pl);var El=Pl,Sl=El,Tl=(Rr("6556"),normalizeComponent(Sl,WaterSetvue_type_template_id_468ee214_render,Cl,!1,null,null,null)),Dl=Tl.exports,CustomAttributesvue_type_template_id_caf6d86c_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"customsFormModal",staticClass:"control-modal-contents customs-modal",on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("自定义属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.customsValue,"max-height":"360px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"名称",width:"210"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)}},model:{value:Dr.row.name,callback:function(Rr){Tr.$set(Dr.row,"name",Rr)},expression:"scope.row.name"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"210"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])})],1)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},kl=[],Ol=function(Tr){Object(Qr["a"])(CustomAttributes,Tr);var Dr=Object(Zr["a"])(CustomAttributes);function CustomAttributes(){var Tr;return Object(Xr["a"])(this,CustomAttributes),Tr=Dr.apply(this,arguments),Tr.focusIndexs=-1,Tr}return Object(Yr["a"])(CustomAttributes,[{key:"customsValue",get:function get(){return this.getCustomsValue()}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"inputIndex",value:function inputIndex(Tr){Tr===this.customsValue.length-1&&this.customsValue.push({name:"",value:""})}},{key:"addCustoms",value:function addCustoms(){this.customsValue.push({name:"",value:""})}},{key:"arrToObject",value:function arrToObject(){var Tr={};return this.customsValue.map((function(Dr){var Rr=Dr;Tr[Rr.name]=Rr.value})),Tr}},{key:"sure",value:function sure(){this.setCustomsValue(this.customsValue),this.closeTimeout()}},{key:"handleClose",value:function handleClose(Tr){var Dr=Tr.target,Rr=document.querySelector(".control-modal");Rr.contains(Dr)||this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var Tr=this;setTimeout((function(){Tr.setIsCustoms(!1)}),0)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.customsFormModal,"modal-title")}}]),CustomAttributes}(mixins(Zn));__decorate([Ref()],Ol.prototype,"customsFormModal",void 0),__decorate([Inject("setIsCustoms")],Ol.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Ol.prototype,"getCustomsValue",void 0),__decorate([Inject("setCustomsValue")],Ol.prototype,"setCustomsValue",void 0),Ol=__decorate([an({name:"CustomAttributes"})],Ol);var Il=Ol,Ml=Il,Nl=(Rr("3894"),normalizeComponent(Ml,CustomAttributesvue_type_template_id_caf6d86c_scoped_true_render,kl,!1,null,"caf6d86c",null)),Ll=Nl.exports,Al=Ll,DataSourcevue_type_template_id_d0d17200_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"dataSourceModal",staticClass:"control-modal-contents data-modal",on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("绑定数据源")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content",staticStyle:{padding:"10px"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{model:{value:Tr.dataSource.dataSourceEnabled,callback:function(Dr){Tr.$set(Tr.dataSource,"dataSourceEnabled",Dr)},expression:"dataSource.dataSourceEnabled"}},[Tr._v("数据源绑定设置有效")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-input",{attrs:{size:"mini",disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"数据源"},model:{value:Tr.dataSource.dataSource,callback:function(Dr){Tr.$set(Tr.dataSource,"dataSource",Dr)},expression:"dataSource.dataSource"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("格式化")]),Rr("el-input",{attrs:{size:"mini",disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"格式化"},model:{value:Tr.dataSource.format,callback:function(Dr){Tr.$set(Tr.dataSource,"format",Dr)},expression:"dataSource.format"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("访问路径")]),Rr("el-input",{attrs:{size:"mini",disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"访问路径"},model:{value:Tr.dataSource.visitPath,callback:function(Dr){Tr.$set(Tr.dataSource,"visitPath",Dr)},expression:"dataSource.visitPath"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{attrs:{disabled:!Tr.dataSource.dataSourceEnabled},model:{value:Tr.dataSource.isReadOnly,callback:function(Dr){Tr.$set(Tr.dataSource,"isReadOnly",Dr)},expression:"dataSource.isReadOnly"}},[Tr._v("只读")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("el-checkbox",{attrs:{disabled:!Tr.dataSource.dataSourceEnabled},model:{value:Tr.dataSource.autoUpdate,callback:function(Dr){Tr.$set(Tr.dataSource,"autoUpdate",Dr)},expression:"dataSource.autoUpdate"}},[Tr._v("自动更新,当加载文档或者数据源发生改变时自动更新数值")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("执行状态")]),Rr("el-select",{staticStyle:{"text-align":"left"},attrs:{disabled:!Tr.dataSource.dataSourceEnabled,placeholder:"请选择",size:"mini"},model:{value:Tr.dataSource.executeStatus,callback:function(Dr){Tr.$set(Tr.dataSource,"executeStatus",Dr)},expression:"dataSource.executeStatus"}},[Rr("el-option",{attrs:{label:"总是执行",value:0}}),Rr("el-option",{attrs:{label:"只执行一次",value:1}}),Rr("el-option",{attrs:{label:"不执行",value:2}})],1)],1)])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Rl=[],Fl=function(Tr){Object(Qr["a"])(DataSourceDialog,Tr);var Dr=Object(Zr["a"])(DataSourceDialog);function DataSourceDialog(){return Object(Xr["a"])(this,DataSourceDialog),Dr.apply(this,arguments)}return Object(Yr["a"])(DataSourceDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"sure",value:function sure(){this.setDataSource(this.dataSource),this.closeTimeout()}},{key:"handleClose",value:function handleClose(Tr){var Dr=Tr.target,Rr=document.querySelector(".control-modal");Rr.contains(Dr)||this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var Tr=this;setTimeout((function(){Tr.setIsDataSource(!1)}),0)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.dataSourceModal,"modal-title")}}]),DataSourceDialog}(mixins(Zn));__decorate([Ref()],Fl.prototype,"dataSourceModal",void 0),__decorate([Inject("getDataSource")],Fl.prototype,"getDataSource",void 0),__decorate([Inject("setIsDataSource")],Fl.prototype,"setIsDataSource",void 0),__decorate([Inject("setDataSource")],Fl.prototype,"setDataSource",void 0),Fl=__decorate([an({name:"DataSourceDialog"})],Fl);var jl=Fl,Bl=jl,Ul=(Rr("9bb6"),normalizeComponent(Bl,DataSourcevue_type_template_id_d0d17200_render,Rl,!1,null,null,null)),Hl=Ul.exports,Wl=Hl,ListSourcevue_type_template_id_433a8f7f_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:Tr.handleClose,expression:"handleClose"}],ref:"listSourceModal",staticClass:"control-modal-contents list-source-modal",on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("下拉列表")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item",staticStyle:{width:"100%"}},[Rr("span",{staticClass:"label",staticStyle:{width:"42px"}},[Tr._v("来源")]),Rr("el-input",{attrs:{size:"mini",placeholder:"来源"},model:{value:Tr.source,callback:function(Dr){Tr.source=Dr},expression:"source"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"42px"}},[Tr._v("列表")]),Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.listValue,height:"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"mini"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.type,callback:function(Rr){Tr.$set(Dr.row,"type",Rr)},expression:"scope.row.type"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Dr.row.default?Rr("span",{staticClass:"tags"},[Tr._v("默认")]):Tr._e(),Dr.row.default?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.cancelDefault(Dr.row.id)}}},[Tr._v("取消")]):Tr._e(),!Dr.row.default&&Dr.row.text?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.setDefault(Dr.row.id)}}},[Tr._v("设为默认")]):Tr._e(),Dr.$index!==Tr.listValue.length-1&&Tr.focusIndexs===Dr.$index?Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")]):Tr._e()]}}])})],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},ql=[],zl=function(Tr){Object(Qr["a"])(ListSource,Tr);var Dr=Object(Zr["a"])(ListSource);function ListSource(){var Tr;return Object(Xr["a"])(this,ListSource),Tr=Dr.apply(this,arguments),Tr.focusIndexs=-1,Tr.source="",Tr.errorArr=[],Tr.errorIndex=[],Tr.listValue=[],Tr.isAllowMultiSelected=!1,Tr}return Object(Yr["a"])(ListSource,[{key:"mounted",value:function mounted(){this.init()}},{key:"init",value:function init(){var Tr=[{text:"",value:"",type:0,id:this.getKeyId()}],Dr=[],Rr=this.getListStyle();Rr&&Rr.length>0&&(Dr=Object(Gr["a"])(this.getListStyle())),this.listValue=[].concat(Object(Gr["a"])(Dr),Tr),this.source=this.getListArrSource(),this.isAllowMultiSelected=this.getListAllowMultiSelected()}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.listValue[Tr];if(""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.listValue.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.listValue.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0)this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id);else{this.errorIndex=[];var Rr=this.listValue.filter((function(Tr){if(""===(null===Tr||void 0===Tr?void 0:Tr.value.replace(/\s*/g,""))&&""===(null===Tr||void 0===Tr?void 0:Tr.text.replace(/\s*/g,"")))return Tr}));0===Rr.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this,Rr=this.listValue[Tr];this.errorArr=Object(Gr["a"])(this.listValue.filter((function(Tr){if(Tr.text===(null===Rr||void 0===Rr?void 0:Rr.text)&&Tr.id!==(null===Rr||void 0===Rr?void 0:Rr.id))return Tr})));var Ur=Object(Gr["a"])(this.listValue.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr})));this.errorArr.length>0?(this.errorIndex.includes(Rr.id)||this.errorIndex.push(Rr.id),Ur.forEach((function(Tr){Dr.deleteCurrentRow(Tr.id)}))):(this.errorIndex=[],0===Ur.length&&this.addCustoms())}},{key:"addCustoms",value:function addCustoms(){this.listValue.push({text:"",value:"",type:0,id:this.getKeyId(),default:!1})}},{key:"setDefault",value:function setDefault(Tr){var Dr=this;this.listValue=Object(Gr["a"])(this.listValue.map((function(Rr){return Rr.id===Tr?""!==Rr.text.replace(/\s*/g,"")&&(Rr.default=!0):Dr.isAllowMultiSelected||(Rr.default=!1),Rr})))}},{key:"cancelDefault",value:function cancelDefault(Tr){this.listValue=Object(Gr["a"])(this.listValue.map((function(Dr){return Dr.id===Tr&&(Dr.default=!1),Dr})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.listValue.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.listValue.splice(Dr,1)}},{key:"arrToObject",value:function arrToObject(){var Tr={};return this.listValue.map((function(Dr){var Rr=Dr;Tr[Rr.text]=Rr.value})),Tr}},{key:"sure",value:function sure(){if(0!==this.errorArr.length)return!1;var Tr=this.listValue.filter((function(Tr){if(Tr.text||Tr.value)return Tr}));this.setListStyle(Tr,this.source),this.closeTimeout()}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var Tr=this;setTimeout((function(){Tr.setIsListStyle(!1),Tr.listValue=[]}),0)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.listSourceModal,"modal-title")}}]),ListSource}(mixins(Zn));__decorate([Ref()],zl.prototype,"listSourceModal",void 0),__decorate([Inject("setIsListStyle")],zl.prototype,"setIsListStyle",void 0),__decorate([Inject("setListStyle")],zl.prototype,"setListStyle",void 0),__decorate([Inject("getListAllowMultiSelected")],zl.prototype,"getListAllowMultiSelected",void 0),__decorate([Inject("getListStyle")],zl.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],zl.prototype,"getListArrSource",void 0),zl=__decorate([an({name:"ListSource"})],zl);var Vl=zl,Kl=Vl,$l=(Rr("0434"),normalizeComponent(Kl,ListSourcevue_type_template_id_433a8f7f_scoped_true_render,ql,!1,null,"433a8f7f",null)),Gl=$l.exports,Jl=Gl,TablePropertyvue_type_template_id_4b692cf7_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("表格属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("自定义属性")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openCustomsModal}},[Tr._v("自定义属性")])],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canAdjustRowHeight,callback:function(Dr){Tr.canAdjustRowHeight=Dr},expression:"canAdjustRowHeight"}},[Tr._v("用户可调整行高")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canAdjustRowWidth,callback:function(Dr){Tr.canAdjustRowWidth=Dr},expression:"canAdjustRowWidth"}},[Tr._v("用户可调整列宽")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canAddRow,callback:function(Dr){Tr.canAddRow=Dr},expression:"canAddRow"}},[Tr._v("用户可新增表格行列")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canDeleteRow,callback:function(Dr){Tr.canDeleteRow=Dr},expression:"canDeleteRow"}},[Tr._v("用户可删除表格行列")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.canDeleteTable,callback:function(Dr){Tr.canDeleteTable=Dr},expression:"canDeleteTable"}},[Tr._v("用户可删除表格")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.continuePrintBorders,callback:function(Dr){Tr.continuePrintBorders=Dr},expression:"continuePrintBorders"}},[Tr._v("续打时打印所有单元格边框")])],1),Rr("div",{staticStyle:{width:"50%"}},[Rr("el-checkbox",{model:{value:Tr.isAutoChangeLine,callback:function(Dr){Tr.isAutoChangeLine=Dr},expression:"isAutoChangeLine"}},[Tr._v("表格内自动换行")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("span",{staticStyle:{padding:"0 10px 0 23px"}},[Tr._v("表格内自动换行行高")]),Rr("el-input-number",{attrs:{size:"mini",disabled:!Tr.isAutoChangeLine,step:1,min:0,precision:2,controls:!1},model:{value:Tr.autoLineHeight,callback:function(Dr){Tr.autoLineHeight=Dr},expression:"autoLineHeight"}}),Rr("span",{staticStyle:{"padding-left":"6px"}},[Tr._v(" 厘米")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("span",{staticStyle:{padding:"0 10px 0 23px"}},[Tr._v("当前光标所在行行高 "+Tr._s(Tr.rowHeightMm)+" 厘米")])])])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Xl=[],Yl=function(Tr){Object(Qr["a"])(TablePoperty,Tr);var Dr=Object(Zr["a"])(TablePoperty);function TablePoperty(){var Tr;return Object(Xr["a"])(this,TablePoperty),Tr=Dr.apply(this,arguments),Tr.id="",Tr.canAdjustRowHeight=!1,Tr.canAdjustRowWidth=!1,Tr.canAddRow=!0,Tr.canDeleteRow=!0,Tr.canDeleteTable=!0,Tr.continuePrintBorders=!1,Tr.layoutFullLine=!0,Tr.tightLineSpace=!1,Tr.isAutoChangeLine=!1,Tr.autoLineHeight=0,Tr.rowHeightMm=0,Tr.endPath="",Tr}return Object(Yr["a"])(TablePoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.name||Tr.value)return Tr}))}},{key:"created",value:function created(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr);this.endPath=Dr.docTree.curDomRange.normalize().endPath;var Rr=this.getTableNodes();Rr&&(this.id=Rr.tableProperty.id?Rr.tableProperty.id:this.vueController.generateID("TB"),this.canAdjustRowHeight=Rr.tableProperty.canAdjustRowHeight,this.canAdjustRowWidth=Rr.tableProperty.canAdjustRowWidth,this.canAddRow=Rr.tableProperty.canAddRow,this.canDeleteRow=Rr.tableProperty.canDeleteRow,this.canDeleteTable=Rr.tableProperty.canDeleteTable,this.continuePrintBorders=Rr.tableProperty.continuePrintBorders,this.layoutFullLine=Rr.tableProperty.layoutFullLine,this.tightLineSpace=Rr.tableProperty.tightLineSpace,this.isAutoChangeLine=Rr.tableProperty.isAutoChangeLine,this.autoLineHeight=Rr.tableProperty.autoLineHeight)}},{key:"getTableNodes",value:function getTableNodes(){var Tr,Dr=this.vueController.findNodebyPath(this.endPath).node,Rr=this.getCellNode(Dr),Ur=null===Rr||void 0===Rr?void 0:Rr.table,Hr=null===Rr||void 0===Rr?void 0:Rr.table.rows.indexOf(null===Rr||void 0===Rr?void 0:Rr.row);if(void 0!==Hr){var Wr=null===Rr||void 0===Rr?void 0:Rr.table.rowInfos[Hr];if(Wr){var zr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);Wr.rowProperty.rowHeight?this.rowHeightMm=Number(Wr.rowProperty.rowHeight.toFixed(2)):this.rowHeightMm=Number((zr.unitConvert.pxConversionMm(Wr.rowHeight,!1)/10).toFixed(2))}}var Vr=null===Ur||void 0===Ur||null===(Tr=Ur.tableProperty)||void 0===Tr?void 0:Tr.customProperties;return Vr&&Vr.length>0&&this.setCustomsValue([].concat(Object(Gr["a"])(Vr),[{name:"",value:""}])),Ur}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){var Tr=this,Dr={id:this.id,customProperties:this.customProperties,canAdjustRowHeight:this.canAdjustRowHeight,canAdjustRowWidth:this.canAdjustRowWidth,canAddRow:this.canAddRow,canDeleteRow:this.canDeleteRow,canDeleteTable:this.canDeleteTable,continuePrintBorders:this.continuePrintBorders,layoutFullLine:this.layoutFullLine,tightLineSpace:this.tightLineSpace,isAutoChangeLine:this.isAutoChangeLine,autoLineHeight:this.autoLineHeight},Rr=this.getTableNodes();this.vueController.tableProperty(JSON.stringify(Dr),Rr),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TablePoperty}(mixins(Pi));__decorate([Prop()],Yl.prototype,"vueController",void 0),__decorate([Prop()],Yl.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsCustoms")],Yl.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Yl.prototype,"getCustomsValue",void 0),__decorate([Inject("setCustomsValue")],Yl.prototype,"setCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Yl.prototype,"getActiveDocId",void 0),Yl=__decorate([an({name:"TablePoperty"})],Yl);var Ql=Yl,Zl=Ql,ec=(Rr("ca84b"),normalizeComponent(Zl,TablePropertyvue_type_template_id_4b692cf7_scoped_true_render,Xl,!1,null,"4b692cf7",null)),tc=ec.exports,TableRowPropertyvue_type_template_id_561d76c0_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("表格行属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("自定义属性")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openCustomsModal}},[Tr._v("自定义属性")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{"padding-right":"20px"}},[Rr("el-checkbox",{on:{change:Tr.watchParamsChange},model:{value:Tr.isSpecifyHeight,callback:function(Dr){Tr.isSpecifyHeight=Dr},expression:"isSpecifyHeight"}},[Tr._v("指定高度(厘米)")])],1),Rr("el-input-number",{attrs:{size:"mini",disabled:!Tr.isSpecifyHeight,precision:2,step:1,min:0,controls:!1,"controls-position":"right"},model:{value:Tr.rowHeight,callback:function(Dr){Tr.rowHeight=Dr},expression:"rowHeight"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("当前显示高度 "+Tr._s(Tr.rowHeightMm)+" 厘米")])],1),Rr("li",{staticClass:"control-item",staticStyle:{padding:"0 0 0 10px"}},[Rr("el-checkbox",{attrs:{disabled:!Tr.isSpecifyHeight},model:{value:Tr.isAutoRaiseHeight,callback:function(Dr){Tr.isAutoRaiseHeight=Dr},expression:"isAutoRaiseHeight"}},[Tr._v("内容过多时自动撑大行高以显示所有内容")])],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.repeatAsTitleAtPageTop,callback:function(Dr){Tr.repeatAsTitleAtPageTop=Dr},expression:"repeatAsTitleAtPageTop"}},[Tr._v("在隔页顶端以标题行形式重复出现")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.sameLineCanAcrossPages,callback:function(Dr){Tr.sameLineCanAcrossPages=Dr},expression:"sameLineCanAcrossPages"}},[Tr._v("同行内容能跨页")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.forcedPageBreak,callback:function(Dr){Tr.forcedPageBreak=Dr},expression:"forcedPageBreak"}},[Tr._v("强制分页")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.printCellBorders,callback:function(Dr){Tr.printCellBorders=Dr},expression:"printCellBorders"}},[Tr._v("打印单元格边框线")])],1),Rr("div",{staticStyle:{width:"100%"}},[Rr("el-checkbox",{model:{value:Tr.printCellBg,callback:function(Dr){Tr.printCellBg=Dr},expression:"printCellBg"}},[Tr._v("打印单元格背景")])],1)])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},rc=[],nc=function(Tr){Object(Qr["a"])(TableRowPoperty,Tr);var Dr=Object(Zr["a"])(TableRowPoperty);function TableRowPoperty(){var Tr;return Object(Xr["a"])(this,TableRowPoperty),Tr=Dr.apply(this,arguments),Tr.id="",Tr.defaultRowProperty={rowHeight:0,isSpecifyHeight:!1,isAutoRaiseHeight:!1,repeatAsTitleAtPageTop:!1,sameLineCanAcrossPages:!0,forcedPageBreak:!1,printCellBorders:!0,printCellBg:!0,tabKeyInsNewLine:!1,customProperties:[{name:"",value:""}],dataSource:{dataSourceEnabled:!0,dataSource:"",format:"",visitPath:"",isReadOnly:!1,autoUpdate:!1,executeStatus:0}},Tr.rowHeightMm="0",Tr.rowHeight=0,Tr.isSpecifyHeight=!1,Tr.isAutoRaiseHeight=!1,Tr.repeatAsTitleAtPageTop=!1,Tr.sameLineCanAcrossPages=!0,Tr.forcedPageBreak=!1,Tr.printCellBorders=!0,Tr.printCellBg=!0,Tr.tabKeyInsNewLine=!1,Tr.paramsChange=[],Tr.rowInfos=null,Tr.rowProperty=null,Tr}return Object(Yr["a"])(TableRowPoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.name||Tr.value)return Tr}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){this.init()}},{key:"init",value:function init(){var Tr=this.getCellNodes();if(null!==Tr){var Dr=Tr.table.rows.indexOf(Tr.row);this.rowInfos=Tr.table.rowInfos[Dr]}if(null!==this.rowInfos&&(this.rowProperty=this.rowInfos.rowProperty),null!==this.rowProperty&&null!==this.rowInfos){var Rr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);this.id=this.rowProperty.id?this.rowProperty.id:this.vueController.generateID("TB"),this.isSpecifyHeight=this.rowProperty.isSpecifyHeight,this.rowHeight=this.rowProperty.rowHeight,this.isAutoRaiseHeight=this.rowProperty.isAutoRaiseHeight,this.repeatAsTitleAtPageTop=this.rowProperty.repeatAsTitleAtPageTop,this.sameLineCanAcrossPages=this.rowProperty.sameLineCanAcrossPages,this.forcedPageBreak=this.rowProperty.forcedPageBreak,this.printCellBorders=this.rowProperty.printCellBorders,this.printCellBg=this.rowProperty.printCellBg,this.tabKeyInsNewLine=this.rowProperty.tabKeyInsNewLine,this.rowHeightMm=(Rr.unitConvert.pxConversionMm(this.rowInfos.rowHeight,!1)/10).toFixed(2)}}},{key:"getCellNodes",value:function getCellNodes(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr),Rr=Dr.docTree.curDomRange.normalize().endPath,Ur=this.vueController.findNodebyPath(Rr).node,Hr=this.getCellNode(Ur),Wr=null===Hr||void 0===Hr?void 0:Hr.table.rows.indexOf(null===Hr||void 0===Hr?void 0:Hr.row);if(Wr){var zr=null===Hr||void 0===Hr?void 0:Hr.table.rowInfos[Wr];if(zr){var Vr,Kr,$r,Jr=null===(Vr=zr.rowProperty)||void 0===Vr?void 0:Vr.customProperties;if(Jr&&Jr.length>0&&this.setCustomsValue([].concat(Object(Gr["a"])(Jr),[{name:"",value:""}])),null!==(Kr=zr.rowProperty)&&void 0!==Kr&&Kr.dataSource)this.setDataSource(null===($r=zr.rowProperty)||void 0===$r?void 0:$r.dataSource);else this.setDataSource()}}return Hr}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyHeight||(this.rowHeight=0,this.isAutoRaiseHeight=!1)}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){var Tr=this,Dr={id:this.id,customProperties:this.customProperties,dataSource:this.dataSource,isSpecifyHeight:this.isSpecifyHeight,rowHeight:this.rowHeight,isAutoRaiseHeight:this.isAutoRaiseHeight,repeatAsTitleAtPageTop:this.repeatAsTitleAtPageTop,sameLineCanAcrossPages:this.sameLineCanAcrossPages,forcedPageBreak:this.forcedPageBreak,printCellBorders:this.printCellBorders,printCellBg:this.printCellBg,tabKeyInsNewLine:this.tabKeyInsNewLine},Rr={};Object.keys(Dr).forEach((function(Dr){JSON.stringify(Tr[Dr])!==JSON.stringify(Tr.defaultRowProperty[Dr])&&(Rr[Dr]=Tr[Dr])})),this.vueController.rowProperty(JSON.stringify(Rr),this.rowInfos),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.rowInfos=null,this.rowProperty=null}}]),TableRowPoperty}(mixins(Pi));__decorate([Prop()],nc.prototype,"vueController",void 0),__decorate([Prop()],nc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],nc.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],nc.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],nc.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],nc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],nc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],nc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],nc.prototype,"getActiveDocId",void 0),nc=__decorate([an({name:"TableRowPoperty"})],nc);var ic=nc,ac=ic,oc=(Rr("df10"),normalizeComponent(ac,TableRowPropertyvue_type_template_id_561d76c0_scoped_true_render,rc,!1,null,"561d76c0",null)),sc=oc.exports,TableColPropertyvue_type_template_id_d037fa9c_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("表格列属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticStyle:{"padding-right":"20px"}},[Rr("el-checkbox",{on:{change:Tr.watchParamsChange},model:{value:Tr.isSpecifyWidth,callback:function(Dr){Tr.isSpecifyWidth=Dr},expression:"isSpecifyWidth"}},[Tr._v("指定宽度(厘米)")])],1),Rr("el-input-number",{attrs:{size:"mini",disabled:!Tr.isSpecifyWidth,step:1,min:0,precision:2,controls:!1},model:{value:Tr.width,callback:function(Dr){Tr.width=Dr},expression:"width"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("当前显示宽度 "+Tr._s(Tr.colWidth)+" 厘米")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("垂直对齐方式")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:Tr.align,callback:function(Dr){Tr.align=Dr},expression:"align"}},[Rr("el-option",{attrs:{label:"靠上",value:0}}),Rr("el-option",{attrs:{label:"居中",value:1}}),Rr("el-option",{attrs:{label:"靠下",value:2}})],1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编辑器属性")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},on:{change:Tr.editorPropertyChange},model:{value:Tr.editorProperty,callback:function(Dr){Tr.editorProperty=Dr},expression:"editorProperty"}},[Rr("el-option",{attrs:{label:"无",value:0}}),Rr("el-option",{attrs:{label:"下拉列表",value:1}}),Rr("el-option",{attrs:{label:"日期",value:2}}),Rr("el-option",{attrs:{label:"数值",value:3}})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("分隔符")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:Tr.splitCharacter,callback:function(Dr){Tr.splitCharacter=Dr},expression:"splitCharacter"}},[Rr("el-option",{attrs:{label:",",value:","}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.allowMultiSelected,callback:function(Dr){Tr.allowMultiSelected=Dr},expression:"allowMultiSelected"}},[Tr._v("允许多选")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.isAllowDel,callback:function(Dr){Tr.isAllowDel=Dr},expression:"isAllowDel"}},[Tr._v("允许被删除")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.canModifyContent,callback:function(Dr){Tr.canModifyContent=Dr},expression:"canModifyContent"}},[Tr._v("用户可以直接编辑修改内容")])],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("来源")]),Rr("el-input",{attrs:{size:"mini"},model:{value:Tr.source,callback:function(Dr){Tr.source=Dr},expression:"source"}})],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.listItems,"max-height":"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return Dr.$index!==Tr.listItems.length-1&&Tr.focusIndexs===Dr.$index?[Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")])]:void 0}}],null,!0)})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:2===Tr.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("日期格式")]),Rr("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:Tr.inputStyle,callback:function(Dr){Tr.inputStyle=Dr},expression:"inputStyle"}},Tr._l(Tr.dateFormatList,(function(Tr){return Rr("el-option",{key:Tr,attrs:{label:Tr,value:Tr}})})),1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:3===Tr.editorProperty,expression:"editorProperty === 3"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("最小值")]),Rr("el-input-number",{attrs:{size:"mini",max:Number(Tr.maxNumVal),min:0,step:10,controls:!1},model:{value:Tr.minNumVal,callback:function(Dr){Tr.minNumVal=Dr},expression:"minNumVal"}})],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("最大值")]),Rr("el-input-number",{attrs:{size:"mini",min:Number(Tr.minNumVal),step:10,controls:!1},model:{value:Tr.maxNumVal,callback:function(Dr){Tr.maxNumVal=Dr},expression:"maxNumVal"}})],1)])])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},cc=[],uc=function(Tr){Object(Qr["a"])(TableColPoperty,Tr);var Dr=Object(Zr["a"])(TableColPoperty);function TableColPoperty(){var Tr;return Object(Xr["a"])(this,TableColPoperty),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.id="",Tr.editorProperty=1,Tr.align=0,Tr.width=0,Tr.isSpecifyWidth=!1,Tr.listItems=[],Tr.source="",Tr.canModifyContent=!0,Tr.isAllowDel=!0,Tr.allowMultiSelected=!1,Tr.splitCharacter=",",Tr.errorArr=[],Tr.errorIndex=[],Tr.focusIndexs=-1,Tr.inputStyle="yyyy-MM-dd HH:mm:ss",Tr.colWidth="0",Tr.maxNumVal=0,Tr.minNumVal=50,Tr.defaultColProperty={id:"",editorProperty:0,align:0,width:0,isSpecifyWidth:!1,downListProperty:void 0,dateTimeProperty:void 0,numberProperty:void 0},Tr.colInfoes=null,Tr}return Object(Yr["a"])(TableColPoperty,[{key:"created",value:function created(){var Tr=this.getCellNodes();if(null!==Tr){var Dr=Tr.row.indexOf(Tr);this.colInfoes=Tr.table.colInfos[Dr]}if(null!==this.colInfoes){var Rr,Ur,Hr=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Wr=this.colInfoes.colProperty;this.id=Wr.id?Wr.id:this.vueController.generateID("TB"),this.editorProperty=Wr.editorProperty?Wr.editorProperty:0,this.align=Wr.align?Wr.align:0;var zr=this.getKeyId(0),Vr=[{value:"",text:"",id:zr}];this.listItems=Wr.downListProperty&&JSON.parse(Wr.downListProperty.listItems)?[].concat(Object(Gr["a"])(JSON.parse(Wr.downListProperty.listItems)),Vr):[].concat(Vr),this.source=Wr.downListProperty?Wr.downListProperty.source:"",this.canModifyContent=!Wr.downListProperty||Wr.downListProperty.canModifyContent,this.isAllowDel=!Wr.downListProperty||Wr.downListProperty.isAllowDel,this.allowMultiSelected=!!Wr.downListProperty&&Wr.downListProperty.allowMultiSelected,this.splitCharacter=Wr.downListProperty?Wr.downListProperty.splitCharacter:",",this.inputStyle=null!==(Rr=Wr.dateTimeProperty)&&void 0!==Rr&&Rr.inputStyle?null===(Ur=Wr.dateTimeProperty)||void 0===Ur?void 0:Ur.inputStyle:"yyyy-MM-dd",this.maxNumVal=Wr.numberProperty?Wr.numberProperty.maxNumVal:0,this.minNumVal=Wr.numberProperty?Wr.numberProperty.minNumVal:100,this.width=Wr.width?Wr.width:0,this.colWidth=(Hr.unitConvert.pxConversionMm(this.colInfoes.colWidth,!1)/10).toFixed(2),this.isSpecifyWidth=!!Wr.isSpecifyWidth}}},{key:"getCellNodes",value:function getCellNodes(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr),Rr=Dr.docTree.curDomRange.normalize().endPath,Ur=this.vueController.findNodebyPath(Rr).node;return this.getCellNode(Ur)}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyWidth||(this.width=0)}},{key:"querySearch",value:function querySearch(Tr,Dr){Dr(Jn["f"])}},{key:"editorPropertyChange",value:function editorPropertyChange(){}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.listItems[Tr];""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.listItems.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.listItems.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0?this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this.listItems.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr}));0===Dr.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.listItems.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.listItems.splice(Dr,1)}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"sure",value:function sure(){var Tr,Dr,Rr,Ur=this,Hr={};if(this.editorProperty===Sn["e"].DownList){var Wr=this.listItems.filter((function(Tr){if(Tr.text||Tr.value)return Tr}));Tr={listItems:JSON.stringify(Wr),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},this.editorProperty!==this.defaultColProperty.editorProperty&&(Hr.downListProperty=Tr)}else this.editorProperty===Sn["e"].DateTime?(Dr={inputStyle:this.inputStyle},this.editorProperty!==this.defaultColProperty.editorProperty&&(Hr.dateTimeProperty=Dr)):this.editorProperty===Sn["e"].Number&&(Rr={minNumVal:this.minNumVal,maxNumVal:this.maxNumVal},this.editorProperty!==this.defaultColProperty.editorProperty&&(Hr.numberProperty=Rr));var zr={id:this.id,editorProperty:this.editorProperty,align:this.align,width:this.width,isSpecifyWidth:this.isSpecifyWidth};Object.keys(zr).forEach((function(Tr){JSON.stringify(Ur[Tr])!==JSON.stringify(Ur.defaultColProperty[Tr])&&(Hr[Tr]=Ur[Tr])})),this.vueController.colProperty(JSON.stringify(Hr),this.colInfoes),this.$nextTick((function(){return Ur.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.colInfoes=null}}]),TableColPoperty}(mixins(Pi));__decorate([Prop()],uc.prototype,"vueController",void 0),__decorate([Prop()],uc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("getActiveDocId")],uc.prototype,"getActiveDocId",void 0),uc=__decorate([an({name:"TableColPoperty"})],uc);var dc=uc,hc=dc,pc=(Rr("6d6a"),normalizeComponent(hc,TableColPropertyvue_type_template_id_d037fa9c_render,cc,!1,null,null,null)),fc=pc.exports,TableCellPropertyvue_type_template_id_134c4d55_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal-contents table-cell-modal animation-in"},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("单元格属性")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-tabs",{model:{value:Tr.textActiveName,callback:function(Dr){Tr.textActiveName=Dr},expression:"textActiveName"}},[Rr("el-tab-pane",{attrs:{label:"常规",name:"0"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编号")]),Rr("span",{staticClass:"readonly-value"},[Tr._v(Tr._s(Tr.id))])]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[Tr._v("标题")]),Rr("el-input",{attrs:{size:"mini",placeholder:"标题"},model:{value:Tr.title,callback:function(Dr){Tr.title=Dr},expression:"title"}})],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("自定义属性")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openCustomsModal}},[Tr._v("自定义属性")])],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[Tr._v("数据源")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.openDataSourceModal}},[Tr._v("设置数据源")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.lightCellBorders,callback:function(Dr){Tr.lightCellBorders=Dr},expression:"lightCellBorders"}},[Tr._v("突出显示单元格边框")])],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[Tr._v("垂直对齐方式")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:Tr.align,callback:function(Dr){Tr.align=Dr},expression:"align"}},[Rr("el-option",{attrs:{label:"靠上",value:0}}),Rr("el-option",{attrs:{label:"垂直居中",value:1}}),Rr("el-option",{attrs:{label:"靠下",value:2}})],1)],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("单元格背景色")]),Rr("ho-color-picker",{attrs:{defaultColor:"#ffffff"},model:{value:Tr.backColor,callback:function(Dr){Tr.backColor=Dr},expression:"backColor"}})],1)]),Rr("li",{staticClass:"control-item"},[Rr("div",[Rr("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[Tr._v("单元格内边距")]),Rr("span",{staticClass:"label"},[Tr._v("上")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellTop,callback:function(Dr){Tr.cellTop=Dr},expression:"cellTop"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")]),Rr("span",{staticClass:"label"},[Tr._v("下")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellBottom,callback:function(Dr){Tr.cellBottom=Dr},expression:"cellBottom"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")])],1),Rr("div",[Rr("span",{staticClass:"label",staticStyle:{display:"inline-block",padding:"0 44px","margin-left":"-1px"}}),Rr("span",{staticClass:"label"},[Tr._v("左")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellLeft,callback:function(Dr){Tr.cellLeft=Dr},expression:"cellLeft"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")]),Rr("span",{staticClass:"label"},[Tr._v("右")]),Rr("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:Tr.cellRight,callback:function(Dr){Tr.cellRight=Dr},expression:"cellRight"}}),Rr("span",{staticStyle:{padding:"0 30px 0 10px"}},[Tr._v("厘米")])],1)]),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("边框设置")]),Rr("div",[Rr("el-checkbox",{on:{change:Tr.isDrawGridlinesChange},model:{value:Tr.isDrawGridlines,callback:function(Dr){Tr.isDrawGridlines=Dr},expression:"isDrawGridlines"}},[Tr._v("绘制边框")])],1)]),Rr("li",{staticClass:"control-item grid-lines-style",style:{color:Tr.isDrawGridlines?"#000000":"#C0C4CC"}},[Rr("span",{staticClass:"label"}),Rr("div",[Rr("div",{staticClass:"control-item"},[Rr("div",{staticClass:"grid-lines-color-item"},[Rr("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[Tr._v("边框颜色")]),Rr("ho-color-picker",{model:{value:Tr.gridLinesColor[0],callback:function(Dr){Tr.$set(Tr.gridLinesColor,0,Dr)},expression:"gridLinesColor[0]"}})],1)]),Rr("PrintLineStyle",{attrs:{isDrawGridlines:Tr.isDrawGridlines,defaultStyle:Tr.gridLinesStyle,placeholder:"边框样式"},on:{change:Tr.printStyleChange}}),Rr("li",{staticClass:"control-item"},[Rr("el-checkbox",{attrs:{disabled:!Tr.isDrawGridlines},model:{value:Tr.printGridLines,callback:function(Dr){Tr.printGridLines=Dr},expression:"printGridLines"}},[Tr._v("打印边框")])],1)],1)])])]),Rr("el-tab-pane",{attrs:{label:"双击属性",name:"1"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("编辑器属性")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},model:{value:Tr.editorProperty,callback:function(Dr){Tr.editorProperty=Dr},expression:"editorProperty"}},[Rr("el-option",{attrs:{label:"无",value:0}}),Rr("el-option",{attrs:{label:"下拉列表",value:1}}),Rr("el-option",{attrs:{label:"日期",value:2}})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("分隔符")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:Tr.splitCharacter,callback:function(Dr){Tr.splitCharacter=Dr},expression:"splitCharacter"}},[Rr("el-option",{attrs:{label:",",value:","}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.allowMultiSelected,callback:function(Dr){Tr.allowMultiSelected=Dr},expression:"allowMultiSelected"}},[Tr._v("允许多选")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.isAllowDel,callback:function(Dr){Tr.isAllowDel=Dr},expression:"isAllowDel"}},[Tr._v("允许被删除")])],1),Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.canModifyContent,callback:function(Dr){Tr.canModifyContent=Dr},expression:"canModifyContent"}},[Tr._v("用户可以直接编辑修改内容")])],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("来源")]),Rr("el-input",{attrs:{size:"mini"},model:{value:Tr.source,callback:function(Dr){Tr.source=Dr},expression:"source"}})],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:1===Tr.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[Rr("el-table",{staticStyle:{width:"100%"},attrs:{data:Tr.listItems,"max-height":"210px"}},[Rr("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("i",{directives:[{name:"show",rawName:"v-show",value:Dr.$index===Tr.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),Rr("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{class:Tr.errorIndex.includes(Dr.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.text,callback:function(Rr){Tr.$set(Dr.row,"text",Rr)},expression:"scope.row.text"}})]}}])}),Rr("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:Tr._u([{key:"default",fn:function(Dr){return[Rr("el-input",{attrs:{size:"small"},on:{focus:function(Rr){return Tr.focusIndex(Dr.$index)},input:function(Rr){return Tr.inputIndex(Dr.$index)},blur:function(Rr){return Tr.blurIndex(Dr.$index)}},model:{value:Dr.row.value,callback:function(Rr){Tr.$set(Dr.row,"value",Rr)},expression:"scope.row.value"}})]}}])}),Rr("el-table-column",{scopedSlots:Tr._u([{key:"default",fn:function(Dr){return Dr.$index!==Tr.listItems.length-1&&Tr.focusIndexs===Dr.$index?[Rr("el-button",{attrs:{size:"mini"},on:{click:function(Rr){return Rr.stopPropagation(),Tr.deleteCurrentRow(Dr.row.id)}}},[Tr._v("删除")])]:void 0}}],null,!0)})],1)],1),Rr("li",{directives:[{name:"show",rawName:"v-show",value:2===Tr.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("日期格式")]),Rr("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:Tr.inputStyle,callback:function(Dr){Tr.inputStyle=Dr},expression:"inputStyle"}},Tr._l(Tr.dateFormatList,(function(Tr){return Rr("el-option",{key:Tr,attrs:{label:Tr,value:Tr}})})),1)],1)]),Rr("li",{directives:[{name:"show",rawName:"v-show",value:2===Tr.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[Rr("div",{staticClass:"control-item"},[Rr("el-checkbox",{model:{value:Tr.isAutoInputCurDate,callback:function(Dr){Tr.isAutoInputCurDate=Dr},expression:"isAutoInputCurDate"}},[Tr._v("双击设置当前日期时间")])],1)])])]),Rr("el-tab-pane",{attrs:{label:"斜分割线",name:"2"}},[Rr("ul",{staticClass:"diagonal-line"},[Rr("li",{class:0===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(0)}}},[Rr("span",{staticClass:"line no-line"}),Rr("span",[Tr._v("None")])]),Rr("li",{class:1===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(1)}}},[Rr("span",{staticClass:"line left-line top-line top-left-one-line"}),Rr("span",[Tr._v("TopLeftOneLine")])]),Rr("li",{class:2===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(2)}}},[Rr("span",{staticClass:"line left-line top-line top-left-two-line"}),Rr("span",[Tr._v("TopLeftTwoLine")])]),Rr("li",{class:3===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(3)}}},[Rr("span",{staticClass:"line right-line top-line top-right-one-line"}),Rr("span",[Tr._v("TopRightOneLine")])]),Rr("li",{class:4===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(4)}}},[Rr("span",{staticClass:"line right-line top-line top-right-two-line"}),Rr("span",[Tr._v("TopRightTwoLine")])]),Rr("li",{class:5===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(5)}}},[Rr("span",{staticClass:"line left-line bottom-line bottom-left-one-line"}),Rr("span",[Tr._v("BottomLeftOneLine")])]),Rr("li",{class:6===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(6)}}},[Rr("span",{staticClass:"line left-line bottom-line bottom-left-two-line"}),Rr("span",[Tr._v("BottomLeftTwoLine")])]),Rr("li",{class:7===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(7)}}},[Rr("span",{staticClass:"line right-line bottom-line bottom-right-one-line"}),Rr("span",[Tr._v("BottomRightOneLine")])]),Rr("li",{class:8===Tr.obliqueSplitLine?"selected":"",on:{click:function(Dr){return Tr.setObliqueSplitLine(8)}}},[Rr("span",{staticClass:"line right-line bottom-line bottom-right-two-line"}),Rr("span",[Tr._v("BottomRightTwoLine")])])])])],1)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},_c=[],PrintLineStylevue_type_template_id_3a0156b2_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",style:{width:Tr.labelWidth}},[Tr._v(Tr._s(Tr.placeholder))]),Rr("el-select",{staticClass:"grid-lines-style",staticStyle:{width:"144px"},attrs:{disabled:Tr.isDrawGridlines,placeholder:Tr.placeholder,size:"mini"},on:{change:Tr.linesStyleChange},model:{value:Tr.linesStyle,callback:function(Dr){Tr.linesStyle=Dr},expression:"linesStyle"}},[Rr("el-option",{attrs:{label:"solid",value:0}},[Rr("svg",{attrs:{viewBox:"0 0 18236 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"34"}},[Rr("path",{attrs:{d:"M0 0h18236.952381v1024H0z",fill:"#333"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("solid")])]),Rr("el-option",{attrs:{label:"dash",value:1}},[Rr("svg",{attrs:{viewBox:"0 0 15360 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"32",fill:"#333"}},[Rr("path",{attrs:{d:"M0 1024V0h3072v1024H0z m4096 0V0h3072v1024H4096z m8192 0V0h3072v1024h-3072z m-4096 0V0h3072v1024H8192z"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("dash")])]),Rr("el-option",{attrs:{label:"dashdot",value:2}},[Rr("svg",{staticStyle:{transform:"translateY(8px)"},attrs:{viewBox:"0 0 7680 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"50",height:"20",fill:"#333"}},[Rr("path",{attrs:{d:"M0 0h2304v1024H0V0z m3328 0h1024v1024h-1024V0z m2048 0h2304v1024h-2304V0z"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("dashdot")])]),Rr("el-option",{attrs:{label:"dashdotdo",value:3}},[Rr("svg",{attrs:{viewBox:"0 0 12288 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"80",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M6912 0h1536v1024h-1536V0zM3840 0h1536v1024h-1536V0zM0 0h2304v1024H0V0z m9984 0h2304v1024h-2304V0z"}})]),Rr("span",{staticStyle:{flex:"1",padding:"0 33px"}}),Rr("span",[Tr._v("dashdotdot")])]),Rr("el-option",{attrs:{label:"dot",value:4}},[Rr("svg",{staticStyle:{transform:"translateY(-12px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),Rr("svg",{staticStyle:{transform:"translateY(-12px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),Rr("svg",{staticStyle:{transform:"translateY(-12px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"34",fill:"#333"}},[Rr("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),Rr("span",{staticStyle:{flex:"1"}}),Rr("span",[Tr._v("dot")])])],1)],1)},gc=[],mc=(Rr("f00c8"),function(Tr){Object(Qr["a"])(PrintLineStyle,Tr);var Dr=Object(Zr["a"])(PrintLineStyle);function PrintLineStyle(){var Tr;return Object(Xr["a"])(this,PrintLineStyle),Tr=Dr.apply(this,arguments),Tr.linesStyle=0,Tr}return Object(Yr["a"])(PrintLineStyle,[{key:"defaultStyles",get:function get(){return Number.isFinite(this.defaultStyle)?this.defaultStyle:0}},{key:"created",value:function created(){this.linesStyle=this.defaultStyles}},{key:"linesStyleChange",value:function linesStyleChange(Tr){this.$emit("change",Tr)}}]),PrintLineStyle}(Kr.a));__decorate([Prop()],mc.prototype,"isDrawGridlines",void 0),__decorate([Prop()],mc.prototype,"placeholder",void 0),__decorate([Prop()],mc.prototype,"defaultStyle",void 0),__decorate([Prop({default:"90px"})],mc.prototype,"labelWidth",void 0),mc=__decorate([an({name:"PrintLineStyle"})],mc);var vc=mc,yc=vc,bc=normalizeComponent(yc,PrintLineStylevue_type_template_id_3a0156b2_scoped_true_render,gc,!1,null,"3a0156b2",null),wc=bc.exports,HoColorPickervue_type_template_id_a4ad5878_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:Tr.closed,expression:"closed"}],ref:"colorPicker",staticClass:"ho-color-picker"},[Rr("div",{staticClass:"color-btn",class:{disabled:Tr.disabled},style:{"background-color":Tr.showColor,"border-color":"#ffffff"===Tr.showColor.toLowerCase()?"#333":"transparent"},on:{click:Tr.openPanel}}),Rr("div",{staticClass:"box",class:{open:Tr.openStatus}},[Rr("div",{staticClass:"hd"},[Rr("div",{staticClass:"color-view",style:"background-color: "+Tr.showPanelColor}),Rr("div",{staticClass:"default-color",on:{click:Tr.handleDefaultColor,mouseover:function(Dr){Tr.hoveColor=Tr.defaultColor},mouseout:function(Dr){Tr.hoveColor=null}}},[Tr._v("默认颜色")])]),Rr("div",{staticClass:"bd"},[Rr("h3",[Tr._v("主题颜色")]),Rr("ul",{staticClass:"t-color"},Tr._l(Tr.tColor,(function(Dr,Ur){return Rr("li",{key:Ur,style:{backgroundColor:Dr},on:{mouseover:function(Rr){Tr.hoveColor=Dr},mouseout:function(Dr){Tr.hoveColor=null},click:function(Rr){return Tr.updataValue(Dr)}}})})),0),Rr("h3",[Tr._v("标准颜色")]),Rr("ul",{staticClass:"t-color"},Tr._l(Tr.bColor,(function(Dr,Ur){return Rr("li",{key:Ur,style:{backgroundColor:Dr},on:{mouseover:function(Rr){Tr.hoveColor=Dr},mouseout:function(Dr){Tr.hoveColor=null},click:function(Rr){return Tr.updataValue(Dr)}}})})),0)])])])},xc=[],Cc=function(Tr){Object(Qr["a"])(HoColorPicker,Tr);var Dr=Object(Zr["a"])(HoColorPicker);function HoColorPicker(){var Tr;return Object(Xr["a"])(this,HoColorPicker),Tr=Dr.apply(this,arguments),Tr.openStatus=!1,Tr.hoveColor=null,Tr.tColor=["#ffffff","#000000","#eeece1","#1f497d","#4f81bd","#c0504d","#9bbb59","#8064a2","#4bacc6","#f79646","#f2f2f2","#7f7f7f","#ddd9c3","#c6d9f0","#dbe5f1","#f2dcdb","#ebf1dd","#e5e0ec","#dbeef3","#fdeada","#d8d8d8","#595959","#c4bd97","#8db3e2","#b8cce4","#e5b9b7","#d7e3bc","#ccc1d9","#b7dde8","#fbd5b5","#bfbfbf","#3f3f3f","#938953","#548dd4","#95b3d7","#d99694","#c3d69b","#b2a2c7","#92cddc","#fac08f","#a5a5a5","#262626","#494429","#17365d","#366092","#953734","#76923c","#5f497a","#31859b","#e36c09","#7f7f7f","#0c0c0c","#1d1b10","#0f243e","#244061","#632423","#4f6128","#3f3151","#205867","#974806"],Tr.colorConfig=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],Tr.bColor=["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],Tr.html5Color=Tr.value,Tr}return Object(Yr["a"])(HoColorPicker,[{key:"showPanelColor",get:function get(){return this.hoveColor?this.hoveColor:this.showColor}},{key:"showColor",get:function get(){return this.value?this.value:this.defaultColor}},{key:"openPanel",value:function openPanel(){this.openStatus=!this.disabled}},{key:"updataValue",value:function updataValue(Tr){this.$emit("input",Tr),this.$emit("change",Tr),this.openStatus=!1}},{key:"closed",value:function closed(){this.openStatus=!1}},{key:"handleDefaultColor",value:function handleDefaultColor(){this.updataValue(this.defaultColor)}},{key:"parseColor",value:function parseColor(Tr){if(4!==Tr.length)return Tr;Tr="#"+Tr[1]+Tr[1]+Tr[2]+Tr[2]+Tr[3]+Tr[3]}},{key:"rgbToHex",value:function rgbToHex(Tr,Dr,Rr){var Ur=(Tr<<16|Dr<<8|Rr).toString(16);return"#"+new Array(Math.abs(Ur.length-7)).join("0")+Ur}},{key:"hexToRgb",value:function hexToRgb(Tr){Tr=this.parseColor(Tr);for(var Dr=[],Rr=1;Rr<7;Rr+=2)Dr.push(parseInt("0x"+Tr.slice(Rr,Rr+2)));return Dr}},{key:"gradient",value:function gradient(Tr,Dr,Rr){for(var Ur=this.hexToRgb(Tr),Hr=this.hexToRgb(Dr),Wr=(Hr[0]-Ur[0])/Rr,zr=(Hr[1]-Ur[1])/Rr,Vr=(Hr[2]-Ur[2])/Rr,Kr=[],$r=0;$r<Rr;$r++)Kr.push(this.rgbToHex(Wr*$r+Ur[0],zr*$r+Ur[1],Vr*$r+Ur[2]));return Kr}}]),HoColorPicker}(Kr.a);__decorate([Prop()],Cc.prototype,"value",void 0),__decorate([Prop({default:"#000000"})],Cc.prototype,"defaultColor",void 0),__decorate([Prop({default:!1})],Cc.prototype,"disabled",void 0),Cc=__decorate([an({name:"HoColorPicker"})],Cc);var Pc,Ec,Sc=Cc,Tc=Sc,Dc=(Rr("a4b6"),normalizeComponent(Tc,HoColorPickervue_type_template_id_a4ad5878_scoped_true_render,xc,!1,null,"a4ad5878",null)),kc=Dc.exports;(function(Tr){Tr[Tr["vatop"]=0]="vatop",Tr[Tr["vacenter"]=1]="vacenter",Tr[Tr["vabottom"]=2]="vabottom"})(Pc||(Pc={})),function(Tr){Tr[Tr["dash"]=0]="dash",Tr[Tr["dashdot"]=1]="dashdot",Tr[Tr["dashdotdo"]=2]="dashdotdo",Tr[Tr["dot"]=3]="dot",Tr[Tr["solid"]=4]="solid"}(Ec||(Ec={}));var Oc=function(Tr){Object(Qr["a"])(TableCellProperty,Tr);var Dr=Object(Zr["a"])(TableCellProperty);function TableCellProperty(){var Tr;return Object(Xr["a"])(this,TableCellProperty),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.textActiveName="0",Tr.lightCellBorders=!1,Tr.title="",Tr.align=Pc.vatop,Tr.backColor="#ffffff",Tr.isDrawGridlines=!0,Tr.gridLinesColor=["#000000","#000000","#000000","#000000"],Tr.gridLinesStyle=Ec.solid,Tr.span=0,Tr.alignTextToGridline=!0,Tr.printGridLines=!0,Tr.cellTop=0,Tr.cellBottom=0,Tr.cellLeft=0,Tr.cellRight=0,Tr.editorProperty=0,Tr.listItems=[],Tr.source="",Tr.canModifyContent=!0,Tr.isAllowDel=!0,Tr.allowMultiSelected=!1,Tr.splitCharacter=",",Tr.errorArr=[],Tr.errorIndex=[],Tr.focusIndexs=-1,Tr.inputStyle="yyyy-MM-dd HH:mm",Tr.isAutoInputCurDate=!0,Tr.obliqueSplitLine=0,Tr.endPath="",Tr}return Object(Yr["a"])(TableCellProperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(Tr){if(Tr.name||Tr.value)return Tr}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var Tr=this.getActiveDocId(),Dr=Tn["a"].instance().getFactory(Tr);this.endPath=Dr.docTree.curDomRange.normalize().endPath;var Rr=this.getCellNodes();if(null!==Rr){this.id=null!==Rr&&void 0!==Rr&&Rr.cellProperty.id?Rr.cellProperty.id:this.vueController.generateID("TB"),this.lightCellBorders=Rr.cellProperty.lightCellBorders,this.title=Rr.cellProperty.title?Rr.cellProperty.title:"",this.align=Rr.cellProperty.align,this.isDrawGridlines=Rr.cellProperty.isDrawGridlines,Array.isArray(Rr.cellProperty.gridLinesColor)?this.gridLinesColor=Object(Gr["a"])(Rr.cellProperty.gridLinesColor):this.gridLinesColor=["#000000","#000000","#000000","#000000"],this.backColor=Rr.cellProperty.backColor?Rr.cellProperty.backColor:"#ffffff",this.gridLinesStyle=Rr.cellProperty.gridLinesStyle,this.span=Rr.cellProperty.span,this.alignTextToGridline=Rr.cellProperty.alignTextToGridline,this.printGridLines=Rr.cellProperty.printGridLines;var Ur=Rr.cellProperty.cellInnerMargin?Rr.cellProperty.cellInnerMargin:[0,0,0,0],Hr=Object(oa["a"])(Ur,4);this.cellTop=Hr[0],this.cellBottom=Hr[1],this.cellLeft=Hr[2],this.cellRight=Hr[3],this.editorProperty=Rr.cellProperty.editorProperty;var Wr=this.getKeyId(0),zr=[{value:"",text:"",id:Wr}],Vr=Rr.cellProperty.downListProperty;Vr?(this.listItems=JSON.parse(Vr.listItems)?[].concat(Object(Gr["a"])(JSON.parse(Vr.listItems)),zr):[].concat(zr),this.source=Vr.source?Vr.source:"",this.canModifyContent=void 0===Vr.canModifyContent||Vr.canModifyContent,this.isAllowDel=void 0===Vr.isAllowDel||Vr.isAllowDel,this.allowMultiSelected=void 0!==Vr.allowMultiSelected&&Vr.allowMultiSelected,this.splitCharacter=Vr.splitCharacter?Vr.splitCharacter:","):this.listItems=[].concat(zr);var Kr=Rr.cellProperty.dateTimeProperty;Kr&&(this.inputStyle=Kr.inputStyle?Kr.inputStyle:"yyyy-MM-dd",this.isAutoInputCurDate=void 0!==Kr.isAutoInputCurDate&&Kr.isAutoInputCurDate),this.obliqueSplitLine=Rr.cellProperty.obliqueSplitLine}}},{key:"isDrawGridlinesChange",value:function isDrawGridlinesChange(){this.isDrawGridlines||(this.printGridLines=!1)}},{key:"getCellNodes",value:function getCellNodes(){var Tr=this.vueController.findNodebyPath(this.endPath).node,Dr=this.getCellNode(Tr),Rr=null===Dr||void 0===Dr?void 0:Dr.table.rows.indexOf(null===Dr||void 0===Dr?void 0:Dr.row);if(Rr){var Ur=null===Dr||void 0===Dr?void 0:Dr.table.rowInfos[Rr];if(Ur){var Hr,Wr,zr,Vr=null===(Hr=Ur.rowProperty)||void 0===Hr?void 0:Hr.customProperties;if(Vr&&Vr.length>0&&this.setCustomsValue([].concat(Object(Gr["a"])(Vr),[{name:"",value:""}])),null!==(Wr=Ur.rowProperty)&&void 0!==Wr&&Wr.dataSource)this.setDataSource(null===(zr=Ur.rowProperty)||void 0===zr?void 0:zr.dataSource);else this.setDataSource()}}return Dr}},{key:"querySearch",value:function querySearch(Tr,Dr){Dr(Jn["f"])}},{key:"focusIndex",value:function focusIndex(Tr){this.focusIndexs=Tr}},{key:"blurIndex",value:function blurIndex(Tr){var Dr=this.listItems[Tr];""===(null===Dr||void 0===Dr?void 0:Dr.value.replace(/\s*/g,""))&&""===(null===Dr||void 0===Dr?void 0:Dr.text.replace(/\s*/g,""))&&Tr!==this.listItems.length-1&&this.deleteCurrentRow(Dr.id),this.errorArr=this.listItems.filter((function(Tr){if(Tr.text===(null===Dr||void 0===Dr?void 0:Dr.text)&&Tr.id!==(null===Dr||void 0===Dr?void 0:Dr.id))return Tr})),this.errorArr.length>0?this.errorIndex.includes(Dr.id)||this.errorIndex.push(Dr.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(Tr){var Dr=this.listItems.filter((function(Tr){if(!Tr.text&&!Tr.value)return Tr}));0===Dr.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(Tr){var Dr=-1;this.listItems.filter((function(Rr,Ur){Rr.id===Tr&&(Dr=Ur)})),this.listItems.splice(Dr,1)}},{key:"getKeyId",value:function getKeyId(Tr){return Tr?"DL"+(new Date).getTime()+Tr:"DL"+(new Date).getTime()}},{key:"printStyleChange",value:function printStyleChange(Tr){this.gridLinesStyle=Tr}},{key:"setObliqueSplitLine",value:function setObliqueSplitLine(Tr){this.obliqueSplitLine=Tr}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0)}},{key:"sure",value:function sure(){var Tr=this;this.gridLinesColor=[this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0]];var Dr={id:this.id,lightCellBorders:this.lightCellBorders,title:this.title,customProperties:this.customProperties,dataSource:this.dataSource,align:this.align,backColor:this.backColor,cellInnerMargin:[this.cellTop,this.cellBottom,this.cellLeft,this.cellRight],isDrawGridlines:this.isDrawGridlines,gridLinesColor:this.gridLinesColor,gridLinesStyle:this.gridLinesStyle,span:this.span,alignTextToGridline:this.alignTextToGridline,printGridLines:this.printGridLines,obliqueSplitLine:this.obliqueSplitLine,editorProperty:this.editorProperty};if(1===this.editorProperty){var Rr=this.listItems.filter((function(Tr){if(Tr.text||Tr.value)return Tr}));Dr.downListProperty={listItems:JSON.stringify(Rr),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},Dr.dateTimeProperty=void 0}else 2===this.editorProperty&&(Dr.dateTimeProperty={inputStyle:this.inputStyle,isAutoInputCurDate:this.isAutoInputCurDate},Dr.downListProperty=void 0);var Ur=Tn["a"].instance().getFactory(this.hoEditorFactoryId),Hr=Ur.docTree.curDomRange,Wr=Ur.docTree.curDomRange.normalize().inSameTable()[1],zr=Wr.getTableSelectCells(Hr,!0),Vr=this.getCellNodes();0===zr.length&&null!==Vr&&zr.push(Vr),Ur.tableController.cellProperty(JSON.stringify(Dr),zr),this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TableCellProperty}(mixins(Pi));__decorate([Prop()],Oc.prototype,"vueController",void 0),__decorate([Prop()],Oc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],Oc.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Oc.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],Oc.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],Oc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],Oc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],Oc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Oc.prototype,"getActiveDocId",void 0),Oc=__decorate([an({name:"TableCellProperty",components:{PrintLineStyle:wc,HoColorPicker:kc}})],Oc);var Ic=Oc,Mc=Ic,Nc=(Rr("3e07"),normalizeComponent(Mc,TableCellPropertyvue_type_template_id_134c4d55_scoped_true_render,_c,!1,null,"134c4d55",null)),Lc=Nc.exports,PageInfoesvue_type_template_id_4da72a3a_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:"control-modal-contents pageinfoes-modal "+Tr.animationClassName},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("页码页数信息")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("内容")]),Rr("el-radio",{attrs:{size:"small",label:0},model:{value:Tr.content,callback:function(Dr){Tr.content=Dr},expression:"content"}},[Tr._v("页码")]),Rr("el-radio",{attrs:{size:"small",label:1},model:{value:Tr.content,callback:function(Dr){Tr.content=Dr},expression:"content"}},[Tr._v("总页数")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("数字显示格式")]),Rr("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"数字显示格式",size:"mini"},model:{value:Tr.format,callback:function(Dr){Tr.format=Dr},expression:"format"}},[Rr("el-option",{attrs:{label:"1. 2. 3. 4. ···",value:0}}),Rr("el-option",{attrs:{label:"一. 二. 三. 四. ···",value:1}})],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.sure}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Ac=[],Rc=function(Tr){Object(Qr["a"])(PageInfoes,Tr);var Dr=Object(Zr["a"])(PageInfoes);function PageInfoes(){var Tr;return Object(Xr["a"])(this,PageInfoes),Tr=Dr.apply(this,arguments),Tr.content=0,Tr.format=0,Tr.animationClassName="animation-in",Tr}return Object(Yr["a"])(PageInfoes,[{key:"sure",value:function sure(){this.vueController.insertPageNum("add",this.content,this.format,!0),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassName="animation-in",this.$emit("closed")}}]),PageInfoes}(Kr.a);__decorate([Prop()],Rc.prototype,"vueController",void 0),Rc=__decorate([an({name:"PageInfoes"})],Rc);var Fc=Rc,jc=Fc,Bc=(Rr("6c0e"),normalizeComponent(jc,PageInfoesvue_type_template_id_4da72a3a_scoped_true_render,Ac,!1,null,"4da72a3a",null)),Uc=Bc.exports,Hc=Uc,Delimitervue_type_template_id_0277f9ca_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("分割符")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content",staticStyle:{padding:"20px"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("宽度")]),Rr("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:Tr.width,callback:function(Dr){Tr.width=Dr},expression:"width"}}),Rr("span",{staticStyle:{"padding-left":"10px"}},[Tr._v("px")])],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("颜色")]),Rr("ho-color-picker",{model:{value:Tr.color,callback:function(Dr){Tr.color=Dr},expression:"color"}})],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.insertDelimiter}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Wc=[],qc=function(Tr){Object(Qr["a"])(Delimiter,Tr);var Dr=Object(Zr["a"])(Delimiter);function Delimiter(){var Tr;return Object(Xr["a"])(this,Delimiter),Tr=Dr.apply(this,arguments),Tr.width=1,Tr.color="#000",Tr.animationClassNames="control-modal-contents delimiter-modal animation-in",Tr}return Object(Yr["a"])(Delimiter,[{key:"insertDelimiter",value:function insertDelimiter(){this.vueController.insertSeparateChar(this.width,this.color),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents delimiter-modal animation-out",this.$emit("closed")}}]),Delimiter}(Kr.a);__decorate([Prop()],qc.prototype,"vueController",void 0),qc=__decorate([an({name:"Delimiter",components:{HoColorPicker:kc}})],qc);var zc=qc,Vc=zc,Kc=(Rr("d327"),normalizeComponent(Vc,Delimitervue_type_template_id_0277f9ca_render,Wc,!1,null,null,null)),$c=Kc.exports,Gc=$c,Signvue_type_template_id_f4860f7c_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{class:Tr.animationClassNames},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("签名")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content",staticStyle:{paDDing:"20px"}},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名名称")]),Rr("el-input",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini"},model:{value:Tr.name,callback:function(Dr){Tr.name=Dr},expression:"name"}})],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"}),Rr("el-radio",{attrs:{label:0},model:{value:Tr.signType,callback:function(Dr){Tr.signType=Dr},expression:"signType"}},[Tr._v("单人签名")]),Rr("el-radio",{attrs:{label:1},model:{value:Tr.signType,callback:function(Dr){Tr.signType=Dr},expression:"signType"}},[Tr._v("多人签名")])],1),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名格式")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.signFormat,callback:function(Dr){Tr.signFormat=Dr},expression:"signFormat"}},[Rr("el-option",{attrs:{label:"<医师姓名>",value:"<医师姓名>"}}),Rr("el-option",{attrs:{label:"<医师姓名>(<医师职称>)",value:"<医师姓名>(<医师职称>)"}}),Rr("el-option",{attrs:{label:"<医师姓名>:<医师职称>",value:"<医师姓名>:<医师职称>"}}),Rr("el-option",{attrs:{label:"<医师姓名>:<医师职称>\\n<签名时间>",value:"<医师姓名>:<医师职称>\\n<签名时间>"}}),Tr._l(Tr.customSignFormatList,(function(Tr){return Rr("el-option",{key:Tr.label,attrs:{label:Tr.label,value:Tr.value}})}))],2)],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名时间格式")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.signTimeFormat,callback:function(Dr){Tr.signTimeFormat=Dr},expression:"signTimeFormat"}},[Rr("el-option",{attrs:{label:"yyyy-MM-DD HH:mm:ss",value:"yyyy-MM-DD HH:mm:ss"}}),Rr("el-option",{attrs:{label:"yyyy-MM-DD HH:mm",value:"yyyy-MM-DD HH:mm"}}),Rr("el-option",{attrs:{label:"yyyy/MM/DD HH:mm:ss",value:"yyyy/MM/DD HH:mm:ss"}}),Rr("el-option",{attrs:{label:"yyyy/MM/DD HH:mm",value:"yyyy/MM/DD HH:mm"}}),Rr("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分ss秒",value:"yyyy年MM月DD日 HH时mm分ss秒"}}),Rr("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分",value:"yyyy年MM月DD日 HH时mm分"}})],1)],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("签名连接方式")]),Rr("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:Tr.connectMode,callback:function(Dr){Tr.connectMode=Dr},expression:"connectMode"}},[Rr("el-option",{attrs:{label:"/",value:"/"}}),Rr("el-option",{attrs:{label:"换行",value:"换行"}}),Rr("el-option",{attrs:{label:"、",value:"、"}}),Rr("el-option",{attrs:{label:",",value:","}})],1)],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"}),Rr("el-checkbox",{model:{value:Tr.isFront,callback:function(Dr){Tr.isFront=Dr},expression:"isFront"}},[Tr._v("连接符前置")]),Rr("el-tooltip",{attrs:{placement:"right",effect:"dark"}},[Rr("div",{attrs:{slot:"content"},slot:"content"},[Tr._v("不勾选参数:     医师签名 / "),Rr("br"),Tr._v("   勾选参数:     / 医师签名 ")]),Rr("i",{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1):Tr._e(),1===Tr.signType?Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"}),Rr("el-checkbox",{model:{value:Tr.allowEditSignTime,callback:function(Dr){Tr.allowEditSignTime=Dr},expression:"allowEditSignTime"}},[Tr._v("允许修改签名时间")])],1):Tr._e()]),1===Tr.signType?Rr("div",{staticClass:"section-right"},[Rr("div",{staticClass:"custom-format-tool-box"},[Rr("ul",{staticClass:"custom-format-tool"},[Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<医师姓名>"}}},[Tr._v("医师姓名")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1),Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<医师工号>"}}},[Tr._v("医师工号")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1),Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<医师职称>"}}},[Tr._v("医师职称")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1),Rr("li",[Rr("el-button",{attrs:{size:"small",plain:""},on:{click:function(Dr){Tr.customFormatContent+="<签名时间>"}}},[Tr._v("签名时间")]),Rr("i",{staticClass:"el-icon-circle-plus"})],1)]),Rr("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:Tr.customFormatContent,callback:function(Dr){Tr.customFormatContent=Dr},expression:"customFormatContent"}})],1),Rr("p",[Tr._v("提示:")]),Rr("p",[Tr._v("1. 尖括号内的内容用来替换, 不能修改")]),Rr("p",[Tr._v("2. 尖括号外的内容处理格式,可以编辑")]),Rr("p",[Tr._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),Rr("div",{staticClass:"custom-format-tool-btn"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.createSignFormat}},[Tr._v("添加自定义签名格式")])],1)]):Tr._e()]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"small",type:"primary"},on:{click:Tr.insertSign}},[Tr._v("确定")]),Rr("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])},Jc=[],Xc=function(Tr){Object(Qr["a"])(Sign,Tr);var Dr=Object(Zr["a"])(Sign);function Sign(){var Tr;return Object(Xr["a"])(this,Sign),Tr=Dr.apply(this,arguments),Tr.height=20,Tr.name="",Tr.signType=0,Tr.signFormat="<医师姓名>",Tr.connectMode="换行",Tr.isFront=!1,Tr.allowEditSignTime=!1,Tr.signTimeFormat="yyyy-MM-DD HH:mm",Tr.customFormatContent="",Tr.customSignFormatList=[],Tr.animationClassNames="control-modal-contents sign-modal animation-in",Tr}return Object(Yr["a"])(Sign,[{key:"createSignFormat",value:function createSignFormat(){var Tr=JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,""),Dr=["<医师姓名>","<医师职称>","<医师工号>","<签名时间>"];if(this.$elMessage.closeAll(),0!==Dr.filter((function(Dr){return Tr.includes(Dr)})).length){var Rr=["<医师姓名>","<医师姓名>(<医师职称>)","<医师姓名>:<医师职称>","<医师姓名>:<医师职称>\n<签名时间>"].concat();this.customSignFormatList.forEach((function(Tr){return Rr.push(Tr.value)})),Rr.filter((function(Dr){return Dr===Tr.slice(1,Tr.length-1)})).length>0?this.$elMessage.warning({message:"签名格式已存在无需插入,已自动选中",duration:3e3,offset:120}):this.customSignFormatList.push({label:Tr.slice(1,Tr.length-1),value:Tr.slice(1,Tr.length-1)}),this.signFormat=Tr.slice(1,Tr.length-1)}else this.$elMessage.warning({message:"至少需要插入'<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'中的一种",duration:3e3,offset:120})}},{key:"insertSign",value:function insertSign(){1===this.signType?this.vueController.insertEmptySignNode(this.name?this.name:"签名",this.signType,this.signFormat,this.signTimeFormat,this.connectMode,this.isFront,this.allowEditSignTime):this.vueController.insertEmptySignNode(this.name?this.name:"签名"),this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents sign-modal animation-out",this.$emit("closed")}}]),Sign}(Kr.a);__decorate([Prop()],Xc.prototype,"vueController",void 0),__decorate([Prop()],Xc.prototype,"controlStatus",void 0),Xc=__decorate([an({name:"Sign",components:{HoColorPicker:kc}})],Xc);var Yc=Xc,Qc=Yc,Zc=(Rr("5ec2"),normalizeComponent(Qc,Signvue_type_template_id_f4860f7c_render,Jc,!1,null,null,null)),eu=Zc.exports,tu=eu,ru=function(Tr){Object(Qr["a"])(ControlModal,Tr);var Dr=Object(Zr["a"])(ControlModal);function ControlModal(){var Tr;return Object(Xr["a"])(this,ControlModal),Tr=Dr.apply(this,arguments),Tr.names={style1:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"},Tr}return Object(Yr["a"])(ControlModal,[{key:"controlType",get:function get(){return this.controlProperty.controlType}},{key:"controlStatus",get:function get(){return this.controlProperty.controlStatus}},{key:"expressStyle",get:function get(){return this.controlProperty.expressStyle}},{key:"vueController",get:function get(){return Tn["a"].instance().getFactory(this.hoEditorFactoryId).vueController}},{key:"insertComments",value:function insertComments(Tr){this.$emit("insertComments",Tr)}},{key:"handleClose",value:function handleClose(){if(this.isDataSource||this.isCustoms||this.isListStyle||"find"===this.controlType)return!1;this.$emit("closeControlmodal")}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.toolModals,"modal-title")}}]),ControlModal}(mixins(Zn));__decorate([Ref()],ru.prototype,"toolModals",void 0),__decorate([Prop()],ru.prototype,"controlProperty",void 0),__decorate([Prop()],ru.prototype,"isDataSource",void 0),__decorate([Prop()],ru.prototype,"isCustoms",void 0),__decorate([Prop()],ru.prototype,"isListStyle",void 0),__decorate([Prop()],ru.prototype,"hoEditorFactoryId",void 0),ru=__decorate([an({name:"ControlModal",components:{ExpressionForm:sl,DateDialog:Os,Barcode:Bs,QrCode:$s,Sign:tu,TextDialog:el,CustomAttributes:Al,DataSourceDialog:Wl,RadioCheckbox:_l,SelectDialog:vs,ListSource:Jl,TableProperty:tc,TableRowProperty:sc,TableCellProperty:Lc,TableColProperty:fc,WaterSetDialog:Dl,CommentDialog:xl,PageInfoes:Hc,Delimiter:Gc}})],ru);var nu=ru,iu=nu,au=normalizeComponent(iu,ControlModalvue_type_template_id_3be7d6ee_render,ds,!1,null,null,null),ou=au.exports,FindReplacevue_type_template_id_fd4f089c_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{ref:"findModal",class:Tr.animationClassNames,on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("查找替换")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label"},[Tr._v("查找内容")]),Rr("el-input",{attrs:{type:"text",size:"mini"},nativeOn:{keyup:function(Dr){return!Dr.type.indexOf("key")&&Tr._k(Dr.keyCode,"enter",13,Dr.key,"Enter")?null:Tr.toFind.apply(null,arguments)}},model:{value:Tr.findContent,callback:function(Dr){Tr.findContent=Dr},expression:"findContent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("div",{staticClass:"label"},[Rr("el-checkbox",{on:{change:Tr.switchTypes},model:{value:Tr.switchType,callback:function(Dr){Tr.switchType=Dr},expression:"switchType"}},[Tr._v("替换内容")])],1),Rr("el-input",{attrs:{disabled:!Tr.switchType,type:"text",size:"mini"},model:{value:Tr.replaceCentent,callback:function(Dr){Tr.replaceCentent=Dr},expression:"replaceCentent"}})],1),Rr("li",{staticClass:"control-item"},[Rr("el-radio",{attrs:{label:0},model:{value:Tr.direction,callback:function(Dr){Tr.direction=Dr},expression:"direction"}},[Tr._v("向下")]),Rr("el-radio",{attrs:{label:1},model:{value:Tr.direction,callback:function(Dr){Tr.direction=Dr},expression:"direction"}},[Tr._v("向上")]),Rr("div",{staticStyle:{"margin-left":"30px"}},[Rr("el-checkbox",{model:{value:Tr.matchCase,callback:function(Dr){Tr.matchCase=Dr},expression:"matchCase"}},[Tr._v("区分大小写")])],1)],1)])]),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{disabled:""===Tr.findContent,size:"mini"},on:{click:Tr.toFind}},[Tr._v("查找")]),Rr("el-button",{attrs:{disabled:""===Tr.findContent||!Tr.switchType,size:"mini"},on:{click:Tr.toReplace}},[Tr._v("替换")]),Rr("el-button",{attrs:{disabled:""===Tr.findContent||!Tr.switchType,size:"mini"},on:{click:Tr.toReplaceAll}},[Tr._v("全部替换")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("关闭")])],1)])},su=[],lu=function(Tr){Object(Qr["a"])(FindReplaceDialog,Tr);var Dr=Object(Zr["a"])(FindReplaceDialog);function FindReplaceDialog(){var Tr;return Object(Xr["a"])(this,FindReplaceDialog),Tr=Dr.apply(this,arguments),Tr.switchType=!1,Tr.operType="find",Tr.findContent="",Tr.replaceCentent="",Tr.direction=0,Tr.matchCase=!0,Tr.path="",Tr.callbackCount=0,Tr.animationClassNames="control-modal-contents find-modal animation-in",Tr}return Object(Yr["a"])(FindReplaceDialog,[{key:"switchTypes",value:function switchTypes(Tr){this.operType=Tr?"replace":"find"}},{key:"toFind",value:function toFind(Tr){if(this.findContent){var Dr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);this.path=Dr.vueController.find(this.findContent,this.direction,this.matchCase),Tr instanceof Function&&Tr()}}},{key:"toReplace",value:function toReplace(){var Tr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);""===this.path||"-1"===this.path?this.callbackCount<=2?(this.callbackCount++,this.toFind(this.toReplace)):this.callbackCount=0:(Tr.vueController.replace(this.findContent,this.replaceCentent,this.path,1,this.direction,this.matchCase),this.callbackCount=0,this.path="")}},{key:"toReplaceAll",value:function toReplaceAll(){var Tr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);Tr.vueController.replace(this.findContent,this.replaceCentent,"",0,1,this.matchCase),this.callbackCount=0,this.path=""}},{key:"handleClose",value:function handleClose(){var Tr=this;this.animationClassNames="control-modal-contents find-modal animation-out",window.clearTimeout(),setTimeout((function(){Tr.setControlFindType("")}),100)}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.findModal,"modal-title")}}]),FindReplaceDialog}(mixins(Zn));__decorate([Ref()],lu.prototype,"findModal",void 0),__decorate([Prop()],lu.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setControlFindType")],lu.prototype,"setControlFindType",void 0),lu=__decorate([an({name:"FindReplaceDialog"})],lu);var cu=lu,uu=cu,du=(Rr("0a8d"),normalizeComponent(uu,FindReplacevue_type_template_id_fd4f089c_render,su,!1,null,null,null)),hu=du.exports,pu=hu,ViewContinuousXmlvue_type_template_id_db8cca98_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:Tr.loadMore,expression:"loadMore"}],staticClass:"ho-continuous-viewbox",staticStyle:{overflow:"auto"}},Tr._l(Tr.continuousView.currentList,(function(Dr,Ur){return Rr("div",{key:Ur,domProps:{innerHTML:Tr._s(Dr.innerHTML)}})})),0)},fu=[],_u=function(Tr){Object(Qr["a"])(ViewContinuousXml,Tr);var Dr=Object(Zr["a"])(ViewContinuousXml);function ViewContinuousXml(){var Tr;return Object(Xr["a"])(this,ViewContinuousXml),Tr=Dr.apply(this,arguments),Tr.continuousView={status:!1,currentList:[],allList:[]},Tr}return Object(Yr["a"])(ViewContinuousXml,[{key:"mounted",value:function mounted(){var Tr=Tn["a"].instance().getFactory(this.hoEditorFactoryId);Tr.continuousView=this.continuousView}},{key:"loadMore",value:function loadMore(){var Tr=this.continuousView.allList,Dr=this.continuousView.currentList;if(Tr.length>Dr.length){var Rr,Ur=Tr.filter((function(Tr,Rr){return Rr>Dr.length-1&&Rr<Dr.length+4}));(Rr=this.continuousView.currentList).push.apply(Rr,Object(Gr["a"])(Ur))}}}]),ViewContinuousXml}(Kr.a);__decorate([Prop()],_u.prototype,"hoEditorFactoryId",void 0),_u=__decorate([an({name:"ViewContinuousXml",components:{}})],_u);var gu=_u,mu=gu,vu=(Rr("f624"),normalizeComponent(mu,ViewContinuousXmlvue_type_template_id_db8cca98_render,fu,!1,null,null,null)),yu=vu.exports,bu=yu,wu=function(Tr){Object(Qr["a"])(ControlMixin,Tr);var Dr=Object(Zr["a"])(ControlMixin);function ControlMixin(){var Tr;return Object(Xr["a"])(this,ControlMixin),Tr=Dr.apply(this,arguments),Tr.controlType="",Tr.controlStatus="",Tr.expressStyle="",Tr.rightType="",Tr.rightTypeIsTable=!1,Tr.commentValue=void 0,Tr.updateNodeValue=null,Tr.isDataSource=!1,Tr.dataSource=JSON.parse(JSON.stringify(ti)),Tr.isCustoms=!1,Tr.customsValue=[{name:"",value:""}],Tr.customPropertyValue={},Tr.isListStyle=!1,Tr.listSource=[],Tr.listArrSource="",Tr.listAllowMultiSelected=!1,Tr.controlFindType=!1,Tr.activeDocId="",Tr.domRange={startPath:"",endPath:""},Tr}return Object(Yr["a"])(ControlMixin,[{key:"getActiveDocId",value:function getActiveDocId(){return this.activeDocId}},{key:"initControlMixin",value:function initControlMixin(){this.controlType="",this.controlStatus="",this.expressStyle="",this.rightType="",this.rightTypeIsTable=!1,this.updateNodeValue=null,this.isDataSource=!1,this.dataSource=JSON.parse(JSON.stringify(ti)),this.isCustoms=!1,this.customsValue=[{name:"",value:""}],this.listSource=[],this.isListStyle=!1,this.listArrSource="",this.domRange={startPath:"",endPath:""}}},{key:"setControlFindType",value:function setControlFindType(Tr){this.controlFindType=Tr}},{key:"getControlProperty",value:function getControlProperty(){return{controlType:this.controlType,controlStatus:this.controlStatus,expressStyle:this.expressStyle,domRange:this.domRange}}},{key:"setControlProperty",value:function setControlProperty(Tr,Dr,Rr){this.controlType=Tr,this.controlStatus=Dr,this.expressStyle=Rr||this.expressStyle,"express"===this.controlType&&this.expressStyle,""===this.controlType&&(this.setDataSource(JSON.parse(JSON.stringify(ti))),this.setCustomsValue([{name:"",value:""}]),this.listArrSource="",this.listSource=[],this.rightType="",this.updateNodeValue=null)}},{key:"getIsDataSource",value:function getIsDataSource(){return this.isDataSource}},{key:"setIsDataSource",value:function setIsDataSource(Tr){this.isDataSource=Tr}},{key:"getDataSource",value:function getDataSource(){return this.dataSource}},{key:"setDataSource",value:function setDataSource(Tr){this.dataSource=Tr?_objectSpread2({},Tr):JSON.parse(JSON.stringify(ti))}},{key:"getIsListStyle",value:function getIsListStyle(){return this.isListStyle}},{key:"setIsListStyle",value:function setIsListStyle(Tr){this.isListStyle=Tr}},{key:"getListStyle",value:function getListStyle(){return this.listSource}},{key:"getListArrSource",value:function getListArrSource(){return this.listArrSource}},{key:"getListAllowMultiSelected",value:function getListAllowMultiSelected(){return this.listAllowMultiSelected}},{key:"setListAllowMultiSelected",value:function setListAllowMultiSelected(Tr){this.listAllowMultiSelected=Tr}},{key:"setListStyle",value:function setListStyle(Tr,Dr){Array.isArray(Tr)&&(this.listSource=Object(Gr["a"])(Tr)),this.listArrSource=Dr}},{key:"getIsCustoms",value:function getIsCustoms(){return this.isCustoms}},{key:"setIsCustoms",value:function setIsCustoms(Tr){this.isCustoms=Tr}},{key:"getCustomsValue",value:function getCustomsValue(){return this.customsValue}},{key:"setCustomsValue",value:function setCustomsValue(Tr){this.customsValue=Object(Gr["a"])(Tr)}},{key:"setUpdateNodeValue",value:function setUpdateNodeValue(Tr){Tr&&Tr.customProperty&&Object(_o["b"])(Tr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Tr.customProperty))}},{key:"getUpdateNodeValue",value:function getUpdateNodeValue(){return this.getUpdateNode()}},{key:"getRightClickNodeValue",value:function getRightClickNodeValue(){return{node:this.getUpdateNode,type:this.rightType,style:this.expressStyle,rightTypeIsTable:this.rightTypeIsTable}}},{key:"getUpdateNode",value:function getUpdateNode(){var Tr;return Tr=Array.isArray(this.updateNodeValue)?this.updateNodeValue:this.getCurrentSelectNode(),Tr}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var Tr,Dr,Rr=Tn["a"].instance().getFactory(this.activeDocId),Ur=null===(Tr=Rr.vueController.findNodebyPath(this.domRange.endPath))||void 0===Tr?void 0:Tr.node;if(Ur instanceof li["a"]||Ur instanceof ei["f"]){var Hr=Ur.parentNode;Dr=Hr instanceof ei["f"]?Hr:Ur}else if(Ur instanceof ci["a"]){var Wr=Ur.parentNode;(Wr instanceof ei["f"]||Wr instanceof En["a"])&&(Dr=Wr)}else(Ur instanceof Yn["a"]||Ur instanceof Qn["a"]||Ur instanceof Ha["a"]||Ur instanceof Wa["a"]||Ur instanceof ga["a"]||Ur instanceof Oa["a"]||Ur instanceof to["a"]||Ur instanceof Wi["a"]||Ur instanceof eo["a"])&&(Dr=Ur);return Dr}},{key:"setRightClickNodeValue",value:function setRightClickNodeValue(){this.rightTypeIsTable=!1,this.rightType="",this.updateNodeValue=null,this.expressStyle="";var Tr=Tn["a"].instance().getFactory(this.activeDocId);this.domRange={startPath:Tr.docTree.curDomRange.normalize().startPath,endPath:Tr.docTree.curDomRange.normalize().endPath};var Dr=this.getUpdateNode();if(void 0===Dr||null===Dr)return!1;if((null===Dr||void 0===Dr?void 0:Dr.parentNode)instanceof En["a"]&&(this.rightTypeIsTable=!0,this.rightType="table"),Dr instanceof li["a"]||Dr instanceof ei["f"]){var Rr,Ur=Dr.parentNode;Rr=Ur instanceof ei["f"]?Ur:Dr,this.rightType="text",this.dataSource=Rr.bandDataSource,Object(_o["b"])(Rr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Rr.customProperty))}else if(Dr instanceof ci["a"]){var Hr=Dr.parentNode;if(Hr instanceof ei["f"])this.rightType="text",this.dataSource=Hr.bandDataSource,Object(_o["b"])(Hr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Hr.customProperty));else{if(!(Hr instanceof En["a"]))return this.rightType="",this.updateNodeValue=null,!1;this.rightTypeIsTable=!0,this.rightType="table"}}else Dr instanceof Yn["a"]?(this.rightType="date",Object(_o["b"])(Dr.customProperty)&&(this.customPropertyValue=_objectSpread2({},Dr.customProperty))):Dr instanceof Qn["a"]?this.rightType="select":Dr instanceof Ha["a"]?this.rightType="barcode":Dr instanceof Wa["a"]?(this.rightType="qrcode",this.dataSource={dataSourceEnabled:Dr.dataSourceEnabled,dataSource:Dr.dataSource,format:Dr.format,visitPath:Dr.visitPath,isReadOnly:Dr.isReadOnly,autoUpdate:Dr.autoUpdate,executeStatus:Number(Dr.execState)}):Dr instanceof ga["a"]?(this.rightType=Dr.controlStyle,this.dataSource=Dr.bandDataSource):Dr instanceof Oa["a"]?this.rightType="img":Dr instanceof to["a"]?this.rightType="label":Dr instanceof Wi["a"]?this.rightType="sign":Dr instanceof eo["a"]||this.setDblclickNodeValue(Dr,"rightClick")}},{key:"setDblclickNodeValue",value:function setDblclickNodeValue(Tr,Dr){if("dblclick"===Dr&&(this.controlType="express",this.controlStatus="update"),Tr instanceof Fa["b"]){var Rr=Tr;this.expressStyle="style"+(Rr.expressStyle+1),this.updateNodeValue=[Rr.menseDays,Rr.cycleDays,Rr.menarcheAge,Rr.menoPauseAge]}else if(Tr instanceof Aa["a"]){var Ur=Tr;this.expressStyle="style5",this.updateNodeValue=[Ur.value1,Ur.value2,Ur.value3,Ur.value4,Ur.value5,Ur.value6,Ur.value7]}else if(Tr instanceof Ra["a"]){var Hr=Tr;this.expressStyle="style6",this.updateNodeValue=[Hr.value1,Hr.value2,Hr.value3,Hr.value4,Hr.value5,Hr.value6,Hr.value7,Hr.value8,Hr.value9]}else if(Tr instanceof ja["a"]){var Wr=Tr;this.expressStyle="style7",this.updateNodeValue=[Wr.value1,Wr.value2,Wr.value3,Wr.value4,Wr.value5,Wr.value6]}else if(Tr instanceof Ba["a"]){var zr=Tr;this.expressStyle="style8",this.updateNodeValue=[zr.topLeftSelected,zr.topRightSelected,zr.bottomLeftSelected,zr.bottomRightSelected]}else if(Tr instanceof Ua["a"]){var Vr=Tr;this.expressStyle="style9",this.updateNodeValue=[Vr.topLeftSelected,Vr.topRightSelected,Vr.bottomLeftSelected,Vr.bottomRightSelected]}else this.controlType="",this.controlStatus="add";"rightClick"===Dr&&this.expressStyle&&(this.rightType="express")}},{key:"setCommentValue",value:function setCommentValue(Tr){this.commentValue=Tr}},{key:"getCommentValue",value:function getCommentValue(){return this.commentValue}}]),ControlMixin}(Kr.a);__decorate([Provide()],wu.prototype,"getActiveDocId",null),__decorate([Provide()],wu.prototype,"initControlMixin",null),__decorate([Provide()],wu.prototype,"setControlFindType",null),__decorate([Provide()],wu.prototype,"setControlProperty",null),__decorate([Provide()],wu.prototype,"getIsDataSource",null),__decorate([Provide()],wu.prototype,"setIsDataSource",null),__decorate([Provide()],wu.prototype,"getDataSource",null),__decorate([Provide()],wu.prototype,"setDataSource",null),__decorate([Provide()],wu.prototype,"getIsListStyle",null),__decorate([Provide()],wu.prototype,"setIsListStyle",null),__decorate([Provide()],wu.prototype,"getListStyle",null),__decorate([Provide()],wu.prototype,"getListArrSource",null),__decorate([Provide()],wu.prototype,"getListAllowMultiSelected",null),__decorate([Provide()],wu.prototype,"setListAllowMultiSelected",null),__decorate([Provide()],wu.prototype,"setListStyle",null),__decorate([Provide()],wu.prototype,"getIsCustoms",null),__decorate([Provide()],wu.prototype,"setIsCustoms",null),__decorate([Provide()],wu.prototype,"getCustomsValue",null),__decorate([Provide()],wu.prototype,"setCustomsValue",null),__decorate([Provide()],wu.prototype,"setUpdateNodeValue",null),__decorate([Provide()],wu.prototype,"getUpdateNodeValue",null),__decorate([Provide()],wu.prototype,"getRightClickNodeValue",null),__decorate([Provide()],wu.prototype,"setRightClickNodeValue",null),__decorate([Provide()],wu.prototype,"setDblclickNodeValue",null),__decorate([Provide()],wu.prototype,"setCommentValue",null),__decorate([Provide()],wu.prototype,"getCommentValue",null),wu=__decorate([an],wu);var xu=function(Tr){Object(Qr["a"])(BackgroundMixins,Tr);var Dr=Object(Zr["a"])(BackgroundMixins);function BackgroundMixins(){var Tr;return Object(Xr["a"])(this,BackgroundMixins),Tr=Dr.apply(this,arguments),Tr.style={backgroundImage:"",backgroundSize:"auto",backgroundRepeat:"no-repeat",backgroundPosition:"center center"},Tr.waterText="",Tr.rotateAngle=0,Tr.color="",Tr.imgUrl="",Tr}return Object(Yr["a"])(BackgroundMixins,[{key:"setCanvasRects",value:function setCanvasRects(Tr,Dr){this.canvasWidths=Tr,this.canvasHeights=Dr}},{key:"setBackgroundStyle",value:function setBackgroundStyle(Tr,Dr,Rr,Ur){""===Ur&&(this.waterText="",this.rotateAngle=1,this.color="rgba(0, 0, 0, 0.2)");var Hr=0,Wr=0,zr=this.canvasWidths-Hr,Vr=this.canvasHeights-Wr,Kr="",$r="";Kr=zr>Dr?Vr<Rr?"auto":Dr+"px":zr+"px",$r=Vr>Rr?zr<Dr?"auto":Rr+"px":Vr+"px",this.style.backgroundSize=Kr+" "+$r,this.imgUrl=Ur,this.style=_objectSpread2(_objectSpread2({},this.style),Tr)}},{key:"getWaterMark",value:function getWaterMark(){return[this.waterText,this.rotateAngle,this.color]}},{key:"setWaterMark",value:function setWaterMark(Tr,Dr,Rr,Ur,Hr,Wr){if(this.waterText=Tr,this.rotateAngle=Hr,this.color=Wr,""===Tr)return this.setBackgroundStyle({"background-image":""},this.canvasWidths,this.canvasHeights,""),!1;var zr={text:Tr,docWidth:Dr||this.canvasWidths,docHeight:Rr||this.canvasWidths,fontStyle:"16px 微软雅黑",rotateAngle:Hr?-20*Math.PI/180:0,fontColor:Wr||"rgba(0, 0, 0, 0.2)",firstLinePositionX:0,firstLinePositionY:70},Vr=document.querySelector("#watercanvas"),Kr=document.querySelector("#repeat-watercanvas");Vr.width=16*Tr.length+40,Vr.height=100,Kr.width=zr.docWidth,Kr.height=zr.docHeight;var $r=Vr.getContext("2d");$r.clearRect(0,0,160,100),$r.font=zr.fontStyle,$r.rotate(zr.rotateAngle),$r.fillStyle=zr.fontColor,$r.fillText(zr.text,zr.firstLinePositionX,zr.firstLinePositionY),$r.rotate(-zr.rotateAngle);var Gr=Kr.getContext("2d");Gr.fillStyle="#fff",Gr.fillRect(0,0,Kr.width,Kr.height);var Jr=Gr.createPattern(Vr,"repeat");Gr.fillStyle=Jr,Gr.fillRect(0,0,Kr.width,Kr.height);var Xr=Kr.toDataURL("image/png");Ur instanceof Function?Ur(Xr):this.setBackgroundStyle({"background-image":"url(".concat(Xr,")")},this.canvasWidths,this.canvasHeights,Xr)}},{key:"getBackgroundStyle",value:function getBackgroundStyle(){return this.style}},{key:"getBackImgUrl",value:function getBackImgUrl(){return this.imgUrl}}]),BackgroundMixins}(Kr.a);__decorate([Provide()],xu.prototype,"getBackgroundStyle",null),__decorate([Provide()],xu.prototype,"getBackImgUrl",null),xu=__decorate([an],xu);var Cu=function(Tr){Object(Qr["a"])(FontStyleMixin,Tr);var Dr=Object(Zr["a"])(FontStyleMixin);function FontStyleMixin(){var Tr;return Object(Xr["a"])(this,FontStyleMixin),Tr=Dr.apply(this,arguments),Tr.textStyle={font:"宋体",size:14,bold:!1,italic:!1,script:0,underline:!1,strikeout:!1,backColor:"transparent",color:"#000000",aligned:"both",lineSpace:1.25},Tr.aligned=["left","right","center","both"],Tr}return Object(Yr["a"])(FontStyleMixin,[{key:"setFontStyle",value:function setFontStyle(Tr){var Dr,Rr,Ur=Tr.vueController,Hr=Ur.getCaretPosition(),Wr=Ur.findNodebyPath(Hr);if(null!==Wr&&void 0!==Wr&&null!==(Dr=Wr.node)&&void 0!==Dr&&Dr.drawNodes[0]){var zr,Vr=Tr.drawTree.getDrawLineByDNode(null===Wr||void 0===Wr||null===(zr=Wr.node)||void 0===zr?void 0:zr.drawNodes[0]).paragraphNode;Rr=Vr.combineParagraph,Tr.docTree.curParaNo=Vr.paraNo}Ur.getCurTextStyle(),this.textStyle={font:void 0!==Ur.combineStyle.font?Ur.combineStyle.font:this.textStyle.font,size:void 0!==Ur.combineStyle.size?Ur.combineStyle.size:this.textStyle.size,bold:void 0!==Ur.combineStyle.bold?Ur.combineStyle.bold:this.textStyle.bold,italic:void 0!==Ur.combineStyle.italic?Ur.combineStyle.italic:this.textStyle.italic,script:void 0!==Ur.combineStyle.script?Ur.combineStyle.script:this.textStyle.script,underline:void 0!==Ur.combineStyle.underline?Ur.combineStyle.underline:this.textStyle.underline,strikeout:void 0!==Ur.combineStyle.strikeout?Ur.combineStyle.strikeout:this.textStyle.strikeout,color:void 0!==Ur.combineStyle.color?Ur.combineStyle.color:this.textStyle.color,backColor:void 0!==Ur.combineStyle.backColor?Ur.combineStyle.backColor:this.textStyle.backColor,aligned:Rr?this.aligned[Rr.align]:"both",lineSpace:Rr?Rr.lineSpace:1.25}}}]),FontStyleMixin}(Kr.a);Cu=__decorate([an],Cu);var Pu=Rr("f00c"),Eu=Rr("2c6d"),Su=function(Tr){Object(Qr["a"])(HoDocs,Tr);var Dr=Object(Zr["a"])(HoDocs);function HoDocs(){var Tr;return Object(Xr["a"])(this,HoDocs),Tr=Dr.apply(this,arguments),Tr.hoEditorFactoryIdList=[],Tr.docList=[0],Tr.drawPageLength=0,Tr.activePageIndex=0,Tr.defaultEditJson={isEdit:!0,createNew:!0,openFile:!0,saveFile:!0,saveAsFile:!0,pageSetting:!0,unDoOperate:!0,reDoOperate:!0,formatPaint:!0,clearFormat:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0,family:!0,size:!0,enlargeSize:!0,decreaseSize:!0,superScript:!0,subScript:!0,bold:!0,italic:!0,underline:!0,strikeout:!0,fontColor:!0,backColor:!0,alignLeft:!0,alignCenter:!0,alignRight:!0,alignBoth:!0,addIndent:!0,decreaseIndent:!0,setHeight:!0,express:!0,specialChars:!0,datetime:!0,watermark:!0,select:!0,text:!0,uploadImage:!0,barcode:!0,qrcode:!0,radioBox:!0,checkBox:!0,pageInfoes:!0,delimiter:!0,insertTable:!0,isTableCode:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,tableFormula:!0,findModal:!0,updateDocument:!0,test:!0,isFooter:!0},Tr.defaultDocProperty={version:zi,type:0,title:"",docID:"",patientID:"",patientName:"",lastEditTime:"",lastEditorID:"",lastEditorName:""},Tr.contentIsModify={isModify:!1},Tr}return Object(Yr["a"])(HoDocs,[{key:"controlProperty",get:function get(){return this.getControlProperty()}},{key:"contentIsModifyChange",value:function contentIsModifyChange(Tr){this.$emit("contentIsModify",this.contentIsModify)}},{key:"editJsonChange",value:function editJsonChange(Tr){Tr&&null!==Tr&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),Tr))}},{key:"getCustomProperty",value:function getCustomProperty(){return this.customProperty}},{key:"textStyleChange",value:function textStyleChange(Tr){this.$emit("textStyleChange",Tr)}},{key:"modalStatusChange",value:function modalStatusChange(Tr){"find"!==Tr[0]?this.setControlProperty(Tr[0],Tr[1],Tr[2]):this.controlFindType=!0}},{key:"controlTypeChange",value:function controlTypeChange(Tr,Dr){""!==Tr||"text"!==Dr&&"date"!==Dr||(this.$emit("closeTextModal"),this.customPropertyValue={}),"text"!==Tr&&"date"!==Tr||Object(_o["b"])(this.customPropertyValue)&&this.$emit("openTextModal",_objectSpread2({},this.customPropertyValue))}},{key:"pagePropertyChange",value:function pagePropertyChange(Tr){Tr&&this.initPageProperty(_objectSpread2({},Tr))}},{key:"docPropertyChange",value:function docPropertyChange(Tr){var Dr=this;if(Tr){Tr.version&&delete Tr.version,Object.keys(Tr).forEach((function(Rr){void 0!==Tr[Rr]&&null!==Tr[Rr]&&(Dr.defaultDocProperty[Rr]=Tr[Rr])}));var Rr=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0];if(Rr){var Ur=Tn["a"].instance().hoEditorFactoryMap.get(Rr);Ur&&(Ur.docTree.docProperty=this.defaultDocProperty)}}}},{key:"superiorSignsChange",value:function superiorSignsChange(){if(Array.isArray(this.superiorSigns)){var Tr=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],Dr=Tn["a"].instance().hoEditorFactoryMap.get(Tr);Dr&&(Dr.superiorSigns=Object(Gr["a"])(this.superiorSigns))}}},{key:"created",value:function created(){var Tr=this;window.oncontextmenu=function(Tr){Tr.preventDefault()},this.$nextTick((function(){Tr.editJson&&Tr.editJson.findModal&&(document.onkeydown=function(Dr){var Rr=Dr.keyCode||Dr.which||Dr.charCode,Ur=Dr.ctrlKey||Dr.metaKey;Ur&&70===Rr&&(Dr.preventDefault(),Tr.controlFindType=!Tr.controlFindType),27===Rr&&(Tr.controlFindType=!1)})})),this.docList.forEach((function(){var Dr=Object(Jn["h"])("HO"),Rr=new qo(Dr);Tr.hoEditorFactoryIdList.push(Dr),Array.isArray(Tr.superiorSigns)&&Tr.superiorSigns.length>0&&(Rr.superiorSigns=Object(Gr["a"])(Tr.superiorSigns)),Rr.contentIsModify=Tr.contentIsModify,Rr.docTree.docProperty=Tr.defaultDocProperty,Tn["a"].instance().hoEditorFactoryMap.set(Dr,Rr)})),Pu["a"].instance().imageNodeList=this.deleteImageNodeList,this.setActiveDocIndex(this.hoEditorFactoryIdList[0]),this.$nextTick((function(){Tr.pageProperty&&Tr.initPageProperty(_objectSpread2({},Tr.pageProperty))}))}},{key:"rightClickEvent",value:function rightClickEvent(Tr){var Dr=this,Rr=this.getRightClickNodeValue(),Ur=Tn["a"].instance().getFactory(this.activeDocId);Rr.rightTypeIsTable=Ur.docTree.curDomRange.normalize().inSameTable()[0],Rr.rightPosition=Tr;var Hr=function getLabelNode(){var Tr=[],Ur="",Hr=Tn["a"].instance().getFactory(Dr.activeDocId),Wr=Hr.vueController.getDomRange();if(null!==Wr&&void 0!==Wr&&Wr.isEmpty)Rr.node()instanceof to["a"]&&(Tr.push(Rr.node()),Ur="toText");else{Ur="toLabel";var zr=Wr.startPath,Vr=Wr.endPath,Kr=yn["a"].getSelectDomNodes(Dr.activeDocId,zr,Vr,!0)[0];Kr.length>0&&Kr.forEach((function(Dr){Dr instanceof to["a"]&&(Ur="toText",Tr.push(Dr))}))}return{labelNode:[].concat(Tr),isIncludes:Ur}};Rr.labelNode=Hr,Rr.isElement=!1,Rr.canShowComment=Ur.drawTree.paintStatus===mn["b"].psEdit||Ur.drawTree.paintStatus===mn["b"].psReview||Ur.drawTree.paintStatus===mn["b"].psReadOnly,(Rr.node instanceof ei["f"]||Rr.node instanceof Yn["a"]||Rr.node instanceof Qn["a"]||Rr.node instanceof ga["a"]||Rr.node instanceof li["a"]||Rr.node instanceof ci["a"]&&Rr.node.parentNode instanceof ei["f"])&&(Rr.isElement=!0),Rr.isHideComments=Ur.isHideComments,Rr.activePageIndex=this.activePageIndex,Rr.paintStatus=Ur.drawTree.paintStatus,this.$emit("rightClickEvent",Rr)}},{key:"initListener",value:function initListener(){var Tr=this;window.oncontextmenu=function(Tr){Tr.preventDefault()},this.$nextTick((function(){Tr.editJson.findModal&&(document.onkeydown=function(Dr){var Rr=Dr.keyCode||Dr.which||Dr.charCode,Ur=Dr.ctrlKey||Dr.metaKey;Ur&&70===Rr&&(Dr.preventDefault(),Tr.controlFindType=!Tr.controlFindType),27===Rr&&(Tr.controlFindType=!1)})}))}},{key:"insertComments",value:function insertComments(Tr){this.$emit("insertComments",Tr)}},{key:"dblNodeClick",value:function dblNodeClick(Tr){this.$emit("dblClickEvent",Tr)}},{key:"setFontStyles",value:function setFontStyles(){var Tr=Tn["a"].instance().getFactory(this.activeDocId);this.setFontStyle(Tr)}},{key:"setActivePageIndex",value:function setActivePageIndex(Tr){this.activePageIndex=Tr}},{key:"setActiveDocIndex",value:function setActiveDocIndex(Tr){this.activeDocId=Tr;var Dr=Tn["a"].instance().getFactory(this.activeDocId);Dr.hoLocalStorage.initHoWebSql(),this.$emit("docReady",{vueController:Dr.vueController,baseController:Dr.baseController,domController:Dr.domController,editController:Dr.editController,elementController:Dr.elementController,nodeController:Dr.nodeController,printController:Dr.printController,reviewController:Dr.reviewController,selectController:Dr.selectController,tableController:Dr.tableController})}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(Tr){this.drawPageLength=Tr}},{key:"initPageProperty",value:function initPageProperty(Tr){var Dr=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],Rr=Tn["a"].instance().hoEditorFactoryMap.get(Dr);if(Rr){var Ur,Hr=_objectSpread2({},Tr);Hr.fontFormat=Hr.fontFormat?null===(Ur=Hr.fontFormat)||void 0===Ur?void 0:Ur.match(/[\u4e00-\u9fa5]/g).join(""):"宋体",isNaN(Number(Hr.fontSize))?(Eu["b"].forEach((function(Tr){Tr.name===Hr.fontSize&&(Hr.fontSize=Number(Tr.value))})),isNaN(Number(Hr.fontSize))&&(Hr.fontSize=14)):Hr.fontSize=Number(Hr.fontSize),Hr.charSpace=Hr.charSpace?null===Rr||void 0===Rr?void 0:Rr.unitConvert.mmConversionPx(10*Number(Hr.charSpace),!0):0,Hr.lineHeight=Number(Hr.lineHeight)?Number(Hr.lineHeight):1.25,isNaN(Number(Tr.signHeight))||(Rr.signHeight=Number(Tr.signHeight)),Tr.elementBackColor&&Rr.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"}),!0===Tr.pasteBase||!1===Tr.pasteBase?Rr.pasteBase=Tr.pasteBase:Rr.pasteBase=!1,Rr.openXmled?(delete Hr.leftMarginMm,delete Hr.rightMarginMm,delete Hr.topMarginMm,delete Hr.bottomMarginMm,delete Hr.headerYMm,delete Hr.footerYMm):(isNaN(Number(Hr.leftMarginMm))?Hr.leftMarginMm=15:Hr.leftMarginMm=Number(Hr.leftMarginMm),isNaN(Number(Hr.rightMarginMm))?Hr.rightMarginMm=15:Hr.rightMarginMm=Number(Hr.rightMarginMm),isNaN(Number(Hr.topMarginMm))?Hr.topMarginMm=25:Hr.topMarginMm=Number(Hr.topMarginMm),isNaN(Number(Hr.bottomMarginMm))?Hr.bottomMarginMm=10:Hr.bottomMarginMm=Number(Hr.bottomMarginMm),isNaN(Number(Hr.headerYMm))?Hr.headerYMm=3:Hr.headerYMm=Number(Hr.headerYMm),isNaN(Number(Hr.footerYMm))?Hr.footerYMm=3:Hr.footerYMm=Number(Hr.footerYMm)),delete Hr.signHeight,delete Hr.pasteBase,delete Hr.elementBackColor,Rr.vueController.setPageProperty(JSON.stringify(Hr))}}},{key:"closeControlModal",value:function closeControlModal(){this.setControlProperty("","add","")}},{key:"blankAreaRightClick",value:function blankAreaRightClick(Tr){Tr.target instanceof HTMLDivElement&&Tr.target.className}}]),HoDocs}(mixins(wu,Cu,xu));__decorate([Prop()],Su.prototype,"editJson",void 0),__decorate([Prop()],Su.prototype,"docStatus",void 0),__decorate([Prop()],Su.prototype,"modalStatus",void 0),__decorate([Prop()],Su.prototype,"docProperty",void 0),__decorate([Prop()],Su.prototype,"customProperty",void 0),__decorate([Prop()],Su.prototype,"deleteImageNodeList",void 0),__decorate([Prop()],Su.prototype,"pageProperty",void 0),__decorate([Prop()],Su.prototype,"superiorSigns",void 0),__decorate([Prop({default:!1})],Su.prototype,"notUseModal",void 0),__decorate([Prop({default:!1})],Su.prototype,"isUseTipText",void 0),__decorate([Watch("contentIsModify",{deep:!0})],Su.prototype,"contentIsModifyChange",null),__decorate([Watch("editJson")],Su.prototype,"editJsonChange",null),__decorate([Provide()],Su.prototype,"getCustomProperty",null),__decorate([Watch("textStyle",{deep:!0})],Su.prototype,"textStyleChange",null),__decorate([Watch("modalStatus",{deep:!0})],Su.prototype,"modalStatusChange",null),__decorate([Watch("controlType",{deep:!0})],Su.prototype,"controlTypeChange",null),__decorate([Watch("pageProperty",{deep:!0})],Su.prototype,"pagePropertyChange",null),__decorate([Watch("docProperty",{deep:!0})],Su.prototype,"docPropertyChange",null),__decorate([Watch("superiorSigns")],Su.prototype,"superiorSignsChange",null),Su=__decorate([an({name:"HoDocs",components:{HoDoc:na,HoFooter:us,ControlModal:ou,FindReplaceDialog:pu,ViewContinuousXml:bu}})],Su);var Tu=Su,Du=Tu,ku=(Rr("e5b5"),normalizeComponent(Du,HoDocsvue_type_template_id_303f61c7_render,$r,!1,null,null,null)),Ou=ku.exports,ToolBarvue_type_template_id_1ad97ddc_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("tabs",{attrs:{tabKey:Tr.tabKey},on:{tabClick:Tr.mainBarClick,updateTabKey:Tr.updateTabKey}},[Tr._t("beforeBrowse"),Rr("tab-pane",{attrs:{isShow:Tr.defaultBrowseJson.isBrowse,label:"浏览模式",notHover:!0,name:"ho-browse"}},[Tr.defaultBrowseJson.saveAsFile?Rr("li",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{attrs:{trigger:"click"}},[Rr("span",{staticClass:"el-dropdown-link"},[Tr._v("另存为")]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("xml")}}},[Tr._v("XML")]),Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("html")}}},[Tr._v("HTML")]),Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("plain")}}},[Tr._v("TXT")]),Rr("el-dropdown-item",{nativeOn:{click:function(Dr){return Tr.saveAsFile("json")}}},[Tr._v("JSON")])],1)],1)],1):Tr._e(),Tr.isPrinted?Rr("li",{staticClass:"sub-bar-items"},[Rr("span",{class:Tr.isPrintClass,on:{click:Tr.outPrinted}},[Tr._v("退出打印预览状态")])]):Tr._e(),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultBrowseJson.printed?Rr("span",{class:Tr.printedClass,on:{click:Tr.printed}},[Tr._v("打印")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultBrowseJson.printSelected?Rr("span",{class:Tr.printSelectedClass,on:{click:Tr.printSelected}},[Tr._v("打印拖动鼠标选中区域")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[Tr.defaultBrowseJson.printCaret?Rr("span",{class:Tr.printCaretClass,on:{click:Tr.printCaret}},[Tr._v("打印鼠标点击位置")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items",staticStyle:{border:"0"}},[Tr.defaultBrowseJson.printContinue?Rr("span",{class:Tr.printContinueClass,on:{click:Tr.printContinue}},[Tr._v("续打")]):Tr._e()]),Rr("HoPrintDialog",{attrs:{vueController:Tr.vueController,printBeforeStatus:5,printModal:Tr.printModal},on:{closed:Tr.closedHoPrintModal}})],1),Tr._t("beforeEdit"),Rr("tab-pane",{attrs:{isShow:Tr.defaultEditJson.isEdit,label:"编辑模式",notHover:!0,name:"ho-edit"}},[Rr("ToolBarChild",{attrs:{editJson:Tr.defaultEditJson,vueController:Tr.vueController,tabStatus:Tr.tabStatus,textStyle:Tr.textStyle,uploadImageParams:Tr.uploadImageParams},on:{setModalStatus:Tr.setModalStatus}})],1),Tr._t("afterEdit"),Rr("tab-pane",{attrs:{isShow:Tr.defaultEditJson.isInsertElement,label:"插入",name:"ho-insert"}},[Rr("tool-control",{attrs:{insert:Tr.defaultEditJson,vueController:Tr.vueController,uploadImageParams:Tr.uploadImageParams},on:{setModalStatus:Tr.setModalStatus},scopedSlots:Tr._u([{key:"hoInsertItem",fn:function(){return[Tr._t("insideInsert")]},proxy:!0}],null,!0)})],1),Rr("tab-pane",{attrs:{isShow:Tr.defaultEditJson.isInsertTable,label:"表格",name:"ho-table"}},[Rr("tool-table",{attrs:{table:Tr.defaultEditJson,vueController:Tr.vueController},scopedSlots:Tr._u([{key:"hoTableItem",fn:function(){return[Tr._t("insideTable")]},proxy:!0}],null,!0)})],1),Rr("tab-pane",{attrs:{isShow:Tr.defaultReviewJson.isReview,label:"审阅模式",name:"ho-review"}},[Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.insertComment?Rr("span",{staticClass:"review",on:{click:function(Dr){return Dr.stopPropagation(),Tr.createControlComment.apply(null,arguments)}}},[Tr._v("插入批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.editComment?Rr("span",{staticClass:"review",on:{click:Tr.editComment}},[Tr._v("编辑批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.deleteComment?Rr("span",{staticClass:"review",on:{click:Tr.deleteComment}},[Tr._v("删除批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.deleteAllComment?Rr("span",{staticClass:"review",on:{click:Tr.deleteAllComment}},[Tr._v("删除全部批注")]):Tr._e()]),Rr("li",{staticClass:"sub-bar-items"},[Tr.defaultReviewJson.cancelDelete?Rr("span",{staticClass:"review",on:{click:Tr.cancelDelete}},[Tr._v("取消删除文本")]):Tr._e()]),Tr.userInfoes&&Tr.userInfoes.permissionLevel?Rr("li",{staticClass:"sub-bar-items"},[Rr("span",{style:{color:Tr.reviewLevel.color[Tr.userInfoes.permissionLevel-1]}},[Tr._v(Tr._s(Tr.reviewLevel.text[Tr.userInfoes.permissionLevel-1]))])]):Tr._e(),Tr._t("insertReview"),Tr.defaultReviewJson.printStatus?Rr("li",{staticClass:"sub-bar-items"},[Rr("span",{on:{click:Tr.reviewPrintStatus}},[Tr._v(Tr._s(Tr.isPrinted?"返回审阅模式":"浏览模式"))])]):Tr._e()],2),Tr._t("afterReview")],2)},Iu=[],HoMedicalExpressionvue_type_template_id_71faca1e_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{class:Tr.dropdownClassName+" ho-medical-expression-list",attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange,command:Tr.selectedSure}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("svg",{staticStyle:{transform:"translateY(0px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M921.6 448.884364h89.6c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8h-102.4c-6.423273 0-19.176727 6.423273-19.176727 12.8l-108.823273 115.060364c-6.376727 6.330182-12.8 6.330182-12.8 0l-57.576727-115.060364c-6.423273-6.376727-12.8-12.8-19.223273-12.8h-166.4a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.423273 12.753455 12.8 12.753455h102.4c6.423273 0 12.8 6.376727 19.176727 12.8l38.4 83.083636v19.130182l-115.2 134.190545c-6.376727 0-12.753455 6.423273-19.176727 6.423273H460.8c-6.376727 0-12.8 6.376727-12.8 12.753455v102.260363c0 6.376727 6.423273 12.8 12.8 12.8h102.4c6.376727 0 19.176727-6.423273 19.176727-12.8l147.223273-166.167273c6.423273-6.376727 12.8-6.376727 12.8 0l83.176727 166.167273c0 6.376727 12.8 12.8 19.223273 12.8h102.4a13.777455 13.777455 0 0 0 12.8-12.8V717.265455a13.777455 13.777455 0 0 0-12.8-12.753455h-38.4c-6.423273 0-12.8-6.423273-19.176727-12.8l-64.046546-127.813818v-19.130182l76.8-83.083636c6.423273-6.423273 12.846545-12.8 19.223273-12.8zM377.623273 65.489455c-32.023273 25.6-64.046545 63.906909-83.223273 127.813818l-31.976727 127.767272H76.8a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.376727 12.753455 12.8 12.753455h153.6l-96.023273 383.441454c-19.176727 76.660364-70.376727 63.860364-70.376727 63.860364H0V1024h64c51.2 0 102.4-6.376727 128-38.353455 32.023273-31.930182 51.2-89.460364 64-153.320727l96.023273-383.441454h147.176727c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8H384l32.023273-121.390545c6.376727-19.130182 38.4-51.106909 57.576727-63.906909 70.376727-51.106909 166.4-19.176727 230.4-6.376727V20.759273c-64-12.753455-204.8-57.483636-326.376727 44.683636v0.046546z"}})]),Rr("span",[Tr._v("医学表达式")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{attrs:{command:"style1"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130 60"}},[Rr("g",{staticClass:"text",attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"48",y:"13"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"48",y:"55"}},[Tr._v("周期")]),Rr("text",{attrs:{x:"75",y:"33"}},[Tr._v("末次月经")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 52 30 L 70 30"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style2"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"5",y:"20"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"5",y:"50"}},[Tr._v("末次月经")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("周期")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 5 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style3"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"50",y:"13"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"40",y:"55"}},[Tr._v("末次月经")]),Rr("text",{attrs:{x:"83",y:"33"}},[Tr._v("周期")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 15 5 L 110 55"}}),Rr("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style4"}},[Rr("p",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("初潮年龄")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("经期")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("周期")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 62 30 L 110 30"}}),Rr("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style5"}},[Rr("p",[Tr._v("瞳孔图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"10",y:"25"}},[Tr._v("1")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("2")]),Rr("text",{attrs:{x:"10",y:"40"}},[Tr._v("3")]),Rr("text",{attrs:{x:"45",y:"40"}},[Tr._v("4")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("5")]),Rr("text",{attrs:{x:"10",y:"55"}},[Tr._v("6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("7")])])])]),Rr("el-dropdown-item",{attrs:{command:"style6"}},[Rr("p",[Tr._v("光定位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"10",y:"25"}},[Tr._v("1")]),Rr("text",{attrs:{x:"10",y:"40"}},[Tr._v("4")]),Rr("text",{attrs:{x:"10",y:"55"}},[Tr._v("7")]),Rr("text",{attrs:{x:"45",y:"25"}},[Tr._v("2")]),Rr("text",{attrs:{x:"45",y:"40"}},[Tr._v("5")]),Rr("text",{attrs:{x:"45",y:"55"}},[Tr._v("8")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("3")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("9")])])])]),Rr("el-dropdown-item",{attrs:{command:"style7"}},[Rr("p",[Tr._v("胎心图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"26",y:"15"}},[Tr._v("1")]),Rr("text",{attrs:{x:"26",y:"35"}},[Tr._v("4")]),Rr("text",{attrs:{x:"26",y:"55"}},[Tr._v("7")]),Rr("text",{attrs:{x:"84",y:"15"}},[Tr._v("2")]),Rr("text",{attrs:{x:"84",y:"35"}},[Tr._v("5")]),Rr("text",{attrs:{x:"84",y:"55"}},[Tr._v("8")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 0 30 L 10 30"}}),Rr("path",{attrs:{d:"M 52 30 L 67 30"}}),Rr("path",{attrs:{d:"M 110 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style8"}},[Rr("p",[Tr._v("恒牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("12345678")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("12345678")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),Rr("el-dropdown-item",{attrs:{command:"style9"}},[Rr("p",[Tr._v("乳牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("I II III IV V")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("I II III IV V")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)],1)],1)},Mu=[],Nu=function(Tr){Object(Qr["a"])(DropDownClassNameMixins,Tr);var Dr=Object(Zr["a"])(DropDownClassNameMixins);function DropDownClassNameMixins(){var Tr;return Object(Xr["a"])(this,DropDownClassNameMixins),Tr=Dr.apply(this,arguments),Tr.dropdownClassName="",Tr}return Object(Yr["a"])(DropDownClassNameMixins,[{key:"dropdownChange",value:function dropdownChange(Tr){this.dropdownClassName=Tr?"drop-down-open":"drop-down-close"}}]),DropDownClassNameMixins}(Kr.a);Nu=__decorate([an],Nu);var Lu=function(Tr){Object(Qr["a"])(HoMedicalExpression,Tr);var Dr=Object(Zr["a"])(HoMedicalExpression);function HoMedicalExpression(){return Object(Xr["a"])(this,HoMedicalExpression),Dr.apply(this,arguments)}return Object(Yr["a"])(HoMedicalExpression,[{key:"selectedSure",value:function selectedSure(Tr){this.$emit("openExpress",Tr)}}]),HoMedicalExpression}(mixins(Nu));Lu=__decorate([an({name:"HoMedicalExpression"})],Lu);var Au=Lu,Ru=Au,Fu=(Rr("3b5e"),normalizeComponent(Ru,HoMedicalExpressionvue_type_template_id_71faca1e_scoped_true_render,Mu,!1,null,"71faca1e",null)),ju=Fu.exports,HoPrintDialogvue_type_template_id_79c29b08_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-dialog",{attrs:{title:"打印设置",top:"200px",visible:Tr.printDialog,center:"",width:"40%","before-close":Tr.closedHoPrintModal,"append-to-body":"","destroy-on-close":"","close-on-click-modal":!1},on:{"update:visible":function(Dr){Tr.printDialog=Dr}}},[Rr("section",{staticClass:"ho-print-content"},[Rr("el-radio",{attrs:{size:"medium",label:0},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("全部打印")]),Rr("el-radio",{attrs:{label:1},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("奇数页")]),Rr("el-radio",{attrs:{label:2},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("偶数页")]),Rr("div",{staticClass:"ho-print-more"},[Rr("el-radio",{attrs:{label:3},model:{value:Tr.printMode,callback:function(Dr){Tr.printMode=Dr},expression:"printMode"}},[Tr._v("打印指定页:")]),Rr("el-input",{attrs:{disabled:3!==Tr.printMode,size:"mini",placeholder:"示例: 1, 2-4, 5, 7-10, 12"},model:{value:Tr.printAppoint,callback:function(Dr){Tr.printAppoint=Dr},expression:"printAppoint"}})],1),Tr.errorText?Rr("div",{staticClass:"ho-print-error"},[Tr._v(Tr._s(Tr.errorText))]):Tr._e(),Rr("div",{staticClass:"ho-print-title"},[Tr._v("指定页: 1, 2-4, 5, 7-10, 12")])],1),Rr("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{size:"mini",type:"primary"},on:{click:Tr.hoPrinted}},[Tr._v("确 定")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.closedHoPrintModal}},[Tr._v("取 消")])],1)])},Bu=[],Uu=function(Tr){Object(Qr["a"])(HoPrintDialog,Tr);var Dr=Object(Zr["a"])(HoPrintDialog);function HoPrintDialog(){var Tr;return Object(Xr["a"])(this,HoPrintDialog),Tr=Dr.apply(this,arguments),Tr.printMode=0,Tr.printAppoint="",Tr.errorText="",Tr}return Object(Yr["a"])(HoPrintDialog,[{key:"printDialog",get:function get(){return this.printModal||(this.printMode=0,this.printAppoint="",this.errorText=""),this.printModal}},{key:"printModeChange",value:function printModeChange(){3!==this.printMode&&(this.printAppoint="")}},{key:"hoPrinted",value:function hoPrinted(){var Tr=this.vueController.printPromisePDF(this.printBeforeStatus,this.printMode,this.printAppoint);Tr?this.errorText=Tr:this.$emit("closed","sure")}},{key:"closedHoPrintModal",value:function closedHoPrintModal(){this.$emit("closed","cancel")}}]),HoPrintDialog}(Kr.a);__decorate([Prop()],Uu.prototype,"vueController",void 0),__decorate([Prop()],Uu.prototype,"printModal",void 0),__decorate([Prop()],Uu.prototype,"printBeforeStatus",void 0),__decorate([Watch("printMode")],Uu.prototype,"printModeChange",null),Uu=__decorate([an({name:"HoPrintDialog"})],Uu);var Hu=Uu,Wu=Hu,qu=(Rr("40da"),normalizeComponent(Wu,HoPrintDialogvue_type_template_id_79c29b08_render,Bu,!1,null,null,null)),zu=qu.exports,Vu=function(Tr){Object(Qr["a"])(ToolFamily,Tr);var Dr=Object(Zr["a"])(ToolFamily);function ToolFamily(){var Tr;return Object(Xr["a"])(this,ToolFamily),Tr=Dr.apply(this,arguments),Tr.fontFamily=Eu["a"],Tr.fontSize=Eu["b"],Tr.isSuperScript=!1,Tr.isSubScript=!1,Tr.familySelected="微软雅黑",Tr.fontSizeSelected="14",Tr.font={ch:"宋体",en:"SimSun"},Tr.size={name:"四号",value:14},Tr.isBold=!1,Tr.isItalic=!1,Tr.isUnderline=!1,Tr.isStrikeout=!1,Tr.backcolor="transparent",Tr.color="#333333",Tr.predefineColors=["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#158577","#ffffff","#000000"],Tr.fontFamilyVisible=!1,Tr.fontSizeVisible=!1,Tr.fontColorVisible=!1,Tr.backColorVisible=!1,Tr}return Object(Yr["a"])(ToolFamily,[{key:"textStyleChange",value:function textStyleChange(Tr){this.setCurrentFonts(Tr)}},{key:"setCurrentFonts",value:function setCurrentFonts(Tr){this.isBold=Tr.bold,this.isItalic=Tr.italic,this.isUnderline=Tr.underline,this.isStrikeout=Tr.strikeout,this.backcolor=Tr.backColor,this.color=Tr.color,this.isSuperScript=2===Tr.script,this.isSubScript=1===Tr.script;var Dr=Eu["a"].filter((function(Dr){if(Dr.ch===Tr.font)return Dr}));Array.isArray(Dr)&&0!==Dr.length?this.font=Dr[0]:this.font={ch:"",en:""};var Rr=Eu["b"].filter((function(Dr){if(Dr.value===Tr.size)return Dr}));Array.isArray(Rr)&&0!==Rr.length?this.size=Rr[0]:this.size={name:"",value:0}}},{key:"fontFamilyClick",value:function fontFamilyClick(Tr){this.font=Tr,this.fontFamilyVisible=!1,this.vueController.fontFormat(Tr.ch)}},{key:"fontSizeClick",value:function fontSizeClick(Tr){this.size=Tr,this.fontSizeVisible=!1,this.vueController.fontSize(this.size.value)}},{key:"fontSizeEnlargeClick",value:function fontSizeEnlargeClick(){this.vueController.fontSizeEnlarge()}},{key:"fontSizeDecreaseClick",value:function fontSizeDecreaseClick(){this.vueController.fontSizeDecrease()}},{key:"fontSuperScriptClick",value:function fontSuperScriptClick(){this.isSuperScript=!this.isSuperScript,this.isSubScript=!1,this.vueController.fontSuperScript(this.isSuperScript)}},{key:"fontSubScriptClick",value:function fontSubScriptClick(){this.isSubScript=!this.isSubScript,this.isSuperScript=!1,this.vueController.fontSubScript(this.isSubScript)}},{key:"fontBoldClick",value:function fontBoldClick(){this.isBold=!this.isBold,this.vueController.fontBold(this.isBold)}},{key:"fontItalicClick",value:function fontItalicClick(){this.isItalic=!this.isItalic,this.vueController.fontItalic(this.isItalic)}},{key:"fontUnderlineClick",value:function fontUnderlineClick(){this.isUnderline=!this.isUnderline,this.vueController.fontUnderline(this.isUnderline)}},{key:"fontStrikeoutClick",value:function fontStrikeoutClick(){this.isStrikeout=!this.isStrikeout,this.vueController.fontStrikeout(this.isStrikeout)}},{key:"rgbToHex",value:function rgbToHex(Tr){var Dr=Tr.split(","),Rr=parseInt(Dr[0].split("(")[1]),Ur=parseInt(Dr[1]),Hr=parseInt(Dr[2].split(")")[0]),Wr="#"+((1<<24)+(Rr<<16)+(Ur<<8)+Hr).toString(16).slice(1).toLocaleUpperCase();return Wr}},{key:"backcolorChanges",value:function backcolorChanges(Tr){var Dr=Tr;-1!==Tr.indexOf("rgb")?Dr=this.rgbToHex(Dr):null===Tr&&(Dr="transparent"),this.backColorChange(Dr)}},{key:"backColorChange",value:function backColorChange(Tr){var Dr=Tr;this.backcolor=Dr,null===Tr&&(Dr="transparent"),this.vueController.fontBackColor(Dr)}},{key:"colorChanges",value:function colorChanges(Tr){var Dr=Tr;-1!==Tr.indexOf("rgb")?Dr=this.rgbToHex(Dr):null===Tr&&(Dr="transparent"),this.fontColorChange(Dr)}},{key:"fontColorChange",value:function fontColorChange(Tr){var Dr=Tr;this.color=Dr,null===Tr&&(Dr="transparent"),this.vueController.fontColor(Dr)}},{key:"isSupportFontFamily",value:function isSupportFontFamily(Tr){var Dr="Arial";if(Tr.toLowerCase()==Dr.toLowerCase())return!0;var Rr="a",Ur=100,Hr=100,Wr=100,zr=document.createElement("canvas"),Vr=zr.getContext("2d");zr.width=Hr,zr.height=Wr,Vr.textAlign="center",Vr.fillStyle="black",Vr.textBaseline="middle";var Kr=function g(Tr){Vr.clearRect(0,0,Hr,Wr),Vr.font=Ur+"px "+Tr+", "+Dr,Vr.fillText(Rr,Hr/2,Wr/2);var zr=Vr.getImageData(0,0,Hr,Wr).data;return[].slice.call(zr).filter((function(Tr){return 0!=Tr}))};return Kr(Dr).join!==Kr(Tr).join}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.family;return Dr("li",{class:"sub-bar-items sub-bar-not-item-hover"},[Rr.family?Dr(ns,{attrs:_objectSpread2({},{title:"字体",poperStyle:{width:"160px",textAlign:"left"}})},[Dr("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[Dr("span",{class:"el-dropdown-link"},[this.font.ch,Dr("i",{class:"el-icon-arrow-down el-icon--right"})]),Dr("el-dropdown-menu",{slot:"dropdown"},[this.fontFamily.map((function(Rr){return Dr("el-dropdown-item",{key:Rr.en,class:Rr.en===Tr.font.en?"selected":"",style:{fontFamilys:Rr.ch},nativeOn:{click:function click(){return Tr.fontFamilyClick(Rr)}}},[Dr("span",[Rr.ch])])}))])])]):null,Rr.size?Dr(ns,{attrs:_objectSpread2({},{title:"字号",poperStyle:{width:"60px",textAlign:"left"}})},[Dr("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[Dr("span",{class:"el-dropdown-link"},[this.size.name,Dr("i",{class:"el-icon-arrow-down el-icon--right"})]),Dr("el-dropdown-menu",{slot:"dropdown"},[this.fontSize.map((function(Rr){return Dr("el-dropdown-item",{key:Rr.name,class:Rr.name===Tr.size.name?"selected":"",nativeOn:{click:function click(){return Tr.fontSizeClick(Rr)}}},[Rr.name])}))])])]):null,Rr.enlargeSize?Dr(ns,{attrs:_objectSpread2({},{title:"增大字体",svg:"fontSizeEnlarge"}),nativeOn:{click:this.fontSizeEnlargeClick.bind(this)}}):null,Rr.decreaseSize?Dr(ns,{attrs:_objectSpread2({},{title:"缩小字体",svg:"fontSizeDecrease"}),nativeOn:{click:this.fontSizeDecreaseClick.bind(this)}}):null,Rr.superScript?Dr(ns,{attrs:_objectSpread2({},{title:"上标",svg:"fontSuperScript",selected:this.isSuperScript}),nativeOn:{click:this.fontSuperScriptClick.bind(this)}}):null,Rr.subScript?Dr(ns,{attrs:_objectSpread2({},{title:"下标",svg:"fontSubScript",selected:this.isSubScript}),nativeOn:{click:this.fontSubScriptClick.bind(this)}}):null,Rr.bold?Dr(ns,{attrs:_objectSpread2({},{title:"加粗",svg:"bold",selected:this.isBold}),nativeOn:{click:this.fontBoldClick.bind(this)}}):null,Rr.underline?Dr(ns,{attrs:_objectSpread2({},{title:"下划线",svg:"underline",selected:this.isUnderline}),nativeOn:{click:this.fontUnderlineClick.bind(this)}}):null,Rr.strikeout?Dr(ns,{attrs:_objectSpread2({},{title:"删除线",svg:"strikeout",selected:this.isStrikeout}),nativeOn:{click:this.fontStrikeoutClick.bind(this)}}):null,Rr.fontColor?Dr(ns,{attrs:_objectSpread2({},{title:"字体颜色",poperStyle:{padding:"0",width:"50px"}})},[Dr("div",{class:"color-picker-menu"},[Dr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17"},style:"transform: translate(8px, 0px)"},[Dr("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-4 -3)"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{fill:"#555",d:"M12,3 C12.3925578,3 12.7488579,3.22956042 12.9113768,3.5869126 L16.5538794,11.5993713 L17.9189416,14.6040434 C18.1331826,15.1044933 17.9084769,15.6844371 17.412985,15.9098686 C16.9174931,16.1353002 16.3326765,15.9236609 16.096188,15.4333329 L14.9965268,13.0155734 L9.00347324,13.0155734 L7.90381202,15.4333329 C7.66732348,15.9236609 7.08250692,16.1353002 6.58701502,15.9098686 C6.09152313,15.6844371 5.86681743,15.1044933 6.08105844,14.6040434 L7.4461206,11.5993713 L11.0886232,3.5869126 C11.2511421,3.22956042 11.6074422,3 12,3 Z M9.91384852,11.0124587 L14.0861515,11.0124587 L12,6.42232144 L9.91384852,11.0124587 Z"}}),Dr("rect",{attrs:{width:"16",height:"3",x:"4",y:"17",fill:this.color,rx:"1.5"}})])]),Dr("el-color-picker",{attrs:{size:"small","color-format":"hex",value:this.color,predefine:this.predefineColors},on:{change:this.fontColorChange.bind(this),"active-change":this.colorChanges.bind(this)}})])]):null,Rr.backColor?Dr(ns,{attrs:_objectSpread2({},{title:"背景颜色",poperStyle:{padding:"0",width:"50px"}})},[Dr("div",{class:"color-picker-menu"},[Dr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 1024 1024"},style:"transform: translate(2px, 0px)"},[Dr("path",{attrs:{fill:"#555",d:"M170.037895 409.061053c0.970105-17.354105 6.036211-32.336842 15.090526-45.002106a113.178947 113.178947 0 0 1 34.330947-31.258947c13.743158-8.192 28.995368-14.282105 45.810527-18.216421 16.761263-3.934316 33.522526-5.928421 50.176-5.928421 18.432 0 36.271158 1.832421 53.571368 5.389474 17.300211 3.610947 32.660211 9.323789 46.026105 17.138526 13.365895 7.868632 24.090947 18.054737 32.175158 30.558316 8.084211 12.503579 12.126316 27.594105 12.126316 45.271579v166.103579c0 5.497263 0.970105 10.509474 2.856421 15.036631 1.886316 4.527158 4.096 6.790737 6.629053 6.790737 1.778526 0 12.126316-3.018105 31.043368-8.946526v51.792842c-10.832842 2.640842-19.887158 4.742737-27.055158 6.251789a103.208421 103.208421 0 0 1-21.773473 2.317474c-14.389895 0-26.947368-3.233684-37.726316-9.808842a57.344 57.344 0 0 1-23.65979-29.857684 142.336 142.336 0 0 1-55.511579 32.175158c-9.431579 2.856421-19.078737 4.850526-28.941473 5.928421-9.808842 1.077895-19.833263 1.616842-29.911579 1.616842-15.898947 0-30.773895-2.155789-44.732632-6.467369a113.825684 113.825684 0 0 1-36.109473-18.216421 84.614737 84.614737 0 0 1-24.037053-28.779789A82.890105 82.890105 0 0 1 161.684211 554.576842c0-14.982737 3.179789-27.594105 9.485473-37.834105 6.305684-10.24 14.551579-18.970947 24.791579-26.085053a145.515789 145.515789 0 0 1 35.031579-17.731368c13.150316-4.634947 26.516211-8.677053 40.151579-12.126316s27.001263-6.629053 40.151579-9.485474c13.096421-2.856421 24.791579-6.197895 35.031579-9.970526 10.24-3.826526 18.485895-8.407579 24.791579-13.797053a25.761684 25.761684 0 0 0 9.485474-20.48c0-16.491789-5.820632-28.402526-17.461895-35.786105-11.587368-7.383579-27.863579-11.048421-48.828632-11.048421-8.084211 0-15.629474 0.862316-22.743579 2.694737a56.32 56.32 0 0 0-18.917052 8.515368 50.768842 50.768842 0 0 0-14.012632 15.198316c-3.772632 6.197895-6.305684 13.689263-7.545263 22.528H169.984z m210.566737 66.829473c-6.305684 3.826526-14.174316 7.114105-23.498106 9.862737-9.323789 2.694737-19.186526 5.551158-29.534315 8.407579-10.347789 2.856421-20.749474 5.928421-31.258948 9.108211-10.455579 3.233684-19.887158 7.060211-28.186947 11.587368-8.353684 4.527158-15.090526 9.916632-20.264421 16.114526a33.953684 33.953684 0 0 0-7.760842 22.528 46.349474 46.349474 0 0 0 3.772631 19.779369 35.354947 35.354947 0 0 0 23.498105 19.671579c5.012211 1.293474 10.078316 1.994105 15.090527 1.994105 17.461895 0 34.762105-5.551158 51.900631-16.653474 17.192421-11.048421 32.606316-27.540211 46.241685-49.475368v-52.870737z m170.415157-287.258947h79.117474v147.563789c11.856842-8.569263 24.791579-15.306105 38.642526-20.156631a121.802105 121.802105 0 0 1 40.528843-7.329684c25.276632 0 47.427368 4.419368 66.667789 13.20421 19.186526 8.838737 35.139368 20.911158 47.912421 36.271158 12.719158 15.36 22.312421 33.360842 28.77979 53.948632 6.467368 20.641684 9.647158 42.576842 9.647157 65.967158 0 23.336421-3.233684 45.271579-9.862736 65.751578-6.575158 20.48-16.330105 38.319158-29.318737 53.571369-13.042526 15.252211-29.103158 27.270737-48.289684 36.109474-19.186526 8.784842-41.445053 13.204211-66.66779 13.20421-13.904842 0-27.594105-2.263579-41.067789-6.790737a129.724632 129.724632 0 0 1-36.97179-19.294316v19.294316h-79.117474V188.631579z m79.117474 289.414737c0 16.222316 1.724632 31.474526 5.12 45.810526 3.449263 14.228211 8.353684 26.624 14.767158 37.133474 6.467368 10.455579 14.389895 18.755368 23.875368 24.791579 9.485474 6.090105 20.264421 9.162105 32.336843 9.162105 12.395789 0 23.390316-3.072 32.983579-9.162105 9.593263-6.036211 17.677474-14.336 24.252631-24.791579 6.575158-10.509474 11.533474-22.905263 14.982737-37.187369a196.715789 196.715789 0 0 0 5.066105-45.702736c0-16.222316-1.670737-31.474526-5.066105-45.810527a128.431158 128.431158 0 0 0-14.982737-37.456842 78.147368 78.147368 0 0 0-24.252631-25.384421 59.392 59.392 0 0 0-32.929685-9.269895c-11.856842 0-22.420211 2.964211-31.63621 8.892632-9.162105 5.928421-17.030737 14.012632-23.498105 24.144842-6.413474 10.132211-11.479579 22.042947-15.090527 35.732211a181.786947 181.786947 0 0 0-5.928421 44.139789v5.012211z"}}),Dr("path",{attrs:{d:"M851.536842 485.052632H970.105263l-247.915789 269.473684H377.263158z",fill:this.backcolor}})]),Dr("el-color-picker",{attrs:{size:"small","color-format":"hex",value:this.backcolor,predefine:this.predefineColors},on:{change:this.backColorChange.bind(this),"active-change":this.backcolorChanges.bind(this)}})])]):null])}}]),ToolFamily}(Kr.a);__decorate([Prop()],Vu.prototype,"vueController",void 0),__decorate([Prop()],Vu.prototype,"family",void 0),__decorate([Prop()],Vu.prototype,"textStyle",void 0),__decorate([Watch("textStyle",{deep:!0})],Vu.prototype,"textStyleChange",null),Vu=__decorate([an({name:"ToolFamily",components:{Poper:ns}})],Vu);var Ku=Vu,$u=function(Tr){Object(Qr["a"])(ToolParagraph,Tr);var Dr=Object(Zr["a"])(ToolParagraph);function ToolParagraph(){var Tr;return Object(Xr["a"])(this,ToolParagraph),Tr=Dr.apply(this,arguments),Tr.aligned="both",Tr.lineHeight=1.25,Tr.lineHeightList=[1.25,1.5,2,2.5,3],Tr.lineHeightVisible=!1,Tr.isInMenu=!1,Tr.toolMenuOpenPath=[],Tr}return Object(Yr["a"])(ToolParagraph,[{key:"alignChange",value:function alignChange(Tr){Tr&&(this.aligned=Tr)}},{key:"lineSpaceChange",value:function lineSpaceChange(Tr){Tr&&(this.lineHeight=Tr)}},{key:"computedMenu",value:function computedMenu(){window.innerWidth>=1250?this.isInMenu=!1:this.isInMenu=!0}},{key:"alignedLeft",value:function alignedLeft(){this.aligned="left",this.vueController.alignedLeft()}},{key:"alignedCenter",value:function alignedCenter(){this.aligned="center",this.vueController.alignedCenter()}},{key:"alignedRight",value:function alignedRight(){this.aligned="right",this.vueController.alignedRight()}},{key:"alignedBothEnds",value:function alignedBothEnds(){this.aligned="both",this.vueController.alignedBothEnds()}},{key:"addIndentClick",value:function addIndentClick(){this.vueController.addIndent()}},{key:"decreaseIndentClick",value:function decreaseIndentClick(){this.vueController.decreaseIndent()}},{key:"lineHeightClick",value:function lineHeightClick(Tr){this.lineHeightVisible=!1,this.vueController.setLineHeight(Tr)}},{key:"closeToolMenus",value:function closeToolMenus(Tr){var Dr=this;this.toolMenuOpenPath.length>0&&this.toolMenuOpenPath.forEach((function(Tr){Dr.toolMenu.closeMenu(Tr)}))}},{key:"toolMenuSelected",value:function toolMenuSelected(Tr,Dr){this.toolMenuOpenPath=Dr}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.paragraph;this.isInMenu;return Dr("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-not-item-hover"},[Rr.alignLeft?Dr(ns,{attrs:_objectSpread2({},{title:"向左对齐",svg:"alignLeft",selected:"left"===this.aligned}),nativeOn:{click:this.alignedLeft.bind(this)}}):null,Rr.alignCenter?Dr(ns,{attrs:_objectSpread2({},{title:"居中对齐",svg:"alignCenter",selected:"center"===this.aligned}),nativeOn:{click:this.alignedCenter.bind(this)}}):null,Rr.alignRight?Dr(ns,{attrs:_objectSpread2({},{title:"向右对齐",svg:"alignRight",selected:"right"===this.aligned}),nativeOn:{click:this.alignedRight.bind(this)}}):null,Rr.alignBoth?Dr(ns,{attrs:_objectSpread2({},{title:"两端对齐",svg:"alignBoth",selected:"both"===this.aligned}),nativeOn:{click:this.alignedBothEnds.bind(this)}}):null,Rr.addIndent?Dr(ns,{attrs:_objectSpread2({},{title:"增加缩进",svg:"addIndent"}),nativeOn:{click:this.addIndentClick.bind(this)}}):null,Rr.decreaseIndent?Dr(ns,{attrs:_objectSpread2({},{title:"减少缩进",svg:"decreaseIndent"}),nativeOn:{click:this.decreaseIndentClick.bind(this)}}):null,Rr.setHeight?Dr(ns,{attrs:_objectSpread2({},{title:"设置行高",poperStyle:{width:"44px"}})},[Dr("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[Dr("span",{class:"el-dropdown-link"},[Dr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"15",viewBox:"0 0 13 15"},style:"transform: translate(5px, -1px)"},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-6 -5)"}},[Dr("path",{attrs:{fill:"#555","fill-rule":"nonzero",d:"M11.1666667,0 L1.16666667,0 C0.614381917,1.01453063e-16 0.166666667,0.44771525 0.166666667,1 C0.166666667,1.55228475 0.614381917,2 1.16666667,2 L11.1666667,2 C11.7189514,2 12.1666667,1.55228475 12.1666667,1 C12.1666667,0.44771525 11.7189514,-1.01453063e-16 11.1666667,0 Z M11.1666667,13 L1.16666667,13 C0.614381917,13 0.166666667,13.4477153 0.166666667,14 C0.166666667,14.5522847 0.614381917,15 1.16666667,15 L11.1666667,15 C11.7189514,15 12.1666667,14.5522847 12.1666667,14 C12.1666667,13.4477153 11.7189514,13 11.1666667,13 Z M7.90077172,5.59781723 L6.06730005,3.0552939 C6.01455136,2.9815687 5.91269183,2.9815687 5.86176206,3.0552939 L4.02829039,5.59781723 C3.96099034,5.69146816 4.02101471,5.83094828 4.13196885,5.83094828 L5.34518869,5.83094828 L5.34518869,9.17104429 L4.20290674,9.17104429 C4.09377152,9.17104429 4.03192823,9.31052441 4.09922828,9.40417535 L5.93269995,11.9447061 C5.98544864,12.0184313 6.08730817,12.0184313 6.13823794,11.9447061 L7.97170961,9.40417535 C8.03900966,9.31052441 7.97898529,9.17104429 7.86803115,9.17104429 L6.65481131,9.17104429 L6.65481131,5.83094828 L7.79709326,5.83094828 C7.90622848,5.83094828 7.96807177,5.69146816 7.90077172,5.59781723 Z",transform:"translate(6 5)"}})])]),Dr("i",{class:"el-icon-arrow-down el-icon--right"})]),Dr("el-dropdown-menu",{slot:"dropdown"},[this.lineHeightList.map((function(Rr){return Dr("el-dropdown-item",{key:"line-height-"+Rr,class:Rr===Tr.lineHeight?"selected":"",nativeOn:{click:function click(){return Tr.lineHeightClick(Rr)}}},[1.25===Rr?1:Rr])}))])])]):null])}}]),ToolParagraph}(Kr.a);__decorate([Prop()],$u.prototype,"vueController",void 0),__decorate([Prop()],$u.prototype,"paragraph",void 0),__decorate([Ref()],$u.prototype,"toolMenu",void 0),__decorate([Prop()],$u.prototype,"align",void 0),__decorate([Prop()],$u.prototype,"lineSpace",void 0),__decorate([Watch("align")],$u.prototype,"alignChange",null),__decorate([Watch("lineSpace")],$u.prototype,"lineSpaceChange",null),$u=__decorate([an({name:"ToolParagraph",components:{Poper:ns}})],$u);var Gu=$u,MedicalExpressionsvue_type_template_id_50152c2d_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticStyle:{overflow:"hidden",height:"640px"},attrs:{native:!1}},[Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style1"},on:{click:function(Dr){return Tr.selectedSure("style1")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"43",y:"13"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"43",y:"55"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"83",y:"33"}},[Tr._v("Value4")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 40 30 L 80 30"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style2"},on:{click:function(Dr){return Tr.selectedSure("style2")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"15",y:"20"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"15",y:"50"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("Value4")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 10 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style3"},on:{click:function(Dr){return Tr.selectedSure("style3")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"43",y:"13"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"43",y:"55"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"83",y:"33"}},[Tr._v("Value4")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 15 5 L 110 55"}}),Rr("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style4"},on:{click:function(Dr){return Tr.selectedSure("style4")}}},[Rr("span",[Tr._v("经期史")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"33"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"70",y:"20"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"70",y:"50"}},[Tr._v("Value3")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 62 30 L 110 30"}}),Rr("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style5"},on:{click:function(Dr){return Tr.selectedSure("style5")}}},[Rr("span",[Tr._v("瞳孔图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"25"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"0",y:"40"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"40",y:"40"}},[Tr._v("Value4")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("Value5")]),Rr("text",{attrs:{x:"0",y:"55"}},[Tr._v("Value6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("Value7")])])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style6"},on:{click:function(Dr){return Tr.selectedSure("style6")}}},[Rr("span",[Tr._v("光定位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"0",y:"25"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"0",y:"40"}},[Tr._v("Value4")]),Rr("text",{attrs:{x:"0",y:"55"}},[Tr._v("Value7")]),Rr("text",{attrs:{x:"40",y:"25"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"40",y:"40"}},[Tr._v("Value5")]),Rr("text",{attrs:{x:"40",y:"55"}},[Tr._v("Value8")]),Rr("text",{attrs:{x:"80",y:"25"}},[Tr._v("Value3")]),Rr("text",{attrs:{x:"80",y:"40"}},[Tr._v("Value6")]),Rr("text",{attrs:{x:"80",y:"55"}},[Tr._v("Value9")])])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style7"},on:{click:function(Dr){return Tr.selectedSure("style7")}}},[Rr("span",[Tr._v("胎心图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"12",y:"15"}},[Tr._v("Value1")]),Rr("text",{attrs:{x:"12",y:"35"}},[Tr._v("Value4")]),Rr("text",{attrs:{x:"12",y:"55"}},[Tr._v("Value7")]),Rr("text",{attrs:{x:"70",y:"15"}},[Tr._v("Value2")]),Rr("text",{attrs:{x:"70",y:"35"}},[Tr._v("Value5")]),Rr("text",{attrs:{x:"70",y:"55"}},[Tr._v("Value8")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 0 30 L 10 30"}}),Rr("path",{attrs:{d:"M 52 30 L 67 30"}}),Rr("path",{attrs:{d:"M 110 30 L 120 30"}}),Rr("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style8"},on:{click:function(Dr){return Tr.selectedSure("style8")}}},[Rr("span",[Tr._v("恒牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("12345678")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("87654321")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("12345678")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),Rr("el-menu-item",{staticClass:"express-item",attrs:{index:"style9"},on:{click:function(Dr){return Tr.selectedSure("style9")}}},[Rr("span",[Tr._v("乳牙牙位图")]),Rr("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[Rr("g",{attrs:{stroke:"none",fill:"#000000"}},[Rr("text",{attrs:{x:"3",y:"23"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"23"}},[Tr._v("I II III IV V")]),Rr("text",{attrs:{x:"3",y:"47"}},[Tr._v("V IV III II I")]),Rr("text",{attrs:{x:"63",y:"47"}},[Tr._v("I II III IV V")])]),Rr("g",{attrs:{fill:"none",stroke:"#000000"}},[Rr("path",{attrs:{d:"M 2 30 L 118 30"}}),Rr("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)},Ju=[],Xu=function(Tr){Object(Qr["a"])(MedicalExpression,Tr);var Dr=Object(Zr["a"])(MedicalExpression);function MedicalExpression(){return Object(Xr["a"])(this,MedicalExpression),Dr.apply(this,arguments)}return Object(Yr["a"])(MedicalExpression,[{key:"selectedSure",value:function selectedSure(Tr){this.$emit("open-express","express","add",Tr)}}]),MedicalExpression}(Kr.a);Xu=__decorate([an({name:"MedicalExpression"})],Xu);var Yu=Xu,Qu=Yu,Zu=(Rr("8a1a"),normalizeComponent(Qu,MedicalExpressionsvue_type_template_id_50152c2d_scoped_true_render,Ju,!1,null,"50152c2d",null)),ed=Zu.exports,UploadImagevue_type_template_id_208b2688_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":Tr.fileList,"auto-upload":!1,"on-change":Tr.uploadImage,accept:"image/*"}},[Rr("el-menu-item",{attrs:{slot:"trigger",index:"upload"},slot:"trigger"},[Rr("svg",{attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("g",{attrs:{transform:"translate(1 1)"}},[Rr("path",{attrs:{stroke:"none",d:"M1 0h12c.6 0 1 .4 1 1v11c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1zm0 1v11h12V1H1z"}}),Rr("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),Rr("path",{attrs:{stroke:"none",d:"M8.5 11.2l-4-4.1L1 10.7V9.2c1.7-1.6 2.7-2.5 3-2.8.4-.5.7-.4 1 0L8.5 10 11 7.3c.4-.5.6-.5 1-.1l2 2.8v1.5l-2.5-3.4-3 3.1z"}})])]),Rr("span",{attrs:{size:"small"}},[Tr._v("图片")])])],1)},td=[],rd=function uploadImages(Tr){return new Promise((function(Dr,Rr){if(Tr.url){var Ur=Tr.method||"GET",Hr=Tr.async||!0,Wr=new XMLHttpRequest;"GET"===Ur?(Wr.open(Ur,Tr.url+"?"+Math.random(),Hr),Wr.send(null)):"POST"===Ur&&(Wr.open(Ur,Tr.url,Hr),Wr.send(Tr.data)),Wr.onreadystatechange=function(){Wr.responseText&&Dr(Wr.responseText)},Wr.onerror=function(Tr){Rr(Tr)}}}))},nd=function(Tr){Object(Qr["a"])(UploadImage,Tr);var Dr=Object(Zr["a"])(UploadImage);function UploadImage(){var Tr;return Object(Xr["a"])(this,UploadImage),Tr=Dr.apply(this,arguments),Tr.fileList=[],Tr}return Object(Yr["a"])(UploadImage,[{key:"uploadImage",value:function uploadImage(Tr){var Dr=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var Rr=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",Ur=new FormData;Ur.append(Rr,Tr.raw),rd({url:this.uploadImageParams.uploadUrl,method:"POST",data:Ur}).then((function(Rr){var Ur,Hr="";if(null!==(Ur=Dr.uploadImageParams)&&void 0!==Ur&&Ur.callbackParamName||"string"!==typeof Rr){var Wr,zr=null===(Wr=Dr.uploadImageParams)||void 0===Wr?void 0:Wr.callbackParamName;Hr=Rr[zr]}else Hr=JSON.parse(Rr).imgUrl;if(Hr){var Vr=new Image;Vr.src=Hr,Vr.onload=function(){Dr.vueController.insertImage(Hr,Vr.width,Vr.height)}}else Dr.insertBase64Image(Tr)}),(function(){Dr.insertBase64Image(Tr)}))}else this.insertBase64Image(Tr)}},{key:"insertBase64Image",value:function insertBase64Image(Tr){var Dr=this,Rr=new FileReader;Rr.onload=function(Tr){var Rr=new Image,Ur=Tr.target.result;Rr.src=Ur,Rr.onload=function(){Dr.vueController.insertImage(Ur,Rr.width,Rr.height),Dr.fileList=[]}},Rr.readAsDataURL(Tr.raw)}}]),UploadImage}(Kr.a);__decorate([Prop()],nd.prototype,"vueController",void 0),__decorate([Prop()],nd.prototype,"uploadImageParams",void 0),nd=__decorate([an({name:"UploadImage"})],nd);var ad=nd,od=ad,sd=(Rr("f4da"),normalizeComponent(od,UploadImagevue_type_template_id_208b2688_scoped_true_render,td,!1,null,"208b2688",null)),ld=sd.exports,SpecialCharsvue_type_template_id_517c34d3_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-menu-item",{staticClass:"special-characters",attrs:{disabled:"",index:"style1"}},[Rr("section",[Rr("ul",[Rr("li",[Rr("header",[Tr._v("特殊字符")]),Rr("p",{staticClass:"chars-list special-chars-list"},Tr._l(Tr.specialChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("罗马字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.romanChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("数学字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.mathChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)])])])])},cd=[],ud=function(Tr){Object(Qr["a"])(SpecialChars,Tr);var Dr=Object(Zr["a"])(SpecialChars);function SpecialChars(){var Tr;return Object(Xr["a"])(this,SpecialChars),Tr=Dr.apply(this,arguments),Tr.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],Tr.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],Tr.usedChars=[],Tr}return Object(Yr["a"])(SpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(Tr){if(this.vueController.insertSpecialChars("",Tr),this.usedChars.includes(Tr))return!1;this.usedChars.unshift(Tr),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var Tr=this;this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),SpecialChars}(Kr.a);__decorate([Prop()],ud.prototype,"controlStatus",void 0),__decorate([Prop()],ud.prototype,"vueController",void 0),ud=__decorate([an({name:"SpecialChars"})],ud);var hd=ud,pd=hd,fd=(Rr("1c21"),normalizeComponent(pd,SpecialCharsvue_type_template_id_517c34d3_scoped_true_render,cd,!1,null,"517c34d3",null)),_d=fd.exports,gd=function(Tr){Object(Qr["a"])(ToolControls,Tr);var Dr=Object(Zr["a"])(ToolControls);function ToolControls(){var Tr;return Object(Xr["a"])(this,ToolControls),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.dateFormatValue=[],Tr.dateFormat=Jn["d"],Tr.fileList=[],Tr.tableFormulaValue=[],Tr.tableFormulaList=["sum(a3:a10)","(a1 + a20) * 2"],Tr}return Object(Yr["a"])(ToolControls,[{key:"initDropdown",value:function initDropdown(){var Tr=this,Dr=[];this.dateFormatList.forEach((function(Rr,Ur){Ur<10&&Dr.push(Tr.dateFormat("",Rr))})),this.dateFormatValue=[].concat(Dr);var Rr=[];this.tableFormulaList.forEach((function(Tr){Rr.push(Tr)})),this.tableFormulaValue=[].concat(Rr)}},{key:"created",value:function created(){this.initDropdown()}},{key:"createControl",value:function createControl(Tr){this.$emit("setModal",[Tr,"add",""])}},{key:"openExpress",value:function openExpress(){for(var Tr=arguments.length,Dr=new Array(Tr),Rr=0;Rr<Tr;Rr++)Dr[Rr]=arguments[Rr];this.$emit("setModal",Dr)}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModal",["","add",""])}},{key:"selectedDate",value:function selectedDate(Tr,Dr){if("more"===Tr)this.$emit("setModal",["date","add",""]);else{var Rr={id:this.vueController.generateID("DT"),name:"",text:Dr,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:Tr};this.vueController.insertDateTime("add",JSON.stringify(Rr))}}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.insert,Ur=this.vueController;return Dr("el-submenu",{attrs:{"popper-class":"insert-menus",index:"control"}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M836.1 64H187.9C119.6 64 64 119.5 64 187.7v648.7C64 904.5 119.6 960 187.9 960h311.8c29.1 0 52.5-23.5 52.5-52.4s-23.6-52.4-52.5-52.4H187.9c-10.3 0-18.7-8.4-18.7-18.6V187.7c0-10.2 8.5-18.6 18.7-18.6h648.2c10.3 0 18.7 8.4 18.7 18.6v311.5c-0.1 13.9 5.5 27.3 15.4 37.1s23.3 15.3 37.2 15.3c29.1 0 52.5-23.5 52.5-52.4V187.7C960 119.5 904.4 64 836.1 64z m68.6 591.4H767.4V518c0-30.6-25.1-55.3-56-55.3s-56 24.6-56 55.3v137.4H522.5c-30.6 0-55.3 25.1-55.3 56s24.6 56 55.3 56h132.9v133c0 30.7 25.2 55.3 56.1 55.1 30.8 0 55.9-24.6 55.9-55.3V767.4h137.4c30.6 0 55.3-25.1 55.3-56-0.1-30.9-24.7-56-55.4-56z","p-id":"2944"}})]),Dr("span",["插入"])]),Rr.express?Dr("el-submenu",{attrs:{index:"express","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M921.6 448.884364h89.6c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8h-102.4c-6.423273 0-19.176727 6.423273-19.176727 12.8l-108.823273 115.060364c-6.376727 6.330182-12.8 6.330182-12.8 0l-57.576727-115.060364c-6.423273-6.376727-12.8-12.8-19.223273-12.8h-166.4a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.423273 12.753455 12.8 12.753455h102.4c6.423273 0 12.8 6.376727 19.176727 12.8l38.4 83.083636v19.130182l-115.2 134.190545c-6.376727 0-12.753455 6.423273-19.176727 6.423273H460.8c-6.376727 0-12.8 6.376727-12.8 12.753455v102.260363c0 6.376727 6.423273 12.8 12.8 12.8h102.4c6.376727 0 19.176727-6.423273 19.176727-12.8l147.223273-166.167273c6.423273-6.376727 12.8-6.376727 12.8 0l83.176727 166.167273c0 6.376727 12.8 12.8 19.223273 12.8h102.4a13.777455 13.777455 0 0 0 12.8-12.8V717.265455a13.777455 13.777455 0 0 0-12.8-12.753455h-38.4c-6.423273 0-12.8-6.423273-19.176727-12.8l-64.046546-127.813818v-19.130182l76.8-83.083636c6.423273-6.423273 12.846545-12.8 19.223273-12.8zM377.623273 65.489455c-32.023273 25.6-64.046545 63.906909-83.223273 127.813818l-31.976727 127.767272H76.8a13.777455 13.777455 0 0 0-12.8 12.8V436.130909c0 6.376727 6.376727 12.753455 12.8 12.753455h153.6l-96.023273 383.441454c-19.176727 76.660364-70.376727 63.860364-70.376727 63.860364H0V1024h64c51.2 0 102.4-6.376727 128-38.353455 32.023273-31.930182 51.2-89.460364 64-153.320727l96.023273-383.441454h147.176727c6.376727 0 12.8-6.376727 12.8-12.753455V333.870545a13.777455 13.777455 0 0 0-12.8-12.8H384l32.023273-121.390545c6.376727-19.130182 38.4-51.106909 57.576727-63.906909 70.376727-51.106909 166.4-19.176727 230.4-6.376727V20.759273c-64-12.753455-204.8-57.483636-326.376727 44.683636v0.046546z"}})]),Dr("span",["医学表达式"])]),Dr(ed,{on:{"open-express":this.openExpress.bind(this)}})]):null,Rr.specialChars?Dr("el-submenu",{attrs:{index:"specialChars","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("defs",[Dr("g",{attrs:{id:"watermark"}},[Dr("path",{attrs:{d:"M439.003429 758.710857c45.860571 57.270857 105.179429 86.820571 175.104 86.820572 44.982857 0 72.265143-14.628571 115.419428-53.467429l12.214857-11.264c37.449143-35.035429 53.394286-44.982857 77.604572-44.982857 62.902857 0 80.457143 12.434286 147.382857 96.036571l57.051428-45.714285-22.601142-27.648c-64.365714-76.288-99.913143-95.817143-181.833143-95.817143-44.982857 0-72.265143 14.701714-115.419429 53.540571l-12.141714 11.190857c-37.522286 35.108571-53.394286 44.982857-77.677714 44.982857-47.323429 0-85.796571-19.163429-118.052572-59.392l-57.051428 45.714286zM439.003429 935.716571c45.860571 57.270857 105.179429 86.820571 175.104 86.820572 44.982857 0 72.265143-14.628571 115.419428-53.540572l12.214857-11.190857c37.449143-35.035429 53.394286-44.982857 77.604572-44.982857 62.902857 0 80.457143 12.434286 147.382857 96.036572l57.051428-45.787429-22.601142-27.574857c-64.365714-76.288-99.913143-95.817143-181.833143-95.817143-44.982857 0-72.265143 14.628571-115.419429 53.540571l-12.141714 11.190858c-37.522286 35.035429-53.394286 44.982857-77.677714 44.982857-47.323429 0-85.796571-19.163429-118.052572-59.465143l-57.051428 45.787428z"}}),Dr("path",{attrs:{d:"M1024 0v585.142857h-73.142857V450.048l-208.896-177.005714-218.331429 363.812571-226.377143-150.966857L73.142857 671.012571V950.857143h292.571429v73.142857H0V0h1024z m-73.142857 73.142857H73.142857v517.412572l214.747429-198.729143 212.48 141.604571 220.525714-367.616L950.857143 373.028571V73.142857zM292.571429 146.285714a73.142857 73.142857 0 1 1 0 146.285715 73.142857 73.142857 0 0 1 0-146.285715z"}})])]),Dr("use",{attrs:{"xlink:href":"#watermark"}})]),Dr("span",["特殊字符"])]),Dr(_d,{attrs:_objectSpread2({},{vueController:Ur}),on:{"close-menu":this.closeMenu.bind(this)}})]):null,Rr.datetime?Dr("el-submenu",{attrs:{index:"datetime","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M3.323286 405.074141v577.095823c0 23.005753 18.822889 41.828641 41.828641 41.828642h933.696146c23.005753 0 41.828641-18.822889 41.828641-41.828642v-577.095823H3.323286z m295.734072 386.159229h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m283.110188 145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m249.973539 145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761m0-145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761M293.55968 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525786 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525786 42.525786M719.447753 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525785 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525785 42.525786","p-id":"2003"}}),Dr("path",{attrs:{d:"M978.848073 101.085884H787.767867v86.797219c0 37.730829-30.587891 68.320114-68.320114 68.320114s-68.320114-30.589285-68.320114-68.320114V101.085884H361.879794v86.797219c0 37.730829-30.589285 68.320114-68.320114 68.320114-37.732223 0-68.320114-30.589285-68.320114-68.320114V101.085884H45.151927c-23.005753 0-41.828641 18.822889-41.828641 41.828641v206.388094h1017.353428V142.914525c0-23.005753-18.822889-41.828641-41.828641-41.828641"}})]),Dr("span",["日期时间"])]),this.dateFormatValue.map((function(Rr,Ur){return Dr("el-menu-item",{class:"date-time-item",attrs:{index:Tr.dateFormatList[Ur]},key:Rr+Ur,on:{click:function click(){return Tr.selectedDate(Tr.dateFormatList[Ur],Rr)}}},[Rr])})),Dr("el-menu-item",{class:"date-time-item",attrs:{index:"datetimemore"},on:{click:function click(){return Tr.selectedDate("more","")}}},["更多日期属性"])]):null,Rr.select?Dr("el-menu-item",{attrs:{index:"select"},on:{click:function click(){return Tr.createControl("select")}}},[Dr("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M890.432646 976.724088l649.322886-750.693969A136.987951 136.987951 0 0 0 1435.64469 0H136.998917a136.987951 136.987951 0 0 0-104.110842 226.030119l649.322886 749.32409a136.987951 136.987951 0 0 0 208.221685 1.369879z"}})]),Dr("span",["下拉框"])]):null,Rr.text?Dr("el-menu-item",{attrs:{index:"text"},on:{click:function click(){return Tr.createControl("text")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M34.909091 474.763636c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818zM51.2 279.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 4.654545 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m921.6-316.509091c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m16.290909-300.218182c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 6.981818 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m-481.745455 165.236364H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727272 0h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m211.781818 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-9.309091-16.290909-16.290909-16.290909z m-318.836364 0H230.4c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727273-11.636364H109.381818V930.909091c0-9.309091-6.981818-18.618182-18.618182-18.618182H65.163636v-53.527273c0-9.309091-6.981818-18.618182-16.290909-18.618181-9.309091 0-16.290909 6.981818-16.290909 18.618181v53.527273H18.618182c-9.309091 0-18.618182 6.981818-18.618182 18.618182v74.472727c0 9.309091 6.981818 18.618182 18.618182 18.618182H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182v-16.290909h48.872727c9.309091-2.327273 18.618182-11.636364 18.618182-18.618182-2.327273-11.636364-20.945455-25.6-20.945455-25.6z m528.29091 11.636364h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m104.727272 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909zM442.181818 65.163636h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m-104.727273 0h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m209.454546 0H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909-2.327273 6.981818 6.981818 16.290909 13.963636 16.290909z m-316.509091 0h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H230.4c-9.309091 0-16.290909 6.981818-16.290909 18.618182 0 6.981818 6.981818 13.963636 16.290909 13.963636zM158.254545 32.581818H109.381818V18.618182c0-11.636364-9.309091-18.618182-18.618182-18.618182H18.618182C9.309091 0 0 6.981818 0 18.618182V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h16.290909v48.872727c2.327273 9.309091 11.636364 18.618182 18.618182 18.618182 9.309091 0 23.272727-18.618182 23.272727-18.618182V109.381818H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182V65.163636h48.872727c9.309091 0 16.290909-6.981818 16.290909-16.290909-2.327273-9.309091-9.309091-16.290909-18.618182-16.290909z m495.709091 32.581818h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m104.727273 0H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909zM1005.381818 0H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v16.290909h-48.872727c-9.309091 2.327273-18.618182 11.636364-18.618182 18.618182 0 9.309091 18.618182 23.272727 18.618182 23.272727h48.872727V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h25.6v53.527273c0 9.309091 6.981818 18.618182 16.290909 18.618181 9.309091 0 16.290909-6.981818 16.290909-18.618181V109.381818h16.290909c9.309091 0 18.618182-6.981818 18.618182-18.618182V18.618182c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 912.290909h-16.290909v-48.872727c-2.327273-9.309091-11.636364-18.618182-18.618182-18.618182-9.309091 0-23.272727 18.618182-23.272727 18.618182v48.872727H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v25.6h-48.872727c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h48.872727v16.290909c0 9.309091 6.981818 18.618182 18.618182 18.618182h74.472727c9.309091 0 18.618182-6.981818 18.618182-18.618182V930.909091c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 0"}}),Dr("path",{attrs:{d:"M781.963636 288.581818c0-11.636364 0-20.945455 2.327273-30.254545 0-9.309091 2.327273-16.290909 2.327273-25.6 0-11.636364-6.981818-20.945455-18.618182-23.272728-6.981818-2.327273-18.618182-2.327273-30.254545-2.327272H288.581818c-11.636364 0-20.945455 2.327273-30.254545 4.654545-18.618182 4.654545-20.945455 18.618182-20.945455 25.6 2.327273 20.945455 4.654545 41.890909 4.654546 62.836364 0 20.945455-2.327273 41.890909-4.654546 62.836363 0 4.654545 0 9.309091 9.309091 16.29091 4.654545 2.327273 9.309091 4.654545 13.963636 4.654545 4.654545 0 9.309091 0 13.963637-2.327273 6.981818-2.327273 11.636364-9.309091 13.963636-16.290909 4.654545-20.945455 9.309091-39.563636 13.963637-53.527273 4.654545-11.636364 11.636364-20.945455 18.618181-27.927272 6.981818-6.981818 16.290909-11.636364 27.927273-13.963637 11.636364-2.327273 27.927273-4.654545 48.872727-4.654545 27.927273 0 41.890909 4.654545 46.545455 6.981818 6.981818 4.654545 9.309091 18.618182 9.309091 27.927273v372.363636c0 18.618182 0 30.254545-2.327273 41.890909-2.327273 6.981818-4.654545 13.963636-9.309091 18.618182-4.654545 4.654545-11.636364 6.981818-18.618182 9.309091-9.309091 2.327273-23.272727 4.654545-39.563636 6.981818-6.981818 0-11.636364 4.654545-16.290909 11.636364-2.327273 4.654545-4.654545 9.309091-4.654546 16.290909 0 4.654545 2.327273 11.636364 4.654546 16.290909 4.654545 6.981818 9.309091 9.309091 18.618182 9.309091 18.618182 0 39.563636 0 62.836363-2.327273 44.218182-4.654545 83.781818-4.654545 123.345455 0 20.945455 2.327273 41.890909 2.327273 65.163636 2.327273 6.981818 0 13.963636-2.327273 18.618182-9.309091 2.327273-4.654545 4.654545-9.309091 4.654546-16.290909 0-4.654545-2.327273-11.636364-4.654546-16.290909-4.654545-11.636364-9.309091-16.290909-18.618182-16.290909-16.290909-2.327273-30.254545-4.654545-41.890909-6.981818-9.309091-2.327273-13.963636-4.654545-18.618182-9.309091-4.654545-4.654545-6.981818-9.309091-6.981818-16.290909-2.327273-9.309091-2.327273-23.272727-2.327273-41.89091v-372.363636c0-16.290909 2.327273-25.6 9.309091-27.927273 6.981818-2.327273 20.945455-6.981818 48.872728-6.981818 16.290909 0 32.581818 2.327273 44.218181 4.654546s20.945455 6.981818 27.927273 13.963636c6.981818 6.981818 13.963636 16.290909 18.618182 27.927273 4.654545 13.963636 9.309091 30.254545 11.636364 53.527272 2.327273 6.981818 6.981818 13.963636 13.963636 16.29091 4.654545 2.327273 9.309091 2.327273 13.963636 2.327272 4.654545 0 9.309091-2.327273 13.963637-4.654545 6.981818-4.654545 9.309091-11.636364 9.309091-16.290909 0-11.636364-2.327273-23.272727-2.327273-34.909091 4.654545-13.963636 4.654545-25.6 4.654545-37.236364z"}})]),Dr("span",["文本域"])]):null,Rr.uploadImage?Dr(ld,{attrs:_objectSpread2({},{vueController:Ur,uploadImageParams:this.uploadImageParams})}):null,Rr.barcode?Dr("el-menu-item",{attrs:{index:"bar-code"},on:{click:function click(){return Tr.createControl("barcode")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M65.7 158.7h134v703h-134zM703.3 158.7h134v703h-134zM263.4 158.7h57.4v703h-57.4zM901 158.7h57.4v703H901zM572.6 158.7h76.6v703h-76.6zM394.1 158.7H509v703H394.1z"}})]),Dr("span",["条形码"])]):null,Rr.qrcode?Dr("el-menu-item",{attrs:{index:"qr-code"},on:{click:function click(){return Tr.createControl("qrcode")}}},[Dr("svg",{attrs:{viewBox:"0 0 1041 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13"}},[Dr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Dr("path",{attrs:{d:"M948.906667 931.84h92.16V1024h-92.16zM948.906667 559.786667v184.32H853.333333v-184.32H576.853333V1024h92.16V651.946667h92.16v184.32h279.893334v-276.48z"}}),Dr("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),Dr("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),Dr("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),Dr("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),Dr("span",["二维码"])]):null,Rr.radioBox?Dr("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return Tr.createControl("RadioBox")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M511.262 3.070c-282.949 0-507.681 227.919-507.681 509.095 0 281.143 227.919 509.092 509.063 509.092 281.175 0 509.095-227.948 509.095-509.092 0-281.175-227.527-509.095-510.477-509.095zM513.578 926.348c-230.265 0-416.953-186.688-416.953-416.951 0-230.292 186.688-416.98 416.953-416.98 230.293 0 416.951 186.689 416.951 416.98 0 230.265-186.658 416.951-416.951 416.951zM820.797 327.158c-17.682-18.585-46.313-18.585-63.99 0l-292.576 307.665-167.863-156.253c-17.683-18.553-46.311-18.553-63.995 0-17.653 18.587-17.653 48.719 0 67.303l195.65 182.058c16.923 17.817 43.956 18.539 61.716 2.196 8.935-1.589 17.508-5.991 24.41-13.234l306.649-322.463c17.653-18.583 17.653-48.685 0.002-67.27z"}})]),Dr("span",["单选框"])]):null,Rr.checkBox?Dr("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return Tr.createControl("CheckBox")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M877.714286 0H146.285714a146.285714 146.285714 0 0 0-146.285714 146.285714v731.428572a146.285714 146.285714 0 0 0 146.285714 146.285714h731.428572a146.285714 146.285714 0 0 0 146.285714-146.285714V146.285714a146.285714 146.285714 0 0 0-146.285714-146.285714z m73.142857 877.714286a73.142857 73.142857 0 0 1-73.142857 73.142857H146.285714a73.142857 73.142857 0 0 1-73.142857-73.142857V146.285714a73.142857 73.142857 0 0 1 73.142857-73.142857h731.428572a73.142857 73.142857 0 0 1 73.142857 73.142857z"}}),Dr("path",{attrs:{d:"M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"}})]),Dr("span",["复选框"])]):null,Rr.pageInfoes?Dr("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return Tr.createControl("pageInfoes")}}},[Dr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Dr("path",{attrs:{d:"M732.258937 608.38132H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237038h283.372625a32.237037 32.237037 0 0 0 0-64.474075zM793.929791 0h-439.446055a132.41095 132.41095 0 0 0-126.144928 127.793881l-36.689211 1.071819A127.1343 127.1343 0 0 0 70.533977 256.082448v640.041223a131.916264 131.916264 0 0 0 126.144928 127.793881h472.837359a132.41095 132.41095 0 0 0 126.144928-127.793881h31.659903a132.41095 132.41095 0 0 0 126.144928-127.79388V214.446377zM669.516264 959.525926H196.349114a65.958132 65.958132 0 0 1-62.742673-63.89694V256.164895a62.907568 62.907568 0 0 1 60.0219-62.742673l34.463124-1.071819v575.567149a131.916264 131.916264 0 0 0 126.144928 127.793881h378.022544a67.277295 67.277295 0 0 1-62.990016 63.814493z m220.547504-191.690821a66.37037 66.37037 0 0 1-62.742673 63.89694H353.98905a65.958132 65.958132 0 0 1-62.742673-63.89694V127.793881A66.37037 66.37037 0 0 1 353.98905 63.89694h376.703382c-0.577134 74.202899 0 25.558776 0 25.558777 0 66.700161 34.463124 127.216747 101.657971 127.216747h57.713365zM732.258937 448.350403H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237037h283.372625a32.237037 32.237037 0 0 0 0-64.474074z"}})]),Dr("span",["页码页数信息"])]):null])}}]),ToolControls}(mixins(xu));__decorate([Prop()],gd.prototype,"vueController",void 0),__decorate([Prop()],gd.prototype,"insert",void 0),__decorate([Prop()],gd.prototype,"uploadImageParams",void 0),gd=__decorate([an({name:"ToolControls",components:{MedicalExpressions:ed,SpecialChars:_d,UploadImage:ld}})],gd);var md=gd,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){Tr.isDocumentShow=!1},expression:"\n () => {\n isDocumentShow = false;\n }\n "}],staticClass:"sub-bar-items",style:Tr.isDocumentShow?"background-color: #eaeaea;":"background-color: #fff;"},[Rr("div",{staticClass:"sub-bar-item",staticStyle:{width:"80px"},on:{click:Tr.openDocument}},[Tr._v(" 更新说明 ")]),Tr.isDocumentShow?Rr("div",{staticClass:"document-item animation-in"},[Tr._m(0)]):Tr._e()])},vd=[function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",[Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.60 ~ 0.3.95 (累积更新)")]),Rr("span",[Tr._v("2021/11/01")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v(" 1:编辑器内存占用量大幅降低; ")]),Rr("p",[Tr._v(" 2: 改进生成html功能,使导出的html打印效果跟编辑器直接打印一致 ")]),Rr("p",[Tr._v(" 3:增加版本号右键显示 ")]),Rr("p",[Tr._v(" 4:编辑模式下隐藏、显示批注; ")]),Rr("p",[Tr._v(" 5: 医学表达式增加结构化 ")]),Rr("p",[Tr._v(" 6:增加了强制删除功能 ")]),Rr("p",[Tr._v(" 7:文本域下拉列表增加对应的keyValue和双击事件; ")]),Rr("p",[Tr._v(" 8:签名功能重新设计以适配单人、多人签名 ")]),Rr("p",[Tr._v(" 9: 增加日期时间格式和处理方式; ")]),Rr("p",[Tr._v(" 10:医学表达式添加下拉列表文字描述; ")]),Rr("p",[Tr._v(" 11:复制粘贴文本域时 去掉不必要的标记; ")]),Rr("p",[Tr._v(" 12:合并打印返回参数增加`startPageNum: 本次打印起始页面` ")]),Rr("p",[Tr._v(" 13:单元格双击下拉列表允许删除; ")]),Rr("p",[Tr._v(" 14:移除批量打印结束时恢复打印前文档状态异步调用方式; ")]),Rr("p",[Tr._v(" 15:优化页眉页脚内表格结束位置多出空行的问题; ")]),Rr("p",[Tr._v(" 16:新增删除当前页接口`vueController.delCurPage(pageIndex)` ")]),Rr("p",[Tr._v(" 17:设置页顶端至页眉最小默认高度3mm,小于3MM将影响打印 ")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v(" 1: 修复从word复制粘贴最后多个段落; ")]),Rr("p",[Tr._v(" 2: 修复在云平台插入元素时 回车是否对齐总是默认是true的问题; ")]),Rr("p",[Tr._v(" 3: 处理当文本域中第一个节点为回车时,造成的无法选中问题; ")]),Rr("p",[Tr._v(" 4: 处理日期DataID每次保存都会变的问题; ")]),Rr("p",[Tr._v(" 5: 处理页码页数,调整字体大小时,导致重复绘制问; ")]),Rr("p",[Tr._v(" 6: 处理提示弹窗高度过高问题; ")]),Rr("p",[Tr._v(" 7: 文本域下拉列表单选不显示问题修复 ")]),Rr("p",[Tr._v(" 9: 修复表格保存行信息异常; ")]),Rr("p",[Tr._v(" 10:修复表格的复制粘贴; ")]),Rr("p",[Tr._v(" 11:修复批量打印 另起一页 抬头字体样式不对; ")]),Rr("p",[Tr._v(" 13: 处理合并行中非最后一行不同列单元格内容变高度,导致边框未正确绘制问题; ")]),Rr("p",[Tr._v(" 14: 修复在表达式后面打字字体样式变成文档默认字体的问题; ")]),Rr("p",[Tr._v(" 15: 修复下拉框确认按钮显示不完整问题; ")]),Rr("p",[Tr._v(" 16: 修复日期框显示不完整问题; ")]),Rr("p",[Tr._v(" 17: 处理续打时已打印页面仍然存在的问题; ")]),Rr("p",[Tr._v(" 18: 修改打印起始页判断方式; ")]),Rr("p",[Tr._v(" 19:处理表格行线偶尔变粗的问题; ")]),Rr("p",[Tr._v(" 20: 处理表格边框变粗问题; ")]),Rr("p",[Tr._v(" 21: 文档加载时 文档类型是空时默认类型是病历; ")]),Rr("p",[Tr._v(" 22: 合并打印返回打印起始页获取位置调整到重置文档状态前; ")]),Rr("p",[Tr._v(" 23: 第一份病历合并或者批量打印时,用settimeout方式异步等待图片缩放完成; ")]),Rr("p",[Tr._v(" 24: 处理续打位置错误问题; ")]),Rr("p",[Tr._v(" 25:打印移除Safari兼容方法, 修复谷歌浏览器打印卡死问题; ")]),Rr("p",[Tr._v(" 26:日期时间格式化函数处理中文格式情况, 修复加载异常问题; ")]),Rr("p",[Tr._v(" 27:处理合并多行单元格跨页不绘制问题; ")]),Rr("p",[Tr._v(" 28:处理病历由医生打开时,文本域标签重复绘制问题; ")]),Rr("p",[Tr._v(" 29: 修复从老版本病历复制粘贴到新版本病历时段落消失的问题; ")]),Rr("p",[Tr._v(" 30: 修复删除选区包含不允许删除的元素时删除异常的问题; ")]),Rr("p",[Tr._v(" 31: 复制、粘贴MarkNode时带上其样式; ")]),Rr("p",[Tr._v(" 32: 处理保存病历时检查元素报错的问题; ")]),Rr("p",[Tr._v(" 33: 修复日期设置不成功问题; ")]),Rr("p",[Tr._v(" 34: 修复删除问题; ")]),Rr("p",[Tr._v(" 35:修复部分日期时间格式加载不显示问题; ")]),Rr("p",[Tr._v(" 36:修复下拉框元素双击不弹出问题; ")]),Rr("p",[Tr._v(" 37:修复低版本打印空元素仍旧显示问题; ")]),Rr("p",[Tr._v(" 38:增加`ElementController.forceDelete`强制删除接口; ")]),Rr("p",[Tr._v(" 39:修复批量打印时表格内样式加载不对问题; ")]),Rr("p",[Tr._v(" 40:修复日期时间表单修改时自动设置当前时间问题; ")]),Rr("p",[Tr._v(" 41:优化弹窗定位方式; ")]),Rr("p",[Tr._v(" 42:修复chromium内核浏览器粗体打印不显示问题; ")]),Rr("p",[Tr._v(" 43:修复另存为的html文件在浏览器上打开后右键打印多出空白页问题; ")]),Rr("p",[Tr._v(" 44:需要自定义列表的下拉框和文本域下来列表修改: ")]),Rr("p",[Tr._v(" 45:修复批量加载文档; ")]),Rr("p",[Tr._v(" 46:处理合并打印时,表格线超过正文内容绘制到页脚的问题; ")]),Rr("p",[Tr._v(" 47:处理页码绘制占位宽度不够 48:导致两位数页码时,页码跟文本内容重叠的问题;; ")]),Rr("p",[Tr._v(" 49:处理文本域双击下拉选择的文本长短不同时,导致的选区报错问题; ")]),Rr("p",[Tr._v(" 50:修复打开文件报错问题 ")]),Rr("p",[Tr._v(" 51:修复页眉页脚加载样式错误问题; ")]),Rr("p",[Tr._v(" 52:修复文本域内光标位置错误问题; ")]),Rr("p",[Tr._v(" 53:修复打印时打印样式未加载成功问题; ")]),Rr("p",[Tr._v(" 54:处理自动换行行线模糊,断断续续绘制不完全的问题; ")]),Rr("p",[Tr._v(" 55: 下拉列表多选时选中值按列表顺序排列,不再按选中先后顺序排列; ")]),Rr("p",[Tr._v(" 56:修复打开非A4纸病历,不显示内容问题; ")]),Rr("p",[Tr._v(" 57:处理加载时,如果左右边距与页面默认设置不匹配,导致的偏移问题; ")]),Rr("p",[Tr._v(" 58:修复签名删除问题 ")]),Rr("p",[Tr._v(" 59:修复下拉列表单选问题 ")]),Rr("p",[Tr._v(" 60:修复84版本谷歌浏览器打印问题; ")]),Rr("p",[Tr._v(" 61: 修复下拉选择中搜索功能选择和插入顺序问题; ")]),Rr("p",[Tr._v(" 62:修复字体样式中带有特殊字符(下划线_),导致打印生成svg不识别无法打印的问题 ")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.2 ~ 0.3.59 (累积更新)")]),Rr("span",[Tr._v("2021/09/29")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1:改进打印,转成svg进行打印,打印质量与word、wps达到一致")]),Rr("p",[Tr._v("2: 增加英文与数字分词功能,行首不出现标点,英文数字整体换行")]),Rr("p",[Tr._v("3: 新增病历合并显示功能")]),Rr("p",[Tr._v("4: 新增批量打印,合并打印,续打连续病历功能")]),Rr("p",[Tr._v("5: 新增元素联动功能")]),Rr("p",[Tr._v("6: 单元格绑定控件,可以双击单元格实现下拉、日期、固定值填充等")]),Rr("p",[Tr._v(" 7: 新增设计模式,元素表格设置的权限在此模式不受限制,用于制作模板 ")]),Rr("p",[Tr._v("8: 字号单位由px变更为pt,以适配超高清屏幕")]),Rr("p",[Tr._v("9: 打印不再新开页签,直接在当前页弹打印对话框")]),Rr("p",[Tr._v("10: 新增打印全部页,奇数页,偶数页,指定页打印设置")]),Rr("p",[Tr._v(" 11: 新增customProperty参数用来配置文本域,日期表单自定义属性项; ")]),Rr("p",[Tr._v(" 12: 新增pageProperty参数用来初始化编辑器字体字号字间距段落等部分全局样式; ")]),Rr("p",[Tr._v("13: 新增插入分隔符功能")]),Rr("p",[Tr._v("14: 新增标签转文本和文本转标签的接口方法及右键菜单项;")]),Rr("p",[Tr._v("15: 新增编辑器组件emit返回右键事件和双击事件;")]),Rr("p",[Tr._v("16: 新增获取所有元素的接口")]),Rr("p",[Tr._v("17: 新增接口方法: 验证病历文档中所有的文本域的数据格式")]),Rr("p",[Tr._v("18: 新增格式刷以及对应的撤销恢复功能")]),Rr("p",[Tr._v("19: 新增单元格属性背景色backColor属性")]),Rr("p",[Tr._v("20: 新增数学公式插入表单弹窗")]),Rr("p",[Tr._v("21: 新增签名接口和表单弹窗")]),Rr("p",[Tr._v("22: 新增行或者列时,复制当前行或者列的单元格的编辑器属性")]),Rr("p",[Tr._v(" 23: 新增tab键响应:光标移到下一个元素,日期和下拉列表控件处于选中状态按enter键弹框 ")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 修复行首退格导致输入域丢失提示文本与边框的问题")]),Rr("p",[Tr._v("2: 修复单元格另存xml后加载丢失边框问题")]),Rr("p",[Tr._v(" 3: 修复设置输入域固定宽度后,在输入域中打字,导致后续内容丢失的问题 ")]),Rr("p",[Tr._v(" 4: 修复打印清晰度,打印预览单元格边框不显示,横向打印多出空白页的问题 ")]),Rr("p",[Tr._v("5: 修复光标换页错位问题")]),Rr("p",[Tr._v("6: 修复在文本中插入回车无效问题")]),Rr("p",[Tr._v("7: 修复加载文件单元格属性不起作用")]),Rr("p",[Tr._v("9: 修复设置打印起始位置当起始行为表格时无效问题")]),Rr("p",[Tr._v("10: 修复页眉未打印问题")]),Rr("p",[Tr._v("11: 修复设置分页后加载表格多插入了一页的问题")]),Rr("p",[Tr._v("12: 修复文本域修改无法实时更新文本域宽度问题")]),Rr("p",[Tr._v("13: 修复图片上传接口返回图片地址接收错误问题")]),Rr("p",[Tr._v("14: 修复空文本域打印预览时不打印初始化显示的字")]),Rr("p",[Tr._v("15: 修复方向键的响应问题")]),Rr("p",[Tr._v(" 16: 修复当选择起始点为自动换行文本非首行起始点时,选区范围绘制错误问题 ")]),Rr("p",[Tr._v("17: 修复打印导致除当前页外无法选中的问题")]),Rr("p",[Tr._v("18: 修复删除元素不能撤销的问题")]),Rr("p",[Tr._v(" 19: 修复输入域内的输入域设置固定宽度后,导致父区域指定的宽度无效问题 ")]),Rr("p",[Tr._v("20: 修复pageProperty初始化循环设置问题")]),Rr("p",[Tr._v("21: 修复导致设计模式不生效问题和菜单栏切换错误问题")]),Rr("p",[Tr._v(" 22: 修复单元格内更新文本域内容带自动换行时,换行后的内容出现在表格外的问题 ")]),Rr("p",[Tr._v(" 23: 修复表格中带公式,修改表格内容触发公式计算 导致表格后的非表格行消失问题 ")]),Rr("p",[Tr._v("24: 修复工具栏文件,插入表格等菜单配置项错误")]),Rr("p",[Tr._v(" 25: 修复打印方向变化后预览界面白色背景未重绘导致出现黑色区域问题,打印预览图片缩放未完成导致预览界面图片与文档图片大小不一致问题 ")]),Rr("p",[Tr._v("26: 修复文档的加载")]),Rr("p",[Tr._v("27: 修复加载病历时行高获取异常的问题")]),Rr("p",[Tr._v("28: 修复表格某列多行合并后跨页绘制异常问题")]),Rr("p",[Tr._v("29: 修复调用`openXml`加载文档首页页眉未加载出来的问题")]),Rr("p",[Tr._v("30: 修复文档加载时文本域的段落使用块对齐不起作用")]),Rr("p",[Tr._v("31: 修复从旧版病历复制粘贴到新版病历,会导致大面积斜体问题")]),Rr("p",[Tr._v(" 32: 统一行位置设置坐标位置为段落节点内,不再在其他地方设置行的x坐标,避免位置不齐 ")]),Rr("p",[Tr._v("33: 处理在调整表格行列大小时,会误选中单元格内容的问题")]),Rr("p",[Tr._v("34: 处理在行较多时,合并多行后,行线会覆盖下面的行的问题")]),Rr("p",[Tr._v(" 35: 处理在合并多行列的隔隔行编辑时,合并多行的单元格未正确绘制边框的问题 ")]),Rr("p",[Tr._v("36: 修复右键删除签名异常的问题")]),Rr("p",[Tr._v("37: 处理输入域在文档中设置了固定宽度后,导致文档对不齐的问题")]),Rr("p",[Tr._v("38: 处理表格内合并单元格中文本域混乱问题")]),Rr("p",[Tr._v("39: 修复日期修改导致节点后内容被覆盖的问题")]),Rr("p",[Tr._v("40: 处理文本域内需要点击两次才能切换菜单的问题")]),Rr("p",[Tr._v(" 41: 修复文本域多层嵌套,子文本域内容变动时复文本域内容未更新的问题 ")]),Rr("p",[Tr._v("42: 修复单元格表单打开时内边距问题")]),Rr("p",[Tr._v("43: 处理合并多行的单元格,绘制时偏移问题")]),Rr("p",[Tr._v("44: 处理打印时页眉中的图片未正常显示问题")]),Rr("p",[Tr._v(" 45: 处理在页眉中编辑表格导致重绘异常,以及错误的将页眉中的表格绘制于正文的问题 ")]),Rr("p",[Tr._v(" 46: 修复双击弹出下拉列表高度不够导致无法动态调整位置和下拉列表高度的问题 ")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.1")]),Rr("span",[Tr._v("2021/08/05")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 表格中插入求和、四则混合运算")]),Rr("p",[Tr._v("2: 新增接口页眉页脚插入")]),Rr("p",[Tr._v("3: 日期控件增加labelText")]),Rr("p",[Tr._v(" 4: 新增接口方法: 保存选区内容(病历段落)、插入段落、删除元素、删除选区内内容 ")]),Rr("p",[Tr._v("5: 新增接口方法: 保存与替换页眉页脚")]),Rr("p",[Tr._v("6: 元素增加属性是否自动回填")]),Rr("p",[Tr._v("7: 新增接口方法: 读取xml病历字符串")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 编辑状态无法打印的问题")]),Rr("p",[Tr._v("2: 编辑批注错误问题")]),Rr("p",[Tr._v("3: 诊断换行无效问题")]),Rr("p",[Tr._v("4: 处理删除输入域 导致输入域后面的文本也被 删除的问题")]),Rr("p",[Tr._v("5: 护理记录标题行弹控件问题")])]),Rr("div",[Rr("h3",[Tr._v("others:")]),Rr("p",[Tr._v("1: UI优化")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.3.0")]),Rr("span",[Tr._v("2021/07/31")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 工具栏独立抽出成组件,调用方开源并允许修改")]),Rr("p",[Tr._v("2: 增加插入html文本串接口")]),Rr("p",[Tr._v("3: 工具栏增加配置功能")]),Rr("p",[Tr._v(" 4: 增加直接修改xml文件输入域text字段,加载文件根据text生成节点功能 ")]),Rr("p",[Tr._v("5: 绘制页根据可视范围进行创建与销毁,以优化内存")]),Rr("p",[Tr._v("6: 增加修改元素的接口方法")]),Rr("p",[Tr._v("7: 上传图片的接口方法")]),Rr("p",[Tr._v("8: 增加了不合并续打功能")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 修复可视化区监听错误,导致页面多绘问题")]),Rr("p",[Tr._v("2: 页面设置弹窗重新打开时获取上次设置信息失败问题")]),Rr("p",[Tr._v("3: 绘制方式变更后引入的无法选择问题修复")]),Rr("p",[Tr._v("4: 绘制方式变更后换页问题修复")]),Rr("p",[Tr._v(" 5: 绘制方式变更后的选择问题、双击问题、路径失效问题、页码问题、全局样式问题 ")]),Rr("p",[Tr._v("6: 时间格式小时解析成HH的问题")]),Rr("p",[Tr._v("7: 在有文本的行插入图片时造成的行高异常问题")])]),Rr("div",[Rr("h3",[Tr._v("others:")]),Rr("p",[Tr._v("1: 更新并整理文档,增加注释")]),Rr("p",[Tr._v("2: 去掉hoeditorFacotry的循环引用,以优化内存占用")]),Rr("p",[Tr._v("3: 接口方法梳理分类并整理")]),Rr("p",[Tr._v("4: 去掉对drawPages的循环引用,以优化内存")]),Rr("p",[Tr._v("5: 对可视区外的页面进行销")]),Rr("p",[Tr._v("6: 打印功能多入口合并成一个管理对象进行管理")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.5")]),Rr("span",[Tr._v("2021/07/19")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 文本域中的段落使用块对齐")]),Rr("p",[Tr._v("2: 另存为json功能")]),Rr("p",[Tr._v("3: 存储格式节点名称变更成类型名称")]),Rr("p",[Tr._v("4: 直接打印功能,会新开页签")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 输入域元素无法通过下拉选择更新内容,如单选、多选")]),Rr("p",[Tr._v("2: 文本域块模式文本超出自动换行不能正确显示,回车换行显示正常")]),Rr("p",[Tr._v("3: 在页面设置中设置字间距过大后,会导致文本超出面的右边界")]),Rr("p",[Tr._v("4: 批注跨页丢失")]),Rr("p",[Tr._v("5: 区域打印,打印了后续页,第三页不能选区的问题")]),Rr("p",[Tr._v("6: 文本域里面有换行 保存再加载 显示不对")]),Rr("p",[Tr._v(" 7: 在页的末行加批注 第一次点确定没反应 再点一次才插入成功 有偶然性 有时候又正常 ")]),Rr("p",[Tr._v("8: 表格删除无法撤销的问题")]),Rr("p",[Tr._v("9: 文本域不能嵌套")]),Rr("p",[Tr._v(" 10: 分页后,光标无法定位到第一页的后面几行,第二页也无法录入文字 ")]),Rr("p",[Tr._v("11: 文本域取消选中全局文本色,没什么变化")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.4")]),Rr("span",[Tr._v("2021/07/13")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 文本自动换行结束处不能回车换行的问题")]),Rr("p",[Tr._v("2: 不能区域打印与续打的问题")]),Rr("p",[Tr._v("3: 保存为xml文件丢失空格问题")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.3")]),Rr("span",[Tr._v("2021/07/09")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),Rr("p",[Tr._v("2: 修正不同的质控层级的批注颜色")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 文本域不能嵌套bug")]),Rr("p",[Tr._v("2: 文本域全局文本色无效问题")]),Rr("p",[Tr._v("3: 在非首页批注导致页面不可见问题")]),Rr("p",[Tr._v("4: 分页后光标无法定位到跨页表格前几行的问题")]),Rr("p",[Tr._v("5: 护理记录单第二页前几行无法弹出的问题")]),Rr("p",[Tr._v("6: 表格后面删除 然后双击,表格消失问题")]),Rr("p",[Tr._v("7: 工具栏字体样式不随光标位置变化问题修复")]),Rr("p",[Tr._v("8: 牙位图双击修改后显示错位修复")]),Rr("p",[Tr._v("9: 处理调整列宽 合并单元格没有正常绘制边框的问题")]),Rr("p",[Tr._v("10: 跨页单元格尾行绘制的行线过多问题、多一行的空行问题")]),Rr("p",[Tr._v("11: 日期选择无法选中问题修复")]),Rr("p",[Tr._v("12: 未设置允许被删除仍能删除的问题")]),Rr("p",[Tr._v("13: 选择一行合并把第二行也合并的问题")]),Rr("p",[Tr._v("14: 在横打界面批注,绘制位置偏差的问题")])]),Rr("div",[Rr("h3",[Tr._v("others:")]),Rr("p",[Tr._v("1: 表格调整宽度功能优化")]),Rr("p",[Tr._v("2: 单元格垂直对齐优化")]),Rr("p",[Tr._v("3: 优化表格录入较卡的问题")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.2")]),Rr("span",[Tr._v("2021/06/30")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),Rr("p",[Tr._v("2: 修正不同的质控层级的批注颜色")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.2.1")]),Rr("span",[Tr._v("2021/06/29")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1: 增加护理记录表单模式编辑病历、包括自动换行、表格列编辑器等")]),Rr("p",[Tr._v("2: 批量设置行高、列宽")]),Rr("p",[Tr._v("3: 元素使用特殊背景色标识")]),Rr("p",[Tr._v("4: 增加一级质控员、二级质控员、三级质控员不同的颜色标记")]),Rr("p",[Tr._v("5: 增加状态栏显示文件信息、病历类型、修改时间等功能")]),Rr("p",[Tr._v("6: 增加病历文档版本号")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v("1: 浏览模式可编辑的问题")]),Rr("p",[Tr._v("2 : 处理单元格内对齐方式无效问题")]),Rr("p",[Tr._v("3: 处理无法选择合并单元格问题")]),Rr("p",[Tr._v("4: 列宽过窄时,文本跳到相邻单元格问题")]),Rr("p",[Tr._v(" 5: 在文档编辑过程中切换纸张大小 文档首行的文本显示不正确的问题 ")]),Rr("p",[Tr._v("6: 取消合并单元格无效问题")]),Rr("p",[Tr._v("7: 列合并单元格左侧插入列,显示混乱问题")]),Rr("p",[Tr._v("8: 页眉页脚错乱问题")]),Rr("p",[Tr._v("9: 页码显不对问题")]),Rr("p",[Tr._v("10: 插入自定义行列数时,双击导致多插入行列问题")]),Rr("p",[Tr._v("11: 处理左对齐无效,行缩进无效问题")]),Rr("p",[Tr._v("12: 表格后偶尔无法录入的问题")])])]),Rr("li",[Rr("p",[Rr("span",[Tr._v("0.1.1")]),Rr("span",[Tr._v("2021/06/08")])]),Rr("div",[Rr("h3",[Tr._v("feat:")]),Rr("p",[Tr._v("1. 增加自定义表格行列,自定义插入行列")])]),Rr("div",[Rr("h3",[Tr._v("bugFix:")]),Rr("p",[Tr._v(" 1: 选中一段文本进行样式变更 变更完之后鼠标点击选区的前几个字没有反应 ")]),Rr("p",[Tr._v("2: 插入一个空文本域 标记框内初始化显示的文字不对")]),Rr("p",[Tr._v("3: 插入页码 显示不对")]),Rr("p",[Tr._v("4: 合并单元格保存后加载第一行行宽不对的问题")]),Rr("p",[Tr._v("5: 删除表格无效与删除后无法撤销恢复表格问题")]),Rr("p",[Tr._v("6: 处理取消合并单元格无效问题")]),Rr("p",[Tr._v("7: 选中图片后, 隐藏光标")]),Rr("p",[Tr._v(" 8: 表格, 上、下插入行或者左、右插入列后, 将新插入的行或者列处于选中状态, 并隐藏光标 ")]),Rr("p",[Tr._v("9: 修复编辑批注后, 批注内容较多时, 覆盖其它批注的问题")]),Rr("p",[Tr._v("10: 给表格增加列属性, 修改对应的文档的加载和保存")]),Rr("p",[Tr._v(" 11: 修复当当前页有选区时, 取消光标聚焦到页的起始位置, 以免发生跳转 ")]),Rr("p",[Tr._v("12: 修复插入一个空文本域, 域内初始化显示的文字不对的问题")]),Rr("p",[Tr._v("13: 修复文件加载后段落样式没起作用的问题")]),Rr("p",[Tr._v("14: 根据最新的绘制逻辑, 修复方向键的响应")]),Rr("p",[Tr._v("15: 打印功能整理到编辑模式菜单中")])])]),Rr("li",{staticClass:"version-line"}),Rr("li",[Rr("span",[Tr._v("2021/6/01 星期二")]),Rr("p",[Tr._v("1. 内存性能进一步优化")]),Rr("p",[Tr._v("2. 优化表格拖放边框线")]),Rr("p",[Tr._v("3. 处理最右侧无法插入列的问题")])]),Rr("li",[Rr("span",[Tr._v("2021/5/21 星期五")]),Rr("p",[Tr._v(" 1. 分页绘制优化,引入滚动绘制(不绘制非可视区域),进一步优化绘制速度 ")]),Rr("p",[Tr._v("2. 增加编辑批注,添加编辑和删除批注操作提示")]),Rr("p",[Tr._v("3. 修复表单粘贴无效且粘贴内容出现在文档中的问题")]),Rr("p",[Tr._v("4. 修复多页文档时日期选择弹窗多次创建问题")])]),Rr("li",[Rr("span",[Tr._v("2021/5/21 星期五")]),Rr("p",[Tr._v("1. 测试与bug修复")]),Rr("p",[Tr._v("2.整理与去HIS的对接文档")])]),Rr("li",[Rr("span",[Tr._v("2021/5/21 星期五")]),Rr("p",[Tr._v("1. 重写文本绘制算法,对绘制速度进一步优化")]),Rr("p",[Tr._v("2. 优化段落样式变更速度(主要是分散对齐)")]),Rr("p",[Tr._v("2. 处理绘制优化后产生的问题")]),Rr("p",[Tr._v(" 3. 去绘制缓存,由于速度已经非常快,不再需要绘制缓存,缓存会造成文字变粗 ")])]),Rr("li",[Rr("span",[Tr._v("2021/5/6 星期四")]),Rr("p",[Tr._v("1. 重写绘制算法,将删除重绘变更为移动重绘")]),Rr("p",[Tr._v("2. 重写表格绘制功能,优化整体性能以及调通变更后的绘制错误")])]),Rr("li",[Rr("span",[Tr._v("2021/5/6 星期四")]),Rr("p",[Tr._v("1. 根据新的绘制算法调整批注的插入、选中、删除和对应的文件的保存")]),Rr("p",[Tr._v("2. 根据新的绘制算法调整图片的缩放功能")])]),Rr("li",[Rr("span",[Tr._v("2021/4/12 星期一")]),Rr("p",[Tr._v("1. 工具栏页面设置功能完善")]),Rr("p",[Tr._v("2. 工具栏撤销恢复功能完善")]),Rr("p",[Tr._v("3. 工具栏上标下标功能完善")])]),Rr("li",[Rr("span",[Tr._v("2021/03/19 星期一")]),Rr("p",[Tr._v("1: bug修复、速度优化、UI优化")])]),Rr("li",[Rr("span",[Tr._v("2021/03/01 星期一")]),Rr("p",[Tr._v("1.完善批注的插入 实现批注随着文本的移动而移动")]),Rr("p",[Tr._v("2.实现批注的删除和选中时颜色的变化")]),Rr("p",[Tr._v("3.实现审阅模式下 逻辑删除")]),Rr("p",[Tr._v("4.做插入页码和页数的前期工作")]),Rr("p",[Tr._v("5.初步实现文档的新建")])]),Rr("li",[Rr("span",[Tr._v("2021/03/01 星期一")]),Rr("p",[Tr._v("1: 页眉页脚中显示页码、页数")]),Rr("p",[Tr._v("2: 审阅模式直接输入留痕")]),Rr("p",[Tr._v(" 3: 表格的插入行、插入列、删除行、删除列、合并单元格、取消合并单元格、拖动调列宽行高的撤销恢复功能 ")])]),Rr("li",[Rr("span",[Tr._v("2021/03/01 星期一")]),Rr("p",[Tr._v("1. 创建表格增加touch事件适配ipad端")]),Rr("p",[Tr._v("2. 审阅模式创建和删除提示调整")]),Rr("p",[Tr._v("3. 增加页码页数信息插入ui")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 完成web病历自身文档复制剪切粘贴到自身文档")]),Rr("p",[Tr._v("2. 完成web病历文档与word文档间的复制剪切粘贴")]),Rr("p",[Tr._v("3. 完成web病历文档与记事本文档间复制剪切粘贴")]),Rr("p",[Tr._v("4. 完成web病历文档与网页间复制剪切粘贴")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 完善文档xml格式,增加xml数组折叠,改进文档可读性")]),Rr("p",[Tr._v("2. 实现图片、条形码、二维码的缩放")]),Rr("p",[Tr._v("3. 初步实现审阅模式下逻辑删除;非审阅模式下物理删除")]),Rr("p",[Tr._v("4. 初步实现审阅模式下插入批注和批注选中后颜色变化")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 文档元素的滑过提示功能重写")]),Rr("p",[Tr._v("2. 工具栏提示组件重新实现,移除elementui组件")]),Rr("p",[Tr._v("3. 调整表单弹窗适应iPad")]),Rr("p",[Tr._v("4. 审阅模式删除提示和批注添加删除表单功能")])]),Rr("li",[Rr("span",[Tr._v("2021/2/09 星期二")]),Rr("p",[Tr._v("1. 表格跨页标题行显示、编辑")]),Rr("p",[Tr._v("2. 全文档重绘(切换编辑、审阅等页签时调用)")]),Rr("p",[Tr._v("3. 表格插入撤销恢复")]),Rr("p",[Tr._v("4. 表格删除撤销恢复")]),Rr("p",[Tr._v("5. 表格选中部分单元格内容删除的撤销恢复")]),Rr("p",[Tr._v("6. 表格选区绘制与表格部分选择时的选区扩展")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 实现打印记录标记绘制")]),Rr("p",[Tr._v("2. 实现续打功能")]),Rr("p",[Tr._v("3. 实现打印选中区域功能")]),Rr("p",[Tr._v("4. 实现打印选中区域的多选打印")]),Rr("p",[Tr._v("5. 实现打印鼠标选中位置打印功能")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 表格边框线绘制")]),Rr("p",[Tr._v("2. 表格边框拖动以调整行列大小")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 完善文档xml格式的保存和加载")]),Rr("p",[Tr._v("2. 文档另存为txt格式")]),Rr("p",[Tr._v("3. 文档另存为html格式")]),Rr("p",[Tr._v("4. 实现插入特殊字符")])]),Rr("li",[Rr("span",[Tr._v("2021/1/11 星期一")]),Rr("p",[Tr._v("1. 水印设置功能已实现,ui待进一步优化完善")]),Rr("p"),Rr("p",[Tr._v("2. 页面设置完善")]),Rr("p",[Tr._v("3. 特殊字符插入功能接入")]),Rr("p",[Tr._v("4. 实现插入特殊字符")])]),Rr("li",[Rr("span",[Tr._v("2020/12/22 星期二")]),Rr("p",[Tr._v("1. 表格中插入表格行、列")]),Rr("p",[Tr._v("2. 合并单元格功能")]),Rr("p",[Tr._v("3. 表格中删除行、列")]),Rr("p",[Tr._v("4. 页眉显示优化")]),Rr("p",[Tr._v("5. 绘制效率优化")]),Rr("p",[Tr._v("6. 取消合并单元格")])]),Rr("li",[Rr("span",[Tr._v("2020/12/22 星期二")]),Rr("p",[Tr._v("1. 在文本域中插入下拉列表")]),Rr("p",[Tr._v("2. 完善文档的保存和加载")]),Rr("p",[Tr._v("3. 添加鼠标放到文本域上显示左右标记事件")])]),Rr("li",[Rr("span",[Tr._v("2020/12/22 星期二")]),Rr("p",[Tr._v("1. 表格属性,表格行属性,单元格属性弹窗表单UI已完成")]),Rr("p",[Tr._v("2. 背景图片设置与清除")]),Rr("p",[Tr._v(" 3. Vue组件化完成,可用npm install+文件本地路径方式加载,import方式引入组件及UI,组件内可用HoDoc单标签方式使用 ")]),Rr("p",[Tr._v("4. 带有提示文本的控件增加滑过文本提示层")])]),Rr("li",[Rr("span",[Tr._v("2020/12/14 星期一")]),Rr("p",[Tr._v("1. 实现插入单复选控件")]),Rr("p",[Tr._v("2. 实现插入日期时间控件")]),Rr("p",[Tr._v("3. 实现插入下拉列表控件")]),Rr("p",[Tr._v("4. 实现控件的样式变更和内容删除控制")]),Rr("p",[Tr._v("5. 实现查找和替换")]),Rr("p",[Tr._v("6. 实现方向键的响应")]),Rr("p",[Tr._v("7. 完善往表格内插入控件和条形码等")]),Rr("p",[Tr._v("8. 实现鼠标移动到单复选控件同组照亮")]),Rr("p",[Tr._v("9. 完善页眉和页脚的方向键响应")])]),Rr("li",[Rr("span",[Tr._v("2020/12/11 星期五")]),Rr("p",[Tr._v("1. 表格的初步插入绘制功能")]),Rr("p",[Tr._v("2. 表格行跨页")]),Rr("p",[Tr._v("3. 页眉页脚功能")])]),Rr("li",[Rr("span",[Tr._v("2020/12/11 星期五")]),Rr("p",[Tr._v("1. 添加文本域节点绘制")]),Rr("p",[Tr._v("2. 实现文本域节点嵌套绘制")]),Rr("p",[Tr._v("3. 实现文本域节点定长绘制")]),Rr("p",[Tr._v("4. 实现文本域节点整体及内容删除控制")]),Rr("p",[Tr._v("5. 实现文本域节点内容只读控制")]),Rr("p",[Tr._v("6. 实现文本域placeholder显示及操作控制")]),Rr("p",[Tr._v("7. 实现文本域节点边界显示隐藏操作")]),Rr("p",[Tr._v("8. 重写节点删除undoredo操作")]),Rr("p",[Tr._v("9. 重写样式变更undoredo操作")]),Rr("p",[Tr._v("10. 添加打印至pdf测试demo")]),Rr("p",[Tr._v("11. 处理斜体文字部分被遮盖问题")])]),Rr("li",[Rr("span",[Tr._v("2020/12/11 星期五")]),Rr("p",[Tr._v("1. 日期时间插入功能及ui完成,双击弹窗修改日期功能及ui完成")]),Rr("p",[Tr._v("2. 下拉框插入功能及ui完成,双击弹窗修改选择功能及ui完成")]),Rr("p",[Tr._v("3. 右键菜单列表中,右键选中任一控件的属性修改功能及ui完成")]),Rr("p",[Tr._v("5. 重新整理组件内状态管理方式,移除vuex")])]),Rr("li",[Rr("span",[Tr._v("2020/11/16 星期一")]),Rr("p",[Tr._v("1. 段落左对齐")]),Rr("p",[Tr._v("2. 段落右对齐")]),Rr("p",[Tr._v("3. 段落两端对齐")]),Rr("p",[Tr._v("4. 段落行间距")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/16 星期一")]),Rr("p",[Tr._v("1. 二维码表单和插入功能")]),Rr("p",[Tr._v("2. 图片和条形码插入功能修复")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/13 星期五")]),Rr("p",[Tr._v("1. 插入文本域 绘制层实现")]),Rr("p",[Tr._v("2. 插入图片 绘制层实现")]),Rr("p",[Tr._v("3. 插入条形码 绘制层实现")]),Rr("p",[Tr._v("4. 插入二维码 绘制层实现")]),Rr("p",[Tr._v("5. 插入和修改医学表达 绘制层实现")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/13 星期五")]),Rr("p",[Tr._v("1. 下拉菜单ui部分风格统一调整(插入和表格)")]),Rr("p",[Tr._v("2. 弹出层部分ui风格统一调整(医学表达式,条形码,文本域)")]),Rr("p",[Tr._v("3. 文本域 ui及功能")]),Rr("p",[Tr._v("4. 条形码 UI及功能")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/11/5 星期四")]),Rr("p",[Tr._v("1. 工具栏列表,底部文字信息栏,文档编辑区域布局UI完成")]),Rr("p",[Tr._v("2. 颜色选择组件完成")]),Rr("p",[Tr._v(" 3. 选中区域或者输入光标所在位置改变工具栏状态(上标下标加粗下划线删除线颜色等选中位置的样式) ")]),Rr("p",[Tr._v("4. 医学表达式添加和修改UI及功能完成")]),Rr("p",[Tr._v("5. 日期时间控件UI完成")])]),Rr("li",{staticClass:"lines"}),Rr("li",[Rr("span",[Tr._v("2020/10/29 星期四")]),Rr("p",[Tr._v("1. 文本节点中下划线绘制")]),Rr("p",[Tr._v("2. 文本节点中删除线绘制")]),Rr("p",[Tr._v("3. 文本节点中上标样式绘制")]),Rr("p",[Tr._v("4. 文本节点中下标样式绘制")]),Rr("p",[Tr._v("5. 文本节点中背景色绘制")]),Rr("p",[Tr._v("6. 节点(单个/多个选中/文本节点中单个文字)删除操作撤销恢复操作")]),Rr("p",[Tr._v("7. 节点插入操作撤销恢复操作")]),Rr("p",[Tr._v("8. 文本节点中文本插入操作的合并操作添加时间戳判断")]),Rr("p",[Tr._v("9. 文本节点拆分操作的撤销恢复操作")]),Rr("p",[Tr._v("10. 文字录入中,多文字连续录入合并撤销,合并恢复")])])])}],yd=function(Tr){Object(Qr["a"])(UpdateDocument,Tr);var Dr=Object(Zr["a"])(UpdateDocument);function UpdateDocument(){var Tr;return Object(Xr["a"])(this,UpdateDocument),Tr=Dr.apply(this,arguments),Tr.isDocumentShow=!1,Tr}return Object(Yr["a"])(UpdateDocument,[{key:"openDocument",value:function openDocument(){this.isDocumentShow=!this.isDocumentShow}}]),UpdateDocument}(Kr.a);yd=__decorate([an({name:"UpdateDocument"})],yd);var bd=yd,wd=bd,xd=(Rr("6e08"),normalizeComponent(wd,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render,vd,!1,null,"01703d21",null)),Cd=xd.exports,ToolTablevue_type_template_id_7e9dd939_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-submenu",{attrs:{"popper-class":"insert-menus",index:"tables"}},[Rr("template",{slot:"title"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[Rr("path",{attrs:{stroke:"none",d:"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),Rr("span",[Tr._v("表格")])]),Rr("el-submenu",{attrs:{index:"insertTable","popper-append-to-body":!0}},[Rr("template",{slot:"title"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[Rr("path",{attrs:{stroke:"none",d:"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),Rr("span",[Tr._v("插入表格")])]),Rr("el-menu-item",{staticClass:"table-menus",attrs:{index:"0"}},[Rr("div",{staticClass:"columns",on:{mouseleave:Tr.clearData}},[Rr("p",{staticClass:"table-title"},[Tr._v(" "+Tr._s(Tr.rows?Tr.rows+" x "+Tr.columns:"插入")+" 表格 ")]),Tr._l(10,(function(Dr){return Rr("div",{key:"row_"+Dr,staticClass:"rows",on:{mousemove:Tr.mouse,click:Tr.createdTables}},Tr._l(10,(function(Ur){return Rr("span",{key:"column_index"+Ur,class:Dr<=Tr.rows&&Ur<=Tr.columns?"selected":"",attrs:{"data-column":Ur,"data-row":Dr},on:{touchstart:Tr.touch,touchmove:Tr.touch,touchend:Tr.touchend}})})),0)})),Rr("p",{staticClass:"table-bottom-title",on:{click:function(Dr){Tr.dialogFormVisible=!0}}},[Tr._v(" 自定义行列数 ")])],2)])],2),Tr.isOpen?Rr("TableFeatures",{attrs:{className:"insert-rows-columns-menu",vueController:Tr.vueController,table:Tr.table},on:{closeMenu:Tr.closeMenu}}):Tr._e(),Rr("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:Tr.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},[Rr("el-form",{attrs:{model:Tr.form}},[Rr("el-form-item",{attrs:{label:"行数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.rows,callback:function(Dr){Tr.$set(Tr.form,"rows",Dr)},expression:"form.rows"}})],1),Rr("el-form-item",{attrs:{label:"列数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.columns,callback:function(Dr){Tr.$set(Tr.form,"columns",Dr)},expression:"form.columns"}})],1)],1),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{on:{click:function(Dr){Tr.dialogFormVisible=!1}}},[Tr._v("取 消")]),Rr("el-button",{attrs:{type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")])],1)],1)],2)},Pd=[],TableFeaturesvue_type_template_id_595addeb_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("p",{class:Tr.className},[Rr("ul",{staticClass:"mouse-right-menu"},[Tr.table.insertRowAbove?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("defs",[Rr("g",{attrs:{id:"insertTableRowsColumns"}},[Rr("path",{attrs:{d:"M1024 1024H0V384h1024v640zM171.2 127.8L0 256V0l171.2 127.8z m132.9 512.1V512H128l0.1 127.9h176z m0 256.1V767.9h-176L128 896h176.1zM1024 192H256V64h768v128zM592.1 639.9V512h-160v127.9h160z m0 256.1V767.9h-160V896h160z m304-256.1L896 512H720.1v127.9h176zM896 896l0.1-128.1h-176V896H896z"}})])]),Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("上方插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.topRows,callback:function(Dr){Tr.topRows=Dr},expression:"topRows"}}),Rr("span",[Tr._v(" 行")])],1)]):Tr._e(),Tr.table.insertRowBelow?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateX(180deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("下方插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.bottomRows,callback:function(Dr){Tr.bottomRows=Dr},expression:"bottomRows"}}),Rr("span",[Tr._v(" 行")])],1)]):Tr._e(),Tr.table.insertColLeft?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateZ(270deg) rotateY(180deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("左侧插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.leftRows,callback:function(Dr){Tr.leftRows=Dr},expression:"leftRows"}}),Rr("span",[Tr._v(" 列")])],1)]):Tr._e(),Tr.table.insertColRight?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateZ(90deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),Rr("div",{staticClass:"insert-rows-columns"},[Rr("span",[Tr._v("右侧插入 ")]),Rr("el-input-number",{staticClass:"insert-rows-columns-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:Tr.rightRows,callback:function(Dr){Tr.rightRows=Dr},expression:"rightRows"}}),Rr("span",[Tr._v(" 列")])],1)]):Tr._e(),Tr.table.deleteRows?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27213",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M1024.078512 835.218318v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963302H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963302v-161.779812a25.598072 25.598072 0 0 1 26.963302-26.963303h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963303zM1024.078512 27.00187v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963303H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963303V27.00187A25.598072 25.598072 0 0 1 296.410663 0.038568h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963302z m0 0M477.986318 424.625249v167.240734a21.843688 21.843688 0 0 1-18.771919 24.232842H18.927567a21.843688 21.843688 0 0 1-18.771919-24.232842v-167.240734a21.843688 21.843688 0 0 1 18.771919-24.232841h440.286832a21.843688 21.843688 0 0 1 18.771919 24.232841z m0 0"}}),Rr("path",{attrs:{d:"M961.619218 314.724195l-149.492738 149.492738-149.151431-149.492738a36.519915 36.519915 0 0 0-51.878759 0 36.178608 36.178608 0 0 0 0 51.537451l149.492739 149.492738-149.492739 149.492738a36.178608 36.178608 0 0 0 0 51.537451 36.519915 36.519915 0 0 0 51.878759 0l149.151431-149.151431L961.619218 716.784573a36.519915 36.519915 0 0 0 51.878758 0 36.861223 36.861223 0 0 0 0-51.537451l-149.492738-149.492738 149.492738-149.492738a36.861223 36.861223 0 0 0 0-51.537451 36.519915 36.519915 0 0 0-51.878758 0z m25.939379-25.939379"}})]),Rr("span",[Tr._v("删除行")])]):Tr._e(),Tr.table.deleteCols?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{staticStyle:{transform:"rotateZ(90deg)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M1024.078512 835.218318v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963302H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963302v-161.779812a25.598072 25.598072 0 0 1 26.963302-26.963303h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963303zM1024.078512 27.00187v161.779812a25.598072 25.598072 0 0 1-26.963302 26.963303H18.410663a25.598072 25.598072 0 0 1-26.963302-26.963303V27.00187A25.598072 25.598072 0 0 1 296.410663 0.038568h700.704547a25.598072 25.598072 0 0 1 26.963302 26.963302z m0 0M477.986318 424.625249v167.240734a21.843688 21.843688 0 0 1-18.771919 24.232842H18.927567a21.843688 21.843688 0 0 1-18.771919-24.232842v-167.240734a21.843688 21.843688 0 0 1 18.771919-24.232841h440.286832a21.843688 21.843688 0 0 1 18.771919 24.232841z m0 0"}}),Rr("path",{attrs:{d:"M961.619218 314.724195l-149.492738 149.492738-149.151431-149.492738a36.519915 36.519915 0 0 0-51.878759 0 36.178608 36.178608 0 0 0 0 51.537451l149.492739 149.492738-149.492739 149.492738a36.178608 36.178608 0 0 0 0 51.537451 36.519915 36.519915 0 0 0 51.878759 0l149.151431-149.151431L961.619218 716.784573a36.519915 36.519915 0 0 0 51.878758 0 36.861223 36.861223 0 0 0 0-51.537451l-149.492738-149.492738 149.492738-149.492738a36.861223 36.861223 0 0 0 0-51.537451 36.519915 36.519915 0 0 0-51.878758 0z m25.939379-25.939379"}})]),Rr("span",[Tr._v("删除列")])]):Tr._e(),Tr.table.mergerCells?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[Rr("path",{attrs:{fill:"#F0F0F0",d:"M0,0 L24,0 L24,24 L0,24 L0,0 Z",opacity:"0"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"4 7 4 5 7 5 10 5 10 19 7 19 4 19 4 16.952",transform:"matrix(-1 0 0 1 14 0)"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"14 7 14 5 17 5 20 5 20 19 17 19 14 19 14 16.952"}}),Rr("path",{attrs:{stroke:"none",d:"M10.3652377,13.1421629 L8.12342591,13.1421629 L8.79597093,13.8610652 C9.03778436,14.1357021 9.02267185,14.5638117 8.76574414,14.8222945 C8.64483728,14.9353803 8.49370422,15 8.33501255,15 C8.17632235,15 8.01763215,14.9353796 7.8967247,14.8142158 L6.1889167,12.9886918 C6.06800984,12.859451 6,12.689822 6,12.5121164 C6,12.4232634 6.01511339,12.3344109 6.05289673,12.2455566 C6.08312352,12.1647811 6.12846356,12.0840053 6.18891699,12.0193853 L7.90427979,10.1938613 C8.02518665,10.0646205 8.18387744,10 8.3501239,10 C8.51637035,10 8.68261828,10.0726979 8.80352426,10.2019384 C8.92443112,10.3311791 8.9848847,10.5008082 8.9848847,10.6785137 C8.98488469,10.8562192 8.91687457,11.0258476 8.795968,11.155089 L8.19898995,11.7932157 L10.3652392,11.7932157 C10.7128461,11.7851381 11,12.0840068 11,12.4636523 C11,12.835216 10.7128446,13.1421629 10.3652377,13.1421629 Z",transform:"matrix(-1 0 0 1 17 0)"}}),Rr("path",{attrs:{stroke:"none",d:"M17.3652377,13.1421629 L15.1234259,13.1421629 L15.7959709,13.8610652 C16.0377844,14.1357021 16.0226718,14.5638117 15.7657441,14.8222945 C15.6448373,14.9353803 15.4937042,15 15.3350126,15 C15.1763223,15 15.0176321,14.9353796 14.8967247,14.8142158 L13.1889167,12.9886918 C13.0680098,12.859451 13,12.689822 13,12.5121164 C13,12.4232634 13.0151134,12.3344109 13.0528967,12.2455566 C13.0831235,12.1647811 13.1284636,12.0840053 13.188917,12.0193853 L14.9042798,10.1938613 C15.0251866,10.0646205 15.1838774,10 15.3501239,10 C15.5163704,10 15.6826183,10.0726979 15.8035243,10.2019384 C15.9244311,10.3311791 15.9848847,10.5008082 15.9848847,10.6785137 C15.9848847,10.8562192 15.9168746,11.0258476 15.795968,11.155089 L15.19899,11.7932157 L17.3652392,11.7932157 C17.7128461,11.7851381 18,12.0840068 18,12.4636523 C18,12.835216 17.7128446,13.1421629 17.3652377,13.1421629 Z"}})])]),Rr("span",[Tr._v("合并单元格")])]):Tr._e(),Tr.table.unMergerCells?Rr("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[Rr("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[Rr("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"4 7 4 5 7 5 10 5 10 19 7 19 4 19 4 16.952"}}),Rr("polyline",{attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",points:"14 7 14 5 17 5 20 5 20 19 17 19 14 19 14 16.952",transform:"matrix(-1 0 0 1 34 0)"}}),Rr("path",{attrs:{stroke:"none",d:"M7.36523773,13.1421629 L5.12342591,13.1421629 L5.79597093,13.8610652 C6.03778436,14.1357021 6.02267185,14.5638117 5.76574414,14.8222945 C5.64483728,14.9353803 5.49370422,15 5.33501255,15 C5.17632235,15 5.01763215,14.9353796 4.8967247,14.8142158 L3.1889167,12.9886918 C3.06800984,12.859451 3,12.689822 3,12.5121164 C3,12.4232634 3.01511339,12.3344109 3.05289673,12.2455566 C3.08312352,12.1647811 3.12846356,12.0840053 3.18891699,12.0193853 L4.90427979,10.1938613 C5.02518665,10.0646205 5.18387744,10 5.3501239,10 C5.51637035,10 5.68261828,10.0726979 5.80352426,10.2019384 C5.92443112,10.3311791 5.9848847,10.5008082 5.9848847,10.6785137 C5.98488469,10.8562192 5.91687457,11.0258476 5.795968,11.155089 L5.19898995,11.7932157 L7.36523919,11.7932157 C7.71284609,11.7851381 8,12.0840068 8,12.4636523 C8,12.835216 7.71284463,13.1421629 7.36523773,13.1421629 Z"}}),Rr("path",{attrs:{stroke:"none",d:"M20.3652377,13.1421629 L18.1234259,13.1421629 L18.7959709,13.8610652 C19.0377844,14.1357021 19.0226718,14.5638117 18.7657441,14.8222945 C18.6448373,14.9353803 18.4937042,15 18.3350126,15 C18.1763223,15 18.0176321,14.9353796 17.8967247,14.8142158 L16.1889167,12.9886918 C16.0680098,12.859451 16,12.689822 16,12.5121164 C16,12.4232634 16.0151134,12.3344109 16.0528967,12.2455566 C16.0831235,12.1647811 16.1284636,12.0840053 16.188917,12.0193853 L17.9042798,10.1938613 C18.0251866,10.0646205 18.1838774,10 18.3501239,10 C18.5163704,10 18.6826183,10.0726979 18.8035243,10.2019384 C18.9244311,10.3311791 18.9848847,10.5008082 18.9848847,10.6785137 C18.9848847,10.8562192 18.9168746,11.0258476 18.795968,11.155089 L18.19899,11.7932157 L20.3652392,11.7932157 C20.7128461,11.7851381 21,12.0840068 21,12.4636523 C21,12.835216 20.7128446,13.1421629 20.3652377,13.1421629 Z",transform:"matrix(-1 0 0 1 37 0)"}})])]),Rr("span",[Tr._v("取消合并单元格")])]):Tr._e()]),Rr("el-dialog",{attrs:{title:"表格计算公式",width:"520px",visible:Tr.dialogFormVisible,top:"200px",center:""},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},[Rr("section",[Rr("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[Tr._v(" "+Tr._s("a3:a10"===Tr.dialogFormTitle?"求和公式":"四则运算公式")+" ")]),Rr("div",{staticStyle:{height:"36px","line-height":"36px"}},[Tr._v("示例: "+Tr._s(Tr.dialogFormTitle))]),Rr("el-input",{attrs:{autocomplete:"off"},model:{value:Tr.formula,callback:function(Dr){Tr.formula=Dr},expression:"formula"}})],1),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")])],1)])],1)},Ed=[],Sd=function(Tr){Object(Qr["a"])(TableFeatures,Tr);var Dr=Object(Zr["a"])(TableFeatures);function TableFeatures(){var Tr;return Object(Xr["a"])(this,TableFeatures),Tr=Dr.apply(this,arguments),Tr.tableFormulaValue=[],Tr.tableCellCode=!1,Tr.dialogFormVisible=!1,Tr.dialogFormTitle="",Tr.formula="",Tr.isCellSplitModal=!1,Tr.row=1,Tr.column=1,Tr.topRows=1,Tr.bottomRows=1,Tr.leftRows=1,Tr.rightRows=1,Tr}return Object(Yr["a"])(TableFeatures,[{key:"setCellCode",value:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.$emit("closeMenu"),this.init()}},{key:"tableInsertRowAbove",value:function tableInsertRowAbove(Tr){var Dr="."+this.className+" .insert-rows-columns-top",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowAbove(this.topRows))}},{key:"tableInsertRowBelow",value:function tableInsertRowBelow(Tr){var Dr="."+this.className+" .insert-rows-columns-bottom",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowBelow(this.bottomRows))}},{key:"tableInsertColLeft",value:function tableInsertColLeft(Tr){var Dr="."+this.className+" .insert-rows-columns-left",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableColLeft(this.leftRows))}},{key:"tableInsertColRight",value:function tableInsertColRight(Tr){var Dr="."+this.className+" .insert-rows-columns-right",Rr=document.querySelector(Dr);Rr.contains(Tr.target)||(this.$emit("closeMenu"),this.vueController.insertTableColRight(this.rightRows))}},{key:"tableDeleteRows",value:function tableDeleteRows(){this.$emit("closeMenu"),this.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){this.$emit("closeMenu"),this.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){this.$emit("closeMenu"),this.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){this.$emit("closeMenu"),this.vueController.tableUnMergerCells()}},{key:"tableControlClick",value:function tableControlClick(){this.$emit("change")}},{key:"init",value:function init(){this.topRows=1,this.bottomRows=1,this.leftRows=1,this.rightRows=1}},{key:"selectedFormula",value:function selectedFormula(Tr){this.dialogFormVisible=!0,this.dialogFormTitle=Tr,this.formula=Tr}},{key:"sure",value:function sure(){this.dialogFormVisible=!1,this.$emit("closeMenu")}},{key:"beforeDestroy",value:function beforeDestroy(){this.init()}}]),TableFeatures}(Kr.a);__decorate([Prop()],Sd.prototype,"vueController",void 0),__decorate([Prop()],Sd.prototype,"className",void 0),__decorate([Prop()],Sd.prototype,"table",void 0),Sd=__decorate([an({name:"TableFeatures"})],Sd);var Td=Sd,Dd=Td,kd=(Rr("c0da"),normalizeComponent(Dd,TableFeaturesvue_type_template_id_595addeb_render,Ed,!1,null,null,null)),Od=kd.exports,Id=function(Tr){Object(Qr["a"])(ToolTables,Tr);var Dr=Object(Zr["a"])(ToolTables);function ToolTables(){var Tr;return Object(Xr["a"])(this,ToolTables),Tr=Dr.apply(this,arguments),Tr.rows=0,Tr.columns=0,Tr.dialogFormVisible=!1,Tr.form={rows:1,columns:1},Tr.formLabelWidth="72px",Tr}return Object(Yr["a"])(ToolTables,[{key:"createdTables",value:function createdTables(){this.vueController.insertTable(this.rows,this.columns)}},{key:"clearData",value:function clearData(){this.rows=0,this.columns=0}},{key:"sure",value:function sure(){this.vueController.insertTable(this.form.rows,this.form.columns),this.dialogFormVisible=!1}},{key:"mouse",value:function mouse(Tr){var Dr=Tr.target;if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touch",value:function touch(Tr){var Dr=document.elementFromPoint(Tr.changedTouches[0].pageX,Tr.changedTouches[0].pageY);if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touchend",value:function touchend(Tr){this.touch(Tr),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTables}(Kr.a);__decorate([Prop()],Id.prototype,"vueController",void 0),__decorate([Prop()],Id.prototype,"table",void 0),__decorate([Prop()],Id.prototype,"isOpen",void 0),Id=__decorate([an({name:"ToolTables",components:{TableFeatures:Od}})],Id);var Md=Id,Nd=Md,Ld=(Rr("93cb"),normalizeComponent(Nd,ToolTablevue_type_template_id_7e9dd939_render,Pd,!1,null,null,null)),Ad=Ld.exports,PageSettingvue_type_template_id_187fdd38_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("div",{staticClass:"control-modal"},[Rr("div",{ref:"pageSettingModal",class:Tr.animationClassNames,on:{mousedown:Tr.toolModalDown}},[Rr("header",{staticClass:"modal-title"},[Rr("span",[Tr._v("页面设置")]),Rr("i",{staticClass:"el-icon-close modal-title-close",on:{click:Tr.handleClose}})]),Rr("section",{staticClass:"modal-content"},[Rr("el-tabs",{model:{value:Tr.textActiveName,callback:function(Dr){Tr.textActiveName=Dr},expression:"textActiveName"}},[Rr("el-tab-pane",{attrs:{label:"页面设置",name:"first"}},[Rr("div",{staticClass:"control-list"},[Rr("fieldset",{staticClass:"control-item fieldset",staticStyle:{margin:"0 10px 10px 10px"}},[Rr("legend",[Tr._v("页边距    毫米")]),Rr("ul",{staticClass:"page-spacing"},[Rr("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("上(T)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.topMarginMm,callback:function(Dr){Tr.$set(Tr.property,"topMarginMm",Dr)},expression:"property.topMarginMm"}})],1),Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("左(L)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.leftMarginMm,callback:function(Dr){Tr.$set(Tr.property,"leftMarginMm",Dr)},expression:"property.leftMarginMm"}})],1)]),Rr("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("下(B)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.bottomMarginMm,callback:function(Dr){Tr.$set(Tr.property,"bottomMarginMm",Dr)},expression:"property.bottomMarginMm"}})],1),Rr("div",{staticClass:"page-spacing-form"},[Rr("span",{staticClass:"labels"},[Tr._v("右(R)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.rightMarginMm,callback:function(Dr){Tr.$set(Tr.property,"rightMarginMm",Dr)},expression:"property.rightMarginMm"}})],1)])])]),Rr("div",{staticClass:"print-settings"},[Rr("fieldset",{staticClass:"fieldset print-direction-item"},[Rr("legend",[Tr._v("打印方向")]),Rr("div",{class:0===Tr.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(Dr){return Tr.setPrintDirection(0)}}},[Rr("div",[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[Rr("path",{attrs:{d:"M850.56 297.984l-254.336-233.088s-6.314667-7.637333-14.464-7.637333H211.968c-24.064 0-43.776 19.584-43.776 43.776v825.557333c0 24.064 19.584 43.776 43.776 43.776h600.021333c24.064 0 43.776-19.584 43.776-43.776V309.717333a16.213333 16.213333 0 0 0-5.205333-11.733333z m-252.757333-188.416l200.874666 184.149333-149.034666-0.085333a52.053333 52.053333 0 0 1-51.84-51.925333V109.568z m225.92 816.981333a11.733333 11.733333 0 0 1-11.733334 11.733334H211.882667a11.733333 11.733333 0 0 1-11.733334-11.733334V100.992c0-6.528 5.290667-11.733333 11.733334-11.733333h353.877333v152.405333c0 46.208 37.546667 83.84 83.754667 83.84l174.250666 0.213333v600.832z m0 0"}}),Rr("path",{attrs:{d:"M535.04 367.36h-46.08l-127.274667 334.037333h47.616l32.128-91.477333h139.093334l34.090666 91.477333h47.616L535.04 367.36z m-80.042667 204.928l50.048-138.837333c1.962667-5.504 3.797333-13.226667 5.376-23.253334h1.109334c1.962667 11.008 3.669333 18.730667 5.205333 23.253334l50.474667 138.837333h-112.213334z"}})])]),Rr("p",[Tr._v("纵向(P)")])]),Rr("div",{class:1===Tr.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(Dr){return Tr.setPrintDirection(1)}}},[Rr("div",[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[Rr("path",{attrs:{d:"M296.192 175.189333l-233.088 254.336s-7.637333 6.314667-7.637333 14.464v369.792c0 24.064 19.584 43.776 43.776 43.776h825.557333c24.064 0 43.776-19.584 43.776-43.776V213.76c0-24.064-19.584-43.776-43.776-43.776H307.925333a16.384 16.384 0 0 0-11.733333 5.205333z m-188.416 252.8l184.149333-200.874666-0.128 149.034666a52.053333 52.053333 0 0 1-51.925333 51.84H107.776z m817.024-225.962666c6.528 0 11.733333 5.290667 11.733333 11.733333v600.149333a11.733333 11.733333 0 0 1-11.733333 11.733334H99.2a11.733333 11.733333 0 0 1-11.733333-11.733334v-353.877333h152.405333c46.208 0 83.84-37.546667 83.84-83.754667l0.213333-174.250666h600.874667z m0 0"}}),Rr("path",{attrs:{d:"M555.648 346.752h-46.08L382.293333 680.789333h47.616l32.128-91.477333h139.093334l34.090666 91.477333h47.616l-127.189333-334.037333z m-80.085333 204.928l50.048-138.837333c1.962667-5.504 3.797333-13.226667 5.376-23.253334h1.109333c1.962667 11.008 3.669333 18.730667 5.205333 23.253334l50.474667 138.837333h-112.213333z"}})])]),Rr("p",[Tr._v("横向(P)")])])]),Rr("div",{staticClass:"control-item",staticStyle:{padding:"0","margin-left":"10px"}},[Rr("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px",margin:"0"}},[Rr("legend",[Tr._v("纸张    毫米")]),Rr("ul",{staticClass:"control-list"},[Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("大小(Z)")]),Rr("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择纸张大小"},on:{change:function(Dr){return Tr.setPrintDirection(Tr.property.printDirection)}},model:{value:Tr.property.pageSize,callback:function(Dr){Tr.$set(Tr.property,"pageSize",Dr)},expression:"property.pageSize"}},Tr._l(Tr.paperStyle,(function(Tr,Dr){return Rr("el-option",{key:Dr,attrs:{label:Tr[0],value:Tr[0]}})})),1)],1),Rr("li",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("来源(S)")]),Rr("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择来源"},model:{value:Tr.property.source,callback:function(Dr){Tr.$set(Tr.property,"source",Dr)},expression:"property.source"}},[Rr("el-option",{attrs:{label:"自动选择",value:"0"}})],1)],1),Rr("li",{staticClass:"control-item paper-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("宽度(W)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==Tr.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:Tr.property.widthMm,callback:function(Dr){Tr.$set(Tr.property,"widthMm",Dr)},expression:"property.widthMm"}})],1),Rr("li",{staticClass:"control-item paper-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("高度(H)")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==Tr.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:Tr.property.heightMm,callback:function(Dr){Tr.$set(Tr.property,"heightMm",Dr)},expression:"property.heightMm"}})],1)])]),Rr("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px 10px"}},[Rr("legend",[Tr._v("边框")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"64px"}},[Tr._v("边框颜色")]),Rr("el-color-picker",{attrs:{size:"mini"},model:{value:Tr.property.borderColor,callback:function(Dr){Tr.$set(Tr.property,"borderColor",Dr)},expression:"property.borderColor"}})],1),Rr("PrintLineStyle",{attrs:{labelWidth:"64px",defaultStyle:Tr.property.paintRowLine,placeholder:"绘制行线"},on:{change:Tr.printStyleChange}})],1)])])])]),Rr("el-tab-pane",{attrs:{label:"页眉页脚",name:"second"}},[Rr("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[Rr("legend",[Tr._v("页眉    毫米")]),Rr("div",{staticClass:"control-item"},[Tr._v("距页边界:")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[Tr._v("至页眉(H):")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.headerYMm,callback:function(Dr){Tr.$set(Tr.property,"headerYMm",Dr)},expression:"property.headerYMm"}})],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px"}}),Rr("el-checkbox",{model:{value:Tr.property.showFirstPageHead,callback:function(Dr){Tr.$set(Tr.property,"showFirstPageHead",Dr)},expression:"property.showFirstPageHead"}},[Tr._v("显示-第一页的页眉(H)")])],1)]),Rr("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[Rr("legend",[Tr._v("页脚    毫米")]),Rr("div",{staticClass:"control-item"},[Tr._v("距页边界:")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[Tr._v("至页脚(F):")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.footerYMm,callback:function(Dr){Tr.$set(Tr.property,"footerYMm",Dr)},expression:"property.footerYMm"}})],1),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px"}}),Rr("el-checkbox",{model:{value:Tr.property.showFirstPageFoot,callback:function(Dr){Tr.$set(Tr.property,"showFirstPageFoot",Dr)},expression:"property.showFirstPageFoot"}},[Tr._v("显示-第一页的页脚(F)")])],1)]),Rr("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[Rr("legend",[Tr._v("页数")]),Rr("div",{staticClass:"control-item"},[Rr("span",{staticClass:"label",staticStyle:{width:"138px"}},[Tr._v("从第几页开始(S):")]),Rr("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:Tr.property.pageNumber,callback:function(Dr){Tr.$set(Tr.property,"pageNumber",Dr)},expression:"property.pageNumber"}})],1)])])],1)],1),Rr("footer",{staticClass:"modal-footer"},[Rr("el-button",{attrs:{size:"mini",type:"primary"},on:{click:Tr.sureSetPageing}},[Tr._v("确定")]),Rr("el-button",{attrs:{size:"mini"},on:{click:Tr.handleClose}},[Tr._v("取消")])],1)])])},Rd=[],Fd=function(Tr){Object(Qr["a"])(PageSetting,Tr);var Dr=Object(Zr["a"])(PageSetting);function PageSetting(){var Tr;return Object(Xr["a"])(this,PageSetting),Tr=Dr.apply(this,arguments),Tr.fontFamily=Eu["a"],Tr.fontSize=Eu["b"],Tr.alignList=["left","both","right","both"],Tr.lineHeightList=[1.25,1.5,2,2.5,3],Tr.fontSpacingList=[0,1,2,3],Tr.paperStyle=[["自定义",[210,297]],["A3",[297,420]],["A4",[210,297]],["A5",[148,210]],["A6",[105,148]],["B4",[250,353]],["B5",[176,250]],["B6",[125,176]],["16K",[195,270]]],Tr.property={pageSize:"A4",source:"0",printDirection:0,leftMarginMm:12.7,rightMarginMm:12.7,topMarginMm:12.7,bottomMarginMm:12.7,widthMm:210,heightMm:297,headerYMm:3,footerYMm:3,showFirstPageHead:!0,showFirstPageFoot:!0,pageNumber:1,borderColor:"#333333",paintRowLine:0},Tr.textActiveName="first",Tr.backFile=null,Tr.backImgUrl="",Tr.animationClassNames="control-modal-contents page-setting-content animation-in",Tr}return Object(Yr["a"])(PageSetting,[{key:"created",value:function created(){var Tr=this,Dr=this.vueController.pageProperty();Object.keys(Dr).forEach((function(Rr){var Ur=Rr.replace(/_/g,"");"backColor"===Ur||"fontColor"===Ur?Object.prototype.hasOwnProperty.call(Tr.property,Ur)&&("transparent"===Dr[Ur]?Tr.property[Ur]=null:Tr.property[Ur]=Dr[Ur]):Object.prototype.hasOwnProperty.call(Tr.property,Ur)&&(Tr.property[Ur]=Dr[Ur])}))}},{key:"setPrintDirection",value:function setPrintDirection(Tr){var Dr=this;this.property.printDirection=Tr;var Rr=[];if(this.paperStyle.forEach((function(Tr){Tr[0]===Dr.property.pageSize&&(Rr=Tr[1])})),0===this.property.printDirection){var Ur=Rr,Hr=Object(oa["a"])(Ur,2);this.property.widthMm=Hr[0],this.property.heightMm=Hr[1]}else{var Wr=Rr,zr=Object(oa["a"])(Wr,2);this.property.heightMm=zr[0],this.property.widthMm=zr[1]}}},{key:"printStyleChange",value:function printStyleChange(Tr){this.property.paintRowLine=Tr}},{key:"handleClose",value:function handleClose(){this.$emit("closePageSetting",!1)}},{key:"sureSetPageing",value:function sureSetPageing(){var Tr=_objectSpread2(_objectSpread2({},this.property),{},{isHaveBgImage:!1});null===Tr.backColor&&(Tr.backColor="transparent"),null===Tr.fontColor&&(Tr.fontColor="transparent"),this.vueController.setPageProperty(JSON.stringify(_objectSpread2({},Tr))),this.handleClose()}},{key:"toolModalDown",value:function toolModalDown(Tr){Object(Jn["j"])(Tr,this.pageSettingModal,"modal-title")}}]),PageSetting}(mixins(Zn));__decorate([Ref()],Fd.prototype,"pageSettingModal",void 0),__decorate([Prop()],Fd.prototype,"vueController",void 0),Fd=__decorate([an({name:"PageSetting",components:{PrintLineStyle:wc}})],Fd);var jd=Fd,Bd=jd,Ud=(Rr("c933"),normalizeComponent(Bd,PageSettingvue_type_template_id_187fdd38_scoped_true_render,Rd,!1,null,"187fdd38",null)),Hd=Ud.exports,UploadFilevue_type_template_id_4361e817_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-upload",{staticClass:"upload-image",attrs:{action:"",accept:".xml",multiple:!1,"show-file-list":!1,"auto-upload":!1,"file-list":Tr.fileList,"on-change":Tr.uploadFiles}},[Rr("span",{attrs:{size:"small"}},[Tr._v("打开文件")])])},Wd=[],qd=function(Tr){Object(Qr["a"])(UploadFile,Tr);var Dr=Object(Zr["a"])(UploadFile);function UploadFile(){var Tr;return Object(Xr["a"])(this,UploadFile),Tr=Dr.apply(this,arguments),Tr.fileList=[],Tr}return Object(Yr["a"])(UploadFile,[{key:"uploadFiles",value:function uploadFiles(Tr){this.vueController.openLocalFiles(Tr.raw,this.uploadFileCallback)}},{key:"uploadFileCallback",value:function uploadFileCallback(Tr){}}]),UploadFile}(Kr.a);__decorate([Prop()],qd.prototype,"vueController",void 0),qd=__decorate([an({name:"UploadFile"})],qd);var zd=qd,Vd=zd,Kd=normalizeComponent(Vd,UploadFilevue_type_template_id_4361e817_render,Wd,!1,null,null,null),$d=Kd.exports,HistoryLogsvue_type_template_id_13465a06_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{staticClass:"sub-bar-items item-history-logs"},[Rr("span",{staticStyle:{padding:"0 10px"},on:{click:Tr.openHistoryLogs}},[Tr._v("历史记录")]),Tr.showHistoryLogs&&Tr.historyLog?Rr("div",{staticClass:"document-item animation-in"},[Rr("p",{staticStyle:{"text-align":"left","border-bottom":"1px solid #ccc"}},[Rr("i",{staticClass:"el-icon-circle-close"}),Rr("span",{on:{click:Tr.closeHistoryLogs}},[Tr._v("关闭历史记录")])]),Array.isArray(Tr.historyLog)?Rr("ul",Tr._l(Tr.historyLog,(function(Dr,Ur){return Rr("li",{key:Dr.saveTime+Math.random(0,1)},[Rr("div",[Rr("p",{staticClass:"flex-rows"},[Rr("span",{staticStyle:{"padding-left":"4px"}},[Tr._v("缓存时间:"+Tr._s(Dr.saveTime))]),Rr("span",{staticClass:"cover",on:{click:function(Dr){return Tr.manualSaveLocalStorage(Ur)}}},[Tr._v("恢复")])]),Tr._l(Dr.logs,(function(Dr){return[Rr("p",{key:Dr.operTime},[Rr("span",[Tr._v("操作类型:"+Tr._s(Dr._operType))]),Rr("span",[Tr._v("操作时间:"+Tr._s(Tr.dateFormat(Dr._operTime)))]),Rr("span",[Tr._v("操作内容:"+Tr._s(Dr._operText))])])]}))],2)])})),0):Tr._e()]):Tr._e()])},Gd=[],Jd=function(Tr){Object(Qr["a"])(HistoryLogs,Tr);var Dr=Object(Zr["a"])(HistoryLogs);function HistoryLogs(){var Tr;return Object(Xr["a"])(this,HistoryLogs),Tr=Dr.apply(this,arguments),Tr.showHistoryLogs=!1,Tr.historyLog=null,Tr.dateFormat=Jn["d"],Tr}return Object(Yr["a"])(HistoryLogs,[{key:"manualSaveLocalStorage",value:function manualSaveLocalStorage(Tr){var Dr=this;this.vueController.hoLocalStorage().getLocalStorage().then((function(Rr){Dr.vueController.openXml(Rr[Tr].xml)}))}},{key:"getLocalStorage",value:function getLocalStorage(){var Tr=this;this.historyLog=[],this.vueController.hoLocalStorage().getLocalStorage().then((function(Dr){Dr.forEach((function(Dr){Tr.historyLog.push({saveTime:Dr.saveTime,logs:Dr.logs})}))}))}},{key:"openHistoryLogs",value:function openHistoryLogs(){this.showHistoryLogs=!this.showHistoryLogs,this.getLocalStorage()}},{key:"closeHistoryLogs",value:function closeHistoryLogs(){this.showHistoryLogs=!1,this.historyLog=null}}]),HistoryLogs}(mixins(Nu));__decorate([Prop()],Jd.prototype,"vueController",void 0),Jd=__decorate([an({name:"HistoryLogs"})],Jd);var Xd=Jd,Yd=Xd,Qd=(Rr("cae5"),normalizeComponent(Yd,HistoryLogsvue_type_template_id_13465a06_scoped_true_render,Gd,!1,null,"13465a06",null)),Zd=Qd.exports,eh=function(Tr){Object(Qr["a"])(ToolBarChild,Tr);var Dr=Object(Zr["a"])(ToolBarChild);function ToolBarChild(){var Tr;return Object(Xr["a"])(this,ToolBarChild),Tr=Dr.apply(this,arguments),Tr.isPageSettingShow=!1,Tr.isLoginModel=!1,Tr.cleanAllFormat=!1,Tr.toolMenuOpenPath=[],Tr.toolMenuOpenPathTest=[],Tr.toolPrintOpenPath=[],Tr.printStatus="",Tr.isPrinted=!1,Tr.printModal=!1,Tr}return Object(Yr["a"])(ToolBarChild,[{key:"isOpen",get:function get(){return!!this.toolMenuOpenPath.includes("tables")}},{key:"createNew",value:function createNew(Tr){this.vueController.newFile(Tr)}},{key:"openPageSettings",value:function openPageSettings(){this.isPageSettingShow=!0}},{key:"closePageSetting",value:function closePageSetting(Tr){this.isPageSettingShow=Tr}},{key:"closedHoPrintModal",value:function closedHoPrintModal(Tr){"sure"===Tr&&(this.isPrinted=!1),this.printModal=!1}},{key:"printTpPDF",value:function printTpPDF(){this.isPrinted?this.vueController.printPromisePDF(1):this.printModal=!0,this.isPrinted=!1,this.printStatus="",this.closeToolPrint()}},{key:"printSelected",value:function printSelected(){this.printStatus="selected",this.vueController.setEditorStatus(2,1),this.isPrinted||(this.isPrinted=!0)}},{key:"printCaret",value:function printCaret(){this.printStatus="caret",this.vueController.setEditorStatus(2,0),this.isPrinted||(this.isPrinted=!0)}},{key:"printContinue",value:function printContinue(){this.printStatus="continue",this.vueController.setEditorStatus(2,3),this.isPrinted||(this.isPrinted=!0)}},{key:"saveFile",value:function saveFile(){}},{key:"unDoOperateClick",value:function unDoOperateClick(){this.vueController.unDoOperate()}},{key:"reDoOperateClick",value:function reDoOperateClick(){this.vueController.reDoOperate()}},{key:"clearFormatClick",value:function clearFormatClick(){this.cleanAllFormat=!0}},{key:"formatPainterClick",value:function formatPainterClick(){var Tr=document.querySelector(".ho-format-paint");this.vueController.formatPainter(Tr)}},{key:"copyOperateClick",value:function copyOperateClick(){}},{key:"cutOperateClick",value:function cutOperateClick(){}},{key:"pasteOperateClick",value:function pasteOperateClick(){}},{key:"closeToolMenus",value:function closeToolMenus(Tr){var Dr=this;this.toolMenuOpenPath.length>0&&(this.toolMenuOpenPath.forEach((function(Tr){Dr.toolMenus.closeMenu(Tr)})),this.toolMenuOpenPath=[])}},{key:"toolMenuSelected",value:function toolMenuSelected(Tr,Dr){this.toolMenuOpenPath=Dr}},{key:"closeToolMenusTest",value:function closeToolMenusTest(Tr){var Dr=this;this.toolMenuOpenPathTest.length>0&&(this.toolMenuOpenPathTest.forEach((function(Tr){Dr.toolMenusTest.closeMenu(Tr)})),this.toolMenuOpenPathTest=[])}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(Tr,Dr){this.toolMenuOpenPathTest=Dr}},{key:"toolPrintSelected",value:function toolPrintSelected(Tr,Dr){this.toolPrintOpenPath=Dr,Dr.includes("tool-printed")?this.isPrinted=!0:(this.isPrinted=!1,this.printStatus="")}},{key:"openPrintPreview",value:function openPrintPreview(){this.isPrinted?this.toolPrintOpenPath=["file"]:this.toolPrintOpenPath=["file","tool-printed"],this.isPrinted=!1,this.printStatus="",this.vueController.setEditorStatus(1)}},{key:"toolPrintClosed",value:function toolPrintClosed(){this.isPrinted=!1,this.printStatus="",this.vueController.setEditorStatus(1)}},{key:"closeToolPrint",value:function closeToolPrint(){var Tr=this;!this.isPrinted&&this.toolPrintOpenPath.length>0&&this.toolPrintOpenPath.forEach((function(Dr){Tr.toolPrint.closeMenu(Dr)}))}},{key:"saveAsFile",value:function saveAsFile(Tr){var Dr=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档",Rr=this.vueController.saveAsFile(Tr,!0);"html"!==Tr&&this.downloadFile(Rr,Dr,Tr)}},{key:"saveAsFileTest",value:function saveAsFileTest(Tr){var Dr="电子病历文档",Rr="返回的JSON串",Ur=this.vueController.getDocXml(Tr);this.downloadFile(Ur,Dr,Tr);var Hr=this.vueController.getDocJson();this.downloadFile(Hr,Rr,"plain")}},{key:"uploadDataSet",value:function uploadDataSet(){this.vueController.uploadDataSet()}},{key:"downloadFile",value:function downloadFile(Tr,Dr,Rr){var Ur;"json"===Rr?(Ur=window.URL.createObjectURL(new Blob([Tr],{type:"text/plain;charset=utf-8"})),Dr+=".json"):Ur=window.URL.createObjectURL(new Blob([Tr],{type:"text/".concat(Rr)}));var Hr=document.createElement("a");Hr.style.display="none",Hr.href=Ur,Hr.setAttribute("download",Dr),document.body.appendChild(Hr),Hr.click(),this.$nextTick((function(){return Hr.remove()}))}},{key:"setModalStatus",value:function setModalStatus(Tr){this.$emit("setModalStatus",Tr)}},{key:"render",value:function render(){var Tr=this,Dr=arguments[0],Rr=this.editJson,Ur={family:Rr.family,size:Rr.size,enlargeSize:Rr.enlargeSize,decreaseSize:Rr.decreaseSize,superScript:Rr.superScript,subScript:Rr.subScript,bold:Rr.bold,italic:Rr.italic,underline:Rr.underline,strikeout:Rr.strikeout,fontColor:Rr.fontColor,backColor:Rr.backColor},Hr={alignLeft:Rr.alignLeft,alignCenter:Rr.alignCenter,alignRight:Rr.alignRight,alignBoth:Rr.alignBoth,addIndent:Rr.addIndent,decreaseIndent:Rr.decreaseIndent,setHeight:Rr.setHeight},Wr=Object.keys(Ur).filter((function(Tr){return Ur[Tr]})).length>0,zr=Object.keys(Hr).filter((function(Tr){return Hr[Tr]})).length>0,Vr={vueController:this.vueController};return Dr("ul",{class:"sub-bar"},[Rr.editFile?Dr("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-print"},[Dr("el-menu",{ref:"toolPrint",style:"width: 76px; height: 25px;display: flex;justify-content: center;",directives:[{name:"click-outside",value:this.closeToolPrint.bind(this)}],on:{close:this.toolPrintClosed.bind(this),open:this.toolPrintSelected.bind(this)},attrs:{mode:"horizontal","menu-trigger":"click","unique-opened":!0}},[Dr("el-submenu",{attrs:{"popper-class":"insert-menus insert-paragraph inset-print",index:"file"}},[Dr("template",{slot:"title"},[Dr("span",["文件"])]),Dr("el-submenu",{attrs:{index:"createNew","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("span",["新建"])]),Dr("el-menu-item",{attrs:{index:"caseHistory"},nativeOn:{click:function click(){return Tr.createNew("caseHistory")}}},["病历"]),Dr("el-menu-item",{attrs:{index:"form"},nativeOn:{click:function click(){return Tr.createNew("form")}}},["表单"])]),Rr.openFile&&Dr("el-menu-item",{attrs:{index:"uploadFile"}},[Dr($d,{attrs:_objectSpread2({},Vr)})]),Rr.pageSetting&&Dr("el-menu-item",{attrs:{index:"openPageSettings"},nativeOn:{click:this.openPageSettings.bind(this)}},["页面设置"]),Rr.saveAsFile&&Dr("el-submenu",{attrs:{index:"saveAsFile","popper-append-to-body":!0}},[Dr("template",{slot:"title"},[Dr("span",["另存为"])]),Dr("el-menu-item",{attrs:{index:"xml"},nativeOn:{click:function click(){return Tr.saveAsFile("xml")}}},["XML"]),Dr("el-menu-item",{attrs:{index:"html"},nativeOn:{click:function click(){return Tr.saveAsFile("html")}}},["HTML"]),Dr("el-menu-item",{attrs:{index:"plain"},nativeOn:{click:function click(){return Tr.saveAsFile("plain")}}},["TXT"]),Dr("el-menu-item",{attrs:{index:"json"},nativeOn:{click:function click(){return Tr.saveAsFile("json")}}},["JSON"])]),Dr("el-menu-item",{attrs:{disabled:!0,index:"printed"},nativeOn:{click:this.printTpPDF.bind(this)}},[Dr("span",{class:"print"},["打印"])]),Dr(zu,{attrs:_objectSpread2({},{vueController:this.vueController,printBeforeStatus:1,printModal:this.printModal}),on:{closed:this.closedHoPrintModal.bind(this)}}),Rr.printed&&this.isPrinted&&Dr("el-menu-item",{attrs:{index:"tool-printed",disabled:!0},nativeOn:{click:this.openPrintPreview.bind(this)}},[Dr("span",{class:"print-selected"},[this.isPrinted?"退出打印预览":"打印预览"])]),Rr.printSelected?Dr("el-menu-item",{attrs:{disabled:!0,index:"printSelected"},nativeOn:{click:this.printSelected.bind(this)}},[Dr("span",{class:{print:!0,"print-selected":"selected"===this.printStatus}},["打印拖动鼠标选中区域"])]):null,Rr.printCaret?Dr("el-menu-item",{attrs:{disabled:!0,index:"printCaret"},nativeOn:{click:this.printCaret.bind(this)}},[Dr("span",{class:{print:!0,"print-selected":"caret"===this.printStatus}},["打印鼠标点击位置"])]):null,Rr.printContinue?Dr("el-menu-item",{attrs:{disabled:!0,index:"printContinue"},nativeOn:{click:this.printContinue.bind(this)}},[Dr("span",{class:{print:!0,"print-selected":"continue"===this.printStatus}},["续打"])]):null])])]):null,this.isPageSettingShow?Dr(Hd,{attrs:_objectSpread2({},Vr),on:{closePageSetting:this.closePageSetting.bind(this)}}):null,Rr.unDoOperate||Rr.reDoOperate?Dr("li",{class:"sub-bar-items sub-bar-not-item-hover"},[Rr.unDoOperate?Dr(ns,{attrs:_objectSpread2({},{title:"撤销",svg:"unDoOperate"}),nativeOn:{click:this.unDoOperateClick.bind(this)}}):null,Rr.reDoOperate?Dr(ns,{attrs:_objectSpread2({},{title:"恢复",svg:"reDoOperate"}),nativeOn:{click:this.reDoOperateClick.bind(this)}}):null,Rr.formatPaint?Dr(ns,{attrs:_objectSpread2({},{title:"格式刷",svg:"formatPaint",name:"ho-format-paint"}),nativeOn:{click:this.formatPainterClick.bind(this)}}):null]):null,Wr?Dr(Ku,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},Vr),{},{family:Ur,textStyle:this.textStyle}))}):null,zr?Dr(Gu,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},Vr),{},{paragraph:Hr,align:this.textStyle.aligned,lineSpace:this.textStyle.lineSpace}))}):null,Rr.updateDocument?Dr(Cd):null,Rr.findModal?Dr("li",{class:"sub-bar-items",on:{click:function click(){return Tr.setModalStatus(["find","add",""])}}},[Dr(ns,{attrs:_objectSpread2({},{title:"查找替换",svg:"find"})})]):null,Dr(Zd,{attrs:_objectSpread2({},_objectSpread2({},Vr))})])}}]),ToolBarChild}(Kr.a);__decorate([Prop()],eh.prototype,"vueController",void 0),__decorate([Prop()],eh.prototype,"editJson",void 0),__decorate([Prop()],eh.prototype,"uploadImageParams",void 0),__decorate([Prop()],eh.prototype,"textStyle",void 0),__decorate([Ref()],eh.prototype,"toolMenus",void 0),__decorate([Ref()],eh.prototype,"toolMenusTest",void 0),__decorate([Ref()],eh.prototype,"toolPrint",void 0),eh=__decorate([an({name:"ToolBarChild",components:{HoPrintDialog:zu,PageSetting:Hd,ToolFamily:Ku,ToolTables:Ad,ToolControl:md,UpdateDocument:Cd,ToolParagraph:Gu,UploadFile:$d,Poper:ns,HistoryLogs:Zd}})],eh);var th=eh,ToolControlvue_type_template_id_0d21dc43_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"sub-bar"},[Tr._t("insertBefore"),Tr.insert.delimiter?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("delimiter")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M535.630769 606.523077c55.138462 55.138462 106.338462 110.276923 161.476923 165.415385 23.630769 23.630769-11.815385 55.138462-35.446154 35.446154-47.261538-47.261538-94.523077-98.461538-141.784615-145.723077-47.261538 51.2-98.461538 98.461538-145.723077 149.661538-23.630769 23.630769-59.076923-11.815385-35.446154-35.446154 55.138462-55.138462 110.276923-110.276923 165.415385-165.415385C508.061538 598.646154 527.753846 598.646154 535.630769 606.523077z"}}),Rr("path",{attrs:{d:"M500.184615 417.476923c-55.138462-55.138462-110.276923-110.276923-165.415385-165.415385C311.138462 228.430769 346.584615 192.984615 370.215385 216.615385c47.261538 51.2 98.461538 98.461538 145.723077 149.661538 47.261538-47.261538 94.523077-98.461538 141.784615-145.723077 23.630769-23.630769 59.076923 11.815385 35.446154 35.446154-55.138462 55.138462-106.338462 110.276923-161.476923 165.415385C527.753846 425.353846 508.061538 425.353846 500.184615 417.476923z"}}),Rr("path",{attrs:{d:"M1024 515.938462c0 11.815385-27.569231 23.630769-63.015385 23.630769l-894.030769 0c-35.446154 0-63.015385-11.815385-63.015385-23.630769l0 0c0-11.815385 27.569231-23.630769 63.015385-23.630769l894.030769 0C996.430769 492.307692 1024 504.123077 1024 515.938462L1024 515.938462z"}})]),Rr("span",[Tr._v("分割符")])]):Tr._e(),Tr.insert.uploadImage?Rr("li",{staticClass:"sub-bar-items"},[Rr("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":Tr.fileList,"show-file-list":!1,"auto-upload":!1,"on-change":Tr.uploadImage,accept:"image/*"}},[Rr("svg",{staticStyle:{transform:"translateY(3px)"},attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("g",{attrs:{transform:"translate(1 1)"}},[Rr("path",{attrs:{stroke:"none",d:"M1 0h12c.6 0 1 .4 1 1v11c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1zm0 1v11h12V1H1z"}}),Rr("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),Rr("path",{attrs:{stroke:"none",d:"M8.5 11.2l-4-4.1L1 10.7V9.2c1.7-1.6 2.7-2.5 3-2.8.4-.5.7-.4 1 0L8.5 10 11 7.3c.4-.5.6-.5 1-.1l2 2.8v1.5l-2.5-3.4-3 3.1z"}})])]),Rr("span",{attrs:{size:"small"}},[Tr._v("图片")])])],1):Tr._e(),Tr.insert.barcode?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("barcode")}}},[Rr("svg",{staticStyle:{transform:"translateY(5px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M65.7 158.7h134v703h-134zM703.3 158.7h134v703h-134zM263.4 158.7h57.4v703h-57.4zM901 158.7h57.4v703H901zM572.6 158.7h76.6v703h-76.6zM394.1 158.7H509v703H394.1z"}})]),Rr("span",[Tr._v("条形码")])]):Tr._e(),Tr.insert.qrcode?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("qrcode")}}},[Rr("svg",{staticStyle:{transform:"translateY(6px)"},attrs:{viewBox:"0 0 1041 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M948.906667 931.84h92.16V1024h-92.16zM948.906667 559.786667v184.32H853.333333v-184.32H576.853333V1024h92.16V651.946667h92.16v184.32h279.893334v-276.48z"}}),Rr("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),Rr("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),Rr("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),Rr("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),Rr("span",[Tr._v("二维码")])]):Tr._e(),Tr.insert.express?Rr("HoMedicalExpression",{on:{openExpress:Tr.openExpress}}):Tr._e(),Tr.insert.datetime?Rr("li",{staticClass:"sub-bar-items"},[Rr("HoDateTime",{attrs:{vueController:Tr.vueController},on:{setModal:Tr.createControl}})],1):Tr._e(),Tr.insert.select?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("select")}}},[Rr("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M890.432646 976.724088l649.322886-750.693969A136.987951 136.987951 0 0 0 1435.64469 0H136.998917a136.987951 136.987951 0 0 0-104.110842 226.030119l649.322886 749.32409a136.987951 136.987951 0 0 0 208.221685 1.369879z"}})]),Rr("span",[Tr._v("下拉框")])]):Tr._e(),Tr.insert.text?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("text")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M34.909091 474.763636c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818zM51.2 279.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 4.654545 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m921.6-316.509091c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V442.181818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0-104.727272c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581819c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581819z m0 209.454545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m16.290909-300.218182c9.309091 0 16.290909-6.981818 16.290909-16.290909V230.4c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818c0 9.309091 6.981818 16.290909 16.290909 16.290909z m-16.290909 404.945455c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909V651.636364c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909v32.581818z m0 107.054545c0 9.309091 6.981818 16.290909 16.290909 16.290909 9.309091 0 16.290909-6.981818 16.290909-16.290909v-32.581818c0-9.309091-6.981818-16.290909-16.290909-16.290909-9.309091 0-16.290909 6.981818-16.290909 16.290909V791.272727z m-481.745455 165.236364H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727272 0h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m211.781818 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-9.309091-16.290909-16.290909-16.290909z m-318.836364 0H230.4c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m-104.727273-11.636364H109.381818V930.909091c0-9.309091-6.981818-18.618182-18.618182-18.618182H65.163636v-53.527273c0-9.309091-6.981818-18.618182-16.290909-18.618181-9.309091 0-16.290909 6.981818-16.290909 18.618181v53.527273H18.618182c-9.309091 0-18.618182 6.981818-18.618182 18.618182v74.472727c0 9.309091 6.981818 18.618182 18.618182 18.618182H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182v-16.290909h48.872727c9.309091-2.327273 18.618182-11.636364 18.618182-18.618182-2.327273-11.636364-20.945455-25.6-20.945455-25.6z m528.29091 11.636364h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909z m104.727272 0h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909zM442.181818 65.163636h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H442.181818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m-104.727273 0h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m209.454546 0H581.818182c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909-2.327273 6.981818 6.981818 16.290909 13.963636 16.290909z m-316.509091 0h32.581818c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909H230.4c-9.309091 0-16.290909 6.981818-16.290909 18.618182 0 6.981818 6.981818 13.963636 16.290909 13.963636zM158.254545 32.581818H109.381818V18.618182c0-11.636364-9.309091-18.618182-18.618182-18.618182H18.618182C9.309091 0 0 6.981818 0 18.618182V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h16.290909v48.872727c2.327273 9.309091 11.636364 18.618182 18.618182 18.618182 9.309091 0 23.272727-18.618182 23.272727-18.618182V109.381818H93.090909c9.309091 0 18.618182-6.981818 18.618182-18.618182V65.163636h48.872727c9.309091 0 16.290909-6.981818 16.290909-16.290909-2.327273-9.309091-9.309091-16.290909-18.618182-16.290909z m495.709091 32.581818h32.581819c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581819c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 6.981818 6.981818 16.290909 16.290909 16.290909z m104.727273 0H791.272727c9.309091 0 16.290909-6.981818 16.290909-16.290909 0-9.309091-6.981818-16.290909-16.290909-16.290909h-32.581818c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909zM1005.381818 0H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v16.290909h-48.872727c-9.309091 2.327273-18.618182 11.636364-18.618182 18.618182 0 9.309091 18.618182 23.272727 18.618182 23.272727h48.872727V93.090909c0 9.309091 6.981818 18.618182 18.618182 18.618182h25.6v53.527273c0 9.309091 6.981818 18.618182 16.290909 18.618181 9.309091 0 16.290909-6.981818 16.290909-18.618181V109.381818h16.290909c9.309091 0 18.618182-6.981818 18.618182-18.618182V18.618182c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 912.290909h-16.290909v-48.872727c-2.327273-9.309091-11.636364-18.618182-18.618182-18.618182-9.309091 0-23.272727 18.618182-23.272727 18.618182v48.872727H930.909091c-9.309091 0-18.618182 6.981818-18.618182 18.618182v25.6h-48.872727c-9.309091 0-16.290909 6.981818-16.290909 16.290909 0 9.309091 6.981818 16.290909 16.290909 16.290909h48.872727v16.290909c0 9.309091 6.981818 18.618182 18.618182 18.618182h74.472727c9.309091 0 18.618182-6.981818 18.618182-18.618182V930.909091c-2.327273-11.636364-9.309091-18.618182-18.618182-18.618182z m0 0"}}),Rr("path",{attrs:{d:"M781.963636 288.581818c0-11.636364 0-20.945455 2.327273-30.254545 0-9.309091 2.327273-16.290909 2.327273-25.6 0-11.636364-6.981818-20.945455-18.618182-23.272728-6.981818-2.327273-18.618182-2.327273-30.254545-2.327272H288.581818c-11.636364 0-20.945455 2.327273-30.254545 4.654545-18.618182 4.654545-20.945455 18.618182-20.945455 25.6 2.327273 20.945455 4.654545 41.890909 4.654546 62.836364 0 20.945455-2.327273 41.890909-4.654546 62.836363 0 4.654545 0 9.309091 9.309091 16.29091 4.654545 2.327273 9.309091 4.654545 13.963636 4.654545 4.654545 0 9.309091 0 13.963637-2.327273 6.981818-2.327273 11.636364-9.309091 13.963636-16.290909 4.654545-20.945455 9.309091-39.563636 13.963637-53.527273 4.654545-11.636364 11.636364-20.945455 18.618181-27.927272 6.981818-6.981818 16.290909-11.636364 27.927273-13.963637 11.636364-2.327273 27.927273-4.654545 48.872727-4.654545 27.927273 0 41.890909 4.654545 46.545455 6.981818 6.981818 4.654545 9.309091 18.618182 9.309091 27.927273v372.363636c0 18.618182 0 30.254545-2.327273 41.890909-2.327273 6.981818-4.654545 13.963636-9.309091 18.618182-4.654545 4.654545-11.636364 6.981818-18.618182 9.309091-9.309091 2.327273-23.272727 4.654545-39.563636 6.981818-6.981818 0-11.636364 4.654545-16.290909 11.636364-2.327273 4.654545-4.654545 9.309091-4.654546 16.290909 0 4.654545 2.327273 11.636364 4.654546 16.290909 4.654545 6.981818 9.309091 9.309091 18.618182 9.309091 18.618182 0 39.563636 0 62.836363-2.327273 44.218182-4.654545 83.781818-4.654545 123.345455 0 20.945455 2.327273 41.890909 2.327273 65.163636 2.327273 6.981818 0 13.963636-2.327273 18.618182-9.309091 2.327273-4.654545 4.654545-9.309091 4.654546-16.290909 0-4.654545-2.327273-11.636364-4.654546-16.290909-4.654545-11.636364-9.309091-16.290909-18.618182-16.290909-16.290909-2.327273-30.254545-4.654545-41.890909-6.981818-9.309091-2.327273-13.963636-4.654545-18.618182-9.309091-4.654545-4.654545-6.981818-9.309091-6.981818-16.290909-2.327273-9.309091-2.327273-23.272727-2.327273-41.89091v-372.363636c0-16.290909 2.327273-25.6 9.309091-27.927273 6.981818-2.327273 20.945455-6.981818 48.872728-6.981818 16.290909 0 32.581818 2.327273 44.218181 4.654546s20.945455 6.981818 27.927273 13.963636c6.981818 6.981818 13.963636 16.290909 18.618182 27.927273 4.654545 13.963636 9.309091 30.254545 11.636364 53.527272 2.327273 6.981818 6.981818 13.963636 13.963636 16.29091 4.654545 2.327273 9.309091 2.327273 13.963636 2.327272 4.654545 0 9.309091-2.327273 13.963637-4.654545 6.981818-4.654545 9.309091-11.636364 9.309091-16.290909 0-11.636364-2.327273-23.272727-2.327273-34.909091 4.654545-13.963636 4.654545-25.6 4.654545-37.236364z"}})]),Rr("span",[Tr._v("文本域")])]):Tr._e(),Tr.insert.radioBox?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("RadioBox")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M511.262 3.070c-282.949 0-507.681 227.919-507.681 509.095 0 281.143 227.919 509.092 509.063 509.092 281.175 0 509.095-227.948 509.095-509.092 0-281.175-227.527-509.095-510.477-509.095zM513.578 926.348c-230.265 0-416.953-186.688-416.953-416.951 0-230.292 186.688-416.98 416.953-416.98 230.293 0 416.951 186.689 416.951 416.98 0 230.265-186.658 416.951-416.951 416.951zM820.797 327.158c-17.682-18.585-46.313-18.585-63.99 0l-292.576 307.665-167.863-156.253c-17.683-18.553-46.311-18.553-63.995 0-17.653 18.587-17.653 48.719 0 67.303l195.65 182.058c16.923 17.817 43.956 18.539 61.716 2.196 8.935-1.589 17.508-5.991 24.41-13.234l306.649-322.463c17.653-18.583 17.653-48.685 0.002-67.27z"}})]),Rr("span",[Tr._v("单选框")])]):Tr._e(),Tr.insert.checkBox?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("CheckBox")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M877.714286 0H146.285714a146.285714 146.285714 0 0 0-146.285714 146.285714v731.428572a146.285714 146.285714 0 0 0 146.285714 146.285714h731.428572a146.285714 146.285714 0 0 0 146.285714-146.285714V146.285714a146.285714 146.285714 0 0 0-146.285714-146.285714z m73.142857 877.714286a73.142857 73.142857 0 0 1-73.142857 73.142857H146.285714a73.142857 73.142857 0 0 1-73.142857-73.142857V146.285714a73.142857 73.142857 0 0 1 73.142857-73.142857h731.428572a73.142857 73.142857 0 0 1 73.142857 73.142857z"}}),Rr("path",{attrs:{d:"M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"}})]),Rr("span",[Tr._v("复选框")])]):Tr._e(),Tr.insert.mathFormula?Rr("li",{staticClass:"sub-bar-items"},[Rr("HoFormula",{attrs:{vueController:Tr.vueController}})],1):Tr._e(),Tr.insert.sign?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("sign")}}},[Rr("span",[Tr._v("签名")])]):Tr._e(),Tr.insert.pageInfoes?Rr("li",{staticClass:"sub-bar-items",on:{click:function(Dr){return Tr.createControl("pageInfoes")}}},[Rr("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M732.258937 608.38132H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237038h283.372625a32.237037 32.237037 0 0 0 0-64.474075zM793.929791 0h-439.446055a132.41095 132.41095 0 0 0-126.144928 127.793881l-36.689211 1.071819A127.1343 127.1343 0 0 0 70.533977 256.082448v640.041223a131.916264 131.916264 0 0 0 126.144928 127.793881h472.837359a132.41095 132.41095 0 0 0 126.144928-127.793881h31.659903a132.41095 132.41095 0 0 0 126.144928-127.79388V214.446377zM669.516264 959.525926H196.349114a65.958132 65.958132 0 0 1-62.742673-63.89694V256.164895a62.907568 62.907568 0 0 1 60.0219-62.742673l34.463124-1.071819v575.567149a131.916264 131.916264 0 0 0 126.144928 127.793881h378.022544a67.277295 67.277295 0 0 1-62.990016 63.814493z m220.547504-191.690821a66.37037 66.37037 0 0 1-62.742673 63.89694H353.98905a65.958132 65.958132 0 0 1-62.742673-63.89694V127.793881A66.37037 66.37037 0 0 1 353.98905 63.89694h376.703382c-0.577134 74.202899 0 25.558776 0 25.558777 0 66.700161 34.463124 127.216747 101.657971 127.216747h57.713365zM732.258937 448.350403H448.886312a32.154589 32.154589 0 0 0-31.659903 32.237037 31.742351 31.742351 0 0 0 31.659903 32.237037h283.372625a32.237037 32.237037 0 0 0 0-64.474074z"}})]),Rr("span",[Tr._v("页码页数信息")])]):Tr._e(),Tr._t("hoInsertItem"),Tr.insert.specialChars?Rr("li",{staticClass:"sub-bar-items"},[Rr("HoSpecialChars",{attrs:{vueController:Tr.vueController}})],1):Tr._e()],2)},rh=[],HoSpecialCharsvue_type_template_id_18ad3397_scoped_true_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("svg",{staticStyle:{transform:"translateY(0px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("path",{attrs:{d:"M825.163595 883.651765H416.226184v-10.842353c62.162824-39.996235 99.629176-117.157647 99.629176-211.727059 0-32.768-4.999529-64.813176-12.047059-95.232H727.642654a18.432 18.432 0 0 0 18.130824-18.672941V477.605647a18.432 18.432 0 0 0-18.130824-18.612706h-254.192941c-16.263529-52.525176-30.358588-106.194824-30.358588-163.84 0-101.074824 77.101176-163.117176 198.053647-163.117176 48.790588 0 96.496941 9.517176 137.095529 24.395294 11.806118 4.457412 24.094118-4.638118 24.094118-17.648941V46.983529a18.853647 18.853647 0 0 0-11.866353-17.468235A448.752941 448.752941 0 0 0 630.904772 0c-210.823529 0-343.762824 103.424-343.762824 279.491765 0 61.138824 15.661176 120.892235 33.129412 179.2H198.776772A18.432 18.432 0 0 0 180.706184 477.304471V546.936471c0 10.24 8.192 18.612706 18.130823 18.612705H351.172066c7.710118 34.153412 13.372235 68.306824 13.372235 102.701177 0 105.050353-65.355294 193.536-165.165176 218.895059a18.552471 18.552471 0 0 0-13.854118 18.070588v89.509647c0 10.24 8.192 18.612706 18.130824 18.612706H825.223831a18.432 18.432 0 0 0 18.130823-18.672941V902.324706a18.432 18.432 0 0 0-18.130823-18.672941z"}})]),Rr("span",[Tr._v("特殊字符")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{staticClass:"special-characters",attrs:{disabled:""}},[Rr("section",[Rr("ul",[Rr("li",[Rr("header",[Tr._v("特殊字符")]),Rr("p",{staticClass:"chars-list special-chars-list"},Tr._l(Tr.specialChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("罗马字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.romanChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)]),Rr("li",[Rr("header",[Tr._v("数学字符")]),Rr("p",{staticClass:"chars-list"},Tr._l(Tr.mathChars,(function(Dr){return Rr("span",{key:Dr,on:{click:function(Rr){return Tr.specialCharsClick(Dr)}}},[Tr._v(Tr._s(Dr))])})),0)])])])])],1)],1)},nh=[],ih=function(Tr){Object(Qr["a"])(HoSpecialChars,Tr);var Dr=Object(Zr["a"])(HoSpecialChars);function HoSpecialChars(){var Tr;return Object(Xr["a"])(this,HoSpecialChars),Tr=Dr.apply(this,arguments),Tr.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],Tr.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],Tr.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],Tr.usedChars=[],Tr}return Object(Yr["a"])(HoSpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(Tr){if(this.vueController.insertSpecialChars("",Tr),this.usedChars.includes(Tr))return!1;this.usedChars.unshift(Tr),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var Tr=this;this.$nextTick((function(){return Tr.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),HoSpecialChars}(mixins(Nu));__decorate([Prop()],ih.prototype,"controlStatus",void 0),__decorate([Prop()],ih.prototype,"vueController",void 0),ih=__decorate([an({name:"HoSpecialChars"})],ih);var ah=ih,oh=ah,sh=(Rr("34b7"),normalizeComponent(oh,HoSpecialCharsvue_type_template_id_18ad3397_scoped_true_render,nh,!1,null,"18ad3397",null)),lh=sh.exports,HoDateTimevue_type_template_id_5e85d543_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("svg",{staticStyle:{transform:"translateY(0px)"},attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[Rr("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),Rr("path",{attrs:{d:"M3.323286 405.074141v577.095823c0 23.005753 18.822889 41.828641 41.828641 41.828642h933.696146c23.005753 0 41.828641-18.822889 41.828641-41.828642v-577.095823H3.323286z m295.734072 386.159229h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.487244 27.885761-27.885761 27.885761m283.110188 145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m0-145.005957h-107.197048c-15.4027 0-27.885761-12.484455-27.885761-27.885761s12.483061-27.885761 27.885761-27.885761h107.197048c15.399911 0 27.885761 12.484455 27.885761 27.885761s-12.485849 27.885761-27.885761 27.885761m249.973539 145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761m0-145.005957h-107.197049c-15.399911 0-27.885761-12.484455-27.88576-27.885761s12.485849-27.885761 27.88576-27.885761h107.197049c15.4027 0 27.885761 12.484455 27.88576 27.885761s-12.484455 27.885761-27.88576 27.885761M293.55968 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525786 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525786 42.525786M719.447753 230.408889c-23.486782 0-42.525785-19.039003-42.525785-42.525786V42.525785c0-23.486782 19.039003-42.525785 42.525785-42.525785s42.525785 19.039003 42.525785 42.525785v145.357318c0 23.486782-19.039003 42.525785-42.525785 42.525786","p-id":"2003"}}),Rr("path",{attrs:{d:"M978.848073 101.085884H787.767867v86.797219c0 37.730829-30.587891 68.320114-68.320114 68.320114s-68.320114-30.589285-68.320114-68.320114V101.085884H361.879794v86.797219c0 37.730829-30.589285 68.320114-68.320114 68.320114-37.732223 0-68.320114-30.589285-68.320114-68.320114V101.085884H45.151927c-23.005753 0-41.828641 18.822889-41.828641 41.828641v206.388094h1017.353428V142.914525c0-23.005753-18.822889-41.828641-41.828641-41.828641"}})]),Rr("span",[Tr._v("日期时间")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Tr._l(Tr.dateFormatValue,(function(Dr,Ur){return Rr("el-dropdown-item",{key:Dr+Ur,staticClass:"date-time-item",attrs:{index:Tr.dateFormatList[Ur]},nativeOn:{click:function(Rr){return Tr.selectedDate(Tr.dateFormatList[Ur],Dr)}}},[Tr._v(Tr._s(Dr))])})),Rr("el-dropdown-item",{staticClass:"date-time-item",nativeOn:{click:function(Dr){return Tr.selectedDate("more","")}}},[Tr._v("更多日期属性")])],2)],1)},ch=[],uh=function(Tr){Object(Qr["a"])(HoDateTime,Tr);var Dr=Object(Zr["a"])(HoDateTime);function HoDateTime(){var Tr;return Object(Xr["a"])(this,HoDateTime),Tr=Dr.apply(this,arguments),Tr.dateFormatList=Jn["e"],Tr.dateFormatValue=[],Tr.dateFormat=Jn["d"],Tr}return Object(Yr["a"])(HoDateTime,[{key:"created",value:function created(){var Tr=this,Dr=[];this.dateFormatList.forEach((function(Rr,Ur){Ur<10&&Dr.push(Tr.dateFormat("",Rr))})),this.dateFormatValue=[].concat(Dr)}},{key:"selectedDate",value:function selectedDate(Tr,Dr){if("more"===Tr)this.$emit("setModal","date");else{var Rr={id:this.vueController.generateID("DT"),name:"",text:Dr,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:Tr,readType:0};this.vueController.insertDateTime("add",JSON.stringify(Rr))}}}]),HoDateTime}(mixins(Nu));__decorate([Prop()],uh.prototype,"vueController",void 0),uh=__decorate([an({name:"HoDateTime"})],uh);var dh=uh,ph=dh,fh=normalizeComponent(ph,HoDateTimevue_type_template_id_5e85d543_render,ch,!1,null,null,null),_h=fh.exports,HoFormulavue_type_template_id_88e6be42_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("p",[Rr("span",{on:{click:Tr.insertFormula}},[Tr._v("插入公式")]),Rr("el-dialog",{staticClass:"ho-formula-iframe",attrs:{title:"公式编辑",width:"868px",visible:Tr.createFormula,"close-on-click-modal":!1,top:"150px","append-to-body":"",center:""},on:{"update:visible":function(Dr){Tr.createFormula=Dr},"before-close":Tr.closeFormula}},[Rr("section",[Rr("div",{staticClass:"kf-editor",attrs:{id:"HoKfEditorContainer"}}),Tr.kityformulaError?Rr("p",[Tr._v(Tr._s(Tr.kityformulaError))]):Tr._e()]),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:Tr.sureInsertKityFormula}},[Tr._v("确认插入")]),Rr("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:Tr.closeFormula}},[Tr._v("取消")])],1)])],1)},gh=[],mh=function(Tr){Object(Qr["a"])(HoFormula,Tr);var Dr=Object(Zr["a"])(HoFormula);function HoFormula(){var Tr;return Object(Xr["a"])(this,HoFormula),Tr=Dr.apply(this,arguments),Tr.hoKFEditor=null,Tr.kityformulaError="",Tr.createFormula=!1,Tr.defaultLateX="",Tr}return Object(Yr["a"])(HoFormula,[{key:"initFormula",value:function initFormula(){var Tr=this,Dr=Rr("fb5e");if(this.hoKFEditor)this.hoKFEditor.execCommand("render",this.defaultLateX||"\\placeholder"),this.hoKFEditor.execCommand("focus");else{var Ur=Dr.create(document.querySelector("#HoKfEditorContainer"),{render:{fontsize:50},resource:{path:"111/fonts/"},lang:"zh_cn"});Ur.ready((function(Dr){Dr.execCommand("render",Tr.defaultLateX||"\\placeholder"),Dr.execCommand("focus"),Tr.hoKFEditor=Dr}))}}},{key:"insertFormula",value:function insertFormula(){var Tr=this;this.createFormula=!0,this.$nextTick((function(){return Tr.initFormula()}))}},{key:"sureInsertKityFormula",value:function sureInsertKityFormula(){var Tr=this,Dr=function createImage(Dr){var Rr=Tr.hoKFEditor.execCommand("get.source").replace(/\s/g,"");if(Dr.width&&Dr.height)Tr.vueController.insertImage(Dr.img,Dr.width/2,Dr.height/2,!0,Rr),Tr.createFormula=!1;else{var Ur=new Image;Ur.src=Dr.img,Ur.onload=function(){Tr.vueController.insertImage(Dr.img,Ur.width/2,Ur.height/2,!0,Rr),Tr.closeFormula()}}},Rr=function getUrl(Tr){Dr(Tr)};this.hoKFEditor.execCommand("get.image.data",Rr)}},{key:"closeFormula",value:function closeFormula(){this.createFormula=!1,this.hoKFEditor=null,this.kityformulaError="",this.defaultLateX=""}}]),HoFormula}(Kr.a);__decorate([Prop()],mh.prototype,"vueController",void 0),mh=__decorate([an({name:"HoFormula"})],mh);var vh=mh,yh=vh,bh=(Rr("7d45"),normalizeComponent(yh,HoFormulavue_type_template_id_88e6be42_render,gh,!1,null,null,null)),wh=bh.exports,xh=wh,Ch=function(Tr){Object(Qr["a"])(ToolControl,Tr);var Dr=Object(Zr["a"])(ToolControl);function ToolControl(){var Tr;return Object(Xr["a"])(this,ToolControl),Tr=Dr.apply(this,arguments),Tr.fileList=[],Tr}return Object(Yr["a"])(ToolControl,[{key:"uploadImage",value:function uploadImage(Tr){var Dr=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var Rr=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",Ur=new FormData;Ur.append(Rr,Tr.raw),rd({url:this.uploadImageParams.uploadUrl,method:"POST",data:Ur}).then((function(Tr){var Rr,Ur="";if(null!==(Rr=Dr.uploadImageParams)&&void 0!==Rr&&Rr.callbackParamName||"string"!==typeof Tr){var Hr,Wr=null===(Hr=Dr.uploadImageParams)||void 0===Hr?void 0:Hr.callbackParamName;Ur=Tr[Wr]}else Ur=Tr;if(Ur){var zr=new Image;zr.src=Ur,zr.onload=function(){Dr.loadImage(zr.width,zr.height,Ur)}}}),(function(){Dr.insertBase64Image(Tr)}))}else this.insertBase64Image(Tr)}},{key:"insertBase64Image",value:function insertBase64Image(Tr){var Dr=this,Rr=new FileReader;Rr.onload=function(Tr){Dr.fileList=[];var Rr=new Image,Ur=Tr.target.result;Rr.src=Ur,Rr.onload=function(){Dr.loadImage(Rr.width,Rr.height,Ur)}},Rr.readAsDataURL(Tr.raw)}},{key:"loadImage",value:function loadImage(Tr,Dr,Rr){var Ur,Hr=0,Wr=0,zr=this.vueController.pageProperty(),Vr=zr.widthPixes-zr.leftMarginPixes-zr.rightMarginPixes,Kr=this.vueController.getCaretPosition();if(-1!==Kr.indexOf("header")?Ur=zr.topMarginPixes:-1!==Kr.indexOf("footer")?Ur=zr.bottomMarginPixes:-1!==Kr.indexOf("main")&&(Ur=zr.heightPixes-zr.topMarginPixes-zr.bottomMarginPixes),Tr<=Vr&&Dr<=Ur)Hr=Tr,Wr=Dr;else if(Tr>Vr&&Dr<=Ur)Hr=Vr,Wr=Number((Dr*Vr/Tr).toFixed(0));else if(Tr<=Vr&&Dr>Ur)Hr=Number((Dr*Ur/Dr).toFixed(0)),Wr=Ur;else if(Tr>Vr&&Dr>Ur){var $r=.8*Vr/Tr,Gr=.8*Ur/Dr,Jr=Math.min($r,Gr);Hr=Number((Tr*Jr).toFixed(0)),Wr=Number((Dr*Jr).toFixed(0))}this.vueController.insertImage(Rr,Hr,Wr)}},{key:"createControl",value:function createControl(Tr){this.$emit("setModalStatus",[Tr,"add",""])}},{key:"openExpress",value:function openExpress(Tr){this.$emit("setModalStatus",["express","add",Tr])}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModalStatus",["","add",""])}}]),ToolControl}(mixins(xu));__decorate([Prop()],Ch.prototype,"vueController",void 0),__decorate([Prop()],Ch.prototype,"insert",void 0),__decorate([Prop()],Ch.prototype,"uploadImageParams",void 0),Ch=__decorate([an({name:"ToolControl",components:{HoMedicalExpression:ju,HoSpecialChars:lh,UploadImage:ld,HoDateTime:_h,HoFormula:xh,Poper:ns}})],Ch);var Ph=Ch,Eh=Ph,Sh=normalizeComponent(Eh,ToolControlvue_type_template_id_0d21dc43_render,rh,!1,null,null,null),Th=Sh.exports,ToolTablevue_type_template_id_3c999b04_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{staticClass:"sub-bar table-bar"},[Rr("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:Tr.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},[Rr("el-form",{attrs:{model:Tr.form}},[Rr("el-form-item",{attrs:{label:"行数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.rows,callback:function(Dr){Tr.$set(Tr.form,"rows",Dr)},expression:"form.rows"}})],1),Rr("el-form-item",{attrs:{label:"列数","label-width":Tr.formLabelWidth}},[Rr("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:Tr.form.columns,callback:function(Dr){Tr.$set(Tr.form,"columns",Dr)},expression:"form.columns"}})],1)],1),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{type:"primary"},on:{click:Tr.sure}},[Tr._v("确 定")]),Rr("el-button",{on:{click:function(Dr){Tr.dialogFormVisible=!1}}},[Tr._v("取 消")])],1)],1),Tr._t("insertBefore"),Tr.table.insertTable?Rr("li",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("span",[Tr._v("插入表格")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Rr("el-dropdown-item",{staticClass:"ho-insert-table-item",attrs:{disabled:""}},[Rr("div",{staticClass:"columns",on:{mouseleave:Tr.clearData}},[Rr("p",{staticClass:"table-title"},[Tr._v(Tr._s(Tr.rows?Tr.rows+" x "+Tr.columns:"插入")+" 表格")]),Tr._l(10,(function(Dr){return Rr("div",{key:"row_"+Dr,staticClass:"rows",on:{mousemove:Tr.mouse,click:Tr.createdTables}},Tr._l(10,(function(Ur){return Rr("span",{key:"column_index"+Ur,class:Dr<=Tr.rows&&Ur<=Tr.columns?"selected":"",attrs:{"data-column":Ur,"data-row":Dr},on:{touchstart:Tr.touch,touchmove:Tr.touch,touchend:Tr.touchend}})})),0)}))],2),Rr("p",{staticClass:"table-bottom-title",on:{click:function(Dr){Tr.dialogFormVisible=!0}}},[Tr._v("自定义行列数")])])],1)],1)],1):Tr._e(),Rr("HoTableFeatures",{attrs:{vueController:Tr.vueController,dropdownClassName:Tr.dropdownClassName,table:Tr.table}}),Tr._t("hoTableItem")],2)},Dh=[],HoTableFeaturesvue_type_template_id_384eb379_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("li",{ref:"hoTableFeatures",staticClass:"ho-table-features"},[Rr("el-dialog",{attrs:{width:"520px",top:"20%",center:"","append-to-body":"","close-on-click-modal":!1,title:Tr.dialogFormTitle,visible:Tr.dialogFormVisible},on:{"update:visible":function(Dr){Tr.dialogFormVisible=Dr}}},["a1: a2"===Tr.formula||"(a1 + a2) * 2"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[Tr._v(" "+Tr._s(Tr.dialogFormTitle)+" ")]),Rr("div",{staticStyle:{height:"36px","line-height":"36px"}},[Tr._v(" 示例: "+Tr._s("表格行列求和公式"===Tr.dialogFormTitle?"a1: a2":"(a1 + a2) * 2")+" ")]),Rr("el-checkbox",{model:{value:Tr.isHideZero,callback:function(Dr){Tr.isHideZero=Dr},expression:"isHideZero"}},[Tr._v("结果为 0 不显示")]),Rr("p",{staticStyle:{height:"10px"}}),Rr("el-input",{attrs:{autocomplete:"off"},model:{value:Tr.simpleFormula,callback:function(Dr){Tr.simpleFormula=Dr},expression:"simpleFormula"}})],1):Tr._e(),"bmi"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("身高")]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.height,callback:function(Dr){Tr.height=Dr},expression:"height"}})],1),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("体重")]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.weight,callback:function(Dr){Tr.weight=Dr},expression:"weight"}})],1)]):Tr._e(),"labor"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("el-checkbox",{model:{value:Tr.isHideZero,callback:function(Dr){Tr.isHideZero=Dr},expression:"isHideZero"}},[Tr._v("结果为 0 不显示")]),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("产程类型")]),Rr("el-select",{attrs:{size:"mini"},on:{change:Tr.laborTypeChange},model:{value:Tr.laborType,callback:function(Dr){Tr.laborType=Dr},expression:"laborType"}},[Rr("el-option",{attrs:{value:1,label:"第一产程"}}),Rr("el-option",{attrs:{value:2,label:"第二产程"}}),Rr("el-option",{attrs:{value:3,label:"第三产程"}}),Rr("el-option",{attrs:{value:0,label:"总产程"}})],1)],1),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v(Tr._s(["第一产程","宫缩开始","宫口全开","胎儿娩出"][Tr.laborType]))]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.labor1,callback:function(Dr){Tr.labor1=Dr},expression:"labor1"}})],1),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v(Tr._s(["第二产程","宫口全开","胎儿娩出","胎盘娩出"][Tr.laborType]))]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.labor2,callback:function(Dr){Tr.labor2=Dr},expression:"labor2"}})],1),0===Tr.laborType?Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v(Tr._s(["第三产程","宫缩开始","宫口全开","胎儿娩出"][Tr.laborType]))]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.labor3,callback:function(Dr){Tr.labor3=Dr},expression:"labor3"}})],1):Tr._e()],1):Tr._e(),"expectedDate"===Tr.formula||"pregnantDays"===Tr.formula||"pregnantWeeks"===Tr.formula?Rr("section",[Rr("p",{staticStyle:{padding:"10px 0"}},[Tr._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),Rr("div",{staticClass:"ho-table-features-list"},[Rr("p",[Tr._v("末次月经")]),Rr("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:Tr.expectedDate,callback:function(Dr){Tr.expectedDate=Dr},expression:"expectedDate"}})],1)]):Tr._e(),Rr("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[Rr("el-button",{attrs:{type:"primary",size:"small"},on:{click:Tr.sure}},[Tr._v("确 定")]),Rr("el-button",{attrs:{size:"small"},on:{click:function(Dr){Tr.dialogFormVisible=!1}}},[Tr._v("取 消")])],1)]),Tr.table.tableFormula?Rr("div",{staticClass:"sub-bar-items"},[Rr("el-dropdown",{class:Tr.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":Tr.dropdownChange}},[Rr("span",{staticClass:"el-dropdown-link"},[Rr("span",[Tr._v("表格计算公式")]),Rr("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),Rr("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[Tr.table.isTableCode?Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:Tr.setCellCode,expression:"setCellCode",arg:"30",modifiers:{click:!0}}]},[Rr("span",[Tr._v(Tr._s(Tr.tableCellCode?"隐藏":"显示")+"单元格编号")])])]):Tr._e(),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"sumFormula"},on:{click:function(Dr){return Tr.openFormula(["表格行列求和公式","a1: a2"])}}},[Tr._v(" 表格行列求和 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"arithmeticFormula"},on:{click:function(Dr){Tr.openFormula(["表格行列混合运算公式","(a1 + a2) * 2"])}}},[Tr._v(" 表格行列混合运算 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"bmiFormula"},on:{click:function(Dr){return Tr.openFormula(["BMI指数计算公式","bmi"])}}},[Tr._v(" BMI指数 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"laborFormula"},on:{click:function(Dr){return Tr.openFormula(["产程计算公式","labor"])}}},[Tr._v(" 产程 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"expectedDateFormula"},on:{click:function(Dr){return Tr.openFormula(["预产期计算公式","expectedDate"])}}},[Tr._v(" 预产期 ")])]),Rr("el-dropdown-item",{staticClass:"ho-insert-table-item"},[Rr("div",{attrs:{index:"expectedDateFormula"},on:{click:function(Dr){return Tr.openFormula(["孕周计算公式","pregnantWeeks"])}}},[Tr._v(" 孕周 ")])])],1)],1)],1):Tr._e(),Tr.table.insertRowAbove?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("上方插入 ")]),Rr("el-input-number",{staticClass:"insert-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.topRows,callback:function(Dr){Tr.topRows=Dr},expression:"topRows"}}),Rr("span",[Tr._v(" 行")])],1):Tr._e(),Tr.table.insertRowBelow?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("下方插入 ")]),Rr("el-input-number",{staticClass:"insert-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.bottomRows,callback:function(Dr){Tr.bottomRows=Dr},expression:"bottomRows"}}),Rr("span",[Tr._v(" 行")])],1):Tr._e(),Tr.table.insertColLeft?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("左侧插入 ")]),Rr("el-input-number",{staticClass:"insert-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:Tr.leftRows,callback:function(Dr){Tr.leftRows=Dr},expression:"leftRows"}}),Rr("span",[Tr._v(" 列")])],1):Tr._e(),Tr.table.insertColRight?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("右侧插入 ")]),Rr("el-input-number",{staticClass:"insert-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:Tr.rightRows,callback:function(Dr){Tr.rightRows=Dr},expression:"rightRows"}}),Rr("span",[Tr._v(" 列")])],1):Tr._e(),Tr.table.deleteRows?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("删除行")])]):Tr._e(),Tr.table.deleteCols?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("删除列")])]):Tr._e(),Tr.table.mergerCells?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("合并单元格")])]):Tr._e(),Tr.table.unMergerCells?Rr("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:Tr.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[Rr("span",[Tr._v("取消合并单元格")])]):Tr._e()],1)},kh=[],Oh=function(Tr){Object(Qr["a"])(HoTableFeatures,Tr);var Dr=Object(Zr["a"])(HoTableFeatures);function HoTableFeatures(){var Tr;return Object(Xr["a"])(this,HoTableFeatures),Tr=Dr.apply(this,arguments),Tr.tableFormulaValue=[],Tr.tableCellCode=!1,Tr.dialogFormVisible=!1,Tr.dialogFormTitle="",Tr.formula="",Tr.simpleFormula="",Tr.isCellSplitModal=!1,Tr.row=1,Tr.column=1,Tr.topRows=1,Tr.bottomRows=1,Tr.leftRows=1,Tr.rightRows=1,Tr.height="",Tr.weight="",Tr.laborType=1,Tr.labor1="",Tr.labor2="",Tr.labor3="",Tr.expectedDate="",Tr.isHideZero=!0,Tr.isOnceClick=!1,Tr}return Object(Yr["a"])(HoTableFeatures,[{key:"disabledName",get:function get(){return this.isOnceClick?"sub-bar-items sub-bar-items-disabled":"sub-bar-items"}},{key:"setCellCode",value:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.init(),this.vueController.showCellAdress(this.tableCellCode)}},{key:"tableInsertRowAbove",value:function tableInsertRowAbove(Tr){var Dr=document.querySelector(".insert-top");Dr.contains(Tr.target)||this.vueController.insertTableRowAbove(this.topRows)}},{key:"tableInsertRowBelow",value:function tableInsertRowBelow(Tr){var Dr=document.querySelector(".insert-bottom");Dr.contains(Tr.target)||this.vueController.insertTableRowBelow(this.bottomRows)}},{key:"tableInsertColLeft",value:function tableInsertColLeft(Tr){var Dr=document.querySelector(".insert-left");Dr.contains(Tr.target)||this.vueController.insertTableColLeft(this.leftRows)}},{key:"tableInsertColRight",value:function tableInsertColRight(Tr){var Dr=document.querySelector(".insert-right");Dr.contains(Tr.target)||this.vueController.insertTableColRight(this.rightRows)}},{key:"tableDeleteRows",value:function tableDeleteRows(){this.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){this.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){this.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){this.vueController.tableUnMergerCells()}},{key:"init",value:function init(){this.topRows=1,this.bottomRows=1,this.leftRows=1,this.rightRows=1,this.formula="",this.height="",this.weight="",this.laborType=1,this.expectedDate=""}},{key:"laborTypeChange",value:function laborTypeChange(){this.labor1="",this.labor2="",this.labor3=""}},{key:"openFormula",value:function openFormula(Tr){this.dialogFormVisible=!0,this.dialogFormTitle=Tr[0],this.formula=Tr[1]}},{key:"sure",value:function sure(){this.dialogFormVisible=!1,this.$emit("closeMenu"),"bmi"===this.formula?this.vueController.insertTableFormula("".concat(this.weight,",").concat(this.height).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftBMI):"a1: a2"===this.formula?this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Qa["a"].ftSum):"(a1 + a2) * 2"===this.formula?this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Qa["a"].ftFormular):"labor"===this.formula?0===this.laborType?this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2,",").concat(this.labor3).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftLaborProcess):this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftLaborProcess):"expectedDate"===this.formula?this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftExpectedBirthDate):"pregnantWeeks"===this.formula?this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Qa["a"].ftPregnantWeeks):this.formula}},{key:"beforeDestroy",value:function beforeDestroy(){this.init()}}]),HoTableFeatures}(mixins(Nu));__decorate([Prop()],Oh.prototype,"vueController",void 0),__decorate([Prop()],Oh.prototype,"className",void 0),__decorate([Prop()],Oh.prototype,"table",void 0),__decorate([Ref()],Oh.prototype,"hoTableFeatures",void 0),Oh=__decorate([an({name:"HoTableFeatures"})],Oh);var Ih=Oh,Mh=Ih,Nh=(Rr("7c64"),normalizeComponent(Mh,HoTableFeaturesvue_type_template_id_384eb379_render,kh,!1,null,null,null)),Lh=Nh.exports,Ah=function(Tr){Object(Qr["a"])(ToolTable,Tr);var Dr=Object(Zr["a"])(ToolTable);function ToolTable(){var Tr;return Object(Xr["a"])(this,ToolTable),Tr=Dr.apply(this,arguments),Tr.rows=0,Tr.columns=0,Tr.dialogFormVisible=!1,Tr.form={rows:1,columns:1},Tr.formLabelWidth="72px",Tr}return Object(Yr["a"])(ToolTable,[{key:"createdTables",value:function createdTables(){this.vueController.insertTable(this.rows,this.columns)}},{key:"clearData",value:function clearData(){this.rows=0,this.columns=0}},{key:"sure",value:function sure(){this.vueController.insertTable(this.form.rows,this.form.columns),this.dialogFormVisible=!1}},{key:"mouse",value:function mouse(Tr){var Dr=Tr.target;if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touch",value:function touch(Tr){var Dr=document.elementFromPoint(Tr.changedTouches[0].pageX,Tr.changedTouches[0].pageY);if("SPAN"===Dr.nodeName){var Rr=Dr.dataset;this.rows=parseInt(Rr.row),this.columns=parseInt(Rr.column)}}},{key:"touchend",value:function touchend(Tr){this.touch(Tr),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTable}(mixins(Nu));__decorate([Prop()],Ah.prototype,"vueController",void 0),__decorate([Prop()],Ah.prototype,"table",void 0),Ah=__decorate([an({name:"ToolTable",components:{HoTableFeatures:Lh}})],Ah);var Rh=Ah,Fh=Rh,jh=(Rr("b555"),normalizeComponent(Fh,ToolTablevue_type_template_id_3c999b04_render,Dh,!1,null,null,null)),Bh=jh.exports,Uh=function(Tr){Object(Qr["a"])(ToolBar,Tr);var Dr=Object(Zr["a"])(ToolBar);function ToolBar(){var Tr;return Object(Xr["a"])(this,ToolBar),Tr=Dr.apply(this,arguments),Tr.printModal=!1,Tr.ctrlS=!1,Tr.toolMenuOpenPathTest=[],Tr.printStatus="",Tr.isPrinted=!1,Tr.reviewLevel={limit:1,color:["#f19191","#8198f7","#7fd27f"],text:["一级质控","二级质控","三级质控"]},Tr.userInfoes=null,Tr.defaultToolBarParams={"ho-browse":5,"ho-edit":1,"ho-insert":1,"ho-table":1,"ho-review":4},Tr.tabKey="",Tr.defaultReviewJson={isReview:!0,clearSelectSign:!0,clearAllSign:!0,insertComment:!0,editComment:!0,deleteComment:!0,deleteAllComment:!0,qualityControl:!0,cancelDelete:!0,printStatus:!0},Tr.defaultBrowseJson={isBrowse:!0,saveAsFile:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0},Tr.defaultEditJson={isFooter:!0,isEdit:!0,isInsertElement:!0,isInsertTable:!0,editFile:!0,createNew:!0,openFile:!0,saveFile:!0,saveAsFile:!0,pageSetting:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0,unDoOperate:!0,reDoOperate:!0,formatPaint:!0,clearFormat:!0,family:!0,size:!0,enlargeSize:!0,decreaseSize:!0,superScript:!0,subScript:!0,bold:!0,italic:!0,underline:!0,strikeout:!0,fontColor:!0,backColor:!0,alignLeft:!0,alignCenter:!0,alignRight:!0,alignBoth:!0,addIndent:!0,decreaseIndent:!0,setHeight:!0,express:!0,specialChars:!0,datetime:!0,watermark:!0,select:!0,text:!0,uploadImage:!0,barcode:!0,qrcode:!0,radioBox:!0,checkBox:!0,pageInfoes:!0,delimiter:!0,sign:!0,mathFormula:!0,insertTable:!0,isTableCode:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,tableFormula:!0,findModal:!0,updateDocument:!1,test:!1},Tr}return Object(Yr["a"])(ToolBar,[{key:"isPrintClass",get:function get(){return this.isPrinted?"print-selected":""}},{key:"printedClass",get:function get(){return"print"===this.printStatus?"print print-selected":"print"}},{key:"printSelectedClass",get:function get(){return"selected"===this.printStatus?"print print-selected":"print"}},{key:"printCaretClass",get:function get(){return"caret"===this.printStatus?"print print-selected":"print"}},{key:"printContinueClass",get:function get(){return"continue"===this.printStatus?"print print-selected":"print"}},{key:"tabStatusChange",value:function tabStatusChange(){this.tabStatus&&(this.tabKey=this.tabStatus)}},{key:"editJsonChange",value:function editJsonChange(Tr){Tr&&null!==Tr&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),Tr))}},{key:"reviewJsonChange",value:function reviewJsonChange(Tr){Tr&&null!==Tr&&(this.defaultReviewJson=_objectSpread2(_objectSpread2({},this.defaultReviewJson),Tr))}},{key:"browseJsonChange",value:function browseJsonChange(Tr){Tr&&null!==Tr&&(this.defaultBrowseJson=_objectSpread2(_objectSpread2({},this.defaultBrowseJson),Tr))}},{key:"toolbarParamsChange",value:function toolbarParamsChange(Tr){this.toolbarParams&&(this.defaultToolBarParams=_objectSpread2(_objectSpread2({},this.defaultToolBarParams),this.toolbarParams)),this.tabKey&&this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]),this.emitToolBarStatus()}},{key:"vueControllerChange",value:function vueControllerChange(){"[object Function]"===Object.prototype.toString.call(this.vueController.setEditorStatus)&&(this.toolbarParams&&(this.defaultToolBarParams=_objectSpread2(_objectSpread2({},this.defaultToolBarParams),this.toolbarParams)),this.tabKey&&this.vueController.setEditorStatus(this.defaultToolBarParams[this.tabKey]),this.userInfoes=this.vueController.getUserInfoes(),this.emitToolBarStatus())}},{key:"mounted",value:function mounted(){var Tr=this;this.tabStatus&&(this.tabKey=this.tabStatus),"[object Function]"===Object.prototype.toString.call(this.vueController.setEditorStatus)&&this.tabKey&&this.$nextTick((function(){return Tr.vueController.setEditorStatus(Tr.defaultToolBarParams[Tr.tabKey])})),this.editJson&&null!==this.editJson&&this.editJson&&null!==this.editJson&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),this.editJson)),this.reviewJson&&null!==this.reviewJson&&(this.defaultReviewJson=_objectSpread2(_objectSpread2({},this.defaultReviewJson),this.reviewJson)),this.browseJson&&null!==this.browseJson&&(this.defaultBrowseJson=_objectSpread2(_objectSpread2({},this.defaultBrowseJson),this.browseJson))}},{key:"closeToolMenusTest",value:function closeToolMenusTest(Tr){var Dr=this;this.toolMenuOpenPathTest.length>0&&this.toolMenuOpenPathTest.forEach((function(Tr){Dr.controlMenus.closeMenu(Tr)}))}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(Tr,Dr){this.toolMenuOpenPathTest=Dr}},{key:"setLogin",value:function setLogin(Tr,Dr){var Rr=["李医生","张医生","王医生"],Ur=this.vueController.generateID("UI");this.vueController.setUserLoginInfo(Ur,Rr[Tr-1],Tr,""),this.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"})}},{key:"setModalStatus",value:function setModalStatus(Tr){this.$emit("setModalStatus",Tr)}},{key:"updateTabKey",value:function updateTabKey(Tr){var Dr=this;this.$nextTick((function(){return Dr.vueController.setEditorStatus(Dr.defaultToolBarParams[Tr])}))}},{key:"mainBarClick",value:function mainBarClick(Tr,Dr){var Rr=this.defaultToolBarParams[Tr],Ur=this.defaultToolBarParams[Dr];this.emitToolBarStatus(),Rr!==Ur&&this.vueController.setEditorStatus(Ur),this.printStatus="",this.isPrinted=!1}},{key:"emitToolBarStatus",value:function emitToolBarStatus(){this.$emit("switchDocStatus",{incomingParams:_objectSpread2({},this.toolbarParams),defaultParams:{"ho-browse":5,"ho-edit":1,"ho-insert":1,"ho-table":1,"ho-review":4},mergeParams:_objectSpread2({},this.defaultToolBarParams)})}},{key:"openExpress",value:function openExpress(Tr){this.$emit("setModalStatus",["express","add",Tr])}},{key:"reviewPrintStatus",value:function reviewPrintStatus(){this.isPrinted=!this.isPrinted,this.isPrinted?this.vueController.setEditorStatus(5):this.vueController.setEditorStatus(4)}},{key:"outPrinted",value:function outPrinted(){this.printStatus="",this.isPrinted=!1,this.vueController.setEditorStatus(5)}},{key:"closedHoPrintModal",value:function closedHoPrintModal(Tr){"sure"===Tr&&(this.isPrinted=!1),this.printModal=!1}},{key:"printed",value:function printed(){this.isPrinted?(this.vueController.printPromisePDF(5),this.isPrinted=!1):this.printModal=!0}},{key:"printSelected",value:function printSelected(){this.printStatus="selected",this.isPrinted=!0,this.vueController.setEditorStatus(2,1)}},{key:"printCaret",value:function printCaret(){this.printStatus="caret",this.isPrinted=!0,this.vueController.setEditorStatus(2,0)}},{key:"printContinue",value:function printContinue(){this.printStatus="continue",this.isPrinted=!0,this.vueController.setEditorStatus(2,3)}},{key:"createControlComment",value:function createControlComment(){if(this.vueController.getDomRange().isEmpty)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"请选择需要添加批注的内容",duration:3e3,offset:120});this.$emit("setModalStatus",["comment","add",""])}},{key:"editComment",value:function editComment(){var Tr=this.vueController.getOnSelectedComment();if(!Tr)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"点击右侧批注区域内已添加的批注进行编辑操作",duration:3e3,offset:120});this.$emit("setModalStatus",["comment","update",""])}},{key:"deleteComment",value:function deleteComment(){var Tr=this,Dr=this.vueController.getOnSelectedComment();if(!Dr)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"点击选中右侧批注区域内已添加的批注后,进行删除操作",duration:3e3,offset:120});this.$elConfirm("确定要删除选中的批注吗","删除确认",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then((function(){Tr.vueController.deleteComment(1)})).catch((function(){}))}},{key:"deleteAllComment",value:function deleteAllComment(){var Tr=this;this.$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)","删除确认",{cancelButtonText:"取消",confirmButtonText:"确定",type:"warning"}).then((function(){Tr.vueController.deleteComment(0)})).catch((function(){}))}},{key:"cancelDelete",value:function cancelDelete(){this.vueController.cancelDel()}},{key:"saveAsFile",value:function saveAsFile(Tr){var Dr=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档",Rr=this.vueController.saveAsFile(Tr,!0);"html"!==Tr&&this.downloadFile(Rr,Dr,Tr)}},{key:"downloadFile",value:function downloadFile(Tr,Dr,Rr){var Ur=window.URL.createObjectURL(new Blob([Tr],{type:"text/".concat(Rr)})),Hr=document.createElement("a");Hr.style.display="none",Hr.href=Ur,Hr.setAttribute("download",Dr),document.body.appendChild(Hr),Hr.click(),this.$nextTick((function(){return Hr.remove()}))}}]),ToolBar}(Kr.a);__decorate([Prop()],Uh.prototype,"vueController",void 0),__decorate([Prop({default:"ho-edit"})],Uh.prototype,"tabStatus",void 0),__decorate([Prop()],Uh.prototype,"editJson",void 0),__decorate([Prop()],Uh.prototype,"browseJson",void 0),__decorate([Prop()],Uh.prototype,"reviewJson",void 0),__decorate([Prop()],Uh.prototype,"toolbarParams",void 0),__decorate([Prop()],Uh.prototype,"uploadImageParams",void 0),__decorate([Ref()],Uh.prototype,"controlMenus",void 0),__decorate([Prop()],Uh.prototype,"textStyle",void 0),__decorate([Watch("tabStatus")],Uh.prototype,"tabStatusChange",null),__decorate([Watch("editJson",{deep:!0})],Uh.prototype,"editJsonChange",null),__decorate([Watch("reviewJson",{deep:!0})],Uh.prototype,"reviewJsonChange",null),__decorate([Watch("browseJson",{deep:!0})],Uh.prototype,"browseJsonChange",null),__decorate([Watch("toolbarParams",{deep:!0})],Uh.prototype,"toolbarParamsChange",null),__decorate([Watch("vueController",{deep:!0})],Uh.prototype,"vueControllerChange",null),Uh=__decorate([an({name:"ToolBar",components:{HoMedicalExpression:ju,HoPrintDialog:zu,ToolBarChild:th,ToolControl:Th,ToolTable:Bh,Tabs:Ps}})],Uh);var Hh=Uh,Wh=Hh,qh=(Rr("e530"),normalizeComponent(Wh,ToolBarvue_type_template_id_1ad97ddc_render,Iu,!1,null,null,null)),zh=qh.exports,TabPanevue_type_template_id_71cdc485_render=function(){var Tr=this,Dr=Tr.$createElement,Rr=Tr._self._c||Dr;return Rr("ul",{directives:[{name:"show",rawName:"v-show",value:Tr.show,expression:"show"}],class:Tr.className},[Tr._t("default")],2)},Vh=[],Kh=function(Tr){Object(Qr["a"])(TabPane,Tr);var Dr=Object(Zr["a"])(TabPane);function TabPane(){var Tr;return Object(Xr["a"])(this,TabPane),Tr=Dr.apply(this,arguments),Tr.show=!0,Tr}return Object(Yr["a"])(TabPane,[{key:"className",get:function get(){return this.notHover?"sub-bar":"sub-bar item-hover"}},{key:"mounted",value:function mounted(){this.updateNav()}},{key:"isShowChange",value:function isShowChange(){this.updateNav()}},{key:"labelChange",value:function labelChange(){this.updateNav()}},{key:"updateNav",value:function updateNav(){this.$parent.updateNav?this.$parent.updateNav():this.$parent.$parent.updateNav()}}]),TabPane}(Kr.a);__decorate([Prop()],Kh.prototype,"name",void 0),__decorate([Prop()],Kh.prototype,"label",void 0),__decorate([Prop()],Kh.prototype,"isShow",void 0),__decorate([Prop()],Kh.prototype,"notHover",void 0),__decorate([Prop()],Kh.prototype,"customProperty",void 0),__decorate([Watch("isShow")],Kh.prototype,"isShowChange",null),__decorate([Watch("label")],Kh.prototype,"labelChange",null),Kh=__decorate([an({name:"TabPane"})],Kh);var $h=Kh,Gh=$h,Jh=normalizeComponent(Gh,TabPanevue_type_template_id_71cdc485_render,Vh,!1,null,null,null),Xh=Jh.exports,Yh=(Rr("bd01"),function(Tr){Object(Qr["a"])(HoRightMenu,Tr);var Dr=Object(Zr["a"])(HoRightMenu);function HoRightMenu(){var Tr;return Object(Xr["a"])(this,HoRightMenu),Tr=Dr.apply(this,arguments),Tr.versions=zi,Tr.defaultTable={insertTable:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,isTableCode:!0,tableFormula:!0},Tr.poppernIstance=null,Tr.isIncludes="",Tr}return Object(Yr["a"])(HoRightMenu,[{key:"mounted",value:function mounted(){var Tr,Dr;this.isIncludes=null===(Tr=this.rightNode)||void 0===Tr?void 0:Tr.labelNode().isIncludes,this.isDeisgn=this.rightNode.paintStatus;var Rr={getBoundingClientRect:this.generateGetBoundingClientRect(null===(Dr=this.rightNode)||void 0===Dr?void 0:Dr.rightPosition)};this.poppernIstance=Object(di["a"])(Rr,this.mouseRightMenuPopup,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","bottom","right","left"],padding:10}}]})}},{key:"generateGetBoundingClientRect",value:function generateGetBoundingClientRect(Tr){var Dr=Tr.clientX,Rr=Tr.clientY;return function(){return{width:0,height:0,top:Rr,right:Dr,bottom:Rr,left:Dr}}}},{key:"toUpdateNodes",value:function toUpdateNodes(Tr,Dr){null===Dr||void 0===Dr||Dr.stopPropagation(),this.$emit("setModalStatus",[Tr,"update",this.rightNode.style]),this.handleClose()}},{key:"handleClose",value:function handleClose(){var Tr=this;this.$nextTick((function(){return Tr.$emit("closeRight")}))}},{key:"labelToText",value:function labelToText(){var Tr=this,Dr=this.rightNode.labelNode().labelNode;Dr.forEach((function(Dr){Tr.vueController.labelToText(Dr)})),this.handleClose()}},{key:"textToLabel",value:function textToLabel(){this.vueController.textToLabel(),this.handleClose()}},{key:"hoCopy",value:function hoCopy(){document.execCommand("Copy")}},{key:"hoPaste",value:function hoPaste(){this.editController.editKeyPaste()}},{key:"hideComments",value:function hideComments(){this.vueController.hideComments(!this.rightNode.isHideComments),this.handleClose()}},{key:"render",value:function render(){var Tr,Dr,Rr,Ur,Hr,Wr,zr,Vr,Kr,$r,Gr,Jr,Xr,Yr,Qr,Zr=this,en=arguments[0];return en("div",{directives:[{name:"click-outside",value:this.handleClose.bind(this)}],ref:"mouseRightMenuPopup",class:"mouse-right-menu-popup animation-in"},[null===(Tr=this.$slots.hoRightSlot)||void 0===Tr?void 0:Tr.map((function(Tr){return Tr})),en("p",["toLabel"===this.isIncludes&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:this.textToLabel.bind(this)}},["文本转标签"])]),"toText"===this.isIncludes&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:this.labelToText.bind(this)}},["标签转文本"])]),"express"===(null===(Dr=this.rightNode)||void 0===Dr?void 0:Dr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("express",event)}}},["医学表达式属性"])]),"RadioBox"===(null===(Rr=this.rightNode)||void 0===Rr?void 0:Rr.type)||"CheckBox"===(null===(Ur=this.rightNode)||void 0===Ur?void 0:Ur.type)?en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){var Tr;return Zr.toUpdateNodes(null===(Tr=Zr.rightNode)||void 0===Tr?void 0:Tr.type,event)}}},["RadioBox"===(null===(Hr=this.rightNode)||void 0===Hr?void 0:Hr.type)?"单选框属性":"复选框属性"])]):null,"date"===(null===(Wr=this.rightNode)||void 0===Wr?void 0:Wr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("date",event)}}},["日期属性"])]),"select"===(null===(zr=this.rightNode)||void 0===zr?void 0:zr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("select",event)}}},["下拉框属性"])]),"barcode"===(null===(Vr=this.rightNode)||void 0===Vr?void 0:Vr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("barcode",event)}}},["条形码属性"])]),"qrcode"===(null===(Kr=this.rightNode)||void 0===Kr?void 0:Kr.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("qrcode",event)}}},["二维码属性"])]),"text"===(null===($r=this.rightNode)||void 0===$r?void 0:$r.type)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("text",event)}}},["文本域属性"])]),(null===(Gr=this.rightNode)||void 0===Gr?void 0:Gr.rightTypeIsTable)&&this.defaultTable&&0===(null===(Jr=this.rightNode)||void 0===Jr?void 0:Jr.paintStatus)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table",event)}}},["表格属性"]),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table-col",event)}}},["表格列属性"]),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table-row",event)}}},["表格行属性"]),en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.toUpdateNodes("table-cell",event)}}},["单元格属性"])]),(null===(Xr=this.rightNode)||void 0===Xr?void 0:Xr.rightTypeIsTable)&&this.defaultTable&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item mouse-right-menu-line"}),en(Od,{on:{closeMenu:this.handleClose.bind(this)},attrs:_objectSpread2({},{vueController:this.vueController,className:"insert-rows-columns-right",table:this.defaultTable})})]),(null===(Yr=this.rightNode)||void 0===Yr?void 0:Yr.canShowComment)&&en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item",on:{click:function click(){return Zr.hideComments()}}},[null!==(Qr=this.rightNode)&&void 0!==Qr&&Qr.isHideComments?"显示":"隐藏","批注"])]),en("ul",{class:"mouse-right-menu"},[en("li",{class:"mouse-menu-item"},["编辑器内核版本:  ",en("span",{style:"font-size: 14px;color: #0a77e3;"},["v ",this.versions])])])])])}}]),HoRightMenu}(mixins(Zn)));__decorate([Prop()],Yh.prototype,"rightPos",void 0),__decorate([Prop()],Yh.prototype,"vueController",void 0),__decorate([Prop()],Yh.prototype,"editController",void 0),__decorate([Prop()],Yh.prototype,"editJson",void 0),__decorate([Prop()],Yh.prototype,"rightNode",void 0),__decorate([Ref()],Yh.prototype,"mouseRightMenuPopup",void 0),Yh=__decorate([an({name:"HoRightMenu",components:{TableFeatures:Od}})],Yh);var Qh=Yh;Ou.install=function(Tr){Tr.component(Ou.name,Ou)},zh.install=function(Tr){Tr.component(zh.name,zh)},Xh.install=function(Tr){Tr.component(Xh.name,Xh)},Qh.install=function(Tr){Tr.component(Qh.name,Qh)},ju.install=function(Tr){Tr.component(ju.name,ju)};Rr("0fb7");var Zh=Rr("f529"),ep=Rr.n(Zh),tp=(Rr("1760"),Rr("9883")),rp=Rr.n(tp),ip=(Rr("0c67"),Rr("299c")),ap=Rr.n(ip),op=(Rr("5466"),Rr("ecdf")),sp=Rr.n(op),lp=(Rr("38a0"),Rr("ad41")),cp=Rr.n(lp),up=(Rr("a586"),Rr("7464")),dp=Rr.n(up),hp=(Rr("e612"),Rr("dd87")),fp=Rr.n(hp),gp=(Rr("075a"),Rr("72aa")),mp=Rr.n(gp),vp=(Rr("eca7"),Rr("3787")),yp=Rr.n(vp),bp=(Rr("425f"),Rr("4105")),wp=Rr.n(bp),xp=(Rr("f225"),Rr("89a9")),Cp=Rr.n(xp),Pp=(Rr("bd49"),Rr("18ff")),Ep=Rr.n(Pp),Sp=(Rr("960d"),Rr("defb")),Tp=Rr.n(Sp),Dp=(Rr("cb70"),Rr("b370")),kp=Rr.n(Dp),Op=(Rr("a7cc"),Rr("df33")),Ip=Rr.n(Op),Mp=(Rr("4ffc"),Rr("946e")),Np=Rr.n(Mp),Lp=(Rr("826b"),Rr("c263")),Ap=Rr.n(Lp),Rp=(Rr("6611"),Rr("e772")),Fp=Rr.n(Rp),jp=(Rr("1f1a"),Rr("4e4b")),Bp=Rr.n(jp),Up=(Rr("c526"),Rr("1599")),Hp=Rr.n(Up),Wp=(Rr("d4df"),Rr("7fc1")),qp=Rr.n(Wp),zp=(Rr("560b"),Rr("dcdc")),Vp=Rr.n(zp),Kp=(Rr("3c52"),Rr("0d7b")),$p=Rr.n(Kp),Gp=(Rr("fe07"),Rr("6ac5")),Jp=Rr.n(Gp),Xp=(Rr("b5d8"),Rr("f494")),Yp=Rr.n(Xp),Qp=(Rr("9d4c"),Rr("e450")),Zp=Rr.n(Qp),ef=(Rr("3db2"),Rr("58b8")),tf=Rr.n(ef),rf=(Rr("10cb"),Rr("f3ad")),nf=Rr.n(rf),af=(Rr("8bd8"),Rr("4cb2")),of=Rr.n(af),sf=(Rr("ce18"),Rr("f58e")),lf=Rr.n(sf),cf=(Rr("4ca3"),Rr("443e")),uf=Rr.n(cf),df=(Rr("19511"),Rr("eedf")),hf=Rr.n(df);Kr.a.use(hf.a),Kr.a.use(uf.a),Kr.a.use(lf.a),Kr.a.use(of.a),Kr.a.use(nf.a),Kr.a.use(tf.a),Kr.a.use(Zp.a),Kr.a.use(Yp.a),Kr.a.use(Jp.a),Kr.a.use($p.a),Kr.a.use(Vp.a),Kr.a.use(qp.a),Kr.a.use(Hp.a),Kr.a.use(Bp.a),Kr.a.use(Fp.a),Kr.a.use(Ap.a),Kr.a.use(Np.a),Kr.a.use(Ip.a),Kr.a.use(kp.a),Kr.a.use(Tp.a),Kr.a.use(Ep.a),Kr.a.use(Cp.a),Kr.a.use(wp.a),Kr.a.use(yp.a),Kr.a.use(mp.a),Kr.a.use(fp.a),Kr.a.use(dp.a),Kr.a.use(cp.a),Kr.a.use(sp.a),Kr.a.use(ap.a),Kr.a.use(rp.a),Kr.a.prototype.$elMessage=ep.a,Kr.a.prototype.$elConfirm=Ea.a.confirm;Rr("16eb"),Rr("f68b"),Rr("beda");var pf="click",ff=Object.create(null),_f=Object.create(null),gf=Object.create(null),mf=Object.create(null),vf=[ff,_f],yf=function onCommonEvent(Tr,Dr,Rr,Ur){var Hr=Rr.target,Wr=function itemIteratee(Dr){var Ur=Dr.el;if(Ur!==Hr&&!Ur.contains(Hr)){var Wr=Dr.binding;Wr.modifiers.stop&&Rr.stopPropagation(),Wr.modifiers.prevent&&Rr.preventDefault(),Wr.value.call(Tr,Rr)}};Dr[Ur].forEach(Wr)},bf=function getEventHandler(Tr,Dr){return Tr?(gf[Dr]||(gf[Dr]=function onCaptureEvent(Tr){yf(this,ff,Tr,Dr)}),gf[Dr]):(mf[Dr]||(mf[Dr]=function onNonCaptureEvent(Tr){yf(this,_f,Tr,Dr)}),mf[Dr])},wf=Object.defineProperties({},{$captureInstances:{value:ff},$nonCaptureInstances:{value:_f},$captureEventHandlers:{value:gf},$nonCaptureEventHandlers:{value:mf},bind:{value:function bind(Tr,Dr){if("function"!==typeof Dr.value)throw new TypeError("Binding value must be a function.");var Rr=Dr.arg||pf,Ur=_objectSpread2(_objectSpread2({},Dr),{arg:Rr,modifiers:_objectSpread2(_objectSpread2({},{capture:!1,prevent:!1,stop:!1}),Dr.modifiers)}),Hr=Ur.modifiers.capture,Wr=Hr?ff:_f;Array.isArray(Wr[Rr])||(Wr[Rr]=[]),1===Wr[Rr].push({el:Tr,binding:Ur})&&"object"===("undefined"===typeof document?"undefined":Object(Ma["a"])(document))&&document&&document.addEventListener(Rr,bf(Hr,Rr),Hr)}},unbind:{value:function unbind(Tr){var Dr=function compareElements(Dr){return Dr.el!==Tr},Rr=function instancesIteratee(Tr){var Rr=Object.keys(Tr);if(Rr.length){var Ur=Tr===ff,Hr=function keysIteratee(Rr){var Hr=Tr[Rr].filter(Dr);Hr.length?Tr[Rr]=Hr:("object"===("undefined"===typeof document?"undefined":Object(Ma["a"])(document))&&document&&document.removeEventListener(Rr,bf(Ur,Rr),Ur),delete Tr[Rr])};Rr.forEach(Hr)}};vf.forEach(Rr)}}});function install(Tr){Tr.directive("click-outside",wf)}var xf={install:function install(Tr){Tr.directive("clickOnce",{inserted:function inserted(Tr,Dr){Tr.addEventListener("click",(function(){Tr.disabled||(Tr.disabled=!0,setTimeout((function(){Tr.disabled=!1}),Dr.value||3e3))}))}})}},Cf=void 0,Pf=function debounce(Tr,Dr){var Rr,Ur=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(){for(var Hr=arguments.length,Wr=new Array(Hr),zr=0;zr<Hr;zr++)Wr[zr]=arguments[zr];if(Ur)return Tr.apply(Cf,Wr),void(Ur=!1);clearTimeout(Rr),Rr=setTimeout((function(){Tr.apply(Cf,Wr)}),Dr)}},Ef={install:function install(Tr){Tr.directive("debounce",{bind:function bind(Tr,Dr){var Rr=Dr.value,Ur=Dr.arg,Hr=Dr.modifiers,Wr=Object.keys(Hr)[0];Tr.addEventListener(Wr,Pf(Rr,Ur))}})}};Kr.a.use(Ur),Kr.a.use(xf),Kr.a.use(Ef);var Sf=[Ou,zh,Xh,Qh,ju],Tf=function install(Tr){Sf.forEach((function(Dr){Tr.component(Dr.name,Dr)}))};"undefined"!==typeof window&&window.Vue&&Tf(window.Vue);var Df={install:Tf,HoDocs:Ou,ToolBar:zh,TabPane:Xh,HoRightMenu:Qh,HoMedicalExpression:ju},kf=Df;Dr["default"]=kf},fb5e:function(Tr,Dr,Rr){Rr("6f0e"),Rr("6722"),Rr("6d4d"),Rr("e5f6");var Ur=Rr("617d"),Hr=Rr("db03");Ur.registerComponents("ui",Rr("93e0")),Ur.registerComponents("parser",Rr("987f")),Ur.registerComponents("render",Rr("0010")),Ur.registerComponents("position",Rr("c009")),Ur.registerComponents("syntax",Rr("3384")),Ur.registerComponents("control",Rr("3904")),Ur.registerComponents("print",Rr("8b5c")),Tr.exports=Hr},fb6a:function(Tr,Dr,Rr){"use strict";var Ur=Rr("23e7"),Hr=Rr("861d"),Wr=Rr("e8b5"),zr=Rr("23cb"),Vr=Rr("50c4"),Kr=Rr("fc6a"),$r=Rr("8418"),Gr=Rr("b622"),Jr=Rr("1dde"),Xr=Jr("slice"),Yr=Gr("species"),Qr=[].slice,Zr=Math.max;Ur({target:"Array",proto:!0,forced:!Xr},{slice:function slice(Tr,Dr){var Rr,Ur,Gr,Jr=Kr(this),Xr=Vr(Jr.length),en=zr(Tr,Xr),tn=zr(void 0===Dr?Xr:Dr,Xr);if(Wr(Jr)&&(Rr=Jr.constructor,"function"!=typeof Rr||Rr!==Array&&!Wr(Rr.prototype)?Hr(Rr)&&(Rr=Rr[Yr],null===Rr&&(Rr=void 0)):Rr=void 0,Rr===Array||void 0===Rr))return Qr.call(Jr,en,tn);for(Ur=new(void 0===Rr?Array:Rr)(Zr(tn-en,0)),Gr=0;en<tn;en++,Gr++)en in Jr&&$r(Ur,Gr,Jr[en]);return Ur.length=Gr,Ur}})},fbb2:function(Tr,Dr,Rr){"use strict";Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.GenericBarcode=void 0;var Ur=function(){function defineProperties(Tr,Dr){for(var Rr=0;Rr<Dr.length;Rr++){var Ur=Dr[Rr];Ur.enumerable=Ur.enumerable||!1,Ur.configurable=!0,"value"in Ur&&(Ur.writable=!0),Object.defineProperty(Tr,Ur.key,Ur)}}return function(Tr,Dr,Rr){return Dr&&defineProperties(Tr.prototype,Dr),Rr&&defineProperties(Tr,Rr),Tr}}(),Hr=Rr("e762"),Wr=_interopRequireDefault(Hr);function _interopRequireDefault(Tr){return Tr&&Tr.__esModule?Tr:{default:Tr}}function _classCallCheck(Tr,Dr){if(!(Tr instanceof Dr))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(Tr,Dr){if(!Tr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Dr||"object"!==typeof Dr&&"function"!==typeof Dr?Tr:Dr}function _inherits(Tr,Dr){if("function"!==typeof Dr&&null!==Dr)throw new TypeError("Super expression must either be null or a function, not "+typeof Dr);Tr.prototype=Object.create(Dr&&Dr.prototype,{constructor:{value:Tr,enumerable:!1,writable:!0,configurable:!0}}),Dr&&(Object.setPrototypeOf?Object.setPrototypeOf(Tr,Dr):Tr.__proto__=Dr)}var zr=function(Tr){function GenericBarcode(Tr,Dr){return _classCallCheck(this,GenericBarcode),_possibleConstructorReturn(this,(GenericBarcode.__proto__||Object.getPrototypeOf(GenericBarcode)).call(this,Tr,Dr))}return _inherits(GenericBarcode,Tr),Ur(GenericBarcode,[{key:"encode",value:function encode(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function valid(){return!0}}]),GenericBarcode}(Wr.default);Dr.GenericBarcode=zr},fc33:function(Tr,Dr,Rr){},fc5e:function(Tr,Dr){var Rr=Math.ceil,Ur=Math.floor;Tr.exports=function(Tr){return isNaN(Tr=+Tr)?0:(Tr>0?Ur:Rr)(Tr)}},fc6a:function(Tr,Dr,Rr){var Ur=Rr("44ad"),Hr=Rr("1d80");Tr.exports=function(Tr){return Ur(Hr(Tr))}},fcd4:function(Tr,Dr,Rr){Dr.f=Rr("cc15")},fce3:function(Tr,Dr,Rr){var Ur=Rr("d039"),Hr=Rr("da84"),Wr=Hr.RegExp;Tr.exports=Ur((function(){var Tr=Wr(".","s");return!(Tr.dotAll&&Tr.exec("\n")&&"s"===Tr.flags)}))},fd7c:function(Tr,Dr,Rr){"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Ur=Object.assign||function(Tr){for(var Dr=1;Dr<arguments.length;Dr++){var Rr=arguments[Dr];for(var Ur in Rr)Object.prototype.hasOwnProperty.call(Rr,Ur)&&(Tr[Ur]=Rr[Ur])}return Tr};Dr.default=function(Tr,Dr){return Ur({},Tr,Dr)}},fda6:function(Tr,Dr,Rr){var Ur;Ur=function(Tr){var Dr=Rr("99fc"),Ur="kf-editor-ui-",Hr=Rr("c732"),Wr=Dr.createClass("List",{constructor:function constructor(Tr,Dr){this.options=Dr,this.doc=Tr,this.onselectHandler=null,this.currentSelect=-1,this.element=this.createBox(),this.itemGroups=this.createItems(),this.mergeElement()},onselectHandler:function onselectHandler(Tr,Dr){},setSelectHandler:function setSelectHandler(Tr){this.onselectHandler=Tr},createBox:function createBox(){var Tr=Hr.ele(this.doc,"div",{className:Ur+"list"}),Dr=Hr.ele(this.doc,"div",{className:Ur+"list-bg"});return"width"in this.options&&(Tr.style.width=this.options.width+"px"),Tr.appendChild(Dr),Tr},select:function select(Tr){var Dr=this.currentSelect;-1===Dr&&(Dr=Tr),this.unselect(Dr),this.currentSelect=Tr,Hr.getClassList(this.itemGroups.items[Tr]).add(Ur+"list-item-select"),this.onselectHandler(Tr,Dr)},unselect:function unselect(Tr){Hr.getClassList(this.itemGroups.items[Tr]).remove(Ur+"list-item-select")},setOffset:function setOffset(Tr,Dr){this.element.style.left=Tr+"px",this.element.style.top=Dr+"px"},initEvent:function initEvent(){var Tr="."+Ur+"list-item",Dr=this;Hr.delegate(this.itemGroups.container,"mousedown",Tr,(function(Tr){Tr.preventDefault(),1===Tr.which&&Dr.select(this.getAttribute("data-index"))})),Hr.on(this.element,"mousedown",(function(Tr){Tr.stopPropagation(),Tr.preventDefault()}))},getPositionInfo:function getPositionInfo(){return Hr.getRectBox(this.element)},createItems:function createItems(){var Tr=this.doc,Rr=null,Wr=null,zr=null,Vr=[],Kr=null;return Rr=Hr.ele(this.doc,"div",{className:Ur+"list-item"}),Kr=Rr.cloneNode(!1),Kr.className=Ur+"list-item-container",Dr.Utils.each(this.options.items,(function(Dr,$r){Wr=Rr.cloneNode(!1),zr=Rr.cloneNode(!1),zr.className=Ur+"list-item-icon",Wr.appendChild(zr),Wr.appendChild(Hr.ele(Tr,"text",Dr)),Wr.setAttribute("data-index",$r),Vr.push(Wr),Kr.appendChild(Wr)})),{container:Kr,items:Vr}},mergeElement:function mergeElement(){this.element.appendChild(this.itemGroups.container)},mountTo:function mountTo(Tr){Tr.appendChild(this.element)}});return Wr}.call(Dr,Rr,Dr,Tr),void 0===Ur||(Tr.exports=Ur)},fdbc:function(Tr,Dr){Tr.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(Tr,Dr,Rr){var Ur=Rr("4930");Tr.exports=Ur&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe07:function(Tr,Dr,Rr){},fea9:function(Tr,Dr,Rr){var Ur=Rr("da84");Tr.exports=Ur.Promise},fed5:function(Tr,Dr){Dr.f=Object.getOwnPropertySymbols},feff:function(Tr,Dr,Rr){"use strict";Rr.d(Dr,"a",(function(){return sn}));var Ur=Rr("d4ec"),Hr=Rr("bee2"),Wr=(Rr("159b"),Rr("6d0b")),zr=Rr("110d"),Vr=Rr("8d79"),Kr=Rr("53b1"),$r=Rr("38a8"),Gr=Rr("454b"),Jr=Rr("e3c0"),Xr=Rr("ca11"),Yr=Rr("1551"),Qr=Rr("49d1"),Zr=Rr("c1cd"),en=Rr("49e9"),tn=Rr("8d1d"),rn=Rr("4b89"),nn=Rr("053b"),an=Rr("eb7b"),sn=function(){function ParseUndoUnit(Tr,Dr,Rr,Hr){Object(Ur["a"])(this,ParseUndoUnit),this._tmp={start:"",end:""},this._hoEditorFactoryID=Tr,this._startPath=Dr,this._endPath=Rr,this._undo=new Gr["a"](this._hoEditorFactoryID),this._undoNodes=new Array,this._nodes=Hr,this._opTime=new Date,this._affectText=tn["a"].instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(Hr)}return Object(Hr["a"])(ParseUndoUnit,[{key:"undo",value:function undo(){var Tr=new Vr["a"](this._hoEditorFactoryID,Wr["a"].daDelete,this._tmp.start,this._tmp.start);Tr.oldEndPath=this._tmp.end,Tr.oldDrawTreeLines=new en["a"](this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start,this._tmp.end);var Dr=tn["a"].instance().getFactory(this._hoEditorFactoryID);this._undoNodes.forEach((function(Tr){Dr.docTree.deleteNode(Tr,"update")}));while(!this._undo.atBottom())this._undo.undo();Dr.docTree.change(Tr),Dr.drawTree.moveCaretToPath(this._endPath);var Rr=Dr.docTree.findNodePositionByPath(this._endPath);Rr&&Rr.node instanceof nn["a"]&&Rr.node.parentNode&&Rr.node.parentNode instanceof rn["f"]&&2===Rr.node.parentNode.childNodes.length&&Dr.docController.resetEmptyInputFieldNode(Dr,Rr.node.parentNode),Dr.docTree.curDomRange=new Kr["a"](this._hoEditorFactoryID,this._startPath,this._endPath)}},{key:"initParam",value:function initParam(){this._undoNodes=new Array,this._undo.clear()}},{key:"redo",value:function redo(){var Tr,Dr=this;this.initParam();var Rr=new Kr["a"](this._hoEditorFactoryID,this._startPath,this._endPath).normalize(),Ur=tn["a"].instance().getFactory(this._hoEditorFactoryID),Hr=Ur.docTree.getPathRoots(this._startPath);if(!Hr)throw new Error("错误的插入位置".concat(this._startPath));Ur.drawTree.getDrawRootsByPath(this._startPath)[1];var Gr=Ur.docTree.getRootPathByNodes(Hr);Rr.isEmpty||(this._undo.begin(),this._undo.add(new Jr["a"](this._hoEditorFactoryID,Rr.startPath,Rr.endPath)),this._undo.commit());var en,nn=Ur.docTree.findNodePositionByPath(Rr.startPath);if(this._nodes){var sn=Ur.docTree.getNodeLastPath(nn.node),cn=nn.node,un=-1,dn=sn,hn=Xr["a"].treePathCompare(Rr.startPath,sn);if(hn<0&&nn.node instanceof zr["a"]){var pn=new $r["a"](this._hoEditorFactoryID,Rr.startPath,nn.node,new Kr["a"](this._hoEditorFactoryID,Rr.startPath,sn));this._undo.begin(),this._undo.add(pn),this._undo.commit();var _n=pn.items[0];cn=_n,un=1,dn=Ur.docTree.getNodeLastPath(_n)}var gn=function checkTableNode(Tr){var Rr;return{isTable:Dr._nodes[Tr]instanceof Qr["c"],prevNode:0==Tr?cn:Dr._nodes[Tr-1],nextNode:Tr==Dr._nodes.length-1?null===(Rr=cn)||void 0===Rr?void 0:Rr.nextSibling():Dr._nodes[Tr+1]}},mn=function checkTableNode2(Tr){return{isTable:Tr instanceof Qr["c"],node:Tr,prevNode:Tr.prevSibling(),nextNode:Tr.nextSibling()}},vn=function insertParaNode(Tr){if(Tr.isTable){if(!(Tr.prevNode instanceof Yr["a"])){var Rr=new Yr["a"](Dr._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(Tr.node.getNodePath()),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(Ur.docTree.getNodeLastPath(Tr.prevNode),Rr),Dr._undoNodes.push(Rr),Tr.node.paragraphNode=Rr}if(!(Tr.nextNode instanceof Yr["a"])){var Hr=new Yr["a"](Dr._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(Tr.node.getNodePath()),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(Ur.docTree.getNodeLastPath(Tr.node),Hr),Dr._undoNodes.push(Hr)}}},yn=function checkTables(Tr){var Dr=mn(Tr);Dr.isTable&&vn(Dr),Tr instanceof Zr["a"]&&Tr.childNodes.forEach((function(Tr){var Dr=mn(Tr);Dr.isTable&&vn(Dr),checkTables(Tr)}))};for(un=this._nodes.length-1;un>=0;un--){var bn=this._nodes[un];bn.rootPath=Gr,bn.rootNodes=Hr;var wn=gn(un);if(wn.isTable){if(!(wn.nextNode instanceof Yr["a"])){var xn=new Yr["a"](this._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(nn.path),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(dn,xn),this._undoNodes.push(xn),en=xn}if(Ur.docTree.insertNodeAfterPath(dn,bn),this._undoNodes.push(bn),wn.prevNode instanceof Yr["a"])bn.paragraphNode=wn.prevNode;else{var Cn=new Yr["a"](this._hoEditorFactoryID,Ur.docTree.activeNodes,Ur.docTree.getParentNode(dn),Ur.docTree.curParaNo);Ur.docTree.insertNodeAfterPath(dn,Cn),bn.paragraphNode=Cn,this._undoNodes.push(Cn)}}else Ur.docTree.insertNodeAfterPath(dn,bn),bn instanceof Yr["a"]&&bn.refreshDrootNodes(),this._undoNodes.push(bn)}for(var Pn=0;Pn<this._nodes.length;Pn++)yn(this._nodes[Pn]);en=this._nodes[this._nodes.length-1],en instanceof Qr["c"]&&(en=this._nodes[this._nodes.length-1].nextSibling())}var En=Ur.docTree.getNodeLastPath(en),Sn=new Vr["a"](this._hoEditorFactoryID,Wr["a"].daInsert,Rr.startPath,En);if(Ur.docTree.change(Sn),(null===(Tr=nn.node)||void 0===Tr?void 0:Tr.parentNode)instanceof rn["f"]){var Tn;null===(Tn=nn.node)||void 0===Tn||Tn.parentNode.update();var Dn=nn.node.parentNode.parentNode;Dn instanceof an["a"]&&Dn.drawCell.drawPageCells.length>1&&(Dn.drawCell.needUpdate=!0,Dn.table.update())}this._tmp.start=Rr.startPath,this._tmp.end=En,Ur.drawTree.moveCaretToPath(En),Ur.docTree.curDomRange=new Kr["a"](this._hoEditorFactoryID,En,En)}},{key:"isEmpty",get:function get(){return!1}},{key:"merge",value:function merge(Tr){return!1}},{key:"actionString",value:function actionString(){return"粘贴内容"}},{key:"opTime",get:function get(){return this._opTime}},{key:"affectText",get:function get(){return this._affectText}}]),ParseUndoUnit}()},ff4a:function(Tr,Dr,Rr){var Ur;Ur=function(){return{selectColor:"rgba(42, 106, 189, 0.2)",allSelectColor:"rgba(42, 106, 189, 0.6)"}}.call(Dr,Rr,Dr,Tr),void 0===Ur||(Tr.exports=Ur)},ff80:function(Tr,Dr,Rr){"use strict";Rr.d(Dr,"a",(function(){return Yr}));var Ur=Rr("3835"),Hr=Rr("d4ec"),Wr=Rr("bee2"),zr=Rr("262e"),Vr=Rr("2caf"),Kr=(Rr("a434"),Rr("159b"),Rr("120e"),Rr("8bda")),$r=Rr("5964"),Gr=Rr("0508"),Jr=Rr("1551"),Xr=Rr("26a9"),Yr=function(Tr){Object(zr["a"])(DrawCell,Tr);var Dr=Object(Vr["a"])(DrawCell);function DrawCell(Tr,Rr,Ur,Wr,zr){var Vr;return Object(Hr["a"])(this,DrawCell),Vr=Dr.call(this,Rr.rootPath,Ur),Vr._node=Rr,Vr._hoEditorFactoryID=Tr,Vr._discriminator=Kr["a"],Vr._cell=Rr,Vr._dHeight=zr,Vr._dWidth=Wr,Vr._drawLines=new Array,Vr._drawPageCells=new Array,Vr._docHeight=0,Vr._needUpdate=!0,Vr}return Object(Wr["a"])(DrawCell,[{key:"needUpdate",get:function get(){return this._needUpdate},set:function set(Tr){this._needUpdate=Tr}},{key:"drawPageCells",get:function get(){return this._drawPageCells},set:function set(Tr){this._drawPageCells=Tr}},{key:"node",get:function get(){return this._node},set:function set(Tr){this._node=Tr}},{key:"discriminator",get:function get(){return this._discriminator},set:function set(Tr){this._discriminator=Tr}},{key:"cell",get:function get(){return this._cell},set:function set(Tr){this._cell=Tr}},{key:"drawLines",get:function get(){return this._drawLines},set:function set(Tr){this._drawLines=Tr}},{key:"docHeight",get:function get(){return this._docHeight},set:function set(Tr){this._docHeight=Tr}},{key:"dWidth",get:function get(){return this._dWidth},set:function set(Tr){Tr!==this._dWidth&&(this._dWidth=Tr,this.dWidth=Tr)}},{key:"dHeight",get:function get(){return this._dHeight},set:function set(Tr){Tr!==this._dHeight&&(this._dHeight=Tr)}},{key:"calcCellHeight",value:function calcCellHeight(){for(var Tr=this._cell.table.rows.indexOf(this._cell.row),Dr=0,Rr=Tr,Ur=Tr+this._cell.rowSpan-1;Rr<=Ur;Rr++)Dr+=this._cell.table.rowInfos[Rr].rowHeight;return Dr}},{key:"getDrawPageCell",value:function getDrawPageCell(Tr){for(var Dr=0;Dr<this._drawPageCells.length;Dr++)if(this._drawPageCells[Dr].drawPageTable===Tr)return this._drawPageCells[Dr];return null}},{key:"clearOverDrawPageCell",value:function clearOverDrawPageCell(Tr){if(!(this.drawPageCells.length<=1)){var Dr=this._cell.table.getCellInfos(this._cell),Rr=Object(Ur["a"])(Dr,2),Hr=Rr[0];Rr[1];if(this._cell.table.rowInfos[Hr].rowProperty.repeatAsTitleAtPageTop)this.drawPageCells.splice(Tr.table.drawTable.drawPageTables.length,this.drawPageCells.length);else{var Wr=this.getDrawPageCell(Tr);if(Wr){var zr=this._cell.drawCell.drawPageCells.indexOf(Wr);while(this._cell.drawCell.drawPageCells.length-1>zr){var Vr=this._cell.drawCell.drawPageCells.pop();Vr&&Vr.parent&&Vr.parent.removeChild(Vr)}}}}}},{key:"getCellRestHeight",value:function getCellRestHeight(Tr){var Dr=0;while(Tr>=0){var Rr=this._drawPageCells[Tr];if(!Rr)break;Dr+=Rr.docHeight,Tr-=1}return this._dHeight-Dr}},{key:"copyPaintCell",value:function copyPaintCell(Tr,Dr,Rr){var Ur=Tr;if(Ur){var Hr=this._cell.drawCell._drawPageCells[0],Wr=this._cell.drawCell.getDrawPageCell(Ur);if(Hr){var zr,Vr=Hr.clone(!0),Kr=Hr.getChildIndex(Hr.borderShape);return Kr>=0&&Vr.removeChildAt(Kr),Wr?(zr=Wr,Wr.removeAllChildren(),Tr.contains(Wr)||Tr.addChild(zr)):(zr=new $r["a"](this._hoEditorFactoryID,Tr,this._cell,Hr.dLeft,Hr.dTop,Hr.dWidth,Hr.dHeight,Hr.index,Hr.startDline,Hr.maxHeight,!1),Tr.addChild(zr),this._cell.drawCell.drawPageCells.push(zr)),zr.children=Vr.children,zr.removeChildAt(0),zr.dHeight=Hr.dHeight,zr.dLeft=Hr.dLeft,zr.dTop=Rr,zr.maxHeight=Hr.maxHeight,zr.docWidth=Hr.docWidth,zr.docHeight=Hr.docHeight,zr.usedHeight=Hr.usedHeight,zr.bottomDline=Hr.bottomDline,zr.topDline=Hr.topDline,zr.lastDrawLine=Hr.lastDrawLine,zr.allowAcrossPage=Hr.allowAcrossPage,zr.x=Hr.x,zr.y=Rr,zr}return Wr}return null}},{key:"paintCell",value:function paintCell(Tr,Dr,Rr,Hr,Wr){var zr=this._cell.getLeftWidth(),Vr=Object(Ur["a"])(zr,2),Kr=Vr[0],Gr=Vr[1];this._dWidth=Gr;var Jr=0;if(0===Wr){var Yr=this._cell.drawCell.calcCellHeight();this._cell.cellProperty.align===Xr["k"].vatop?Jr=0:this._cell.cellProperty.align===Xr["k"].vacenter&&Yr>this._cell.drawCell.docHeight?Jr=(Yr-this._cell.drawCell.docHeight)/2:this._cell.cellProperty.align===Xr["k"].vabottom&&Yr>this._cell.drawCell.docHeight&&(Jr=Yr-this._cell.drawCell.docHeight)}var Qr=Tr,Zr=new $r["a"](this._hoEditorFactoryID,Qr,this._cell,Kr,Dr,Gr,Rr,this._drawPageCells.length,Wr,Hr);Zr.x=Kr,Zr.y=Dr,Tr.drawItems.push(Zr),Tr.addChild(Zr),this.drawPageCells.push(Zr),Zr.paintArea(this._drawLines,Wr,Jr),this._drawLines[this._drawLines.length-1].dHeight,this._drawLines[this._drawLines.length-1].dTop}},{key:"clear",value:function clear(){if(this._drawLines.length=0,this._cell.childNodes.length>0&&this._cell.childNodes[0]instanceof Jr["a"]){var Tr=this._cell.childNodes[0];Tr.node2DrawNode(),this._drawLines.push(Tr.drawlines[0]),this._drawPageCells.forEach((function(Tr,Dr){Tr.clear()})),this._drawPageCells.length>0&&this._drawPageCells[0].addChild(Tr.drawlines[0])}}},{key:"removeAllPartCell",value:function removeAllPartCell(){for(var Tr=0;Tr<this._drawPageCells.length;Tr++){var Dr=this._drawPageCells[Tr];Dr.parent&&Dr.parent.removeChild(Dr)}}},{key:"updateHeight",value:function updateHeight(){var Tr=!0,Dr=this.drawLines[this.drawLines.length-1].paragraphNode,Rr=this.drawLines[0].paragraphNode;this.docHeight=Dr.dTop+Dr.dHeight-Rr.dTop+Rr.combineParagraph.topMarginPixes;var Hr=this._cell.table.getCellInfos(this._cell),Wr=Object(Ur["a"])(Hr,2),zr=Wr[0];Wr[1];if(zr>=0){var Vr=this._cell.table.rowInfos[zr].rowProperty;Vr.rowHeight>0&&!Vr.isAutoRaiseHeight&&(Tr=!1)}Tr&&(this.dHeight=this.docHeight)}}]),DrawCell}(Gr["a"])},ff84:function(Tr,Dr,Rr){"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Ur=Rr("349c"),Hr=Rr("da3d"),Wr=Rr("241e"),zr=Rr("9ffa"),Vr=Rr("8e51"),Kr=Rr("7cb9"),$r=Rr("c17b"),Gr=Rr("fbb2");Dr.default={CODE39:Ur.CODE39,CODE128:Hr.CODE128,CODE128A:Hr.CODE128A,CODE128B:Hr.CODE128B,CODE128C:Hr.CODE128C,EAN13:Wr.EAN13,EAN8:Wr.EAN8,EAN5:Wr.EAN5,EAN2:Wr.EAN2,UPC:Wr.UPC,UPCE:Wr.UPCE,ITF14:zr.ITF14,ITF:zr.ITF,MSI:Vr.MSI,MSI10:Vr.MSI10,MSI11:Vr.MSI11,MSI1010:Vr.MSI1010,MSI1110:Vr.MSI1110,pharmacode:Kr.pharmacode,codabar:$r.codabar,GenericBarcode:Gr.GenericBarcode}},ff91:function(Tr,Dr,Rr){"use strict";Rr.d(Dr,"a",(function(){return Wr}));var Ur=Rr("d4ec"),Hr=Rr("bee2"),Wr=function(){function Exception(){Object(Ur["a"])(this,Exception)}return Object(Hr["a"])(Exception,null,[{key:"NodeUndefined",value:function NodeUndefined(){return new Error("节点没有定义")}},{key:"NodeNotFound",value:function NodeNotFound(){return new Error("节点没有找到")}},{key:"PathNotAtSameRoot",value:function PathNotAtSameRoot(){return new Error("节点不在同一根节点当中")}},{key:"LineNotDefined",value:function LineNotDefined(){return new Error("行没有定义")}},{key:"printCallStack",value:function printCallStack(){}}]),Exception}()}})["default"]}));