hoeditor-web 2.0.75 → 2.0.76

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.
@@ -745,4 +745,4 @@ _regeneratorRuntime=function _regeneratorRuntime(){return l};var l={},u=Object.p
745
745
  * (c) 2015-present Evan You
746
746
  * @license MIT
747
747
  */
748
- function _typeof(l){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},_typeof(l)}function _defineProperty(l,u,_){return u in l?Object.defineProperty(l,u,{value:_,enumerable:!0,configurable:!0,writable:!0}):l[u]=_,l}function _toConsumableArray(l){return _arrayWithoutHoles(l)||_iterableToArray(l)||_nonIterableSpread()}function _arrayWithoutHoles(l){if(Array.isArray(l)){for(var u=0,_=new Array(l.length);u<l.length;u++)_[u]=l[u];return _}}function _iterableToArray(l){if(Symbol.iterator in Object(l)||"[object Arguments]"===Object.prototype.toString.call(l))return Array.from(l)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function reflectionIsSupported(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function copyReflectionMetadata(l,u){forwardMetadata(l,u),Object.getOwnPropertyNames(u.prototype).forEach((function(_){forwardMetadata(l.prototype,u.prototype,_)})),Object.getOwnPropertyNames(u).forEach((function(_){forwardMetadata(l,u,_)}))}function forwardMetadata(l,u,_){var v=_?Reflect.getOwnMetadataKeys(u,_):Reflect.getOwnMetadataKeys(u);v.forEach((function(v){var C=_?Reflect.getOwnMetadata(v,u,_):Reflect.getOwnMetadata(v,u);_?Reflect.defineMetadata(v,C,l,_):Reflect.defineMetadata(v,C,l)}))}var re={__proto__:[]},ne=re instanceof Array;function vue_class_component_esm_createDecorator(l){return function(u,_,v){var C="function"===typeof u?u:u.constructor;C.__decorators__||(C.__decorators__=[]),"number"!==typeof v&&(v=void 0),C.__decorators__.push((function(u){return l(u,_,v)}))}}function mixins(){for(var l=arguments.length,u=new Array(l),_=0;_<l;_++)u[_]=arguments[_];return k().extend({mixins:u})}function isPrimitive(l){var u=_typeof(l);return null==l||"object"!==u&&"function"!==u}function collectDataFromConstructor(l,u){var _=u.prototype._init;u.prototype._init=function(){var u=this,_=Object.getOwnPropertyNames(l);if(l.$options.props)for(var v in l.$options.props)l.hasOwnProperty(v)||_.push(v);_.forEach((function(_){Object.defineProperty(u,_,{get:function get(){return l[_]},set:function set(u){l[_]=u},configurable:!0})}))};var v=new u;u.prototype._init=_;var C={};return Object.keys(v).forEach((function(l){void 0!==v[l]&&(C[l]=v[l])})),C}var ie=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(l){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u.name=u.name||l._componentTag||l.name;var _=l.prototype;Object.getOwnPropertyNames(_).forEach((function(l){if("constructor"!==l)if(ie.indexOf(l)>-1)u[l]=_[l];else{var v=Object.getOwnPropertyDescriptor(_,l);void 0!==v.value?"function"===typeof v.value?(u.methods||(u.methods={}))[l]=v.value:(u.mixins||(u.mixins=[])).push({data:function data(){return _defineProperty({},l,v.value)}}):(v.get||v.set)&&((u.computed||(u.computed={}))[l]={get:v.get,set:v.set})}})),(u.mixins||(u.mixins=[])).push({data:function data(){return collectDataFromConstructor(this,l)}});var v=l.__decorators__;v&&(v.forEach((function(l){return l(u)})),delete l.__decorators__);var C=Object.getPrototypeOf(l.prototype),N=C instanceof k()?C.constructor:k(),B=N.extend(u);return forwardStaticMembers(B,l,N),reflectionIsSupported()&&copyReflectionMetadata(B,l),B}var oe={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(l,u,_){Object.getOwnPropertyNames(u).forEach((function(v){if(!oe[v]){var C=Object.getOwnPropertyDescriptor(l,v);if(!C||C.configurable){var k=Object.getOwnPropertyDescriptor(u,v);if(!ne){if("cid"===v)return;var N=Object.getOwnPropertyDescriptor(_,v);if(!isPrimitive(k.value)&&N&&N.value===k.value)return}0,Object.defineProperty(l,v,k)}}}))}function Component(l){return"function"===typeof l?componentFactory(l):function(u){return componentFactory(u,l)}}Component.registerHooks=function registerHooks(l){ie.push.apply(ie,_toConsumableArray(l))};var ae=Component,le="__reactiveInject__";function Inject(l){return vue_class_component_esm_createDecorator((function(u,_){"undefined"===typeof u.inject&&(u.inject={}),Array.isArray(u.inject)||(u.inject[_]=l||_)}))}function produceProvide(l){var provide=function(){var u=this,_="function"===typeof l?l.call(this):l;for(var v in _=Object.create(_||null),_[le]=this[le]||{},provide.managed)_[provide.managed[v]]=this[v];var _loop_1=function(l){_[provide.managedReactive[l]]=C[l],Object.defineProperty(_[le],provide.managedReactive[l],{enumerable:!0,get:function(){return u[l]}})},C=this;for(var v in provide.managedReactive)_loop_1(v);return _};return provide.managed={},provide.managedReactive={},provide}function needToProduceProvide(l){return"function"!==typeof l||!l.managed&&!l.managedReactive}function Provide(l){return vue_class_component_esm_createDecorator((function(u,_){var v=u.provide;needToProduceProvide(v)&&(v=u.provide=produceProvide(v)),v.managed[_]=l||_}))}var ce="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function applyMetadata(l,u,_){if(ce&&!Array.isArray(l)&&"function"!==typeof l&&"undefined"===typeof l.type){var v=Reflect.getMetadata("design:type",u,_);v!==Object&&(l.type=v)}}function Prop(l){return void 0===l&&(l={}),function(u,_){applyMetadata(l,u,_),vue_class_component_esm_createDecorator((function(u,_){(u.props||(u.props={}))[_]=l}))(u,_)}}function Watch(l,u){void 0===u&&(u={});var _=u.deep,v=void 0!==_&&_,C=u.immediate,k=void 0!==C&&C;return vue_class_component_esm_createDecorator((function(u,_){"object"!==typeof u.watch&&(u.watch=Object.create(null));var C=u.watch;"object"!==typeof C[l]||Array.isArray(C[l])?"undefined"===typeof C[l]&&(C[l]=[]):C[l]=[C[l]],C[l].push({handler:_,deep:v,immediate:k})}))}function Ref(l){return vue_class_component_esm_createDecorator((function(u,_){u.computed=u.computed||{},u.computed[_]={cache:!1,get:function(){return this.$refs[l||_]}}}))}var de,HoDocvue_type_template_id_0d9b6522_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.docClassNames},[_("div",{ref:"editorArea",staticClass:"editors"},[l.drawPageLength>0?_("div",{staticClass:"editor",on:{click:function(u){return l.setActiveDocIndex(l.hoEditorId)}}},[l._l(l.drawPageCount.count,(function(u){return[_("HoPage",{key:u-1,attrs:{"data-id":u-1,index:u-1,docIndex:l.docIndex,canvasWidth:l.canvasParams.width,canvasHeight:l.canvasParams.height,currentActivePages:l.activePageIndex.index,hoEditorId:l.hoEditorId,hoEditorFactoryIdList:l.hoEditorFactoryIdList,mouseMoveNodes:l.mouseMoveNodes,viewableAreaObserver:l.viewableAreaObserver,inViewPages:l.inViewPages,canvasHeadFootPos:l.canvasHeadFootPos,poperTipPos:l.poperTipPos,textStyle:l.textStyle,aiInfo:l.aiInfo},on:{pageReady:l.pageReady,canvasRightClick:l.mouseRightClickEvent},scopedSlots:l._u([{key:"hoPageHead",fn:function(){return[l._t("hoDocHead")]},proxy:!0},{key:"hoPageFoot",fn:function(){return[l._t("hoDocFoot")]},proxy:!0}],null,!0)})]}))],2):l._e()]),"datePoper"===l.poperType||"selectPoper"===l.poperType?_("PoperSelectModal",{attrs:{poperType:l.poperType,poperSelectList:l.poperSelectList,poperPos:l.poperPos,hoEditorId:l.hoEditorId},on:{poperClose:l.poperClose}}):l._e(),_("PoperMark",{directives:[{name:"show",rawName:"v-show",value:"datePoper"===l.poperType||"selectPoper"===l.poperType||"table-cell-poper"===l.poperType,expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),"table-cell-poper"===l.poperType?_("TableCellPoper",{attrs:{poperNode:l.nodeValue,poperPos:l.poperPos},on:{poperClose:l.poperClose}}):l._e(),_("HoToPage",{attrs:{hoEditorId:l.hoEditorId,inViewPages:l.inViewPages}}),_("PoperTipText",{attrs:{isPoperText:l.isPoperText,poperText:l.poperText,poperPos:l.poperTextPos},on:{poperTextClose:l.poperTextClose}}),_("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return l.isCreateRightMenuModal=!1},expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:l.isCreateRightMenuModal,expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[l.showCommentsBtn?_("li",{staticClass:"mouse-menu-item",on:{click:l.hideComments}},[l._v(l._s(l.isHideComments?"显示":"隐藏")+"批注")]):l._e(),_("li",{staticClass:"mouse-menu-item"},[l._v(" 编辑器内核版本:   "),_("span",{staticStyle:{"font-size":"14px",color:"#0a77e3"}},[l._v("v "+l._s(l.version))])])])],1)},he=[],_e=(__webpack_require__(32023),__webpack_require__(2707),__webpack_require__(15306),function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"hoPage",class:l.pageClassNames,style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"}},[_("canvas",{ref:"domcanvas",class:l.domCanvasName,style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight}}),_("canvas",{ref:"selectcanvas",staticClass:"selectcanvas",style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight},on:{contextmenu:function(u){return l.canvasRightClick.apply(null,arguments)}}}),l.index===l.aiInfo.pageIndex?_("AiModel",{attrs:{textStyle:l.textStyle,scaleWidth:l.scaleWidth,hoEditorFactoryId:l.hoEditorId,aiInfo:l.aiInfo}}):l._e(),"header"===l.isHeadFoot||"footer"===l.isHeadFoot?_("ho-head-foot",{attrs:{headerFooterPosition:l.canvasHeadFootPos,isHeadFoot:l.isHeadFoot},scopedSlots:l._u([{key:"head",fn:function(){return[l._t("hoPageHead")]},proxy:!0},{key:"foot",fn:function(){return[l._t("hoPageFoot")]},proxy:!0}],null,!0)}):l._e()],1)}),pe=[],fe=(__webpack_require__(23123),__webpack_require__(7001)),me=__webpack_require__(74532),be=(__webpack_require__(66992),__webpack_require__(51532),__webpack_require__(78783),__webpack_require__(33948),__webpack_require__(23157),__webpack_require__(40561),__webpack_require__(80705)),Ee=__webpack_require__(15898),ke=__webpack_require__(21785),Ie=__webpack_require__(63670),Ne=__webpack_require__(50141),Fe=__webpack_require__(73916),He=__webpack_require__(7080),qe=__webpack_require__(54254),Ke=__webpack_require__(61837),Ge=__webpack_require__(43856),et=__webpack_require__(61725),tt=__webpack_require__(46989),rt=__webpack_require__(72460),nt=__webpack_require__(66447),it=__webpack_require__(68065),ot=__webpack_require__(66554),st=function(){function DrawSelectLevel(l,u,_,v,C){(0,q.Z)(this,DrawSelectLevel),this._hoEditorFactoryID=l,this._selectCanvas=_,this._pageIndex=u,this._docIndex=v,this._drawPageIndex=C,this._selectStage=null,this._mouseDownCount=0,this._oldRange=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,this._shapesColor=new Map}return(0,$.Z)(DrawSelectLevel,[{key:"bindStage",value:function bindStage(){var l=this;if(!this._selectStage){var u,_,v=rt.b.instance().getFactory(this._hoEditorFactoryID);this._selectCanvas.width=v.pageProperty.canvasParams.width,this._selectCanvas.height=v.pageProperty.canvasParams.height,this._selectStage=new createjs.Stage(this._selectCanvas),this._selectStage.scaleX=nt.f.instance().scaleXY,this._selectStage.scaleY=nt.f.instance().scaleXY;var C=v.drawTree.drawPages[this._pageIndex];null!==(u=C.drawDomLevel)&&void 0!==u&&u.stage&&(this._selectStage.nextStage=null===(_=C.drawDomLevel)||void 0===_?void 0:_.stage),C.setEnableMouseOver(5),this._selectStage.addChild(C.selectContainer),v.drawTree.paintStatus!==Ee.Dh.psPrint&&v.drawTree.paintStatus!==Ee.Dh.psPreview&&(this._selectStage.addChild(C.headerLeftTag),this._selectStage.addChild(C.headerRightTag),this._selectStage.addChild(C.footerLeftTag),this._selectStage.addChild(C.footerRightTag)),this._selectStage.addEventListener("stagemousedown",(function(u){switch(v.drawTree.paintStatus){case Ee.Dh.psPreview:l.mouseDownPreview(u);break;case Ee.Dh.psPrint:break;default:l.mouseDown(u);break}})),this._selectStage.addEventListener("stagemouseup",(function(u){switch(v.drawTree.paintStatus){case Ee.Dh.psPreview:l.mouseUpPreview(u);break;case Ee.Dh.psPrint:break;default:l.mouseup(u);break}})),this._selectStage.addEventListener("stagemousemove",(function(u){switch(v.drawTree.paintStatus){case Ee.Dh.psPreview:l.mouseMovePreview(u);break;case Ee.Dh.psPrint:break;default:l.mousemove(u);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(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];if(u.printStatus.printRange==qe.dR.prCaret){var v=new createjs.Point(l.localX,l.localY),C=_.drawMainDoc;C&&(v.y<C.dTop&&(v.y=0),u.printStatus.drawPrintCaret.Position=[_.pageIndex,v.y])}else if(u.printStatus.printRange==qe.dR.prSelected){var k=new createjs.Point(l.localX,l.localY);u.printStatus.drawPrintSelected.mousePressed=!0;var N=u.docTree.ctlKeyPressed(be.x_.ckCtrl)?1:0;u.printStatus.drawPrintSelected.addPrintArea(_.pageIndex,new Ge.S(k),N)}}},{key:"mouseMovePreview",value:function mouseMovePreview(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.printStatus.printRange==qe.dR.prSelected&&u.printStatus.drawPrintSelected.mousePressed){var _,v=new createjs.Point(l.localX,l.localY);null===(_=u.printStatus.drawPrintSelected.selectedArea)||void 0===_||_.setEndPoint(v),u.printStatus.drawPrintSelected.paintArea()}}},{key:"mouseUpPreview",value:function mouseUpPreview(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.printStatus.printRange==qe.dR.prSelected){var _,v=new createjs.Point(l.localX,l.localY);u.printStatus.drawPrintSelected.mousePressed=!1,null===(_=u.printStatus.drawPrintSelected.selectedArea)||void 0===_||_.setEndPoint(v)}}},{key:"mouseDblClick",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(l){var u,_,v,C,k,N,B,U,W,q,$,Y,ee,re,ne,ie,oe,ae,le,ce,de,he,_e,pe;return(0,fe.Z)().wrap((function _callee$(fe){while(1)switch(fe.prev=fe.next){case 0:if(u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex],l.currentTarget!==this.stage){fe.next=45;break}if(v=u.drawTree.activePage,C=v?v.pageIndex:-1,k=null,v&&v.drawDomLevel&&v.activeDrawRect&&(k=v.activeDrawRect),u.drawTree.selectRange.clearAllSelectShape(),u.drawTree.selectRange.beginRangeSelect=!1,u.drawTree.activePage=_,u.drawTree.inViewPages.indexOf(this._pageIndex)<0&&u.drawTree.inViewPages.push(this._pageIndex),_.drawDomLevel){fe.next=13;break}return fe.abrupt("return",!1);case 13:if(N=_.drawDomLevel.getDrawPlaceByPos(l.stageX,l.stageY),u.isCanEditHeadFoot||!(N instanceof it.g||N instanceof ot.d)){fe.next=16;break}return fe.abrupt("return",!1);case 16:if(B=k==N,_.activeDrawRect=N,k===N){fe.next=22;break}return U=new Ke.$(C,this._pageIndex,k,N),fe.next=22,u.drawTree.pageAreaChanged(U);case 22:if(W=u.drawTree.getStagePosition(_,N,l.stageX,l.stageY),!W){fe.next=45;break}if(B||!W.page){fe.next=30;break}if(u.docTree.curDomRange.setSamePath(W.path),0!==N.children.length){fe.next=28;break}return fe.abrupt("return",!0);case 28:return u.drawTree.moveCaretToPath(W.path),fe.abrupt("return",!0);case 30:if(q=u.docTree.findNodePositionByPath(W.path),!q||!q.node){fe.next=45;break}if(Y=q.node.prevSibling(),Y&&(ee=u.docTree.curDomRange.clone(),re=u.docTree.getNodeLastPath(Y),ne=u.docTree.getNodeLastPath(q.node),ie=new Ie.a(u.hoEditorFactoryId,re,ne),oe=new ke.r(ee,ie),u.docTree.selectChange(oe),u.docTree.curDomRange=ie),q.node.nodeType!==Fe.Jq.ntMedicalExpression&&(q.node.nodeType!==Fe.Jq.ntControl||q.node instanceof He.Yh)&&(null===($=q.node.parentNode)||void 0===$?void 0:$.nodeType)!==Fe.Jq.ntField&&q.node.nodeType!==Fe.Jq.ntSign&&q.node.nodeType!==Fe.Jq.ntGestation&&q.node.nodeType!==Fe.Jq.ntImage||(ae=new Ne.x(q.node,"dblclick",this._pageIndex),u.docTree.nodeNeedModify(ae)),!(q.node.parentNode instanceof et.D)){fe.next=45;break}if(le=q.node.parentNode,ce=le.table.colInfos[q.node.parentNode.row.indexOf(q.node.parentNode)],ce.isAllowEdit){fe.next=40;break}return fe.abrupt("return");case 40:if(de=le.table.rowInfos[q.node.parentNode.table.rows.indexOf(q.node.parentNode.row)],de.isAllowEdit&&!de.rowProperty.repeatAsTitleAtPageTop){fe.next=43;break}return fe.abrupt("return");case 43:he=ce.colProperty,he.editorProperty===tt.YS.DateTime||he.editorProperty===tt.YS.DownList?(_e=new Ne.x(q.node,"dblclick",this._pageIndex),u.docTree.nodeNeedModify(_e)):le.cellProperty.editorProperty!==tt.YS.DateTime&&le.cellProperty.editorProperty!==tt.YS.DownList||(pe=new Ne.x(q.node,"dblclick",this._pageIndex),u.docTree.nodeNeedModify(pe));case 45:return fe.abrupt("return",!0);case 46:case"end":return fe.stop()}}),_callee,this)})));function mouseDblClick(u){return l.apply(this,arguments)}return mouseDblClick}()},{key:"mouseDownHandle",value:function mouseDownHandle(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];if(!_.drawDomLevel)return!1;if(l.currentTarget===this.stage){var v;u.drawTree.selectRange.clearAllSelectShape(),u.drawTree.selectRange.beginRangeSelect=!0,null!==(v=u.drawTree.activePage)&&void 0!==v&&v.activeDrawRect.rootPath.startsWith(be.d9)&&(u.drawTree.activePage=_),u.drawTree.inViewPages.indexOf(this._pageIndex)<0&&u.drawTree.inViewPages.push(this._pageIndex),this._oldRange=u.docTree.curDomRange.clone();var C=u.drawTree.getStagePosition(_,_.activeDrawRect,l.stageX,l.stageY);if(C){var k=u.docTree.curOnDragNode;if(k){var N=k.getNodePath();if(N!==C.path){for(var B=k.drawNodes[0],U=B.children.length-1;U>=0;U--)B.children[U].name!==k.id&&B.children.splice(U,1);u.docTree.curOnDragNode=null,rt.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(_.pageIndex)}}var W=u.drawTree.curOnSelectedComment;if(W){var q=W.eNode.drawNodes[0],$=u.drawPageTree.getMainRootArea(q);if(!$)return!1;for(var Y=0;Y<$.children.length;Y++){var ee=$.children[Y];ee instanceof createjs.Shape&&W.id===ee.name&&(ee.alpha=.5),ee instanceof createjs.Container&&W.id===ee.name&&ee.children.forEach((function(l){"back"===l.name&&(l.alpha=.5)}))}u.drawTree.curOnSelectedComment=null,rt.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(_.pageIndex)}u.drawTree.selectRange.spStart=C,u.drawTree.selectRange.spEnd=C,u.docTree.curDomRange.setSamePath(C.path),u.drawTree.moveCaretToPath(C.path)}}return!0}},{key:"mouseDown",value:function mouseDown(l){var u=this,_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.structureConvert._superiorSign;if(v.length>0&&(_.drawTree.paintStatus===Ee.Dh.psEdit||_.drawTree.paintStatus===Ee.Dh.psReview)){if(this._pageIndex<v[1])return!1;if(this._pageIndex=v[1]){var C=_.drawPageTree.drawMainDocs[this._pageIndex].globalToLocal(l.stageX,l.stageY);if(C.y<v[2])return!1}}if(0===l.nativeEvent.button){this._mouseDownCount+=1;setTimeout((function(){u._mouseDownCount=0}),300);if(2===this._mouseDownCount)return this.mouseDblClick(l),this._mouseDownCount=0,_.drawTree.selectRange.beginRangeSelect=!1,!0;this.mouseDownHandle(l)}else 2===l.nativeEvent.button&&(_.drawTree.selectRange.beginRangeSelect=!1);return!0}},{key:"mousemove",value:function mousemove(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];if(!_.drawDomLevel)return!1;if(u.drawTree.activePage!==_&&(u.drawTree.activePage=_),u.drawTree.inViewPages.indexOf(this._pageIndex)<0&&u.drawTree.inViewPages.push(this._pageIndex),u.drawTree.selectRange.beginRangeSelect&&1===(parseInt(l.nativeEvent.buttons)&&1)){var v;null!==(v=u.drawTree.activePage)&&void 0!==v&&v.activeDrawRect.rootPath.startsWith(be.d9)&&u.drawTree.activePage!==_&&(u.drawTree.activePage=_);var C=u.drawTree.getStagePosition(_,_.activeDrawRect,l.stageX,l.stageY);C&&(u.docTree.curDomRange.endPath=C.path,u.drawTree.selectRange.spEnd=C,u.drawTree.drawSelectRange())}}},{key:"mouseup",value:function mouseup(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.drawTree.selectRange){var _=u.drawTree.selectRange.spStart,v=u.drawTree.selectRange.spEnd;if(u.drawTree.selectRange.beginRangeSelect){if(_&&_.page&&v.dline===_.dline&&v.index===_.index&&v.path===_.path)u.docTree.curDomRange.setSamePath(_.path),-1===v.index?u.drawTree.moveCaretToDitem(_.page,_.dline,_.index):u.drawTree.moveCaretToPath(_.path);else if(u.drawTree.activePage&&u.drawTree.moveEditTo(u.drawTree.activePage.pageIndex,0,0),u.formatPainter.inuse)return u.drawTree.selectRange.beginRangeSelect=!1,void u.formatPainter.useFormatPainter();var C=new ke.r(this._oldRange,u.docTree.curDomRange);u.docTree.selectChange(C)}if(u.drawTree.selectRange.beginRangeSelect=!1,_){var k=u.docTree.findNodePositionByPath(_.path);if(k&&k.node){var N=parseInt(l.nativeEvent.button),B=0===N?"leftclick":2===N?"rightclick":"centerclick",U=new Ne.x(k.node,B,_.page?_.page.pageIndex:this._pageIndex);u.docTree.nodeNeedModify(U)}}}}},{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}(),lt=__webpack_require__(90770);(function(l){l[l["dpNone"]=0]="dpNone",l[l["dpHeader"]=1]="dpHeader",l[l["dpMain"]=2]="dpMain",l[l["dpFooter"]=3]="dpFooter"})(de||(de={}));var ct=function(){function DrawDomLevel(l,u,_){(0,q.Z)(this,DrawDomLevel),this._hoEditorFactoryID=l,this._pageIndex=u,this._domCanvas=_,this._domStage=null,this._headerTop=0,this._mainDocTop=0,this._footerTop=0}return(0,$.Z)(DrawDomLevel,[{key:"footerTop",get:function get(){return this._footerTop},set:function set(l){this._footerTop=l}},{key:"bindStage",value:function bindStage(l){if(this._domStage)l&&this._domStage.update();else{var u=rt.b.instance().getFactory(this._hoEditorFactoryID);this._domCanvas.width=u.pageProperty.canvasParams.width,this._domCanvas.height=u.pageProperty.canvasParams.height,this._domStage=new createjs.Stage(this._domCanvas),this._domStage.scaleX=nt.f.instance().scaleXY,this._domStage.scaleY=nt.f.instance().scaleXY;var _=u.drawTree.drawPages[this._pageIndex];this._domStage.addChild(_.drawDocContainer),_.paintBackGround(),u.subDocManger.paintSubDoc(_.pageIndex,lt.pi.hftHead),u.subDocManger.repaintPageMarkNodes(_.drawHeader,lt.pi.hftHead),u.subDocManger.paintSubDoc(_.pageIndex,lt.pi.hftFoot),u.subDocManger.repaintPageMarkNodes(_.drawFooter,lt.pi.hftFoot),_.drawHeader.x=u.pageProperty.leftMarginPixes,_.drawMainDoc.x=u.pageProperty.leftMarginPixes,_.drawFooter.x=u.pageProperty.leftMarginPixes,_.drawDocContainer.addChild(_.drawMainDoc)}}},{key:"clearStage",value:function clearStage(){if(this._domStage){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.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 l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.drawPages[this._pageIndex];return Math.max(u.drawHeader.dHeight,u.drawHeader.docHeight)},set:function set(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];this._mainDocTop=l,_.drawMainDoc&&(_.drawMainDoc.y=l)}},{key:"getDrawPlaceByPos",value:function getDrawPlaceByPos(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.drawTree.drawPages[this._pageIndex],C=u/nt.f.instance().scaleXY;return C>=0&&C<=this._mainDocTop?v.drawHeader:C>this._mainDocTop&&C<this._footerTop?v.drawMainDoc:v.drawFooter}},{key:"domCanvas",get:function get(){return this._domCanvas}}]),DrawDomLevel}(),HoHeadFootvue_type_template_id_05ad976a_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",[_("ul",{staticClass:"ho-headfoot-list ho-head-list",style:l.headTop},[_("li",{staticClass:"ho-headfoot-item"},[l._v("页眉")]),_("span",{staticStyle:{flex:"1"}}),l._t("head")],2),_("ul",{staticClass:"ho-headfoot-list ho-head-list",style:l.footerTop},[_("li",{staticClass:"ho-headfoot-item"},[l._v("页脚")]),_("span",{staticStyle:{flex:"1"}}),l._t("foot")],2)])},ut=[],dt=function(l){(0,Y.Z)(HoHeadFoot,l);var u=(0,ee.Z)(HoHeadFoot);function HoHeadFoot(){return(0,q.Z)(this,HoHeadFoot),u.apply(this,arguments)}return(0,$.Z)(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}(k());__decorate([Prop()],dt.prototype,"headerFooterPosition",void 0),__decorate([Prop()],dt.prototype,"isHeadFoot",void 0),dt=__decorate([ae({name:"HoHeadFoot"})],dt);var ht=dt,_t=ht;function normalizeComponent(l,u,_,v,C,k,N,B){var U,W="function"===typeof l?l.options:l;if(u&&(W.render=u,W.staticRenderFns=_,W._compiled=!0),v&&(W.functional=!0),k&&(W._scopeId="data-v-"+k),N?(U=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,l||"undefined"===typeof __VUE_SSR_CONTEXT__||(l=__VUE_SSR_CONTEXT__),C&&C.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(N)},W._ssrRegister=U):C&&(U=B?function(){C.call(this,(W.functional?this.parent:this).$root.$options.shadowRoot)}:C),U)if(W.functional){W._injectStyles=U;var q=W.render;W.render=function renderWithStyleInjection(l,u){return U.call(u),q(l,u)}}else{var $=W.beforeCreate;W.beforeCreate=$?[].concat($,U):[U]}return{exports:l,options:W}}var pt=normalizeComponent(_t,HoHeadFootvue_type_template_id_05ad976a_render,ut,!1,null,null,null),ft=pt.exports,AiModelsvue_type_template_id_50a8bcce_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return l.aiInfo.aiText&&l.aiInfo.pageIndex===l.aiInfo.lastPosition[0]&&l.aiInfo.x===l.aiInfo.lastPosition[1]&&l.aiInfo.y===l.aiInfo.lastPosition[2]?_("div",{staticClass:"ho-ai-model",style:{top:l.aiInfo.y+"px",width:l.scaleWidth+"px",padding:l.paddingPx,paddingTop:(this.aiInfo.height-this.textStyle.size/.75)/2+"px",paddingBottom:(this.aiInfo.height-this.textStyle.size/.75)/2+"px"}},[_("span",{staticClass:"model-placeholder",style:{paddingLeft:l.aiInfo.x-l.leftMarginPxies+2+"px"}}),_("span",{staticClass:"ho-ai-content",style:Object.assign({},l.fontStyle)},[l._v(" "+l._s(l.aiInfo.aiText)+" ")])]):l._e()},gt=[],mt=(__webpack_require__(50915),__webpack_require__(58734),function(l){(0,Y.Z)(AiModel,l);var u=(0,ee.Z)(AiModel);function AiModel(){var l;return(0,q.Z)(this,AiModel),l=u.apply(this,arguments),l.leftMarginPxies=0,l.rightMarginPixes=0,l.paddingPx="",l.fontStyle={},l}return(0,$.Z)(AiModel,[{key:"textStyleChange",value:function textStyleChange(){this.initStyle()}},{key:"mounted",value:function mounted(){this.init()}},{key:"init",value:function init(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);this.initStyle(),this.leftMarginPxies=l.pageProperty.leftMarginPixes,this.rightMarginPixes=l.pageProperty.rightMarginPixes,this.paddingPx="0 ".concat(this.rightMarginPixes,"px 0 ").concat(this.leftMarginPxies,"px")}},{key:"initStyle",value:function initStyle(){this.fontStyle={"font-family":this.textStyle.font,"font-size":this.textStyle.size/.75+"px","font-weight":this.textStyle.bold?"bold":"normal","font-style":(this.textStyle.italic,"normal"),"text-decoration":this.textStyle.underline?"underline":"normal",color:"#000","padding-top":(this.aiInfo.height-this.textStyle.size/.75)/2+"px","padding-bottom":(this.aiInfo.height-this.textStyle.size/.75)/2+"px","background-color":"#c4c6c9"}}}]),AiModel}(k()));__decorate([Prop()],mt.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],mt.prototype,"aiInfo",void 0),__decorate([Prop()],mt.prototype,"scaleWidth",void 0),__decorate([Prop()],mt.prototype,"textStyle",void 0),__decorate([Watch("textStyle",{deep:!0})],mt.prototype,"textStyleChange",null),mt=__decorate([ae({name:"AiModels"})],mt);var vt=mt,yt=vt,bt=normalizeComponent(yt,AiModelsvue_type_template_id_50a8bcce_render,gt,!1,null,null,null),wt=bt.exports,xt=wt,Pt=function(l){(0,Y.Z)(HoPage,l);var u=(0,ee.Z)(HoPage);function HoPage(){var l;return(0,q.Z)(this,HoPage),l=u.apply(this,arguments),l.isHeadFoot="",l}return(0,$.Z)(HoPage,[{key:"pageClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-container edit-container-margin":"edit-container"}},{key:"scaleHeight",get:function get(){return this.canvasHeight}},{key:"scaleWidth",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(l){-1===l.indexOf(this.index)?this.selectcanvas.removeEventListener("dblclick",this.addEventerDblClick,!0):this.selectcanvas.addEventListener("dblclick",this.addEventerDblClick,!0)}},{key:"mounted",value:function mounted(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId),_=new ct(this.hoEditorId,this.index,this.domcanvas),v=new st(this.hoEditorId,this.index,this.selectcanvas,this.docIndex,this.index),C=u.drawTree.drawPages[this.index];C.init(_,v),this.$emit("pageReady",C),this.$nextTick((function(){var u;return null===(u=l.viewableAreaObserver)||void 0===u?void 0:u.observe(l.hoPage)}))}},{key:"addEventerDblClick",value:function addEventerDblClick(){var l=rt.b.instance().getFactory(this.hoEditorId).vueController.getCaretPosition(),u="";l&&(u=l.split("/")[0]),this.isHeadFoot=u}},{key:"canvasRightClick",value:function canvasRightClick(l){this.$emit("canvasRightClick",l)}},{key:"canvasKeydown",value:function canvasKeydown(l){this.$emit("canvasKeydown",l)}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=this.viewableAreaObserver)||void 0===l||l.unobserve(this.hoPage)}}]),HoPage}(k());__decorate([Prop()],Pt.prototype,"aiInfo",void 0),__decorate([Prop()],Pt.prototype,"canvasWidth",void 0),__decorate([Prop()],Pt.prototype,"canvasHeight",void 0),__decorate([Prop()],Pt.prototype,"index",void 0),__decorate([Prop()],Pt.prototype,"hoEditorId",void 0),__decorate([Prop()],Pt.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],Pt.prototype,"docIndex",void 0),__decorate([Prop()],Pt.prototype,"currentActivePages",void 0),__decorate([Prop()],Pt.prototype,"mouseMoveNodes",void 0),__decorate([Prop()],Pt.prototype,"viewableAreaObserver",void 0),__decorate([Prop()],Pt.prototype,"inViewPages",void 0),__decorate([Prop()],Pt.prototype,"canvasHeadFootPos",void 0),__decorate([Prop()],Pt.prototype,"poperTipPos",void 0),__decorate([Prop()],Pt.prototype,"textStyle",void 0),__decorate([Ref()],Pt.prototype,"hoPage",void 0),__decorate([Ref()],Pt.prototype,"domcanvas",void 0),__decorate([Ref()],Pt.prototype,"selectcanvas",void 0),__decorate([Watch("inViewPages")],Pt.prototype,"inViewPagesChange",null),Pt=__decorate([ae({name:"HoPage",components:{HoHeadFoot:ft,AiModel:xt}})],Pt);var Ct=Pt,Et=Ct,St=normalizeComponent(Et,_e,pe,!1,null,"6ddb2d23",null),Tt=St.exports,HoToPagevue_type_template_id_2e02cb8f_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return l.visible?_("div",{staticClass:"ho-to-page",style:{right:l.styleRight,bottom:l.styleBottom},on:{click:function(u){return u.stopPropagation(),l.handleClick.apply(null,arguments)}}},[l._t("default",(function(){return[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}}),_("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):l._e()},Dt=[],kt={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(l){return 0===l})).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 l,u=rt.b.instance().getFactory(this.hoEditorId),_=u.domController.getPageProperty(),v=_.heightPixes+10,C=1;null===(l=this.container)||void 0===l||l.scrollTo({top:v*(C-1),left:0,behavior:"smooth"})},init:function init(){this.container=document.querySelector(this.target)},initScrollPolyfill:function initScrollPolyfill(){window.scrollTo||(window.scrollTo=function(l,u){window.pageXOffset=l,window.pageYOffset=u}),window.scrollBy||(window.scrollBy=function(l,u){window.pageXOffset+=l,window.pageYOffset+=u}),document.body.scrollTo||(Element.prototype.scrollTo=function(l,u){this.scrollLeft=l,this.scrollTop=u}),document.body.scrollBy||(Element.prototype.scrollBy=function(l,u){this.scrollLeft+=l,this.scrollTop+=u})}}},It=kt,Mt=normalizeComponent(It,HoToPagevue_type_template_id_2e02cb8f_render,Dt,!1,null,null,null),Nt=Mt.exports,Ot=Nt,Lt=__webpack_require__(31079),PoperSelectvue_type_template_id_5dfdd78c_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_("div",{staticStyle:{height:"0",overflow:"hidden"}},[_("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("defs",[_("g",{attrs:{id:"selected"}},[_("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"}})])])])]),l.isCanSearch&&!l.mutexSelect?_("div",{staticStyle:{padding:"5px"}},[_("el-input",{attrs:{placeholder:l.currentListNameText+"搜索",size:"mini"},on:{input:l.searchList},model:{value:l.input,callback:function(u){l.input=u},expression:"input"}})],1):l._e(),"selectPoper"===l.poperType&&l.currentList.length>=0?_("div",{staticClass:"select-poper"},[_("div",{staticClass:"list-box"},[0==l.currentList.length?_("ul",{staticClass:"list"},[_("li",{staticStyle:{"text-align":"center"}},[l._v("无选项")])]):l._e(),l.isAllowMultiSelect&&!l.mutexSelect&&l.currentList.length>0?_("el-checkbox-group",{on:{change:l.selectItemsChange},model:{value:l.selectedIds,callback:function(u){l.selectedIds=u},expression:"selectedIds"}},[_("RecycleScroller",{staticClass:"scroller",attrs:{items:l.currentList,"item-size":32,"key-field":"id"},scopedSlots:l._u([{key:"default",fn:function(u){var v=u.item;return[v.title?_("p",{staticClass:"poper-select-title"},[l._v(l._s(v.text))]):l._e(),v.title?l._e():_("el-checkbox",{key:v.id+Math.random(),attrs:{label:v.id}},[l._v(" "+l._s(v.text&&-1!==v.text.indexOf("<元素>")?v.text.split("<元素>")[0]:v.text.split("<搜索>")[0])+" ")])]}}],null,!1,4143456003)})],1):l._e(),l.isAllowMultiSelect&&l.mutexSelect&&l.currentList.length>0?[_("el-checkbox-group",{on:{change:l.mutexSelectItemsChange},model:{value:l.mutexSelectedIds,callback:function(u){l.mutexSelectedIds=u},expression:"mutexSelectedIds"}},[l._l(l.currentList,(function(u,v){return[v>=1&&u.type!=l.currentList[v-1].type?_("p",{key:v+Math.random(),staticClass:"el-checkbox-mutex-line"}):l._e(),_("el-checkbox",{key:u.id+Math.random(),attrs:{label:u.id,disabled:""!==l.mutexType&&l.mutexType!=u.type}},[l._v(" "+l._s(u.text&&-1!==u.text.indexOf("<元素>")?u.text.split("<元素>")[0]:u.text.split("<搜索>")[0])+" ")])]}))],2)]:l._e(),!l.isAllowMultiSelect&&l.currentList.length>0?_("el-radio-group",{model:{value:l.selectedId,callback:function(u){l.selectedId=u},expression:"selectedId"}},l._l(l.currentList,(function(u){return _("el-radio",{key:u.id+Math.random(),attrs:{label:u.id},nativeOn:{click:function(_){return l.selectItemsChange(u)}}},[l._v(" "+l._s(u.text&&-1!==u.text.indexOf("<元素>")?u.text.split("<元素>")[0]:u.text.split("<搜索>")[0])+" ")])})),1):l._e(),l.selectedList.length>0&&l.isAllowMultiSelect&&!l.mutexSelect&&l.isCanSearch?_("transition-group",{staticClass:"list",attrs:{name:"drag",tag:"ul"}},[_("li",{key:"已选择",staticStyle:{position:"absolute",top:"0px","z-index":"111",background:"#fff"}},[l._v("已选择"+l._s(l.currentListNameText))]),l._l(l.selectedList,(function(u,v){return[_("li",{key:u.id+Math.random(),staticClass:"drag-item selected",attrs:{draggable:""},on:{dragenter:function(u){return l.dragenter(u,v)},dragover:function(u){return l.dragover(u,v)},dragstart:function(u){return l.dragstart(v)}}},[_("span",[l._v(l._s(u.text&&-1!==u.text.indexOf("<元素>")?u.text.split("<元素>")[0]:u.text.split("<搜索>")[0]))]),_("i",{staticClass:"el-icon-delete",on:{click:function(_){return l.deleteItems(u,v)}}})])]}))],2):l._e()],2)]):l._e(),"selectPoper"!==l.poperType||l.isAllowMultiSelect?l._e():_("footer",[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("关闭")])],1),"selectPoper"===l.poperType&&l.isAllowMultiSelect?_("footer",[l.mutexSelect?l._e():_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.allSelect}},[l._v("全选")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureSelect}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.cancelSelect}},[l._v("清空")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1):l._e(),"datePoper"===l.poperType?_("div",{staticClass:"date-poper"},[l.dateTimeStyle.includes("dd")?_("DatePanel",{attrs:{value:l.date},on:{getValue:l.getTime}}):l._e(),l.dateTimeStyle.includes("MM")&&!l.dateTimeStyle.includes("dd")?_("DatePanel",{attrs:{dateType:"month",value:l.date},on:{getValue:l.getTime}}):l._e(),l.dateTimeStyle.includes("yyyy")&&!l.dateTimeStyle.includes("MM")?_("DatePanel",{attrs:{dateType:"year",value:l.date},on:{getValue:l.getTime}}):l._e(),l.dateTimeStyle.includes("HH")?_("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[_("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:l.timeStyle,"value-format":l.timeStyle,size:"mini"},model:{value:l.time,callback:function(u){l.time=u},expression:"time"}})],1):l._e(),_("footer",[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureDate}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.currentDateTime}},[l._v("此刻")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1)],1):l._e()])},At=[],Rt=(__webpack_require__(19601),__webpack_require__(21249),__webpack_require__(83175)),Ft=__webpack_require__(89470),jt=function(l){(0,Y.Z)(AppendToBodyMixins,l);var u=(0,ee.Z)(AppendToBodyMixins);function AppendToBodyMixins(){return(0,q.Z)(this,AppendToBodyMixins),u.apply(this,arguments)}return(0,$.Z)(AppendToBodyMixins,[{key:"mounted",value:function mounted(){var l=this;this.$nextTick((function(){var u=document.querySelector("body");u.append?u.append(l.$el):u.appendChild(l.$el)}))}}]),AppendToBodyMixins}(k());jt=__decorate([ae],jt);var Bt=__webpack_require__(84257),Ut={dataSourceEnabled:!0,dataSource:"",format:"",visitPath:"",isReadOnly:!1,autoUpdate:!1,executeStatus:0},Ht={inputFieldType:0,id:"",innerCode:"",labelText:"",text:"",name:"",tipText:"",readOnlyStatus:Bt.mK["false"],fixedWidth:0,canModifyContent:!0,isAllowDelete:!1,enableGlobalColor:!1,defaultValue:"",downListProperty:new Bt.OL,dataVerifyFormat:new Bt.wz,bandDataSource:Ut,customProperty:new Object,alignWithBlocked:!1,innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,keyValue:""},DatePanelvue_type_template_id_c837dd86_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"component-date",class:l.customClass},[_("div",{staticClass:"my-vue-date2 "},[_("div",{staticClass:"date-header"},[_("i",{staticClass:"el-icon-d-arrow-left last",on:{click:l.last}}),_("p",[_("span",{directives:[{name:"show",rawName:"v-show",value:"year"===l.type,expression:"type === 'year'"}]},[l._v(l._s(l.yearTitle)+" 年")]),_("span",{directives:[{name:"show",rawName:"v-show",value:"year"!==l.type,expression:"type !== 'year'"}],on:{click:l.showYear}},[l._v(l._s(l.year)+" 年")]),_("span",{directives:[{name:"show",rawName:"v-show",value:"date"===l.type,expression:"type === 'date'"}],on:{click:l.showMonth}},[l._v(l._s(l.month)+" 月")])]),_("i",{staticClass:"el-icon-d-arrow-right next",on:{click:l.next}})]),_("ul",{directives:[{name:"show",rawName:"v-show",value:"year"===l.type,expression:"type === 'year'"}],staticClass:"years"},l._l(l.yearList,(function(u){return _("li",{key:u+Math.random(0,1),class:l.nowYear==u?"active":"",on:{click:function(_){return _.stopPropagation(),l.getYear(u)}}},[l._v(l._s(u))])})),0),_("ul",{directives:[{name:"show",rawName:"v-show",value:"month"===l.type,expression:"type === 'month'"}],staticClass:"years "},l._l(12,(function(u){return _("li",{key:u,class:l.month==u?"active":"",on:{click:function(_){return _.stopPropagation(),l.getMonth(u)}}},[l._v(l._s(u)+"月")])})),0),_("table",{directives:[{name:"show",rawName:"v-show",value:"date"===l.type&&"date"===l.dateType,expression:"type === 'date' && dateType === 'date'"}],attrs:{colspan:"0",rowspan:"0"}},[l._m(0),l._l(l.rows,(function(u,v){return _("tr",{key:v},l._l(u,(function(u,v){return _("td",{key:v,class:u.date==l.nowDate?"today":""},[_("span",{staticClass:"date-item",class:{grey:"last"==u.month||"next"==u.month,active:u.date===l.date},attrs:{title:u.date},on:{dblclick:function(_){return l.getDate(u,_,"dblclick")},click:function(_){return l.getDate(u,_)}}},[l._v(l._s(u.text))])])})),0)}))],2)])])},Wt=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("tr",[_("th",[l._v("日")]),_("th",[l._v("一")]),_("th",[l._v("二")]),_("th",[l._v("三")]),_("th",[l._v("四")]),_("th",[l._v("五")]),_("th",[l._v("六")])])}],qt={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(l){this.init()}},mounted:function mounted(){this.type=this.dateType,this.yearList=[],this.init()},methods:{init:function init(){var l=this.value.replace(/[^\d]/g,"/"),u=l?new Date(l):new Date;this.year=u.getFullYear(),this.month=u.getMonth()+1,this.dateText=u.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+u.getDate());for(var _=0;_<12;_++)this.yearList.push(this.year+_);this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows()},showYear:function showYear(){this.type="year"},getYear:function getYear(l){"year"===this.type&&(this.nowYear=l,this.year=l,this.yearDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},showMonth:function showMonth(){this.type="month"},getMonth:function getMonth(l){"month"===this.type&&(this.month=l,this.monthDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},getDateLength:function getDateLength(l){return 1==l||3==l||5==l||7==l||8==l||10==l||12==l?31:2==l?this.year%4===0&&this.year%100!==0||this.year%400===0?29:28:30},getRows:function getRows(){var l,u=[],_=0,v=this.month-1==0?12:this.month-1,C=this.getDateLength(v);if(0!=this.startDay)for(var k=this.startDay;k>0;k--){var N={};N.text=C-k+1,N.month="last",l=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(C-k+1):this.year-1+this.separator+"12"+this.separator+(C-k+1),N.date=this.format(l),u.push(N)}else for(var B=7;B>0;B--){var U={};U.text=C-B+1,U.month="last",l=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(C-B+1):this.year-1+this.separator+"12"+this.separator+(C-B+1),U.date=this.format(l),u.push(U)}for(var W=0;W<this.getDateLength(this.month);W++){var q={};q.text=W+1,q.month="now",q.date=this.format(this.year+this.separator+this.month+this.separator+(W+1)),u.push(q)}for(var $=this.startDay+this.getDateLength(this.month);$<42;$++){var Y={};_+=1,Y.text=_,Y.month="next",l=this.month<12?this.year+this.separator+(this.month+1)+this.separator+_:this.year+1+this.separator+1+this.separator+_,Y.date=this.format(l),u.push(Y)}for(var ee=[],re=0;re<42;re+=7)ee.push(u.splice(0,7));this.rows=ee,"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 l=0;l<12;l++)this.yearList.push(this.year+l)}else"month"===this.type&&(this.year-=1)},hasChoosed:function hasChoosed(l){if(l===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 l=0;l<12;l++)this.yearList.push(this.year+l)}else"month"===this.type&&(this.year+=1)},getDate:function getDate(l,u,_){this.type,this.date=l.date,this.dateText=l.text,this.$emit("getValue",{value:l.date,type:_})},getWeek:function getWeek(l){if("week"===this.type){this.weekIndex=this.rows[l][3].date;this.rows[l][0].date,this.rows[l][6].date;var u=this.getWeekNumber(new Date(this.rows[l][3].date)),_=new Date(this.rows[l][3].date).getMonth(),v=new Date(this.rows[l][3].date);1===u&&11===_&&(v.setHours(0,0,0,0),v.setDate(v.getDate()+3-(v.getDay()+6)%7));var C=v.getFullYear(),k="".concat(C," 第 ").concat(u>9?u:"0"+u," 周"),N={text:k,date:this.rows[l][3].date,range:[this.rows[l][0].date,this.rows[l][6].date]};this.$emit("getValue",N)}},getWeekNumber:function getWeekNumber(l){var u=new Date(l.getTime());u.setHours(0,0,0,0),u.setDate(u.getDate()+3-(u.getDay()+6)%7);var _=new Date(u.getFullYear(),0,4);return 1+Math.round(((u.getTime()-_.getTime())/864e5-3+(_.getDay()+6)%7)/7)},format:function format(l){var u=l.split(this.separator);return u[1]=u[1]>9?u[1]:"0"+u[1],u[2]=u[2]>9?u[2]:"0"+u[2],u.join(this.separator)}}},zt=qt,Vt=normalizeComponent(zt,DatePanelvue_type_template_id_c837dd86_render,Wt,!1,null,null,null),Kt=Vt.exports,$t=__webpack_require__(62483),Gt=__webpack_require__(82383);function getInternetExplorerVersion(){var l=window.navigator.userAgent,u=l.indexOf("MSIE ");if(u>0)return parseInt(l.substring(u+5,l.indexOf(".",u)),10);var _=l.indexOf("Trident/");if(_>0){var v=l.indexOf("rv:");return parseInt(l.substring(v+3,l.indexOf(".",v)),10)}var C=l.indexOf("Edge/");return C>0?parseInt(l.substring(C+5,l.indexOf(".",C)),10):-1}var Zt=void 0;function initCompat(){initCompat.init||(initCompat.init=!0,Zt=-1!==getInternetExplorerVersion())}var Jt={render:function render(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function compareAndNotify(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Zt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function mounted(){var l=this;initCompat(),this.$nextTick((function(){l._w=l.$el.offsetWidth,l._h=l.$el.offsetHeight}));var u=document.createElement("object");this._resizeObject=u,u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex",-1),u.onload=this.addResizeHandlers,u.type="text/html",Zt&&this.$el.appendChild(u),u.data="about:blank",Zt||this.$el.appendChild(u)},beforeDestroy:function beforeDestroy(){this.removeResizeHandlers()}};function install(l){l.component("resize-observer",Jt),l.component("ResizeObserver",Jt)}var Xt={version:"0.4.5",install:install},Yt=null;"undefined"!==typeof window?Yt=window.Vue:"undefined"!==typeof __webpack_require__.g&&(Yt=__webpack_require__.g.Vue),Yt&&Yt.use(Xt);function vue_observe_visibility_esm_typeof(l){return vue_observe_visibility_esm_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},vue_observe_visibility_esm_typeof(l)}function _classCallCheck(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function _defineProperties(l,u){for(var _=0;_<u.length;_++){var v=u[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(l,v.key,v)}}function _createClass(l,u,_){return u&&_defineProperties(l.prototype,u),_&&_defineProperties(l,_),l}function vue_observe_visibility_esm_toConsumableArray(l){return vue_observe_visibility_esm_arrayWithoutHoles(l)||vue_observe_visibility_esm_iterableToArray(l)||vue_observe_visibility_esm_nonIterableSpread()}function vue_observe_visibility_esm_arrayWithoutHoles(l){if(Array.isArray(l)){for(var u=0,_=new Array(l.length);u<l.length;u++)_[u]=l[u];return _}}function vue_observe_visibility_esm_iterableToArray(l){if(Symbol.iterator in Object(l)||"[object Arguments]"===Object.prototype.toString.call(l))return Array.from(l)}function vue_observe_visibility_esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function processOptions(l){var u;return u="function"===typeof l?{callback:l}:l,u}function throttle(l,u){var _,v,C,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},N=function throttled(N){for(var B=arguments.length,U=new Array(B>1?B-1:0),W=1;W<B;W++)U[W-1]=arguments[W];if(C=U,!_||N!==v){var q=k.leading;"function"===typeof q&&(q=q(N,v)),_&&N===v||!q||l.apply(void 0,[N].concat(vue_observe_visibility_esm_toConsumableArray(C))),v=N,clearTimeout(_),_=setTimeout((function(){l.apply(void 0,[N].concat(vue_observe_visibility_esm_toConsumableArray(C))),_=0}),u)}};return N._clear=function(){clearTimeout(_),_=null},N}function deepEqual(l,u){if(l===u)return!0;if("object"===vue_observe_visibility_esm_typeof(l)){for(var _ in l)if(!deepEqual(l[_],u[_]))return!1;return!0}return!1}var Qt=function(){function VisibilityState(l,u,_){_classCallCheck(this,VisibilityState),this.el=l,this.observer=null,this.frozen=!1,this.createObserver(u,_)}return _createClass(VisibilityState,[{key:"createObserver",value:function createObserver(l,u){var _=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=processOptions(l),this.callback=function(l,u){_.options.callback(l,u),l&&_.options.once&&(_.frozen=!0,_.destroyObserver())},this.callback&&this.options.throttle){var v=this.options.throttleOptions||{},C=v.leading;this.callback=throttle(this.callback,this.options.throttle,{leading:function leading(l){return"both"===C||"visible"===C&&l||"hidden"===C&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(l){var u=l[0];if(l.length>1){var v=l.find((function(l){return l.isIntersecting}));v&&(u=v)}if(_.callback){var C=u.isIntersecting&&u.intersectionRatio>=_.threshold;if(C===_.oldResult)return;_.oldResult=C,_.callback(C,u)}}),this.options.intersection),u.context.$nextTick((function(){_.observer&&_.observer.observe(_.el)}))}}},{key:"destroyObserver",value:function destroyObserver(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function get(){return this.options.intersection&&this.options.intersection.threshold||0}}]),VisibilityState}();function bind(l,u,_){var v=u.value;if(v)if("undefined"===typeof IntersectionObserver)console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var C=new Qt(l,v,_);l._vue_visibilityState=C}}function update(l,u,_){var v=u.value,C=u.oldValue;if(!deepEqual(v,C)){var k=l._vue_visibilityState;v?k?k.createObserver(v,_):bind(l,{value:v},_):unbind(l)}}function unbind(l){var u=l._vue_visibilityState;u&&(u.destroyObserver(),delete l._vue_visibilityState)}var er={bind:bind,update:update,unbind:unbind};function vue_observe_visibility_esm_install(l){l.directive("observe-visibility",er)}var tr={version:"0.4.6",install:vue_observe_visibility_esm_install},rr=null;"undefined"!==typeof window?rr=window.Vue:"undefined"!==typeof __webpack_require__.g&&(rr=__webpack_require__.g.Vue),rr&&rr.use(tr);var nr=__webpack_require__(27274),ir=__webpack_require__.n(nr),or={itemsLimit:1e3};function vue_virtual_scroller_esm_typeof(l){return vue_virtual_scroller_esm_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},vue_virtual_scroller_esm_typeof(l)}function vue_virtual_scroller_esm_defineProperty(l,u,_){return u in l?Object.defineProperty(l,u,{value:_,enumerable:!0,configurable:!0,writable:!0}):l[u]=_,l}function vue_virtual_scroller_esm_ownKeys(l,u){var _=Object.keys(l);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);u&&(v=v.filter((function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),_.push.apply(_,v)}return _}function vue_virtual_scroller_esm_objectSpread2(l){for(var u=1;u<arguments.length;u++){var _=null!=arguments[u]?arguments[u]:{};u%2?vue_virtual_scroller_esm_ownKeys(Object(_),!0).forEach((function(u){vue_virtual_scroller_esm_defineProperty(l,u,_[u])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(_)):vue_virtual_scroller_esm_ownKeys(Object(_)).forEach((function(u){Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(_,u))}))}return l}function _unsupportedIterableToArray(l,u){if(l){if("string"===typeof l)return _arrayLikeToArray(l,u);var _=Object.prototype.toString.call(l).slice(8,-1);return"Object"===_&&l.constructor&&(_=l.constructor.name),"Map"===_||"Set"===_?Array.from(_):"Arguments"===_||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?_arrayLikeToArray(l,u):void 0}}function _arrayLikeToArray(l,u){(null==u||u>l.length)&&(u=l.length);for(var _=0,v=new Array(u);_<u;_++)v[_]=l[_];return v}function _createForOfIteratorHelper(l){if("undefined"===typeof Symbol||null==l[Symbol.iterator]){if(Array.isArray(l)||(l=_unsupportedIterableToArray(l))){var u=0,F=function(){};return{s:F,n:function(){return u>=l.length?{done:!0}:{done:!1,value:l[u++]}},e:function(l){throw l},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,v,C=!0,k=!1;return{s:function(){_=l[Symbol.iterator]()},n:function(){var l=_.next();return C=l.done,l},e:function(l){k=!0,v=l},f:function(){try{C||null==_.return||_.return()}finally{if(k)throw v}}}}var ar={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function validator(l){return["vertical","horizontal"].includes(l)}}};function simpleArray(){return this.items.length&&"object"!==vue_virtual_scroller_esm_typeof(this.items[0])}var sr=!1;if("undefined"!==typeof window){sr=!1;try{var lr=Object.defineProperty({},"passive",{get:function get(){sr=!0}});window.addEventListener("test",null,lr)}catch($f){}}var cr=0,ur={name:"RecycleScroller",components:{ResizeObserver:Jt},directives:{ObserveVisibility:er},props:vue_virtual_scroller_esm_objectSpread2({},ar,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),data:function data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function sizes(){if(null===this.itemSize){for(var l,sizes={"-1":{accumulator:0}},u=this.items,_=this.sizeField,v=this.minItemSize,C=1e4,k=0,N=0,B=u.length;N<B;N++)l=u[N][_]||v,l<C&&(C=l),k+=l,sizes[N]={accumulator:k,size:l};return this.$_computedMinItemSize=C,sizes}return[]},simpleArray:simpleArray},watch:{items:function items(){this.updateVisibleItems(!0)},pageMode:function pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function handler(){this.updateVisibleItems(!1)},deep:!0}},created:function created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function mounted(){var l=this;this.applyPageMode(),this.$nextTick((function(){l.$_prerender=!1,l.updateVisibleItems(!0),l.ready=!0}))},beforeDestroy:function beforeDestroy(){this.removeListeners()},methods:{addView:function addView(l,u,_,v,C){var k={item:_,position:0},N={id:cr++,index:u,used:!0,key:v,type:C};return Object.defineProperty(k,"nr",{configurable:!1,value:N}),l.push(k),k},unuseView:function unuseView(l){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_=this.$_unusedViews,v=l.nr.type,C=_.get(v);C||(C=[],_.set(v,C)),C.push(l),u||(l.nr.used=!1,l.position=-9999,this.$_views.delete(l.nr.key))},handleResize:function handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function handleScroll(l){var u=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame((function(){u.$_scrollDirty=!1;var l=u.updateVisibleItems(!1,!0),_=l.continuous;_||(clearTimeout(u.$_refreshTimout),u.$_refreshTimout=setTimeout(u.handleScroll,100))})))},handleVisibilityChange:function handleVisibilityChange(l,u){var _=this;this.ready&&(l||0!==u.boundingClientRect.width||0!==u.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame((function(){_.updateVisibleItems(!1)}))):this.$emit("hidden"))},updateVisibleItems:function updateVisibleItems(l){var u,_,v,C,k=arguments.length>1&&void 0!==arguments[1]&&arguments[1],N=this.itemSize,B=this.$_computedMinItemSize,U=this.typeField,W=this.simpleArray?null:this.keyField,q=this.items,$=q.length,Y=this.sizes,ee=this.$_views,re=this.$_unusedViews,ne=this.pool;if($)if(this.$_prerender)u=0,_=this.prerender,v=null;else{var ie=this.getScroll();if(k){var oe=ie.start-this.$_lastUpdateScrollPosition;if(oe<0&&(oe=-oe),null===N&&oe<B||oe<N)return{continuous:!0}}this.$_lastUpdateScrollPosition=ie.start;var ae=this.buffer;if(ie.start-=ae,ie.end+=ae,null===N){var le,ce,de=0,he=$-1,_e=~~($/2);do{ce=_e,le=Y[_e].accumulator,le<ie.start?de=_e:_e<$-1&&Y[_e+1].accumulator>ie.start&&(he=_e),_e=~~((de+he)/2)}while(_e!==ce);for(_e<0&&(_e=0),u=_e,v=Y[$-1].accumulator,_=_e;_<$&&Y[_].accumulator<ie.end;_++);-1===_?_=q.length-1:(_++,_>$&&(_=$))}else u=~~(ie.start/N),_=Math.ceil(ie.end/N),u<0&&(u=0),_>$&&(_=$),v=$*N}else u=_=v=0;_-u>or.itemsLimit&&this.itemsLimitError(),this.totalSize=v;var pe=u<=this.$_endIndex&&_>=this.$_startIndex;if(this.$_continuous!==pe){if(pe){ee.clear(),re.clear();for(var fe=0,me=ne.length;fe<me;fe++)C=ne[fe],this.unuseView(C)}this.$_continuous=pe}else if(pe)for(var be=0,Ee=ne.length;be<Ee;be++)C=ne[be],C.nr.used&&(l&&(C.nr.index=q.findIndex((function(l){return W?l[W]===C.item[W]:l===C.item}))),(-1===C.nr.index||C.nr.index<u||C.nr.index>=_)&&this.unuseView(C));for(var ke,Ie,Ne,Fe,He=pe?null:new Map,qe=u;qe<_;qe++){ke=q[qe];var Ke=W?ke[W]:ke;if(null==Ke)throw new Error("Key is ".concat(Ke," on item (keyField is '").concat(W,"')"));C=ee.get(Ke),N||Y[qe].size?(C?(C.nr.used=!0,C.item=ke):(Ie=ke[U],Ne=re.get(Ie),pe?Ne&&Ne.length?(C=Ne.pop(),C.item=ke,C.nr.used=!0,C.nr.index=qe,C.nr.key=Ke,C.nr.type=Ie):C=this.addView(ne,qe,ke,Ke,Ie):(Fe=He.get(Ie)||0,(!Ne||Fe>=Ne.length)&&(C=this.addView(ne,qe,ke,Ke,Ie),this.unuseView(C,!0),Ne=re.get(Ie)),C=Ne[Fe],C.item=ke,C.nr.used=!0,C.nr.index=qe,C.nr.key=Ke,C.nr.type=Ie,He.set(Ie,Fe+1),Fe++),ee.set(Ke,C)),C.position=null===N?Y[qe-1].accumulator:qe*N):C&&this.unuseView(C)}return this.$_startIndex=u,this.$_endIndex=_,this.emitUpdate&&this.$emit("update",u,_),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:pe}},getListenerTarget:function getListenerTarget(){var l=ir()(this.$el);return!window.document||l!==window.document.documentElement&&l!==window.document.body||(l=window),l},getScroll:function getScroll(){var l,u=this.$el,_=this.direction,v="vertical"===_;if(this.pageMode){var C=u.getBoundingClientRect(),k=v?C.height:C.width,N=-(v?C.top:C.left),B=v?window.innerHeight:window.innerWidth;N<0&&(B+=N,N=0),N+B>k&&(B=k-N),l={start:N,end:N+B}}else l=v?{start:u.scrollTop,end:u.scrollTop+u.clientHeight}:{start:u.scrollLeft,end:u.scrollLeft+u.clientWidth};return l},applyPageMode:function applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!sr&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function scrollToItem(l){var u;u=null===this.itemSize?l>0?this.sizes[l-1].accumulator:0:l*this.itemSize,this.scrollToPosition(u)},scrollToPosition:function scrollToPosition(l){"vertical"===this.direction?this.$el.scrollTop=l:this.$el.scrollLeft=l},itemsLimitError:function itemsLimitError(){var l=this;throw setTimeout((function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",l.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")})),new Error("Rendered items limit reached")},sortViews:function sortViews(){this.pool.sort((function(l,u){return l.nr.index-u.nr.index}))}}};function vue_virtual_scroller_esm_normalizeComponent(l,u,_,v,C,k,N,B,U,W){"boolean"!==typeof N&&(U=B,B=N,N=!1);const q="function"===typeof _?_.options:_;let $;if(l&&l.render&&(q.render=l.render,q.staticRenderFns=l.staticRenderFns,q._compiled=!0,C&&(q.functional=!0)),v&&(q._scopeId=v),k?($=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,l||"undefined"===typeof __VUE_SSR_CONTEXT__||(l=__VUE_SSR_CONTEXT__),u&&u.call(this,U(l)),l&&l._registeredComponents&&l._registeredComponents.add(k)},q._ssrRegister=$):u&&($=N?function(l){u.call(this,W(l,this.$root.$options.shadowRoot))}:function(l){u.call(this,B(l))}),$)if(q.functional){const l=q.render;q.render=function renderWithStyleInjection(u,_){return $.call(_),l(u,_)}}else{const l=q.beforeCreate;q.beforeCreate=l?[].concat(l,$):[$]}return _}const dr=ur;var __vue_render__=function(){var l,u,_=this,v=_.$createElement,C=_._self._c||v;return C("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:_.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(l={ready:_.ready,"page-mode":_.pageMode},l["direction-"+_.direction]=!0,l),on:{"&scroll":function(l){return _.handleScroll(l)}}},[_.$slots.before?C("div",{staticClass:"vue-recycle-scroller__slot"},[_._t("before")],2):_._e(),_._v(" "),C("div",{ref:"wrapper",staticClass:"vue-recycle-scroller__item-wrapper",style:(u={},u["vertical"===_.direction?"minHeight":"minWidth"]=_.totalSize+"px",u)},_._l(_.pool,(function(l){return C("div",{key:l.nr.id,staticClass:"vue-recycle-scroller__item-view",class:{hover:_.hoverKey===l.nr.key},style:_.ready?{transform:"translate"+("vertical"===_.direction?"Y":"X")+"("+l.position+"px)"}:null,on:{mouseenter:function(u){_.hoverKey=l.nr.key},mouseleave:function(l){_.hoverKey=null}}},[_._t("default",null,{item:l.item,index:l.nr.index,active:l.nr.used})],2)})),0),_._v(" "),_.$slots.after?C("div",{staticClass:"vue-recycle-scroller__slot"},[_._t("after")],2):_._e(),_._v(" "),C("ResizeObserver",{on:{notify:_.handleResize}})],1)},hr=[];__vue_render__._withStripped=!0;const _r=void 0,pr=void 0,fr=void 0,gr=!1,mr=vue_virtual_scroller_esm_normalizeComponent({render:__vue_render__,staticRenderFns:hr},_r,dr,pr,gr,fr,!1,void 0,void 0,void 0);var vr={name:"DynamicScroller",components:{RecycleScroller:mr},inheritAttrs:!1,provide:function provide(){return"undefined"!==typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver((function(l){var u,_=_createForOfIteratorHelper(l);try{for(_.s();!(u=_.n()).done;){var v=u.value;if(v.target){var C=new CustomEvent("resize",{detail:{contentRect:v.contentRect}});v.target.dispatchEvent(C)}}}catch(k){_.e(k)}finally{_.f()}}))),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},props:vue_virtual_scroller_esm_objectSpread2({},ar,{minItemSize:{type:[Number,String],required:!0}}),data:function data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:simpleArray,itemsWithSize:function itemsWithSize(){for(var l=[],u=this.items,_=this.keyField,v=this.simpleArray,C=this.vscrollData.sizes,k=0;k<u.length;k++){var N=u[k],B=v?k:N[_],U=C[B];"undefined"!==typeof U||this.$_undefinedMap[B]||(U=0),l.push({item:N,id:B,size:U})}return l},listeners:function listeners(){var listeners={};for(var l in this.$listeners)"resize"!==l&&"visible"!==l&&(listeners[l]=this.$listeners[l]);return listeners}},watch:{items:function items(){this.forceUpdate(!1)},simpleArray:{handler:function handler(l){this.vscrollData.simpleArray=l},immediate:!0},direction:function direction(l){this.forceUpdate(!0)}},created:function created(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated:function activated(){this.vscrollData.active=!0},deactivated:function deactivated(){this.vscrollData.active=!1},methods:{onScrollerResize:function onScrollerResize(){var l=this.$refs.scroller;l&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible:function onScrollerVisible(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate:function forceUpdate(){var l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(l||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem:function scrollToItem(l){var u=this.$refs.scroller;u&&u.scrollToItem(l)},getItemSize:function getItemSize(l){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,_=this.simpleArray?null!=u?u:this.items.indexOf(l):l[this.keyField];return this.vscrollData.sizes[_]||0},scrollToBottom:function scrollToBottom(){var l=this;if(!this.$_scrollingToBottom){this.$_scrollingToBottom=!0;var u=this.$el;this.$nextTick((function(){u.scrollTop=u.scrollHeight+5e3;var _=function cb(){u.scrollTop=u.scrollHeight+5e3,requestAnimationFrame((function(){u.scrollTop=u.scrollHeight+5e3,0===l.$_undefinedSizes?l.$_scrollingToBottom=!1:requestAnimationFrame(cb)}))};requestAnimationFrame(_)}))}}}};const yr=vr;var __vue_render__$1=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("RecycleScroller",l._g(l._b({ref:"scroller",attrs:{items:l.itemsWithSize,"min-item-size":l.minItemSize,direction:l.direction,"key-field":"id"},on:{resize:l.onScrollerResize,visible:l.onScrollerVisible},scopedSlots:l._u([{key:"default",fn:function(u){var _=u.item,v=u.index,C=u.active;return[l._t("default",null,null,{item:_.item,index:v,active:C,itemWithSize:_})]}}],null,!0)},"RecycleScroller",l.$attrs,!1),l.listeners),[l._v(" "),_("template",{slot:"before"},[l._t("before")],2),l._v(" "),_("template",{slot:"after"},[l._t("after")],2)],2)},br=[];__vue_render__$1._withStripped=!0;const wr=void 0,xr=void 0,Pr=void 0,Cr=!1,Er=vue_virtual_scroller_esm_normalizeComponent({render:__vue_render__$1,staticRenderFns:br},wr,yr,xr,Cr,Pr,!1,void 0,void 0,void 0);var Sr={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id:function id(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size:function size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive:function finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id:function id(){this.size||this.onDataUpdate()},finalActive:function finalActive(l){this.size||(l?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?l?this.observeSize():this.unobserveSize():l&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created:function created(){var l=this;if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){var u=function _loop(u){l.$watch((function(){return l.sizeDependencies[u]}),l.onDataUpdate)};for(var _ in this.sizeDependencies)u(_);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted:function mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy:function beforeDestroy(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize:function updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData:function updateWatchData(){var l=this;this.watchData?this.$_watchData=this.$watch("data",(function(){l.onDataUpdate()}),{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate:function onVscrollUpdate(l){var u=l.force;!this.finalActive&&u&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!u&&this.size||this.updateSize()},onDataUpdate:function onDataUpdate(){this.updateSize()},computeSize:function computeSize(l){var u=this;this.$nextTick((function(){if(u.id===l){var _=u.$el.offsetWidth,v=u.$el.offsetHeight;u.applySize(_,v)}u.$_pendingSizeUpdate=null}))},applySize:function applySize(l,u){var _=Math.round("vertical"===this.vscrollParent.direction?u:l);_&&this.size!==_&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,_),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize:function observeSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize:function unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize:function onResize(l){var u=l.detail.contentRect,_=u.width,v=u.height;this.applySize(_,v)}},render:function render(l){return l(this.tag,this.$slots.default)}};const Tr=Sr,Dr=void 0,kr=void 0,Ir=void 0,Mr=void 0,Nr=vue_virtual_scroller_esm_normalizeComponent({},Dr,Tr,kr,Mr,Ir,!1,void 0,void 0,void 0);function registerComponents(l,u){l.component("".concat(u,"recycle-scroller"),mr),l.component("".concat(u,"RecycleScroller"),mr),l.component("".concat(u,"dynamic-scroller"),Er),l.component("".concat(u,"DynamicScroller"),Er),l.component("".concat(u,"dynamic-scroller-item"),Nr),l.component("".concat(u,"DynamicScrollerItem"),Nr)}var Or={version:"1.0.10",install:function install(l,u){var _=Object.assign({},{installComponents:!0,componentsPrefix:""},u);for(var v in _)"undefined"!==typeof _[v]&&(or[v]=_[v]);_.installComponents&&registerComponents(l,_.componentsPrefix)}},Lr=null;"undefined"!==typeof window?Lr=window.Vue:"undefined"!==typeof __webpack_require__.g&&(Lr=__webpack_require__.g.Vue),Lr&&Lr.use(Or);var Ar=__webpack_require__(14519),Rr=function(l){(0,Y.Z)(PoperSelectModal,l);var u=(0,ee.Z)(PoperSelectModal);function PoperSelectModal(){var l;return(0,q.Z)(this,PoperSelectModal),l=u.apply(this,arguments),l.textParam=Object.assign({},Ht),l.isCanSearch=!1,l.mutexSelect=!1,l.input="",l.currentListNameText="",l.currentList=[],l.selectedIds=[],l.mutexSelectedIds=[],l.mutexType="",l.selectedId="",l.selectedList=[],l.posStyle={left:"",right:"",top:"",bottom:""},l.dateFormat=Lt.vc,l.computedPoperPosition=Lt.Nv,l.date="",l.time="",l.dateStyle="",l.timeStyle="",l.dateTimeStyle="",l.dragIndex=0,l.enterIndex=0,l.endPath="",l.poppernIstance=null,l}return(0,$.Z)(PoperSelectModal,[{key:"isAllowMultiSelect",get:function get(){var l=this.getCurrentPoperNode();return l instanceof Ft.yF?l.allowMultiSelect:l instanceof Bt.re&&l.downListProperty.allowMultiSelected}},{key:"selectedListChange",value:function selectedListChange(l,u){(0===l.length&&u.length>0||l.length>0&&0===u.length)&&this.poppernIstance&&this.poppernIstance.update()}},{key:"created",value:function created(){var l,u=this;null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.addEventListener("scroll",this.listenScroller,!0),window.addEventListener("keydown",this.arrowKeysController);var _=rt.b.instance().getFactory(this.hoEditorId);this.endPath=_.docTree.curDomRange.normalize().endPath;var v=this.getCurrentPoperNode();if("datePoper"===this.poperType){var C;if(v instanceof Rt.Z){var k;this.dateTimeStyle=v.controlStyle;var N=null===(k=v.controlStyle)||void 0===k?void 0:k.replace(/\hh/g,"HH");(N.includes("yyyy")||N.includes("MM"))&&N.includes("HH")?(this.dateStyle=N.split(" ")[0]?N.split(" ")[0]:"yyyy/MM/dd",this.timeStyle=N.split(" ")[1]?N.split(" ")[1]:"HH:mm:ss"):((N.includes("yyyy")||N.includes("MM"))&&(this.dateStyle=N),(N.includes("HH")||N.includes("mm"))&&(this.timeStyle=N));var B=v.text.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,"");B&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(B=(0,Lt.vc)(new Date,"yyyy")+"/"+B),B&&":"===B[B.length-1]&&(B=B.substr(0,B.length-1)),B&&((0,Lt.J_)(B)||(0,Lt.J_)("2021/10/08 "+B))?(N.includes("yyyy")||N.includes("MM"))&&(N.includes("HH")||N.includes("mm"))?(this.date=B.split(" ")[0],this.time=B):((N.includes("yyyy")||N.includes("MM"))&&(this.date=B),(N.includes("HH")||N.includes("mm"))&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd ")+B)):(this.date=(0,Lt.vc)(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd "+this.timeStyle)))}this.date=null===(C=this.date)||void 0===C?void 0:C.replace(/[^\d]/g,"/");var W=0;(v.controlStyle.includes("yyyy")||v.controlStyle.includes("MM"))&&(W=300),(v.controlStyle.includes("HH")||v.controlStyle.includes("mm"))&&(W=90),(v.controlStyle.includes("yyyy")||v.controlStyle.includes("MM"))&&(v.controlStyle.includes("HH")||v.controlStyle.includes("mm"))&&(W=350),this.posStyle=this.computedPoperPosition(W,this.poperPos)}else{var q,$=[];v instanceof Ft.yF?($=v.keyValue?v.keyValue.split(","):[],this.mutexSelect=v.mutexSelect):v instanceof Bt.re&&($=v.keyValue?v.keyValue.split(","):[],this.mutexSelect=!!v.downListProperty.mutexSelect),null===(q=this.poperSelectList)||void 0===q||q.forEach((function(l,_){l.id=String(l.id),l.selected=!1,$.length>0&&1===$.filter((function(u){return l.id==u})).length&&(l.selected=!0,u.isAllowMultiSelect&&u.poperSelectList.length>=20&&(u.selectedList[$.indexOf(l.id)]=l),u.mutexType=String(l.type),u.selectedIds.push(l.id),u.mutexSelectedIds.push(l.id),u.selectedId=l.id)})),this.currentListNameText=v.name,this.poperSelectList&&this.poperSelectList.length>=20&&(this.isCanSearch=!0),this.currentList=(0,U.Z)(this.poperSelectList)}}},{key:"mounted",value:function mounted(){var l=this;if(this.poperPos){var u=document.querySelector("#ho_caret");this.poppernIstance=(0,Ar.fi)(u,this.poperSelectedModal,{placement:"auto-end",strategy:"fixed",modifiers:[{name:"preventOverflow",options:{padding:8}}]}),setTimeout((function(){l.poppernIstance&&l.poppernIstance.update()}),0)}}},{key:"arrowKeysController",value:function arrowKeysController(l){}},{key:"getCurrentPoperNode",value:function getCurrentPoperNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorId),v=null===(l=_.vueController.findNodebyPath(this.endPath))||void 0===l?void 0:l.node;if(v instanceof $t.j||v instanceof Bt.re){var C=v.parentNode;u=C instanceof Bt.re?C:v}else if(v instanceof Gt.R){var k=v.parentNode;k instanceof Bt.re&&(u=k)}else(v instanceof Rt.Z||v instanceof Ft.yF)&&(u=v);return u}},{key:"getTime",value:function getTime(l){this.date=l.value,"dblclick"==l.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId),_=this.getCurrentPoperNode(),v=this.dateFormat(new Date,_.controlStyle),C={id:_.id,name:_.name,text:v,title:_.title,tipText:_.tipText,isAllowDelete:_.isAllowDelete,isReadOnly:_.isReadOnly,controlStyle:_.controlStyle};u.vueController.updateDateTime(JSON.stringify(C)),this.$nextTick((function(){return l.handleClose()}))}},{key:"sureDate",value:function sureDate(){var l="";if(this.date){if(l=this.date,this.time){var u=this.time.replace(/年|月|-/g,"/").replace(/时|分/g,":").replace(/秒/g,"");u.includes("/")?l+=" "+u.split(" ")[1]:l+=" "+u}}else l="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);var _=this.getCurrentPoperNode();l=this.dateFormat(l,_.controlStyle);var v={id:_.id,name:_.name,text:l,title:_.title,tipText:_.tipText,isAllowDelete:_.isAllowDelete,isReadOnly:_.isReadOnly,controlStyle:_.controlStyle},C=rt.b.instance().getFactory(this.hoEditorId);C.vueController.updateDateTime(JSON.stringify(v)),this.handleClose()}},{key:"searchList",value:function searchList(l){console.time("搜索时间");var u=[];l?this.poperSelectList.forEach((function(_){-1!==_.text.indexOf(l)&&u.push(_)})):u=(0,U.Z)(this.poperSelectList),this.currentList=(0,U.Z)(u),console.timeEnd("搜索时间")}},{key:"deleteItems",value:function deleteItems(l,u){var _=0;this.poperSelectList.forEach((function(u,v){u.id==l.id&&(_=v)})),l.selected=!1,this.poperSelectList.splice(_,1,l),this.currentList=this.currentList.filter((function(u){return u.id!==l.id})),this.selectedIds=this.selectedIds.filter((function(u){return u!==l.id})),this.selectedList=this.selectedList.filter((function(u){return u.id!==l.id})),this.isCanSearch&&this.searchList(this.input)}},{key:"mutexSelectItemsChange",value:function mutexSelectItemsChange(l){var u=this;l.length>0?(this.poperSelectList.forEach((function(_){l.includes(_.id)?(_.selected=!0,u.mutexType=String(_.type)):_.selected=!1})),this.currentList=(0,U.Z)(this.poperSelectList)):0===l.length&&(this.poperSelectList.forEach((function(l){l.selected=!1,u.mutexType=""})),this.currentList=(0,U.Z)(this.poperSelectList))}},{key:"selectItemsChange",value:function selectItemsChange(l){var u=this;if(this.isAllowMultiSelect)this.poperSelectList.forEach((function(_){l.includes(_.id)?(_.selected=!0,u.isCanSearch&&0==u.selectedList.filter((function(l){return l.id==_.id})).length&&u.selectedList.push(_)):(_.selected=!1,u.isCanSearch&&(u.selectedList=u.selectedList.filter((function(l){return l.id!=_.id}))))})),this.currentList=(0,U.Z)(this.poperSelectList),this.isCanSearch&&this.searchList(this.input);else{var _={},v=0;this.poperSelectList.forEach((function(u,C){u.selected=!1,u.id==l.id&&(_=u,v=C)})),_.selected=!_.selected,this.poperSelectList.splice(v,1,_),this.currentList=(0,U.Z)(this.poperSelectList),this.sureSelect()}}},{key:"selectItems",value:function selectItems(l,u){var _=this;this.isAllowMultiSelect?(this.poperSelectList.forEach((function(u){u.id==l.id&&(u.selected=!u.selected),u.selected?_.isCanSearch&&0==_.selectedList.filter((function(l){return l.id==u.id})).length&&_.selectedList.push(u):_.isCanSearch&&(_.selectedList=_.selectedList.filter((function(l){return l.id!=u.id})))})),this.currentList=(0,U.Z)(this.poperSelectList),this.isCanSearch&&this.searchList(this.input)):(this.poperSelectList.forEach((function(l){l.selected=!1})),l.selected=!l.selected,this.poperSelectList.splice(u,1,l),this.currentList=(0,U.Z)(this.poperSelectList),this.sureSelect())}},{key:"allSelect",value:function allSelect(){var l=this;this.selectedList=[],this.poperSelectList.forEach((function(u){u.selected=!0,l.selectedList.push(u),l.selectedIds.push(u.id)})),this.currentList=(0,U.Z)(this.poperSelectList)}},{key:"cancelSelect",value:function cancelSelect(){this.poperSelectList.forEach((function(l){l.selected=!1})),this.currentList=(0,U.Z)(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 l=this,u="",_="",v=this.getCurrentPoperNode(),C=this.isAllowMultiSelect&&this.isCanSearch?this.selectedList:this.poperSelectList.filter((function(l){return l.selected})),k=C.length;0===k?(v instanceof Ft.yF||v instanceof Bt.re)&&(u=v.name?v.name:" "):C.forEach((function(l,k){k<C.length-1?(v.customProperty&&v.customProperty.hasThirdData&&l.value?u+=l.value+",":u+=l.text+",",_+=l.id+","):(v.customProperty&&v.customProperty.hasThirdData&&l.value?u+=l.value:u+=l.text,_+=l.id)}));var N=rt.b.instance().getFactory(this.hoEditorId);if(v instanceof Ft.yF){var B=this.getCurrentPoperNode(),U={id:B.id,name:B.name,text:u,keyValue:_,title:"下拉选择框",tipText:B.tipText,isAllowDelete:B.isAllowDelete,isReadOnly:B.isReadOnly,allowMultiSelect:B.allowMultiSelect,innerIdentifier:B.innerIdentifier,dataMetaIdentifier:B.dataMetaIdentifier,identifierFormat:B.identifierFormat,readType:B.readType,mutexSelect:B.mutexSelect};N.vueController.updateDownList(JSON.stringify(U),this.poperSelectList)}else v instanceof Bt.re&&(u=u.replace(/,/g,v.downListProperty.splitCharacter),v.text=u,v.keyValue=_,Object.keys(this.textParam).map((function(u){l.textParam[u]=v[u]})),this.textParam.downListProperty.allowMultiSelected?N.vueController.updateTextInputField(this.textParam):N.elementController.updateTextInputFieldValue(v,u,void 0,_));1===C.length&&-1!==C[0].text.indexOf("<元素>")?setTimeout((function(){l.handleClose()}),200):this.handleClose()}},{key:"shuffle",value:function shuffle(){}},{key:"dragstart",value:function dragstart(l){this.dragIndex=l}},{key:"dragenter",value:function dragenter(l,u){if(l.preventDefault(),this.dragIndex!==u){var _=this.selectedList[this.dragIndex];this.selectedList.splice(Number(this.dragIndex),1),this.selectedList.splice(u,0,_),this.dragIndex=u}}},{key:"dragover",value:function dragover(l){l.preventDefault()}},{key:"listenScroller",value:function listenScroller(l){document.querySelector(".editor");this.poppernIstance&&this.poppernIstance.update()}},{key:"handleClose",value:function handleClose(){var l=this;this.$nextTick((function(){return l.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.removeEventListener("scroll",this.listenScroller,!0),window.removeEventListener("keydown",this.arrowKeysController)}}]),PoperSelectModal}(mixins(jt));__decorate([Prop({default:""})],Rr.prototype,"poperType",void 0),__decorate([Prop()],Rr.prototype,"poperPos",void 0),__decorate([Prop()],Rr.prototype,"poperSelectList",void 0),__decorate([Prop()],Rr.prototype,"hoEditorId",void 0),__decorate([Ref()],Rr.prototype,"poperSelectedModal",void 0),__decorate([Ref()],Rr.prototype,"selectPoperList",void 0),__decorate([Watch("selectedList")],Rr.prototype,"selectedListChange",null),Rr=__decorate([ae({name:"PoperSelectModal",components:{DatePanel:Kt,RecycleScroller:mr}})],Rr);var Fr=Rr,jr=Fr,Br=normalizeComponent(jr,PoperSelectvue_type_template_id_5dfdd78c_scoped_true_render,At,!1,null,"5dfdd78c",null),Ur=Br.exports,PoperMarkvue_type_template_id_12c8c810_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"poper-mark"})},Hr=[],Wr=function(l){(0,Y.Z)(PoperMark,l);var u=(0,ee.Z)(PoperMark);function PoperMark(){return(0,q.Z)(this,PoperMark),u.apply(this,arguments)}return(0,$.Z)(PoperMark)}(k());Wr=__decorate([ae({name:"PoperMark"})],Wr);var qr=Wr,zr=qr,Vr=normalizeComponent(zr,PoperMarkvue_type_template_id_12c8c810_render,Hr,!1,null,null,null),Kr=Vr.exports,TableCellPopervue_type_template_id_745f7c9e_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"cell-poper-selected-modal animation-in",style:l.posStyle},[_("div",{staticStyle:{height:"0",overflow:"hidden"}},[_("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("defs",[_("g",{attrs:{id:"selected"}},[_("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"}})])])])]),l.isCanSearch?_("el-input",{attrs:{placeholder:"可搜索",size:"mini"},on:{input:l.searchList},model:{value:l.input,callback:function(u){l.input=u},expression:"input"}}):l._e(),1===l.editorProperty?_("div",{staticClass:"select-poper"},[_("ul",{staticClass:"list"},[l._l(l.currentList,(function(u,v){return _("li",{key:u.id,class:u.default?"selected":"",on:{click:function(_){return l.selectItems(u,v)}}},[_("span",[l._v(l._s(u.text.split("<元素>")[0]))]),_("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("use",{attrs:{"xlink:href":"#selected"}})])])})),0===l.currentList.length?_("li",{staticStyle:{"text-align":"center"}},[l._v("无选项")]):l._e()],2),l.isAllowMultiSelect?_("footer",{style:{bottom:l.isAllowMultiSelect?"-34px":"0px"}},[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureSelect}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(u){l.selected=[]}}},[l._v("清空")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1):l._e(),0===l.currentList.length?_("footer",{staticStyle:{bottom:"-43px",padding:"10px","text-align":"center"}},[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("关闭")])],1):l._e()]):l._e(),2===l.editorProperty?_("div",{staticClass:"date-poper"},[l.inputStyle.includes("dd")?_("DatePanel",{attrs:{value:l.date},on:{getValue:l.getTime}}):l._e(),l.inputStyle.includes("MM")&&!l.inputStyle.includes("dd")?_("DatePanel",{attrs:{dateType:"month",value:l.date},on:{getValue:l.getTime}}):l._e(),l.inputStyle.includes("yyyy")&&!l.inputStyle.includes("MM")?_("DatePanel",{attrs:{dateType:"year",value:l.date},on:{getValue:l.getTime}}):l._e(),l.inputStyle.includes("HH")?_("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[_("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:l.timeStyle,"value-format":l.timeStyle,size:"mini"},model:{value:l.time,callback:function(u){l.time=u},expression:"time"}})],1):l._e(),_("footer",[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureDate}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.currentDateTime}},[l._v(l._s(-1!==l.inputStyle.indexOf("HH")?"此刻":"今天"))]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(u){return l.handleClose("cancel")}}},[l._v("取消")])],1)],1):l._e()],1)},$r=[],Gr=function(l){(0,Y.Z)(getCellNodeMixins,l);var u=(0,ee.Z)(getCellNodeMixins);function getCellNodeMixins(){return(0,q.Z)(this,getCellNodeMixins),u.apply(this,arguments)}return(0,$.Z)(getCellNodeMixins,[{key:"getCellNode",value:function getCellNode(l){var u=null,_=function isFn(l){null!==(null===l||void 0===l?void 0:l.parentNode)&&null!==l&&void 0!==l&&l.parentNode&&(l.parentNode instanceof et.D?u=l.parentNode:isFn(l.parentNode))};return l instanceof et.D?l:(_(l),u)}}]),getCellNodeMixins}(k());Gr=__decorate([ae],Gr);var Zr=function(l){(0,Y.Z)(TableCellPoper,l);var u=(0,ee.Z)(TableCellPoper);function TableCellPoper(){var l;return(0,q.Z)(this,TableCellPoper),l=u.apply(this,arguments),l.isCanSearch=!1,l.input="",l.poperList=[],l.currentList=[],l.posStyle={left:"",right:"",top:"",bottom:""},l.dateFormat=Lt.vc,l.computedPoperPosition=Lt.Nv,l.endPath="",l}return(0,$.Z)(TableCellPoper,[{key:"colProperty",get:function get(){var l=this.getcellNodes();return null===l?null:l.table.colInfos[l.row.indexOf(l)].colProperty}},{key:"cellProperty",get:function get(){var l=this.getcellNodes();return null===l||null!==this.colProperty&&0!==this.colProperty.editorProperty?null:l.cellProperty}},{key:"isAllowMultiSelect",get:function get(){return null===this.colProperty?null!==this.cellProperty&&!(this.cellProperty.editorProperty!==tt.YS.DownList||!this.cellProperty.downListProperty.allowMultiSelected):!(this.colProperty.editorProperty!==tt.YS.DownList||!this.colProperty.downListProperty.allowMultiSelected)||0===this.colProperty.editorProperty&&(null!==this.cellProperty&&!(this.cellProperty.editorProperty!==tt.YS.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 l,u=this.getActiveDocId(),_=rt.b.instance().getFactory(u);this.endPath=_.docTree.curDomRange.normalize().endPath,null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.addEventListener("scroll",this.handleClose,!0),null===this.colProperty||this.colProperty.editorProperty!==tt.YS.DateTime&&this.colProperty.editorProperty!==tt.YS.DownList?null!==this.cellProperty&&this.cellProperty.editorProperty!==tt.YS.None&&this.initTalbePoper(this.cellProperty):this.initTalbePoper(this.colProperty)}},{key:"getcellNodes",value:function getcellNodes(){var l,u=this.getActiveDocId(),_=rt.b.instance().getFactory(u),v=null===(l=_.vueController.findNodebyPath(this.endPath))||void 0===l?void 0:l.node;return this.getCellNode(v)}},{key:"initTalbePoper",value:function initTalbePoper(l){var u=this;if(l.editorProperty===tt.YS.DateTime){var _,v;this.inputStyle=null===(_=l.dateTimeProperty.inputStyle)||void 0===_?void 0:_.replace(/\hh/g,"HH");var C="";C=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)),C=C.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,""),C&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(C=(0,Lt.vc)(new Date,"yyyy")+"/"+C),C&&":"===C[C.length-1]&&(C=C.substr(0,C.length-1)),C&&((0,Lt.J_)(C)||(0,Lt.J_)("2021/10/08 "+C))?(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))?(this.date=C.split(" ")[0],this.time=C):((this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.date=C),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd ")+C)):(this.date=(0,Lt.vc)(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd "+this.timeStyle))),this.date=null===(v=this.date)||void 0===v?void 0:v.replace(/[^\d]/g,"/");var k=0;(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(k=300),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(k=90),(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(k=350),this.posStyle=this.computedPoperPosition(k,this.poperPos)}else if(l.editorProperty===tt.YS.DownList){var N,B=[];if(this.poperNode){var W=",";[",","、","/","-"].forEach((function(l){u.poperNode.includes(l)&&(W=l)})),B=this.poperNode.split(W)}this.poperList=l.downListProperty.listItems?(0,U.Z)(JSON.parse(l.downListProperty.listItems)):[],null===(N=this.poperList)||void 0===N||N.forEach((function(l){l.default=!1,1===B.filter((function(u){return l.text.split("<元素>")[0]==u})).length&&(l.default=!0)})),this.currentList=(0,U.Z)(this.poperList),this.poperList.length>20&&(this.isCanSearch=!0);var q=36*this.poperList.length+36;if(this.isAllowMultiSelect&&(q+=36),this.isCanSearch&&(q+=28),q<360){var $=this.computedPoperPosition(q,this.poperPos);delete $["height"],this.posStyle=$}else{var Y=this.computedPoperPosition(360,this.poperPos);delete Y["height"],this.posStyle=Y}}}},{key:"getTime",value:function getTime(l){this.date=l.value,"dblclick"==l.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var l=this.dateFormat(new Date,this.inputStyle),u=this.getcellNodes();null===u||void 0===u||u.setCellText(l),this.handleClose()}},{key:"sureDate",value:function sureDate(){var l="";if(this.date){if(l=this.date,this.time){var u=this.time.replace(/年|月|-/g,"/").replace(/时|分/g,":").replace(/秒/g,"");u.includes("/")?l+=" "+u.split(" ")[1]:l+=" "+u}}else l="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);l=this.dateFormat(l,this.inputStyle);var _=this.getcellNodes();null===_||void 0===_||_.setCellText(l),this.handleClose()}},{key:"searchList",value:function searchList(l){var u=[];l?this.poperList.map((function(_){-1!==_.value.indexOf(l)&&u.push(_)})):u=(0,U.Z)(this.poperList),this.currentList=(0,U.Z)(u)}},{key:"selectItems",value:function selectItems(l,u){this.isAllowMultiSelect?(this.poperList.forEach((function(u){u.id===l.id&&(u.default=!u.default)})),this.currentList=(0,U.Z)(this.poperList),this.searchList(this.input)):(this.poperList.forEach((function(l){l.default=!1})),l.default=!l.default,this.poperList.splice(u,1,l),this.currentList=(0,U.Z)(this.poperList),this.sureSelect())}},{key:"sureSelect",value:function sureSelect(){var l=this,u="",_=this.poperList.filter((function(l){return l.default})),v=_.length;v>0&&(_.map((function(v,C){var k,N;C<_.length-1?(N=null!==l.colProperty&&0!==l.colProperty.editorProperty?l.colProperty:l.cellProperty,u+=v.text+(null===(k=N)||void 0===k?void 0:k.downListProperty.splitCharacter)):u+=v.text;return v})),""===u.replace(/\s*/g,"")&&(u=" "));var C=this.getcellNodes();null===C||void 0===C||C.setCellText(u),this.handleClose()}},{key:"handleClose",value:function handleClose(){var l=this;this.$nextTick((function(){return l.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.removeEventListener("scroll",this.handleClose,!0)}}]),TableCellPoper}(mixins(jt,Gr));__decorate([Prop()],Zr.prototype,"poperNode",void 0),__decorate([Prop()],Zr.prototype,"poperPos",void 0),__decorate([Inject("getActiveDocId")],Zr.prototype,"getActiveDocId",void 0),Zr=__decorate([ae({name:"TableCellPoper",components:{DatePanel:Kt}})],Zr);var Jr=Zr,Xr=Jr,Yr=normalizeComponent(Xr,TableCellPopervue_type_template_id_745f7c9e_scoped_true_render,$r,!1,null,"745f7c9e",null),Qr=Yr.exports;const en="function"===typeof window.WeakMap&&"function"===typeof window.Map,tn=function(){if(en)return window.WeakMap;function getIndex(l,u){let _=-1;return l.some(((l,v)=>{let C=l[0]===u;return C&&(_=v),C})),_}return class{constructor(){this.__entries__=[]}get(l){let u=getIndex(this.__entries__,l);return this.__entries__[u][1]}set(l,u){let _=getIndex(this.__entries__,l);~_?this.__entries__[_][1]=u:this.__entries__.push([l,u])}delete(l){let u=this.__entries__,_=getIndex(u,l);~_&&u.splice(_,1)}has(l){return!!~getIndex(this.__entries__,l)}}}(),rn=function(){return en?window.Map:class extends tn{get size(){return this.__entries__.length}clear(){this.__entries__.splice(0,this.__entries__.length)}entries(){return this.__entries__.slice()}keys(){return this.__entries__.map((l=>l[0]))}values(){return this.__entries__.map((l=>l[1]))}forEach(l,u=null){for(const _ of this.__entries__)l.call(u,_[1],_[0])}}}();var nn=function(){return window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now()}();const an="function"===typeof window.MutationObserver,sn=function(){return window.requestAnimationFrame?window.requestAnimationFrame:l=>setTimeout((()=>l(nn())),1e3/60)}();function debounce(l,u=0){let _=!1;return function(...v){!1!==_&&clearTimeout(_),_=setTimeout((()=>{_=!1,l.apply(this,v)}),u)}}class IntersectionObserverController{constructor(l=50,u=!1){this._idleTimeout=l,this._trackHovers=u,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(l){this._idleTimeout=l}connect(l){this.isConnected(l)||this._observers.push(l),this._isListening||this._initListeners()}disconnect(l){let u=this._observers,_=u.indexOf(l);~_&&u.splice(_,1),!u.length&&this._isListening&&this._removeListeners()}isConnected(l){return!!~this._observers.indexOf(l)}_updateObservers(){let l=!1;for(const u of this._observers)u.updateObservations()&&(l=!0),u.hasEntries()&&u.notifySubscriber();return l}startUpdateCycle(){this._cycleStartTime=nn(),this.scheduleUpdate()}scheduleUpdate(l){let u="number"===typeof l;if(u){const l=this._updateObservers();if(this._isUpdateScheduled=!1,!this._wasCycleStarted())return;l?this.startUpdateCycle():this._hasIdleTimeEnded()?this._onCycleEnded():this.scheduleUpdate()}else this._isUpdateScheduled||(sn(this.scheduleUpdate),this._isUpdateScheduled=!0)}_hasIdleTimeEnded(){return nn()-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(),an?(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(),an?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(l){const u=l.every((l=>"attributes"!==l.type));u?this.scheduleUpdate():this.startUpdateCycle()}}function mapToClientRect(l){const u={};for(const _ of Object.keys(l))u[_]={value:l[_]};return Object.defineProperties({},u)}function createRectangle(l=0,u=0,_=0,v=0){return{left:l,top:u,width:_,height:v,bottom:u+v,right:l+_}}function getRectangle(l){return l===document.documentElement?createRectangle(0,0,l.clientWidth,l.clientHeight):l.getBoundingClientRect()}function getArea(l){return l.width*l.height}function isEmpty(l){return 0===l.height&&0===l.width}function isEqual(l,u){return l.top===u.top&&l.left===u.left&&l.right===u.right&&l.bottom===u.bottom}class IntersectionObserverEntry{constructor(l,u,_,v,C,k){Object.defineProperties(this,{boundingClientRect:{value:u},intersectionRatio:{value:v},intersectionRect:{value:mapToClientRect(_)},rootBounds:{value:mapToClientRect(C)},target:{value:l},time:{value:k}})}}const cn=createRectangle();function isDetached(l,u){const _=document.documentElement;return l!==_&&!_.contains(l)||!l.contains(u)}function computeIntersection(l,u){const _=Math.max(u.left,l.left),v=Math.min(u.right,l.right),C=Math.max(u.top,l.top),k=Math.min(u.bottom,l.bottom),N=v-_,B=k-C;return createRectangle(_,C,N,B)}function getIntersection(l,u,_,v){let C=v,k=u.parentNode,N=!1;while(!N){let u=null;k===l||1!==k.nodeType?(N=!0,u=_):"visible"!==window.getComputedStyle(k).overflow&&(u=getRectangle(k)),u&&(C=computeIntersection(C,u)),k=k.parentNode}return C}class IntersectionObservation{constructor(l,u){this.target=l,this.observer=u,this.prevTargetRect=cn,this.prevThreshold=0,this.prevRatio=0}updateIntersection(l,u){let _,v=getRectangle(this.target),C=this.getIntersectionData(l,u,v),k=+C.exists,N=C.ratio!==this.prevRatio,B=!isEqual(v,this.prevTargetRect);if(C.exists&&!isEmpty(v)&&(k=this.observer.getThresholdGreaterThan(C.ratio)),_=k!==this.prevThreshold,this.prevTargetRect=v,this.prevThreshold=k,this.prevRatio=C.ratio,C.exists||(C.ratio=0,C.rect=cn),_){const l=new IntersectionObserverEntry(this.target,v,C.rect,C.ratio,u,nn());this.observer.queueEntry(l)}return{ratioChanged:N,thresholdChanged:_,targetRectChanged:B}}getIntersectionData(l,u,_){const v=this.target;_||(_=getRectangle(this.target)),u||(u=getRectangle(l));let C=isDetached(l,v),k=C?cn:getIntersection(l,v,u,_),N=!C&&k.width>=0&&k.height>=0,B=getArea(k)/getArea(_)||0;return{rect:k,ratio:B,exists:N}}}function parseThresholds(l=0){let u=l;return Array.isArray(l)?l.length||(u=[0]):u=[l],u.map((l=>{if(l=Number(l),!window.isFinite(l))throw new TypeError("The provided double value is non-finite.");if(l<0||l>1)throw new RangeError("Threshold values must be between 0 and 1.");return l})).sort()}function parseMargins(l="0px"){if(l=(l+"").split(/\s+/),l.length>4)throw new Error("Extra text found at the end of rootMargin.");l[0]=l[0]||"0px",l[1]=l[1]||l[0],l[2]=l[2]||l[0],l[3]=l[3]||l[1];const u=l.join(" "),_=l.map((l=>{let[,u,_]=/^(-?\d*\.?\d+)(px|%)$/.exec(l)||[];const v="px"===_;if(u=parseFloat(u),!window.isFinite(u))throw new Error("rootMargin must be specified in pixels or percent.");return v||(u/=100),{value:u,pixels:v}}));return{rawData:u,parsedData:_}}function applyMargins(l,u){u=u.map(((u,_)=>{let v=u.value;return u.pixels||(v*=_%2?l.width:l.height),v}));const _={top:l.top-u[0],right:l.right+u[1],bottom:l.bottom+u[2],left:l.left-u[3]};return _.width=_.right-_.left,_.height=_.bottom-_.top,_}class _IntersectionObserver_IntersectionObserver{constructor(l,u={},_,v){if("function"!==typeof l)throw new TypeError("The callback provided as parameter 1 is not a function.");if("object"!==typeof u)throw new TypeError("parameter 2 is not an object.");if("root"in u&&!(u.root instanceof Element))throw new TypeError("member root is not of type Element.");const C=parseThresholds(u.threshold),k=parseMargins(u.rootMargin);this.root=u.root||null,this.rootMargin=k.rawData,this.thresholds=Object.freeze(C),this._root=u.root||document.documentElement,this._callback=l,this._rootMargin=k.parsedData,this._targets=new rn,this._quedEntries=[],this._publicObserver=v||this,this.controller=_}observe(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(l instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let u=this._targets;u.has(l)||(u.set(l,new IntersectionObservation(l,this)),this.controller.isConnected(this)||this.controller.connect(this),this.controller.startUpdateCycle())}unobserve(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(l instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let u=this._targets;u.has(l)&&u.delete(l),u.size||this.disconnect()}disconnect(){this._targets.clear(),this.controller.disconnect(this)}takeRecords(){return this._quedEntries.splice(0)}notifySubscriber(){const l=this.takeRecords(),u=this._publicObserver;l.length&&this._callback.call(u,l,u)}queueEntry(l){this._quedEntries.push(l)}hasEntries(){return!!this._quedEntries.length}updateObservations(){let l=this._root,u=this.getRootRect(),_=!1;return this._targets.forEach((v=>{const C=v.updateIntersection(l,u);(C.ratioChanged||C.targetRectChanged)&&(_=!0)})),_}getThresholdGreaterThan(l){let u=this.thresholds,_=u.length,v=0;while(v<_&&u[v]<=l)++v;return v}getRootRect(){let l=getRectangle(this._root);return applyMargins(l,this._rootMargin)}}const un=new IntersectionObserverController,dn=new tn;class IntersectionObserver_IntersectionObserver{constructor(l,u){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");const _=new _IntersectionObserver_IntersectionObserver(l,u,un,this);Object.defineProperties(this,{root:{value:_.root},thresholds:{value:_.thresholds},rootMargin:{value:_.rootMargin}}),dn.set(this,_)}static get idleTimeout(){return un.idleTimeout}static set idleTimeout(l){if("number"!==typeof l)throw new TypeError('type of "idleTimeout" value must be a number.');if(typeof l<0)throw new TypeError('"idleTimeout" value must be greater than 0.');un.idleTimeout=l}static get trackHovers(){return un.isHoverEnabled()}static set trackHovers(l){if("boolean"!==typeof l)throw new TypeError('type of "trackHovers" value must be a boolean.');l?un.enableHover():un.disableHover()}}["observe","unobserve","disconnect","takeRecords"].forEach((l=>{IntersectionObserver_IntersectionObserver.prototype[l]=function(){return dn.get(this)[l](...arguments)}}));var hn=IntersectionObserver_IntersectionObserver;let _n;_n="function"===typeof window.IntersectionObserver?window.IntersectionObserver:hn;var pn=_n,gn=__webpack_require__(70611),mn=__webpack_require__(68204),vn="2.0.75",PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"show",rawName:"v-show",value:l.isShow,expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:l.handleClose,expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:l.posStyle,on:{mouseenter:l.mouseEnter,mouseleave:l.mouseLeave}},l._l(l.poperText,(function(u){return _("div",{key:u+Math.random(0,1),staticClass:"poper-text"},[l._v(" "+l._s(u)+" ")])})),0)},yn=[],bn=(__webpack_require__(91038),function(l){(0,Y.Z)(PoperTipText,l);var u=(0,ee.Z)(PoperTipText);function PoperTipText(){var l;return(0,q.Z)(this,PoperTipText),l=u.apply(this,arguments),l.posStyle={left:"",right:"",top:"",bottom:""},l.poperDirection="top",l.isShow=!1,l.isEnter=!1,l.poperTimer=null,l.poppernIstance=null,l.generateGetBoundingClientRect=function(l,u){var _=Array.from(document.querySelectorAll(".edit-area"))[l.docIndex],v=Array.from(_.querySelectorAll(".selectcanvas"))[l.pageIndex],C=v.getBoundingClientRect(),k=C.left+l.x,N=C.top+l.y;return function(){return{width:l.width,height:l.height,top:N-l.height,right:k,bottom:N+l.height,left:k}}},l}return(0,$.Z)(PoperTipText,[{key:"isPoperTextChange",value:function isPoperTextChange(){var l=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.isPoperText?this.poperTimer=setTimeout((function(){l.isShow=l.isPoperText}),600):this.isEnter||(this.poperTimer=setTimeout((function(){l.isShow=l.isPoperText}),300))}},{key:"positionChange",value:function positionChange(l){"[]"!==JSON.stringify(this.poperText)&&this.init()}},{key:"init",value:function init(){if(void 0!=this.poperPos.docIndex){var l={getBoundingClientRect:this.generateGetBoundingClientRect(this.poperPos)};this.poppernIstance=(0,Ar.fi)(l,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 l=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.poperTimer=setTimeout((function(){l.isEnter=!1,l.isShow=!1,l.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(jt)));__decorate([Prop()],bn.prototype,"poperPos",void 0),__decorate([Prop()],bn.prototype,"poperText",void 0),__decorate([Prop()],bn.prototype,"isPoperText",void 0),__decorate([Ref()],bn.prototype,"poperTextNode",void 0),__decorate([Watch("isPoperText")],bn.prototype,"isPoperTextChange",null),__decorate([Watch("poperPos",{deep:!0})],bn.prototype,"positionChange",null),bn=__decorate([ae({name:"PoperTipText"})],bn);var wn=bn,xn=wn,Pn=normalizeComponent(xn,PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render,yn,!1,null,"3fa4e4d3",null),Cn=Pn.exports,En=Cn,Sn=__webpack_require__(13613),Tn=function(l){(0,Y.Z)(HoDoc,l);var u=(0,ee.Z)(HoDoc);function HoDoc(){var l;return(0,q.Z)(this,HoDoc),l=u.apply(this,arguments),l.dateFormat=Lt.vc,l.canvasParams={width:Math.floor(793*nt.f.instance().scaleXY)%2===1?Math.floor(793*nt.f.instance().scaleXY)+1:Math.floor(793*nt.f.instance().scaleXY),height:Math.floor(1122*nt.f.instance().scaleXY)%2===1?Math.floor(1122*nt.f.instance().scaleXY)+1:Math.floor(1122*nt.f.instance().scaleXY)},l.canvasHeadFootPos={headerY:48,footerY:48},l.poperTipPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},l.drawing=!1,l.nodeValue="",l.poperType="",l.poperTextPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},l.aiInfo={x:0,y:0,height:0,pageIndex:0,aiText:"",lastPosition:[0,0,0]},l.drawPageCount={count:-1},l.poperSelectList=[],l.activePageIndex={index:-1},l.viewableAreaObserver=null,l.inViewPages=[0],l.paginationCount=200,l.drawPageLength=0,l.isCreateRightMenuModal=!1,l.version=vn,l.isHideComments=!1,l.showCommentsBtn=!1,l.domRange={startPath:"",endPath:""},l.poperText=[],l.isPoperText=!1,l.poperId=[],l}return(0,$.Z)(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(l){if(l){var u=rt.b.instance().getFactory(this.hoEditorId);if(5===u.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({},l),{},{docIndex:this.docIndex})):this.isPoperText=!1}}},{key:"isUseTipTextChange",value:function isUseTipTextChange(){var l=rt.b.instance().getFactory(this.hoEditorId);l.nodeMouseMove.isUseTipText=this.isUseTipText}},{key:"created",value:function created(){var l=rt.b.instance().getFactory(this.hoEditorId);l.hoEditorFactoryIndex=this.docIndex,l.subDocManger.initBlankDoc(),l.docTree.initBlankDoc(),this.mouseMoveNodes=l.nodeMouseMove,window.addEventListener("keydown",(function(u){l.docTree.updateCtlKey(u)})),window.addEventListener("keyup",(function(u){l.docTree.updateCtlKey(u)}))}},{key:"mounted",value:function mounted(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId);u.pageProperty.canvasParams=this.canvasParams,u.nodeMouseMove.poperTipPos=this.poperTipPos,u.nodeMouseMove.isUseTipText=this.isUseTipText,u.pageProperty.canvasHeadFootPos=this.canvasHeadFootPos,u.drawPageTree.initDoc(),u.drawTree.drawPageCount=this.drawPageCount,u.drawTree.activePageIndex=this.activePageIndex,this.drawing=!1;var _=this.hoEditorFactoryIdList.length;0===this.docIndex&&u.drawTree.buildDrawTree(u.subDocManger.headerDocTree[0].subDocNodes,u.drawTree.headerDNodes[0]),this.docIndex===_-1&&u.drawTree.buildDrawTree(u.subDocManger.footerDocTree[0].subDocNodes,u.drawTree.footerDNodes[0]),u.drawTree.buildDrawTree(u.docTree.mainNodes,u.drawTree.mainDNodes),u.drawTree.addPage(),u.drawTree.drawPageCount.count=u.drawTree.drawPages.length,u.docTree.addEventListener(Ne.x.eventName,(function(u){return l.mouseClickEvent(u)})),u.drawPageTree.changeInViewPage(),u.drawTree.caret.aiInfo=this.aiInfo}},{key:"beforeDestroy",value:function beforeDestroy(){var l,u=this,_=rt.b.instance().getFactory(this.hoEditorId);null===(l=this.viewableAreaObserver)||void 0===l||l.disconnect(),_.docTree.removeEventListener(Ne.x.eventName,(function(l){return u.mouseClickEvent(l)}))}},{key:"pageIntersectionObserver",value:function pageIntersectionObserver(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId);this.viewableAreaObserver=new pn((function(_){if(_){var v=(0,U.Z)(u.drawTree.inViewPages);_.forEach((function(l){var _=Number(l.target.dataset.id),C=u.drawTree.drawPages[_],k=u.drawTree.drawPages.length;C&&C.needUpdateStage&&C.drawDomLevel&&(u.drawPageTree.updateDrawPage(C.pageIndex),C.needUpdateStage=!1),0===l.intersectionRatio?v=v.filter((function(l){return C&&l!==C.pageIndex})):!v.includes(C.pageIndex)&&v.push(C.pageIndex),v=v.filter((function(l){return l<k})).sort()})),l.inViewPages=(0,U.Z)(v),u.drawTree.inViewPages=(0,U.Z)(v),u.drawPageTree.changeInViewPage()}}),{root:null,rootMargin:"0px",threshold:[0,1]})}},{key:"setActiveDocIndex",value:function setActiveDocIndex(l){l!==this.activeDocId&&this.$emit("setActiveDocIndex",this.hoEditorId)}},{key:"poperClose",value:function poperClose(){this.poperType="",this.nodeValue=""}},{key:"mouseClickEvent",value:function mouseClickEvent(l){var u=this,_=rt.b.instance().getFactory(this.hoEditorId);if(!l.clickType||"move"===l.clickType)return!1;var v,C=document.querySelector("#ho_paragrapgh_tip");C&&(null===(v=C.parentNode)||void 0===v||v.removeChild(C));var k=l.node;if(this.poperClose(),k&&null!==k){var N=l.pageIndex;if("dblclick"===l.clickType)k instanceof Fe.Hd&&setTimeout((function(){u.dblclickModal(k,"dblclick",N)}),150);else if("leftclick"===l.clickType&&k instanceof Fe.Hd){if(5===_.drawTree.paintStatus)return!1;this.$emit("setFontStyles")}else"rightClick"===l.clickType&&k instanceof gn.N&&3==k.type&&_.drawTree.paintStatus}return!0}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var l,u,_=rt.b.instance().getFactory(this.activeDocId),v=null===(l=_.vueController.findNodebyPath(this.domRange.endPath))||void 0===l?void 0:l.node;if(v)return v.parentNode instanceof Bt.re?u=v.parentNode:(v instanceof gn.N||v instanceof Ft.yF)&&(u=v),u}},{key:"dblclickModal",value:function dblclickModal(l,u,_){var v=this;if(this.poperType)return!1;if("dblclick"!==u)return!1;var C=rt.b.instance().getFactory(this.activeDocId);if(5===C.drawTree.paintStatus)return!1;if(this.domRange={startPath:C.docTree.curDomRange.normalize().startPath,endPath:C.docTree.curDomRange.normalize().endPath},l instanceof gn.N)return 3===l.type||(this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"sign"}),this.poperType=""),!1;if(4===C.drawTree.paintStatus)return!1;if(l instanceof Rt.Z){if(l.isReadOnly&&""!==l.text.replace(/\s*/g,""))return!1;this.computedPoperPosition(l,_),this.poperType="datePoper"}else if(l instanceof Ft.yF){if(l.isReadOnly&&""!==l.text.replace(/\s*/g,""))return!1;var k=function callback(u){v.computedPoperPosition(l,_),Array.isArray(u)&&u.length>0?v.poperSelectList=u:v.poperSelectList=l.downListContent?l.downListContent:[],v.poperType="selectPoper"};l.customProperty&&1==l.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"downlist",callback:k}):k(void 0)}else if((l instanceof Gt.R||l instanceof $t.j)&&l.parentNode instanceof Bt.re){var N=l.parentNode;if(0===Number(N.inputFieldType))return N.canModifyContent?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"text"}):this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"modify_node"}),this.setUpdateNodeValue(this.getCurrentSelectNode()),!1;if(0===N.readOnlyStatus&&""!==N.text.replace(/\s*/g,""))return!1;if(2===Number(N.inputFieldType))this.poperType="datePoper";else if(1===Number(N.inputFieldType)){var B=function _callback(u){v.computedPoperPosition(l,_),Array.isArray(u)&&u.length>0?v.poperSelectList=u:v.poperSelectList=JSON.parse(N.downListProperty.listItems),v.poperType="selectPoper"};N.customProperty&&1==N.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"textlist",callback:B}):B(void 0)}}else l.parentNode instanceof et.D&&l.nodeType!==Fe.Jq.ntMedicalExpression&&l.nodeType!==Fe.Jq.ntImage?this.handleCellNode(l,l.parentNode,_):l instanceof Sn.H?(this.poperType="",this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"edit-image"})):this.setDblclickNodeValue(l,"dblclick")}},{key:"handleCellNode",value:function handleCellNode(l,u,_){var v,C=u.table.colInfos[u.row.indexOf(u)].colProperty,k=u.cellProperty,N=!0;if(null!==C&&0===C.editorProperty&&null!==k&&0!==k.editorProperty)if(1===k.editorProperty&&1===JSON.parse(null===(v=k.downListProperty)||void 0===v?void 0:v.listItems).length){var B,U=JSON.parse(null===(B=k.downListProperty)||void 0===B?void 0:B.listItems);u.setCellText(U[0].text),N=!1}else if(2===k.editorProperty&&k.dateTimeProperty.isAutoInputCurDate){var W=this.dateFormat(new Date,k.dateTimeProperty.inputStyle);u.setCellText(W),N=!1}N&&(l instanceof Gt.R?this.nodeValue=l.text:l instanceof mn.C&&(this.nodeValue=""),this.poperType="table-cell-poper",this.computedPoperPosition(l,_))}},{key:"computedPoperPosition",value:function computedPoperPosition(l,u){var _=rt.b.instance().getFactory(this.hoEditorId),v=l.drawNodes[0],C=_.drawTree.getDrawLineByDNode(v),k=C.localToGlobal(v.x,0===v.y?C.dHeight:v.y);this.poperPos={x:k.x/nt.f.instance().scaleXY,y:k.y/nt.f.instance().scaleXY+5,width:v.dWidth?v.dWidth:0,height:C.dHeight,pageIndex:u,docIndex:this.docIndex?this.docIndex:0}}},{key:"mouseRightClickEvent",value:function mouseRightClickEvent(l){var u,_=rt.b.instance().getFactory(this.hoEditorId),v={clientX:l.clientX||l.pageX,clientY:l.clientY||l.pageY};if(_.drawTree.paintStatus!==Ee.Dh.psDesign&&_.drawTree.paintStatus!==Ee.Dh.psEdit){var C=rt.b.instance().getFactory(this.hoEditorId);return this.isCreateRightMenuModal=!0,C.drawTree.paintStatus!==Ee.Dh.psReview&&(this.isHideComments=C.isHideComments,this.showCommentsBtn=!0),void(0,Lt.GN)(v.clientX,v.clientY,this.rightMenuModal)}var k=_.drawTree.selectRange.spStart,N=_.vueController.getCaretPosition(),B=null===(u=_.vueController.findNodebyPath(N))||void 0===u?void 0:u.node;if(k){var U,W=null===(U=_.docTree.findNodePositionByPath(k.path))||void 0===U?void 0:U.node;W instanceof gn.N&&3==W.type&&(B=W)}B&&null!==B&&B instanceof Fe.Hd&&this.setRightClickNodeValue(B),_.drawTree.selectRange.beginRangeSelect=!1,this.$emit("rightClickEvent",v)}},{key:"hideComments",value:function hideComments(){this.isCreateRightMenuModal=!1;var l=rt.b.instance().getFactory(this.hoEditorId);l.vueController.hideComments(!l.isHideComments)}},{key:"poperTextClose",value:function poperTextClose(){this.isPoperText=!1}},{key:"pageReady",value:function pageReady(l){try{null===this.viewableAreaObserver&&this.pageIntersectionObserver();var u=rt.b.instance().getFactory(this.hoEditorId);this.drawing=!0,u.drawTree.paintHeader(l.pageIndex),u.drawTree.paintFooter(l.pageIndex),l.reFreshBounds(),u.drawPageTree.changeInViewPage(),l.drawDomLevel&&u.drawPageTree.updateDrawPage(l.pageIndex)}finally{this.drawing=!1}}}]),HoDoc}(k());__decorate([Prop()],Tn.prototype,"docIndex",void 0),__decorate([Prop()],Tn.prototype,"hoEditorId",void 0),__decorate([Prop()],Tn.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],Tn.prototype,"activeDocId",void 0),__decorate([Prop()],Tn.prototype,"editJson",void 0),__decorate([Ref()],Tn.prototype,"editorArea",void 0),__decorate([Ref()],Tn.prototype,"rightMenuModal",void 0),__decorate([Prop()],Tn.prototype,"textStyle",void 0),__decorate([Prop()],Tn.prototype,"isUseTipText",void 0),__decorate([Watch("drawPageCount",{deep:!0})],Tn.prototype,"drawPagesLengthChange",null),__decorate([Inject("setRightClickNodeValue")],Tn.prototype,"setRightClickNodeValue",void 0),__decorate([Inject("setDblclickNodeValue")],Tn.prototype,"setDblclickNodeValue",void 0),__decorate([Inject("setUpdateNodeValue")],Tn.prototype,"setUpdateNodeValue",void 0),__decorate([Watch("activePageIndex",{deep:!0})],Tn.prototype,"activePageIndexChange",null),__decorate([Watch("poperTipPos",{deep:!0})],Tn.prototype,"poperTipPosChange",null),__decorate([Watch("isUseTipText")],Tn.prototype,"isUseTipTextChange",null),Tn=__decorate([ae({name:"HoDoc",components:{HoPage:Tt,HoToPage:Ot,PoperMark:Kr,PoperTipText:En,PoperSelectModal:Ur,TableCellPoper:Qr}})],Tn);var Dn,kn=Tn,In=kn,Mn=normalizeComponent(In,HoDocvue_type_template_id_0d9b6522_render,he,!1,null,null,null),Nn=Mn.exports,On=__webpack_require__(3877),Ln=__webpack_require__(21635),An=(__webpack_require__(21703),__webpack_require__(8247)),Rn=__webpack_require__(73060),Fn=__webpack_require__(61152),jn=__webpack_require__(94047),Bn=__webpack_require__(32633),Un=__webpack_require__(93935),Hn=function(){function DrawPageTree(l){(0,q.Z)(this,DrawPageTree),this._oldPageCount=0,this._hoEditorFactoryID=l,this._drawFooters=[],this._drawHeaders=[],this._drawMainDocs=[],this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}return(0,$.Z)(DrawPageTree,[{key:"drawHeaders",get:function get(){return this._drawHeaders},set:function set(l){this._drawHeaders=l}},{key:"drawFooters",get:function get(){return this._drawFooters},set:function set(l){this._drawFooters=l}},{key:"drawMainDocs",get:function get(){return this._drawMainDocs},set:function set(l){this._drawMainDocs=l}},{key:"initDoc",value:function initDoc(){var l=new it.g(this._hoEditorFactoryID,"header/0",0),u=rt.b.instance().getFactory(this._hoEditorFactoryID);l.x=u.pageProperty.leftMarginPixes,this._drawHeaders.push(l);var _=new ot.d(this._hoEditorFactoryID,"footer/0",0);_.x=u.pageProperty.leftMarginPixes,this._drawFooters.push(_);var v=new An.$(this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(v),this.calcMainDocPosition(0),u.drawTree.inViewPages=[0]}},{key:"getMainDoc",value:function getMainDoc(l){if(l<this._drawMainDocs.length)return this._drawMainDocs[l];if(l===this._drawMainDocs.length){var u=new An.$(this._hoEditorFactoryID,"main",0,0);return this.calcMainDocPosition(l),u}throw new Error("需要按顺序创建mainDoc")}},{key:"getPrevDrawArea",value:function getPrevDrawArea(l){var u=l;if(l instanceof An.$){var _=this._drawMainDocs.indexOf(l);if(_<this._drawMainDocs.length-1)u=this._drawMainDocs[_+1];else{var v=new An.$(this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(v),this.calcMainDocPosition(_+1),u=v}}return u}},{key:"getNextDrawArea",value:function getNextDrawArea(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=l;if(l instanceof An.$){var C=this._drawMainDocs.indexOf(l);if(C<this._drawMainDocs.length-1)v=this._drawMainDocs[C+1];else{var k=new An.$(this._hoEditorFactoryID,"main",C+1,0);this._drawMainDocs.push(k),this.calcMainDocPosition(C+1,u);while(_.drawTree.drawPages.length<this._drawMainDocs.length)_.drawTree.addPage(),_.drawTree.drawPageCount.count=_.drawTree.drawPages.length;v=k}}return v}},{key:"paint",value:function paint(l,u,_,v){var C=this,k=(new Array,rt.b.instance().getFactory(this._hoEditorFactoryID));if(l instanceof Fn.k)this.paintDrawPageCell(l,u,_,v);else{var N=v,B=l;this._oldPageCount=k.drawTree.drawPages.length;var U=1/0,W=u[_],q=0;if(W instanceof Bn.t){if(W.drawPageTables.length>0)W.drawPageTables[W.drawPageTables.length-1];else if(null,_>0){var $,Y=u[_-1];$=Y instanceof Bn.t?Y.drawPageTables[Y.drawPageTables.length-1]:Y;var ee=this.getMainRootArea($);ee===B&&(q=$.y+$.dHeight+$.paragraphNode.combineParagraph.lineSpace,$ instanceof jn.ox&&$.endRow==$.table.rowCount-1&&$.isEndRowFinished()&&(q-=$.paragraphNode.combineParagraph.lineSpace))}}else W,q=W.y;if(B.allowAcrossPage&&(U=B.maxHeight-q),B){var re=this.getMainRootArea(B);if(re){var ne=_,ie=new Map;try{this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1;while(ne<=v){var oe=u[ne];oe.paragraphNode.printAsSinglePage&&oe.paragraphNode.drawlines[0]===oe&&q>0&&B instanceof An.$&&(this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),k.subDocManger.updateSubDocPageIndexByPath(B.pageIndex+1,oe.paragraphNode.docId),ie.set(B.index,!0),B=this.getNextDrawArea(B,!0),q=0,B.allowAcrossPage&&(U=B.maxHeight-q)),(oe instanceof Bn.t&&U<k.defaultLineHeight||oe instanceof Rn.a&&U<oe.dHeight)&&(oe instanceof Rn.a&&U>=k.defaultLineHeight&&B.contains(oe)&&B.removeChild(oe),B instanceof An.$&&(this.afterAreaFinishPaint(B),this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),ie.set(B.index,!0),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q)));var ae=u[ne],le=ae.paragraphNode.combineParagraph;if(ae instanceof Bn.t){var ce=ae.drawPageTables.length>0&&ae.isFinishedPaint();if(ce)ne<N&&(N=ne>0?ne-1:0);else{while(!ce){var de=0;if(ae.drawPageTables.length>0){var he=ae.drawPageTables[ae.drawPageTables.length-1];de=he.isEndRowFinished()?he.endRow+1:he.endRow,q=0}B.allowAcrossPage&&(U=B.maxHeight-q),U<Un.dT&&B instanceof An.$&&(B.endDline=ne-1,this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),ie.set(B.index,!0),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q));var _e=ae.paintTable(B,q,U,de);if(_e&&(q=_e.y+_e.dHeight,B.allowAcrossPage?U=B.maxHeight-q:re.docHeight=q),ce=ae.isFinishedPaint(),!ce){if(!(B instanceof An.$))break;this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q,ie.set(B.index,!0))}}q+=le.lineSpace}}else ae.dHeight>U&&q>0&&B instanceof An.$&&(B.endDline=ne-1,this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),ie.set(B.index,!0),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q)),(ne>_||ne===_&&!B.contains(ae))&&(B.addChild(ae),ae.y=q),q=ae.y+ae.dHeight+ae.paragraphNode.combineParagraph.lineSpace,re.docHeight=q,B.allowAcrossPage&&(U=B.maxHeight-q);if(ne>=v)break;ne+=1}var pe=Math.min(ne,v,N);if(B instanceof An.$&&pe===u.length-1){B.endDline=pe;var fe=this._drawMainDocs.indexOf(B);return this._drawMainDocs.splice(fe+1,this._drawMainDocs.length),k.drawTree.drawPages.splice(fe+1,this._drawMainDocs.length),k.drawTree.drawPageCount.count=k.drawTree.drawPages.length,this.afterAreaFinishPaint(B),this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),void(k.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,k.drawTree.updatePageCountNodes()))}if(B===re&&ne===this.drawMainDocs.length-1&&N===ne)return this.afterAreaFinishPaint(B),this._startNeedUpdatePage=Math.min(B.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.index,this._endNeedUpdatePage),void(k.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,k.drawTree.updatePageCountNodes()));var me,be=u[pe],Ee=k.drawTree.getDlineDrawRootLists(be)[0],ke=Ee.drawRoots;pe=Ee.index,B instanceof An.$&&(re=B);var Ie=ie.get(re.index);if(Ie){var Ne=this._drawMainDocs.indexOf(re);re=Ne===this._drawMainDocs.length-1?this.getNextDrawArea(re):this._drawMainDocs[Ne+1]}if(be=ke[pe],be instanceof Bn.t){var Fe=be.getDrawTableByPageIndex(re.index);me=Fe||be.drawPageTables[0]}else me=be;this.update(re,ke,me,pe,pe)}finally{k.drawTree.inViewPages.forEach((function(l){C.updateDrawPage(l)})),this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}}}}}},{key:"paintDrawPageCell",value:function paintDrawPageCell(l,u,_,v){var C=v,k=l,N=rt.b.instance().getFactory(this._hoEditorFactoryID),B=N.drawTree.drawPages.length;try{var U=u[_],W=0;if(U instanceof Bn.t){if(U.drawPageTables.length>0)U.drawPageTables[U.drawPageTables.length-1];else if(null,_>0){var q=u[_-1];if(q instanceof Bn.t){var $=q.drawPageTables[q.drawPageTables.length-1];W=$.y+$.dHeight}else W=q.y+q.dHeight+q.paragraphNode.combineParagraph.lineSpace}}else U,W=U.y;if(!k)return;var Y=this.getMainRootArea(k);if(!Y)return;var ee=Y.dHeight-k.localToLocal(0,0,Y).y;k.maxHeight=ee;var re=1/0;k.allowAcrossPage&&Y.allowAcrossPage&&(re=k.maxHeight-W);var ne=_,ie=!1;while(ne<=v){var oe=u[ne];(oe instanceof Bn.t&&re<N.defaultLineHeight||oe instanceof Rn.a&&re<oe.dHeight)&&(oe instanceof Rn.a&&re>=N.defaultLineHeight&&k.contains(oe)&&k.removeChild(oe),ie=!0);var ae=u[ne];ae.paragraphNode.combineParagraph;if(ae instanceof Bn.t){var le=ae.drawPageTables.length>0&&ae.isFinishedPaint();if(le)ne<C&&(C=ne>0?ne-1:0);else{while(!le){var ce=0;if(ae.drawPageTables.length>0){var de=ae.drawPageTables[ae.drawPageTables.length-1];ce=de.isEndRowFinished()?de.endRow+1:de.endRow}var he=ae.paintTable(k,W,re,ce);he&&(W=he.y+he.dHeight,k.allowAcrossPage&&Y.allowAcrossPage&&(re=k.maxHeight-W)),le=ae.isFinishedPaint()}W+=ae.paragraphNode.combineParagraph.lineSpace}}else{if(ae.dHeight>re&&W>0){var _e=N.drawTree.getParentDrawArea(k);if(!_e)throw new Error("无法绘制表格,找不到当前表格的父区域");var pe=k.drawPageTable,fe=pe.table.drawTable.drawPageTables.indexOf(pe),me=null;fe>0&&(me=pe.table.drawTable.drawPageTables[fe-1]);var be=pe.getMainRestHeight();k.drawPageTable.table.drawTable.drawUpdate(_e,me,pe.y,be);break}(ne>_||ne===_&&!k.contains(ae))&&(k.addChild(ae),ae.y=W),W=ae.y+ae.dHeight+ae.paragraphNode.combineParagraph.lineSpace,k.allowAcrossPage&&Y.allowAcrossPage&&(re=k.maxHeight-W)}if(ne>=v)break;ne+=1}var Ee,ke=Math.min(ne,v,C),Ie=u[ke],Ne=N.drawTree.getDlineDrawRootLists(Ie)[0],Fe=Ne.drawRoots;if(ke=Ne.index,ie){var He=this._drawMainDocs.indexOf(Y);He===this._drawMainDocs.length-1?Y=this.getNextDrawArea(Y):(this.updateDrawPage(k.index),Y=this._drawMainDocs[He+1])}if(Ie=Fe[ke],Ie instanceof Bn.t){var qe=Ie.getDrawTableByPageIndex(Y.index);Ee=qe||Ie.drawPageTables[0]}else Ee=Ie;this.update(Y,Fe,Ee,ke,ke)}finally{N.drawTree.drawPages.length!==B&&N.drawTree.updatePageCountNodes()}}},{key:"update",value:function update(l,u,_,v,C){var k=this,N=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l){-1===this._startNeedUpdatePage&&this._endNeedUpdatePage;try{0===this._oldPageCount&&(this._oldPageCount=N.drawTree.drawPages.length);var B=v,U=!1,W=0;if(B===C&&u[B]instanceof Bn.t&&(U=!0,B<u.length-1)){var q,$=u[B+1];q=$ instanceof Bn.t?$.drawPageTables[0]:$,W=q.y}var Y=u.length-1,ee=_.y;_ instanceof jn.ox&&!l.contains(_)&&(ee=0);var re=1/0;l.allowAcrossPage&&(re=l.maxHeight-ee);var ne=null;if(l instanceof An.$){var ie=this._drawMainDocs.indexOf(l);ie>0&&(ne=this._drawMainDocs[ie-1])}do{if(!l)return;if(l.update(ne,u,B,ee,re),this.afterAreaFinishPaint(l),this._startNeedUpdatePage=Math.min(l.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(l.index,this._endNeedUpdatePage),B=l.endDline,U&&B>C+1){var oe=u[C+1],ae=void 0;if(ae=oe instanceof Bn.t?oe.drawPageTables[0]:oe,ae.y===W)return}if(l.isEndLineFinished()&&(B+=1),l instanceof An.$&&(B<=Y&&(ne=l,l=this.getNextDrawArea(l),ee=0,l.allowAcrossPage&&(re=l.maxHeight)),B===u.length-1)){var le=this._drawMainDocs.indexOf(l);this._drawMainDocs.splice(le+1,this._drawMainDocs.length),N.drawTree.drawPages.splice(le+1,this._drawMainDocs.length),N.drawTree.drawPageCount.count=N.drawTree.drawPages.length}}while(B<=Y);if(l instanceof An.$&&Y===u.length-1){var ce=this._drawMainDocs.indexOf(l);this._drawMainDocs.splice(ce+1,this._drawMainDocs.length),N.drawTree.drawPages.splice(ce+1,this._drawMainDocs.length)}N.drawTree.drawPageCount.count=N.drawTree.drawPages.length,this.afterAreaFinishPaint(l),this._startNeedUpdatePage=Math.min(l.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(l.index,this._endNeedUpdatePage)}finally{this._oldPageCount!==N.drawTree.drawPages.length&&N.drawTree.updatePageCountNodes(),N.drawTree.inViewPages.forEach((function(l){k.updateDrawPage(l)}))}}}},{key:"calcMainDocPosition",value:function calcMainDocPosition(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.subDocManger.getSubDocIndex(l,lt.pi.hftHead),C=(0,B.Z)(v,2),k=(C[0],C[1]),N=_.subDocManger.getSubDocIndex(l,lt.pi.hftFoot),U=(0,B.Z)(N,2),W=(U[0],U[1]),q=_.subDocManger.getHeaderIndexByRoots(k),$=_.subDocManger.getFooterIndexByRoots(W),Y=this._drawHeaders[q],ee=Y?Y.actualHeight+_.pageProperty.headerYPixes:0,re=this._drawFooters[$],ne=re?re.actualHeight+_.pageProperty.footerYPixes:0,ie=this._drawMainDocs[l];if(ie){var oe=Math.max(_.pageProperty.topMarginPixes,ee),ae=Math.max(_.pageProperty.bottomMarginPixes,ne);ie.x=_.pageProperty.leftMarginPixes,ie.y=oe,ie.maxHeight=_.pageProperty.heightPixes-oe-ae,ie.dHeight=_.pageProperty.heightPixes-oe-ae}}},{key:"getMainRootArea",value:function getMainRootArea(l){var u=l;while(u){if(u instanceof An.$||u instanceof it.g||u instanceof ot.d)return u;u=u.parent}return null}},{key:"getDrawPageBySelectContainer",value:function getDrawPageBySelectContainer(l){return l&&l.id>=0&&l.id<this.drawMainDocs.length?rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[l.id]:null}},{key:"getFirstDrawArea",value:function getFirstDrawArea(l){if(l.startsWith("main"))return this._drawMainDocs[0];var u=l.split("/"),_=0;if(u.length>1&&!isNaN(parseInt(u[1]))&&(_=parseInt(u[1])),l.startsWith("header"))return this._drawHeaders[_];if(l.startsWith("footer"))return this._drawFooters[_];throw new Error("错误码的绘制路径".concat(l))}},{key:"clearAreas",value:function clearAreas(l){for(var u=0;u<l.length;u++)l[u]&&l[u].clear();l.length=0}},{key:"clear",value:function clear(){this.clearAreas(this._drawFooters),this.clearAreas(this._drawHeaders),this.clearAreas(this._drawMainDocs)}},{key:"dispalyComments",value:function dispalyComments(l,u){var _=u.areaComments;if(_.size>0){var v=function changeComment(l,_){for(var v=u.children,C=0;C<v.length;C++){var k=v[C];k.name===_.id&&(l?k instanceof createjs.Container?k.alpha=1:k.alpha=.5:k.alpha=.01)}};_.forEach((function(u){v(l,u)}))}}},{key:"afterAreaFinishPaint",value:function afterAreaFinishPaint(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.drawTree.paintStatus!==Ee.Dh.psReview&&(u.drawTree.paintStatus!==Ee.Dh.psEdit&&u.drawTree.paintStatus!==Ee.Dh.psReadOnly||u.isHideComments)||l.drawComments();var _=!1;u.drawTree.paintStatus!==Ee.Dh.psReview&&(u.drawTree.paintStatus!==Ee.Dh.psEdit&&u.drawTree.paintStatus!==Ee.Dh.psReadOnly||u.isHideComments)||(_=!0),this.dispalyComments(_,l);var v=l.rootPath;if(v.startsWith("main"))u.drawTree.repaintPageMarkNodes(u.drawTree.drawPages[l.index],l.rootPath);else{var C=u.subDocManger.getHeaderFooterType(l.rootPath);u.subDocManger.repaintPageMarkNodes(l,C)}}},{key:"updateDrawPage",value:function updateDrawPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[l];_&&(_.needUpdateStage=!0,_.drawDomLevel&&_.drawDomLevel.stage&&u.drawTree.inViewPages.indexOf(_.pageIndex)>=0&&(_.drawDomLevel.stage.update(),_.needUpdateStage=!1),_.drawSelectLevel&&_.drawSelectLevel.stage&&u.drawTree.inViewPages.indexOf(_.pageIndex)>=0&&(_.drawSelectLevel.stage.update(),_.needUpdateStage=!1))}},{key:"stopPageEvent",value:function stopPageEvent(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.drawPages.length-1;u>=0;u--){var _=l.drawTree.drawPages[u];_.drawDomLevel&&_.drawDomLevel.stage&&(_.drawDomLevel.stage.enableMouseOver(0),_.drawDomLevel.stage.removeAllEventListeners()),_.drawSelectLevel&&_.drawSelectLevel.stage&&(_.drawSelectLevel.stage.enableMouseOver(0),_.drawSelectLevel.stage.removeAllEventListeners())}}},{key:"getSubDocDrawarea",value:function getSubDocDrawarea(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return u===lt.pi.hftHead?_.drawPageTree.drawHeaders[l]:_.drawPageTree.drawFooters[l]}},{key:"updatePageWidthHeight",value:function updatePageWidthHeight(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.pageProperty.widthPixes,_=u-l.pageProperty.leftMarginPixes-l.pageProperty.rightMarginPixes,v=0;v<this._drawHeaders.length;v++){var C=this._drawHeaders[v];C&&(C.docWidth=_)}for(var k=0;k<this.drawFooters.length;k++){var N=this.drawFooters[k];N&&(N.docWidth=_)}for(var B=0;B<l.drawTree.drawPages.length;B++){var U=l.drawTree.drawPages[B];U.storeDrawFooter.docWidth=_,U.storeDrawHeader.docWidth=_}for(var W=0;W<this._drawMainDocs.length;W++){var q=this._drawMainDocs[W];q&&(q.docWidth=_)}}},{key:"changeInViewPage",value:function changeInViewPage(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=0;u<l.drawTree.drawPages.length;u++){var _=l.drawTree.drawPages[u];l.drawTree.inViewPages.indexOf(_.pageIndex)<0&&(_.drawSelectLevel&&_.drawSelectLevel.stage&&(_.drawSelectLevel.stage._nextStage=null,_.drawSelectLevel.clearStage()),_.drawDomLevel&&_.drawDomLevel.stage&&_.drawDomLevel.clearStage())}for(var v=0;v<l.drawTree.inViewPages.length;v++){var C=l.drawTree.drawPages[l.drawTree.inViewPages[v]];C.drawDomLevel&&!C.drawDomLevel.stage&&(C.drawDomLevel.bindStage(),this.updateDrawPage(C.pageIndex)),C.drawSelectLevel&&!C.drawSelectLevel.stage&&C.drawSelectLevel.bindStage()}}},{key:"getDrawPageByDNode",value:function getDrawPageByDNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=this.getMainRootArea(l);return _?u.drawTree.drawPages[_.index]:null}},{key:"getDrawPageBySelectShape",value:function getDrawPageBySelectShape(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=this.getMainRootArea(l);return _?u.drawTree.drawPages[_.index]:null}}]),DrawPageTree}(),Wn=(__webpack_require__(47042),__webpack_require__(10838));(function(l){l[l["detOver"]=0]="detOver",l[l["detOut"]=1]="detOut",l[l["detClick"]=2]="detClick",l[l["detDblclick"]=3]="detDblclick"})(Dn||(Dn={}));var qn=function(){function NodeMouseMoveEvent(l){(0,q.Z)(this,NodeMouseMoveEvent),this._pageIndex=0,this._moveType=Dn.detOut,this._hoEditorFactoryID=l,this._tipText=[],this._id=[]}return(0,$.Z)(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(l){this._poperTipPos!==l&&(this._poperTipPos=l)}},{key:"isUseTipText",get:function get(){return this._isUseTipText},set:function set(l){this._isUseTipText!==l&&(this._isUseTipText=l)}},{key:"setNode",value:function setNode(l,u){this._creatorIndex=-1,this._deleterIndex=-1,this._tipText=[],this._id=[];var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l instanceof Gt.R){if(rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus===Ee.Dh.psReview){if(this._creatorIndex=_.docTree.styles[l.styleIndex].creatorIndex,this._deleterIndex=_.docTree.styles[l.styleIndex].deleterIndex,void 0!==this._creatorIndex&&this._creatorIndex>=0){var v=_.docTree.userHistories[this._creatorIndex];this._moveType=u,this._tipText.push("".concat(v.editDate," ").concat(v.name,"创建")),this._id.push(v.id),this.computedPosition(l.drawNodes[0])}if(void 0!==this._deleterIndex&&this._deleterIndex>=0){var C=_.docTree.userHistories[this._deleterIndex];this._moveType=u,this._tipText.push("".concat(C.editDate," ").concat(C.name,"删除")),this._id.push(C.id),this.computedPosition(l.drawNodes[0])}}else if(this._isUseTipText&&0!==this._deleterIndex&&l.parentNode&&l.parentNode instanceof Bt.re&&(0===_.drawTree.paintStatus||1===_.drawTree.paintStatus||4===_.drawTree.paintStatus)){if(this._moveType=u,l.parentNode.tipText){var k=JSON.stringify(l.parentNode.tipText);k=k.slice(1,k.length-1);var N=k.split("\\n").filter((function(l){return l}));this._tipText=N}else this._tipText.push("");this._id.push(l.parentNode.id),this.computedPosition(l.drawNodes[0])}}else if(l instanceof $t.j){if(this._isUseTipText&&0!==this._deleterIndex&&l.parentNode&&l.parentNode instanceof Bt.re&&(0===_.drawTree.paintStatus||1===_.drawTree.paintStatus||4===_.drawTree.paintStatus)){if(this._moveType=u,l.parentNode.tipText){var B=JSON.stringify(l.parentNode.tipText);B=B.slice(1,B.length-1);var U=B.split("\\n").filter((function(l){return l}));this._tipText=U}else this._tipText.push("");this._id.push(l.parentNode.id),this.computedPosition(l.drawNodes[0])}}else if(this._isUseTipText&&(0===_.drawTree.paintStatus||1===_.drawTree.paintStatus||4===_.drawTree.paintStatus)&&l instanceof Bt.re){if(this._moveType=u,l.tipText){var W=JSON.stringify(l.tipText);W=W.slice(1,W.length-1);var q=W.split("\\n").filter((function(l){return l}));this._tipText=q}else this._tipText.push("");this._id.push(l.id),this.computedPosition(l.drawNodes[0])}}},{key:"NodeClick",value:function NodeClick(l,u){var _=this,v=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l instanceof He.Yh&&u===Dn.detClick){var C=v.drawTree.getDrawLineByDNode(l.drawNodes[0]),k=new Wn.W(l,"click");v.docTree.nodeClick(k),l.drawNodes[0].parent=C}if(v.drawTree.paintStatus===Ee.Dh.psDesign){var N=v.drawTree.getDrawLineByDNode(l.drawNodes[0]).paragraphNode;if(N&&N.customProperty){var B=N.customProperty,U=["男","女"].includes(B.sex)||B.age&&"隐藏"==B.age.select,W=[];U&&(["男","女"].includes(B.sex)&&W.push('患者为<span style="color:#f00"> '.concat(B.sex," </span>性时,隐藏当前段落")),B.age&&"隐藏"==B.age.select&&W.push('患者年龄在<span style="color:#f00"> '.concat(B.age.minAge,' </span>岁到<span style="color:#f00"> ').concat(B.age.maxAge," </span>之间时,隐藏当前段落")),W.length>0&&setTimeout((function(){_.createParagraphTipHTML(v.drawTree.caret,W)}),0))}}}},{key:"createParagraphTipHTML",value:function createParagraphTipHTML(l,u){var _,v=document.createElement("div");v.id="ho_paragrapgh_tip",v.style.left=l.X+"px",v.style.top=l.Y+l.height+"px",v.innerHTML=u.join("<br />"),null===(_=l.cursor.parentNode)||void 0===_||_.appendChild(v)}},{key:"computedPosition",value:function computedPosition(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.getDrawLineByDNode(l);if(_){var v=_.localToGlobal(l.x,0===l.y?_.dHeight:l.y);this._pageIndex=rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex,this._poperTipPos.width=l.dWidth?l.dWidth:0,this._poperTipPos.height=_.dHeight,this._poperTipPos.pageIndex=this._pageIndex,this._poperTipPos.moveType=this._moveType,this._poperTipPos.y=v.y/nt.f.instance().scaleXY+5,this._poperTipPos.x=v.x/nt.f.instance().scaleXY}}}]),NodeMouseMoveEvent}();qn.eventName="nodeMouseMove";var zn=__webpack_require__(88198),Vn=function(){function Option(l){(0,q.Z)(this,Option),this._reviewLev1Color="#F19191",this._reviewLev2Color="#8198F7",this._reviewLev3Color="#7FD27F",this._fieldColor="#DFFFFF",this._dateTimeColor="#FBFAD0",this._downListColor="#D2ECB1",this._downListColor2="#D2ACB1",this._signColor="transparent",this._hoEditorFactoryID=l}return(0,$.Z)(Option,[{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID},set:function set(l){this._hoEditorFactoryID=l}},{key:"reviewLev1Color",get:function get(){return this._reviewLev1Color},set:function set(l){this._reviewLev1Color=l}},{key:"reviewLev2Color",get:function get(){return this._reviewLev2Color},set:function set(l){this._reviewLev2Color=l}},{key:"reviewLev3Color",get:function get(){return this._reviewLev3Color},set:function set(l){this._reviewLev3Color=l}},{key:"fieldColor",get:function get(){return this._fieldColor},set:function set(l){this._fieldColor=l}},{key:"dateTimeColor",get:function get(){return this._dateTimeColor},set:function set(l){this._dateTimeColor=l}},{key:"downListColor",get:function get(){return this._downListColor},set:function set(l){this._downListColor=l}},{key:"downListColor2",get:function get(){return this._downListColor2},set:function set(l){this._downListColor2=l}},{key:"signColor",get:function get(){return this._signColor},set:function set(l){this._signColor=l}},{key:"setReviewLevelColor",value:function setReviewLevelColor(l,u,_,v,C,k,N,B){l&&(this._reviewLev1Color=l),u&&(this._reviewLev2Color=u),_&&(this._reviewLev3Color=_),v&&(this._fieldColor=v),C&&(this._dateTimeColor=C),k&&(this._downListColor=k),N&&(this._downListColor2=N),B&&(this._signColor=B)}},{key:"getColorByLevel",value:function getColorByLevel(l){return 10===l?this._fieldColor:11===l?this._dateTimeColor:12===l?this._downListColor2:120===l?this._downListColor:1===l?this._reviewLev1Color:2===l?this._reviewLev2Color:3===l?this._reviewLev3Color:13===l?this._signColor:"transparent"}}]),Option}(),Kn=function(){function TimeStamp(l){(0,q.Z)(this,TimeStamp),this._hoEditorFactoryID=l,this._last=(new Date).valueOf()}return(0,$.Z)(TimeStamp,[{key:"update",value:function update(){this._last=(new Date).valueOf()}},{key:"timeOut",value:function timeOut(l){return(new Date).valueOf()-this._last>(l||1e3)}}]),TimeStamp}(),$n=__webpack_require__(85014),Gn=(__webpack_require__(39714),function(){function GenerateCode(l){(0,q.Z)(this,GenerateCode),this._hoEditorFactoryID=l}return(0,$.Z)(GenerateCode,[{key:"generateID",value:function generateID(l){void 0===l&&(l="");var u=new Date,_=u.getFullYear().toString(),v=(u.getMonth()+1).toString(),C=u.getDate().toString(),k=u.getHours().toString(),N=u.getMinutes().toString(),B=u.getSeconds().toString();1===v.length&&(v="0"+v),1===C.length&&(C="0"+C),1===k.length&&(k="0"+k),1===N.length&&(N="0"+N),1===B.length&&(B="0"+B);var U=Math.floor(1e6*Math.random()).toString(),W=l+_+v+C+k+N+B+U;return W}},{key:"generateTime",value:function generateTime(){var l=new Date,u=l.getFullYear().toString(),_=(l.getMonth()+1).toString(),v=l.getDate().toString(),C=l.getHours().toString(),k=l.getMinutes().toString(),N=l.getSeconds().toString();1===_.length&&(_="0"+_),1===v.length&&(v="0"+v),1===C.length&&(C="0"+C),1===k.length&&(k="0"+k),1===N.length&&(N="0"+N);var B=u+"-"+_+"-"+v+" "+C+":"+k+":"+N;return B}}]),GenerateCode}()),Zn=__webpack_require__(86769),Jn=__webpack_require__.n(Zn),Xn=(__webpack_require__(27852),__webpack_require__(56977),__webpack_require__(73210),__webpack_require__(19755)),Yn=__webpack_require__.n(Xn),Qn=__webpack_require__(39171),ei=__webpack_require__(64134),ti=function(){function HTMLconverter2(l){var u=this;(0,q.Z)(this,HTMLconverter2),this._hoEditorFactoryID=l,this.convert=new Map,0===this.convert.size&&(this.convert=new Map,this.convert.set("div",(function(l,_){return u.TransHTML(l,_)})),this.convert.set("p",(function(l,_){return u.TransHTMLP(l,_)})),this.convert.set("br",(function(l,_){return u.TransHTMLP(l,_)})),this.convert.set("span",(function(l,_){return u.TransHTMLSPAN(l,_)})),this.convert.set("font",(function(l,_){return u.TransHTMLSPAN(l,_)})),this.convert.set("table",(function(l,_){return u.TransHTMLTABLE(l,_)})),this.convert.set("#text",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("b",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("strong",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("em",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("i",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("sup",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("sub",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("u",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("s",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("img",(function(l,_){return u.TransHTMLIMG(l,_)})))}return(0,$.Z)(HTMLconverter2,[{key:"Exec",value:function Exec(l,u){var _=new Array;return _.push.apply(_,(0,U.Z)(this.TransHTML(l,u))),_}},{key:"TransHTML",value:function TransHTML(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=this.mergestyle(Yn()(l).attr("style")||"",u),C=new Array;if(0==l.childNodes.length){var k=this.HTMLStyleToCombineStyle(v),N=_.docTree.styleCompare(k),B=new Gt.R(this._hoEditorFactoryID,_.docTree.activeNodes,null,Fe.Jq.ntText,Yn()(l).text(),N);return C.push(B),C}if(6===l.childNodes.length&&"TABLE"==l.childNodes[2].nodeName){var W=this.mergestyle(Yn()(l.childNodes[2]).attr("style")||"",u),q=this.generateTextNode(l.childNodes[2].textContent,W);return q&&C.push(q),C}for(var $=0;$<l.childNodes.length;$++){if("img"==l.childNodes[$].nodeName.toLowerCase()){var Y=l.childNodes[$].src;if(Y&&".svg"===Y.toString().substring(Y.length-4,Y.length))continue}var ee=this.convert.get(l.childNodes[$].nodeName.toLowerCase());if(ee&&C.push.apply(C,(0,U.Z)(ee(l.childNodes[$],JSON.stringify(v)))),"p"===l.childNodes[$].nodeName.toLowerCase()&&l.childNodes[$+1]&&"p"!==l.childNodes[$+1].nodeName.toLowerCase()){var re=Object(l.childNodes[$]);re.className&&"MsoNormal"===re.className&&C[C.length-1]instanceof mn.C&&C.splice(C.length-1,1)}if("p"===l.childNodes[$].nodeName.toLowerCase()&&l.childNodes[$-1]&&"p"!==l.childNodes[$-1].nodeName.toLowerCase()){var ne=Object(l.childNodes[$]);ne.className&&"MsoNormal"===ne.className&&C[0]instanceof mn.C&&C.splice(0,1)}}for(var ie=0;ie<C.length;ie++){var oe=C[ie];if(oe instanceof Un.Fh&&oe.parentNode instanceof Bt.re)return Jn().alert("不能在文本域中插入表格"),[];if(oe instanceof Un.Fh&&oe.parentNode instanceof et.D)return Jn().alert("不能在表格中插入表格"),[]}return C}},{key:"StyleToJSON",value:function StyleToJSON(l){if(""==l)return{};if(l.startsWith("{"))return JSON.parse(l);var u=l;u.endsWith(";")&&(u=u.substr(0,u.length-1)),u=u.split("\n").join(""),u=u.split('"').join(""),u=u.split(";").join('",\n"'),u=u.split(":").join('":"'),u=u.split("-").join("_"),u='{"'.concat(u,'"}');var _=JSON.parse(u);return _}},{key:"colorRGB2Hex",value:function colorRGB2Hex(l){var u=l.split(","),_=parseInt(u[0].split("(")[1]),v=parseInt(u[1]),C=parseInt(u[2].split(")")[0]),k="#"+((1<<24)+(_<<16)+(v<<8)+C).toString(16).slice(1);return k}},{key:"HTMLStyleToCombineStyle",value:function HTMLStyleToCombineStyle(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.styles[0].clone();if(l["font_size"]){_.size=Number(l["font_size"])||_.size;var v=l["font_size"],C=v.match(/^(.*)(px|pt)$/);if(C){var k=parseFloat(C[1]);"px"==C[2]&&(k=k/96*72),_.size=k}}if(l["font_family"]&&""!==(0,Xn.trim)(l["font_family"].toString())?_.font=l["font_family"]:_.font=_.combineStyle.font,l["font_weight"]&&(_.bold=!0),l["font_style"]&&"normal"!==(0,Xn.trim)(l["font_style"].toString())&&(_.italic=!0),l["text_decoration"]){var N=l["text_decoration"];_.underline=-1!=N.indexOf("underline"),_.strikeout=-1!=N.indexOf("line_through")}if(l["vertical_align"]){var B=l["vertical_align"];"super"==B?_.script=Qn.n$.sstsup:"sub"==B&&(_.script=Qn.n$.sstsub)}if(l["background_color"]){_.backColor=l["background_color"];var U=l["background_color"];U.indexOf("rgb")>=0&&(_.backColor=this.colorRGB2Hex(U))}if(l["background"]){_.backColor=l["background"];var W=l["background"];W.indexOf("rgb")>=0&&(_.backColor=this.colorRGB2Hex(W))}if(l["color"]){_.color=l["color"];var q=l["color"];q.indexOf("rgb")>=0&&(_.color=this.colorRGB2Hex(q))}return _}},{key:"parseHtmlString",value:function parseHtmlString(l){return this.Exec(Yn()(l)[0],"")}},{key:"HTMLStyleToParsStyle",value:function HTMLStyleToParsStyle(l){var u=new ei.nv(this._hoEditorFactoryID);if(l["text_align"]){var _=l["text_align"];u.align="center"==_?ei.xM.alcenter:"left"==_?ei.xM.alleft:"right"==_?ei.xM.alright:"justify"==_?ei.xM.alSpaceEqually:u.align}if(l["line_height"]){var v=l["line_height"];u.lineSpace=Number(v.substr(0,v.indexOf("%")))/100}if(l["mso_para_margin_left"]){var C=l["mso_para_margin_left"],k=C.match(/^(.*)gd$/);k&&k[1]&&(u.leftMargin=Number(k[1]))}if(l["text_indent"]){var N=l["text_indent"],B=N.match(/^(.*)gd$/);B&&B[1]&&(u.leftMargin=Number(B[1]))}return u}},{key:"mergestyle",value:function mergestyle(l,u){var _={},v={};return""!=l&&(_=this.StyleToJSON(l)),""!=u&&(v=this.StyleToJSON(u)),Object.assign(v,_)}},{key:"TransHTMLIMG",value:function TransHTMLIMG(l,u){var _=this.mergestyle(Yn()(l).attr("style")||"",u),v=(Yn()(l).attr("src"),_.width?_.width.replace("px",""):20),C=_.height?_.height.replace("px",""):20,k=new Sn.H(this._hoEditorFactoryID,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,null,Fe.Jq.ntImage,rt.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"),Yn()(l).attr("src")||"",Number(v),Number(C));return[k]}},{key:"generateTableProperty",value:function generateTableProperty(l){Yn()(l).attr;var u=new tt.vE("");return u.tightLineSpace=u["tightLineSpace"]||!1,u.layoutFullLine=u["layoutFullLine"]||!1,u.continuePrintBorders=u["continuePrintBorders"]||!1,u.canDeleteTable=u["canDeleteTable"]||!1,u.canDeleteRow=u["canDeleteRow"]||!1,u.canAddRow=u["canAddRow"]||!1,u.canAdjustRowWidth=u["canAdjustRowWidth"]||!1,u.canAdjustRowHeight=u["canAdjustRowHeight"]||!1,u.fixedOnePage=u["fixedOnePage"]||!1,u.isAutoChangeLine=u["isAutoChangeLine"]||!1,u.autoLineHeight=u["autoLineHeight"]||.53,u}},{key:"SetTableProperty",value:function SetTableProperty(l,u){for(var _,v=Yn()(l).children(),C=new Array,k=new Array,N=0,B=0;B<v.length;B++){for(var U=Yn()(v[B]).children(),W=0;W<U.length;W++){var q=new tt.Nr(""),$=new Un.ii(u,q),Y=Yn()(U[B]).css("height");if(Y&&"0px"!=Y){var ee=0;Y.indexOf("pt")>0&&(ee=parseFloat(Y.substring(0,Y.indexOf("pt")))),Y.indexOf("px")>0&&(ee=parseFloat(Y.substring(0,Y.indexOf("px")))),ee=parseFloat((96*ee/72).toFixed(2)),$.rowHeight=ee}C.push($);var re=Yn()(U[W]).children();re.length>N&&(N=re.length,_=U[W])}if(!_)throw new Error("表格中没有发现列");for(var ne=Yn()(_).children(),ie=0;ie<ne.length;ie++){var oe=Yn()(ne[ie]).css("width"),ae=0;oe.indexOf("pt")>0&&(ae=parseFloat(oe.substring(0,oe.indexOf("pt")))),oe.indexOf("px")>0&&(ae=parseFloat(oe.substring(0,oe.indexOf("px")))),ae=parseFloat((96*ae/72).toFixed(2));var le=new tt.Ti(""),ce=new Un.ZE(u,ae,le);k.push(ce)}u.rowInfos=C,u.colInfos=k}}},{key:"TransHTMLTABLE",value:function TransHTMLTABLE(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath);if(_ instanceof Un.Fh||_ instanceof et.D)return Jn().alert("不能在表格中插入表格"),[];if(_ instanceof Bt.re)return Jn().alert("不能在文本域中插入表格"),[];this.mergestyle(Yn()(l).attr("style")||"",u);for(var v=Yn()(l).children(),C=new Array,k=0,N=0,B=0;B<v.length;B++){var W=Yn()(v[B]).children();k+=W.length;for(var q=0;q<W.length;q++){var $=new Array,Y=Yn()(W[q]).children();N=Math.max(Y.length,N),$.push.apply($,(0,U.Z)(Y)),C.push($)}}var ee=new Un.Fh(this._hoEditorFactoryID,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,_,k,N,this.generateTableProperty(l));if(this.SetTableProperty(l,ee),0==C.length)return[];for(var re=0;re<k;re++)for(var ne=0;ne<N;ne++){var ie=C[re][ne];if(ie){var oe=parseInt(Yn()(ie).attr("rowSpan")||"1"),ae=parseInt(Yn()(ie).attr("colSpan")||"1");if(ae>1){var le,ce=new Array(ae-1);if((le=C[re]).splice.apply(le,[ne+1,0].concat(ce)),oe>1)for(var de=re+1;de<re+oe;de++){var he,_e=new Array(ae);(he=C[de]).splice.apply(he,[ne,0].concat(_e))}}else if(oe>1)for(var pe=re+1;pe<re+oe;pe++){var fe,me=new Array(ae);(fe=C[pe]).splice.apply(fe,[ne,0].concat(me))}}}for(var be=function getitem(l,u){return l<C.length&&u<C[l].length?C[l][u]:void 0},Ee=0;Ee<k;Ee++)for(var ke=0;ke<N;ke++){var Ie=be(Ee,ke);Ie?this.copyCellNode(Ie,ee,Ee,ke):ee.rows[Ee][ke]=void 0}return ee.node2DrawNode(),[ee]}},{key:"TransHTMLSPAN",value:function TransHTMLSPAN(l,u){var _=this.mergestyle(Yn()(l).attr("style")||"",u);if(0==l.childNodes.length){var v=this.generateTextNode(Yn()(l).text(),_);return v?[v]:[]}for(var C=new Array,k=0;k<l.childNodes.length;k++){var N=this.convert.get(l.childNodes[k].nodeName.toLowerCase());N&&C.push.apply(C,(0,U.Z)(N(l.childNodes[k],JSON.stringify(_))))}return C}},{key:"TransHTMLP",value:function TransHTMLP(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=this.mergestyle(Yn()(l).attr("style")||"",u),C=new Array,k=this.HTMLStyleToParsStyle(v);0===k.lineSpace&&(k.lineSpace=void 0);var N=_.docTree.styleCompare(k),B=new mn.C(this._hoEditorFactoryID,_.docTree.activeNodes,_.docTree.getParentNode(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),N);if(C.push(B),0==l.childNodes.length){if("br"===l.nodeName.toLowerCase())return C;var W=this.generateTextNode(Yn()(l).text(),v);return W?[W]:[]}for(var q=0;q<l.childNodes.length;q++){var $=this.convert.get(l.childNodes[q].nodeName.toLowerCase());$&&C.push.apply(C,(0,U.Z)($(l.childNodes[q],JSON.stringify(v))))}return C}},{key:"TransHTMLText",value:function TransHTMLText(l,u){var _=this.mergestyle(Yn()(l).attr("style")||"",u),v=l.nodeName.toLowerCase();if("b"==v||"strong"==v)_["font_weight"]="bold";else if("em"==v||"i"==v)_["font_style"]="italic";else if("sup"==v){var C=_["vertical_align"]||"";-1==C.indexOf("sub")&&(_["vertical_align"]=(""==C||void 0==C?"":C+" ")+"super")}else if("sub"==v){var k=_["vertical_align"]||"";-1==k.indexOf("sub")&&(_["vertical_align"]=(""==k||void 0==k?"":k+" ")+"sub")}else if("u"==v){var N=_["text_decoration"]||"";-1==N.indexOf("underline")&&(_["text_decoration"]=(""==N?"":N+" ")+"underline")}else if("s"==v){var B=_["text_decoration"]||"";-1==B.indexOf("line_through")&&(_["text_decoration"]=(""==B?"":B+" ")+"line_through")}if(0==l.childNodes.length){var W=this.generateTextNode(Yn()(l).text(),_);return W?[W]:[]}for(var q=new Array,$=0;$<l.childNodes.length;$++){var Y=this.convert.get(l.childNodes[$].nodeName.toLowerCase());Y&&q.push.apply(q,(0,U.Z)(Y(l.childNodes[$],JSON.stringify(_))))}return q}},{key:"generateTextNode",value:function generateTextNode(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(""==l.split("\n").join(""))return null;if(""==l.trim())return null;var v=this.HTMLStyleToCombineStyle(u),C=_.docTree.styleCompare(v),k=new Gt.R(this._hoEditorFactoryID,_.docTree.activeNodes,_.docTree.getParentNode(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),Fe.Jq.ntText,l,C);return k}},{key:"copyCellNode",value:function copyCellNode(l,u,_,v){var C=u.rows[_][v];if(C){var k;C.rowSpan=parseInt(Yn()(l).attr("rowSpan")||"1")||1,C.colSpan=parseInt(Yn()(l).attr("colSpan")||"1")||1;var N=this.mergestyle(Yn()(l).attr("style")||"","");N["mso_diagonal_down"]&&"none"!=N["mso_diagonal_down"]&&(C.crossLineType=et.v.ct02),N["mso_diagonal_up"]&&"none"!=N["mso_diagonal_up"]&&(C.crossLineType=et.v.ct13),"top"==Yn()(l).attr("valign")?C.cellProperty.align=tt.TR.vatop:"bottom"==Yn()(l).attr("valign")?C.cellProperty.align=tt.TR.vabottom:C.cellProperty.align=tt.TR.vacenter;for(var B=Array(),W=0;W<l.childNodes.length;W++){var q=this.convert.get(l.childNodes[W].nodeName.toLowerCase());q&&B.push.apply(B,(0,U.Z)(q(l.childNodes[W],"")))}C.childNodes.splice(0,C.childNodes.length),B.forEach((function(l){l.parentNode=C,l instanceof mn.C&&l.drawlines.forEach((function(l){l.dWidth=u.colInfos[v].colWidth}))})),(k=C.childNodes).push.apply(k,B),C.cell2DrawNode(_,v)}}}]),HTMLconverter2}(),ri=__webpack_require__(15890),ni=(__webpack_require__(69826),__webpack_require__(68757),__webpack_require__(24603),__webpack_require__(28450),__webpack_require__(88386),__webpack_require__(88674),__webpack_require__(27098)),oi=__webpack_require__.n(ni),ai=__webpack_require__(52192),si=__webpack_require__(6264),li=__webpack_require__(96562),ci=__webpack_require__(2307),ui=__webpack_require__(40599),di=__webpack_require__(72353),hi=__webpack_require__(73075),_i=__webpack_require__(71245),pi=__webpack_require__(93948),fi=__webpack_require__(38333),gi=__webpack_require__(93792),mi=__webpack_require__(58372),vi=__webpack_require__(25812),yi=__webpack_require__(70804),bi=__webpack_require__(92551),wi=__webpack_require__(70477),xi=__webpack_require__(9327),Pi=__webpack_require__(32843);__webpack_require__(64765);function xmlBeauty(l){for(var u=l.replace(/</g,"~::~<").replace(/xmlns:/g,"~::~xmlns:").replace(/xmlns=/g,"~::~xmlns=").split("~::~"),_=u.length,v=!1,C=0,k="",N=["\n"],B=" ",U=0;U<100;U++)N.push(N[U]+B);for(var W=null,q=0;q<_;q++)u[q].search(/<!/)>-1?(k+=N[C]+u[q],v=!0,(u[q].search(/-->/)>-1||u[q].search(/\]>/)>-1||u[q].search(/!DOCTYPE/)>-1)&&(v=!1)):u[q].search(/-->/)>-1||u[q].search(/\]>/)>-1?(k+=u[q],v=!1):/^<\w/.exec(u[q-1])&&/^<\/\w/.exec(u[q])&&/^<[\w:\-.,]+/.exec(u[q-1])==(W=/^<\/[\w:\-.,]+/.exec(u[q]),null==W?W:W[0].replace("/",""))?(k+=u[q],v||C--):u[q].search(/<\w/)>-1&&-1==u[q].search(/<\//)&&-1==u[q].search(/\/>/)?k=k+=v?u[q]:N[C++]+u[q]:u[q].search(/<\w/)>-1&&u[q].search(/<\//)>-1?k=k+=v?u[q]:N[C]+u[q]:u[q].search(/<\//)>-1?k=k+=v?u[q]:N[--C]+u[q]:u[q].search(/\/>/)>-1?k=k+=v?u[q]:N[C]+u[q]:u[q].search(/<\?/)>-1||u[q].search(/xmlns:/)>-1||u[q].search(/xmlns=/)>-1?k+=N[C]+u[q]:k+=u[q];return"\n"==k[0]?k.slice(1):k}var Ci,Ei=__webpack_require__(86726),Si=__webpack_require__(77647),Ti=__webpack_require__(85983),Di=function(){function StructureConvert(l){(0,q.Z)(this,StructureConvert),this._comments=[],this._markNodes=[],this._superiorSign=[],this._hoEditorFactoryID=l,this._comments=[],this._markNodes=[],this._superiorSign=[]}return(0,$.Z)(StructureConvert,[{key:"nodes2Html",value:function nodes2Html(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.structureNode.Copy(l,null),u.structureNode.htmldata}},{key:"nodes2Text",value:function nodes2Text(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.structureNode.Copy(l,null),u.structureNode.textdata}},{key:"nodes2Json",value:function nodes2Json(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.structureNode.Copy(l,null),u.structureNode.jsondata}},{key:"htmlToNode",value:function htmlToNode(l){var u,_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=/<body[^>]*>([\s\S]+?)<\/body>/i,C=v.exec(l);if(!C)return[];u="<div>"+C[1]+"</div>";var k=[];if(u)for(var N=Yn()(u).children(),B=0;B<N.length;B++){var U=N[B],W=Yn()(U).prop("tagName").toLowerCase();if("p"==W){var q=this.dealP(U),$=new mn.C(this._hoEditorFactoryID,_.docTree.mainNodes,null,0),Y=$.combineParagraph,ee=this.dealStyle(q.style,"text-align");ee&&(Y.align="center"==ee?ei.xM.alcenter:"left"==ee?ei.xM.alleft:"right"==ee?ei.xM.alright:"justify"==ee?ei.xM.alSpaceEqually:Y.align);var re=this.dealStyle(q.style,"line-height");re&&re.indexOf("%")>0&&(Y.lineSpace=Number(re.substr(0,re.indexOf("%")))/100);var ne=this.dealStyle(q.style,"mso-para-margin-left");if(ne){var ie=ne.match(/^(.*)gd$/);ie&&ie[1]&&(Y.leftMarginMm=Number(ie[1]))}k.push($);for(var oe=0;oe<q.children.length;oe++){var ae=q.children[oe];if(ae.text){var le=ae.style;le=le.replace(/\r\n/g,""),le=le.replace(/\n/g,"");var ce=new Qn.pn(this._hoEditorFactoryID),de=this.dealStyle(le,"font-size");if(de){var he=de.match(/^(.*)(px|pt)$/);if(he){var _e=parseFloat(he[1]);"pt"==he[2]&&(_e=parseFloat((96*_e/72).toFixed(2))),ce.size=_e}}var pe=this.dealStyle(le,"font-family");pe&&(ce.font=pe);var fe=this.dealStyle(le,"font-weight");fe&&fe.indexOf("bold")>=0&&(ce.bold=!0);var me=this.dealStyle(le,"font-style");me&&me.indexOf("italic")>=0&&(ce.italic=!0);var be=this.dealStyle(le,"text-decoration");be&&be.indexOf("underline")>=0&&(ce.underline=!0),be&&be.indexOf("line-through")>=0&&(ce.strikeout=!0);var Ee=this.dealStyle(le,"vertical-align");Ee&&Ee.indexOf("super")>=0&&(ce.script=2),Ee&&Ee.indexOf("sub")>=0&&(ce.script=1);var ke=this.dealStyle(le,"background");ke&&(ke.indexOf("rgb")>=0&&(ke=this.colorRGB2Hex(ke)),ce.backColor=ke);var Ie=this.dealStyle(le,"color");Ie&&(Ie.indexOf("rgb")>=0&&(Ie=this.colorRGB2Hex(Ie)),ce.color=Ie);var Ne=_.docTree.styleCompare(ce),He=new Gt.R(this._hoEditorFactoryID,_.docTree.mainNodes,null,Fe.Jq.ntText,ae.text,Ne);k.push(He)}}if(B==N.length-1&&Yn()(U).html().indexOf("<o:p></o:p>")>0){var qe=new mn.C(this._hoEditorFactoryID,_.docTree.mainNodes,null,0);k.push(qe)}}else if("table"==W){var Ke=new mn.C(this._hoEditorFactoryID,_.docTree.mainNodes,null,_.docTree.curParaNo);k.push(Ke),k.push(this.dealTable(U))}}return k}},{key:"dealTable",value:function dealTable(l){for(var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=Yn()(l).find("tbody tr"),v=0,C=new Array,k=new Array,N=new Array,B=0,U=new Map,W=0;W<_.length;W++){var q=Yn()(_[W]).children().length;q>v&&(v=q,B=W)}new mn.C(this._hoEditorFactoryID,u.docTree.mainNodes,null,u.docTree.curParaNo);for(var $=new tt.vE(""),Y=new Un.Fh(this._hoEditorFactoryID,u.docTree.mainNodes,null,_.length,v,$),ee=0;ee<_.length;ee++){var re=new tt.Nr(""),ne=new Un.ii(Y,re),ie=Yn()(_[ee]).css("height");if(ie&&"0px"!=ie){var oe=parseFloat(ie.substring(0,ie.indexOf("pt")));oe=parseFloat((96*oe/72).toFixed(2)),ne.rowHeight=oe}C.push(ne);for(var ae=Yn()(_[ee]).children(),le=0,ce=0;ce<ae.length;ce++){if(B==ee){var de=Yn()(ae[ce]).css("width"),he=parseFloat(de.substring(0,de.indexOf("pt")));he=parseFloat((96*he/72).toFixed(2));var _e=new tt.Ti(""),pe=new Un.ZE(Y,he,_e);k.push(pe)}var fe=Yn()(ae[ce]).attr("colspan"),me=Yn()(ae[ce]).attr("rowspan");if(fe||me){var be=0;if(fe&&(be=parseInt(fe)),me){for(var Ee=parseInt(me),ke=0;ke<Ee;ke++){for(var Ie=0;Ie<be;Ie++)this.arrayPush(ee+ke,le+Ie,v,ee+"-"+ce,N);0==be&&this.arrayPush(ee+ke,le,v,ee+"-"+ce,N)}le+=0==be?1:be}else for(var Ne=0;Ne<be;Ne++)this.arrayPush(ee,le,v,ee+"-"+ce,N),le++}else this.arrayPush(ee,le,v,ee+"-"+ce,N),le++;U.set(ee+"-"+ce,ae[ce])}}Y.colInfos=k,Y.rowInfos=C;for(var Fe=new Map,He=0;He<N.length;He++)for(var qe=N[He],Ke=0;Ke<qe.length;Ke++){var Ge=N[He][Ke];if(Fe.get(Ge))Y.rows[He][Ke]=void 0;else{var et=U.get(Ge),nt=Yn()(et).css("border-left"),it=Yn()(et).css("border-right"),ot=Yn()(et).css("border-top"),st=Yn()(et).css("border-bottom"),lt=Yn()(et).attr("colspan"),ct=Yn()(et).attr("rowspan"),ut=Y.rows[He][Ke],dt=ct?parseInt(ct):1,ht=lt?parseInt(lt):1;ut.rowSpan=dt,ut.colSpan=ht,ut.borderVisible=["none"!=nt,"none"!=it,"none"!=ot,"none"!=st];for(var _t=Yn()(et).children(),pt=new Array,ft=0;ft<_t.length;ft++){var gt=_t[ft],mt=this.htmlToNode("<body>"+gt.outerHTML+"</body>");pt=pt.concat(mt)}for(var vt=0;vt<pt.length;vt++)null===ut||void 0===ut||ut.addChild(pt[vt]);ut.cell2DrawNode(He,Ke),Fe.set(Ge,Ge)}}return Y.node2DrawNode(),Y}},{key:"arrayPush",value:function arrayPush(l,u,_,v,C){for(C[l]||C.push(new Array);u<_;u++)if(!C[l][u]){C[l][u]=v;break}}},{key:"colorRGB2Hex",value:function colorRGB2Hex(l){var u=l.split(","),_=parseInt(u[0].split("(")[1]),v=parseInt(u[1]),C=parseInt(u[2].split(")")[0]),k="#"+((1<<24)+(_<<16)+(v<<8)+C).toString(16).slice(1);return k}},{key:"dealStyle",value:function dealStyle(l,u){if(!l)return"";for(var _=l.split(";"),v=0;v<_.length;v++){var C=_[v],k=C.split(":");if(u==k[0])return k[1]}return""}},{key:"dealP",value:function dealP(l){var u=Yn()(l).children(),_=Yn()(l).attr("style")||"",v=this.dealTagName(u,"");return{style:_,children:v}}},{key:"dealTagName",value:function dealTagName(l,u){for(var _=[],v=0;v<l.length;v++){var C=l[v],k=Yn()(C).prop("tagName").toLowerCase();"b"==k||"strong"==k?_=_.concat(this.dealBaseTag(C,u+"font-weight:bold;")):"em"==k||"i"==k?_=_.concat(this.dealBaseTag(C,u+"font-style:italic;")):"u"==k?_=_.concat(this.dealBaseTag(C,u+"text-decoration: underline;")):"s"==k?_=_.concat(this.dealBaseTag(C,u+"text-decoration: line-through;")):"sup"==k?_=_.concat(this.dealBaseTag(C,u+"vertical-align:super;")):"sub"==k?_=_.concat(this.dealBaseTag(C,u+"vertical-align:sub;")):"span"==k&&(_=_.concat(this.dealSpan(C,u)))}return _}},{key:"dealBaseTag",value:function dealBaseTag(l,u){var _=Yn()(l).children();return 0==_.length?[{style:u,text:Yn()(l).text()}]:this.dealTagName(_,u)}},{key:"dealSpan",value:function dealSpan(l,u){var _=(Yn()(l).attr("style")||"")+u;_.endsWith(";")||(_+=";");var v=Yn()(l).children();if(0==v.length)return[{style:_,text:Yn()(l).text()}];for(var C=Yn()(l).html(),k=[],N=0;N<v.length;N++){var B=v[N],U=B.outerHTML,W=C.indexOf(U);W>0&&(k.push({style:_,text:C.substr(0,W)}),C=C.substr(W));var q=Yn()(B).prop("tagName").toLowerCase(),$=_;if("b"==q||"strong"==q)$+="font-weight:bold;";else if("em"==q||"i"==q)$+="font-style:italic;";else if("u"==q)$+="text-decoration: underline;";else if("s"==q)$+="text-decoration: line-through;";else if("sup"==q)$+="vertical-align:super;";else if("sub"==q)$+="vertical-align:sub;";else if("span"==q)$+=Yn()(B).attr("style");else if("o:p"==q){C="";continue}var Y=Yn()(U).children();Y&&Y.length>0?k.push(this.dealTagName(Y,$)[0]):k.push({style:$,text:Yn()(B).text()}),C=C.substr(U.length)}return C&&k.push({style:_,text:C}),k}},{key:"doc2Text",value:function doc2Text(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.getHeaderPageNodes(),_="",v=0;v<u.length;v++){var C=u[v];C.length>1&&(_+=this.nodes2Text(C))}for(var k=l.docTree.mainNodes,N=this.nodes2Text(k),B=l.subDocManger.getFooterPageNodes(),U="",W=0;W<B.length;W++){var q=B[W];q.length>1&&(U+=this.nodes2Text(q))}var $="";return $=_.length>0?_+"\n"+N+"\n"+U:N+"\n"+U,$}},{key:"doc2Html",value:function doc2Html(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u="",_=l.subDocManger.getHeaderPageNodes(),v=0;v<_.length;v++){var C=_[v];u+=this.nodes2Html(C)}var k=l.docTree.mainNodes;u+=this.nodes2Html(k);for(var N=l.subDocManger.getFooterPageNodes(),B=0;B<N.length;B++){var U=N[B];u+=this.nodes2Html(U)}return u}},{key:"doc2Xml",value:function doc2Xml(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(_&&(this.getValidStyles(0),this.getValidStyles(1)),"json"===l){var k=JSON.parse("{}"),N=this.doc2Json("docProperty");k.docProperty=N;var B=this.doc2Json("pageSettings");k.pageSettings=B;var U=this.doc2Json("styles");k.styles=U;var W=this.doc2Json("comments");k.comments=W;var q=this.doc2Json("userHistories");k.userHistories=q;var $=this.doc2Json("header","json");k.headers=$;var Y=this.doc2Json("main","json");k.main=Y;var ee=this.doc2Json("footer","json");return k.footer=ee,k}var re='<?xml version="1.0" encoding="utf-8"?>';re+="<root xml:space='preserve'>";var ne=new(oi())({stripWhitespaces:!1,arrayAccessForm:"property"});re+="<docProperty>";var ie=this.doc2Json("docProperty");re+=ne.js2xml(ie),re+="</docProperty>",re+="<pageSettings>";var oe=this.doc2Json("pageSettings");re+=ne.js2xml(oe),re+="</pageSettings>",re+="<styles>";var ae=this.doc2Json("styles");re+=ne.js2xml(ae),re+="</styles>",re+="<comments>";var le=this.doc2Json("comments");re+=ne.js2xml(le),re+="</comments>",re+="<userHistories>";var ce=this.doc2Json("userHistories");return re+=ne.js2xml(ce),re+="</userHistories>",re+="<headers>",re=this.doc2Json("header","xml",re),re+="</headers>",re+="<main>",re=this.doc2Json("main","xml",re,v),re+="</main>",re+="<footers>",re=this.doc2Json("footer","xml",re),re+="</footers>",re+="<docText>",re+=C.vueController.getMainDocText(),re+="</docText>",re+="</root>",re=C.unitConvert.replaceAll(re,"<TempNode>",""),re=C.unitConvert.replaceAll(re,"</TempNode>",""),C.isThrowError=!0,u?re:xmlBeauty(re)}},{key:"xml2Doc",value:function xml2Doc(l,u){var _=this.xml2Object(l);if(_)return this.json2Doc(_,u)}},{key:"xml2Object",value:function xml2Object(l){l=this.replaceNodesName(l);var u=new(oi())({stripWhitespaces:!1}),_=u.xml2js(l),v=JSON.parse(JSON.stringify(_));if(!v.root&&!v.rvxml)return null;if(v.root){var C=v.root,k=C.headers.header;void 0===k.length&&(k=Array(C.headers.header));for(var N=new Array,B=0;B<k.length;B++){var U=parseInt(k[B].index),W=k[B].node;void 0===W.length&&(W=Array(k[B].node));for(var q=0;q<W.length;q++){var $=W[q];N[U]||(N[U]=new Array),N[U][q]=$}}var Y=C.footers.footer;void 0===Y.length&&(Y=Array(C.footers.footer));for(var ee=new Array,re=0;re<Y.length;re++){var ne=parseInt(Y[re].index),ie=Y[re].node;void 0===ie.length&&(ie=Array(Y[re].node));for(var oe=0;oe<ie.length;oe++){var ae=ie[oe];ee[ne]||(ee[ne]=new Array),ee[ne][oe]=ae}}for(var le=new Array,ce=new Array,de=0;de<N.length;de++)if(N[de]){var he=new lt.UJ(de,"");he.subDocNodes=N[de],le.push(he)}for(var _e=0;_e<ee.length;_e++)if(ee[_e]){var pe=new lt.UJ(_e,"");pe.subDocNodes=ee[_e],ce.push(pe)}new Array;return{docProperty:C.docProperty,pageSettings:C.pageSettings,comments:C.comments,userHistories:C.userHistories,styles:C.styles,main:C.main.node,header:le,footer:ce}}return null}},{key:"replaceNodesName",value:function replaceNodesName(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode/g);return l=l.replace(_,"node"),l=u.unitConvert.replaceAll(l,"<TableFormula>","<node>"),l=u.unitConvert.replaceAll(l,"</TableFormula>","</node>"),l=u.unitConvert.replaceAll(l,"<End>","<node>"),l=u.unitConvert.replaceAll(l,"</End>","</node>"),l=u.unitConvert.replaceAll(l,"<PupilMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</PupilMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<LightLocationMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</LightLocationMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<MenstrualHistoryNode>","<node>"),l=u.unitConvert.replaceAll(l,"</MenstrualHistoryNode>","</node>"),l=u.unitConvert.replaceAll(l,"<FetalHeartMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</FetalHeartMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<PermanentTeethMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</PermanentTeethMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<PrimaryTeethMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</PrimaryTeethMapNode>","</node>"),l}},{key:"getValidStyles",value:function getValidStyles(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=[];0===l&&(_=u.docTree.styles),1===l&&(_=u.docTree.paragraphs);for(var v=u.docTree.mainNodes,C=u.subDocManger.headerDocTree,k=u.subDocManger.footerDocTree,N=function forEachAllNodes(u,_,N,B){var U=function updateNodesStyle(u){for(var v=0;v<u.length;v++){var C=u[v];if(0===l){if(C instanceof Gt.R||C instanceof wi.w||C instanceof $t.j||C instanceof mn.C)if(0===_){if(Number(C.styleIndex)===N){B=!0;break}}else Number(C.styleIndex)>N&&(C.styleIndex=Number(C.styleIndex)-1)}else if(C instanceof mn.C)if(0===_){if(Number(C.paraNo)===N){B=!0;break}}else Number(C.paraNo)>N&&(C.paraNo=Number(C.paraNo)-1);C instanceof gi.V&&updateNodesStyle(C.childNodes)}};if("all"===u||"head"===u)for(var W=0;W<C.length;W++){var q=C[W].subDocNodes;Array.isArray(q)&&q.length>0&&U(q)}if("all"!==u&&"main"!==u||U(v),"all"===u||"foot"===u)for(var $=0;$<k.length;$++){var Y=k[$].subDocNodes;Array.isArray(Y)&&Y.length>0&&U(Y)}if(0===_)return B},B=_.length-1;B>0;B--){var U=!1;U=N("foot",0,B,U),U||(U=N("main",0,B,U)),U||(U=N("head",0,B,U)),U||(_.splice(B,1),N("all",1,B))}return _}},{key:"doc2Json",value:function doc2Json(l,u,_,v){var C=this,k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=new(oi())({stripWhitespaces:!1,arrayAccessForm:"property"});if("docProperty"===l){var B=k.docTree.docProperty,U=JSON.parse(JSON.stringify(B,be.p0.whiteList()));return U}if("pageSettings"===l){var W=k.pageProperty,q=JSON.parse(JSON.stringify(W,Ln.fK.whiteList()));return q}if("styles"===l){for(var $=[],Y=k.docTree.styles,ee=Y[0].combineStyle,re=JSON.parse(JSON.stringify(ee,Qn.xc.whiteList())),ne=1;ne<Y.length;ne++){var ie=Y[ne],oe=ie.combineStyle,ae=JSON.parse(JSON.stringify(oe,Qn.xc.whiteList()));void 0!==ie.size&&ie.size!==ee.size||delete ae["size"],void 0!==ie.font&&ie.font!==ee.font||delete ae["font"],void 0!==ie.color&&ie.color!==ee.color||delete ae["color"],void 0!==ie.backColor&&ie.backColor!==ee.backColor||delete ae["backColor"],void 0!==ie.bold&&ie.bold!==ee.bold||delete ae["bold"],void 0!==ie.italic&&ie.italic!==ee.italic||delete ae["italic"],void 0!==ie.underline&&ie.underline!==ee.underline||delete ae["underline"],void 0!==ie.strikeout&&ie.strikeout!==ee.strikeout||delete ae["strikeout"],void 0!==ie.script&&ie.script!==ee.script||delete ae["script"],-1!==ie.deleterIndex&&void 0!==ie.deleterIndex&&ie.deleterIndex!==ee.deleterIndex||delete ae["deleterIndex"],-1!==ie.creatorIndex&&void 0!==ie.creatorIndex&&ie.creatorIndex!==ee.creatorIndex||delete ae["creatorIndex"],"0"!==ie.commentID&&void 0!==ie.commentID&&ie.commentID!==ee.commentID||delete ae["commentID"],$.push(ae)}for(var le=[],ce=k.docTree.paragraphs,de=ce[0].combineStyle,he=JSON.parse(JSON.stringify(de,ei.kh.whiteList())),_e=1;_e<ce.length;_e++){var pe=ce[_e],fe=pe.combineStyle,me=JSON.parse(JSON.stringify(fe,ei.kh.whiteList()));void 0!==pe.charSpace&&pe.charSpace!==de.charSpace||delete me["charSpace"],void 0!==pe.lineSpace&&pe.lineSpace!==de.lineSpace||delete me["lineSpace"],void 0!==pe.leftMargin&&pe.leftMargin!==de.leftMarginMm||delete me["leftMarginMm"],void 0!==pe.rightMargin&&pe.rightMargin!==de.rightMarginMm||delete me["rightMarginMm"],void 0!==pe.topMargin&&pe.topMargin!==de.topMarginMm||delete me["topMarginMm"],void 0!==pe.bottomMargin&&pe.bottomMargin!==de.bottomMarginMm||delete me["bottomMarginMm"],void 0!==pe.align&&pe.align!==de.align||delete me["align"],le.push(me)}return{defaultFont:re,fontStyle:$,defaultPara:he,paraStyle:le}}if("comments"===l){var Ee=[],ke=k.drawTree.commentsMap;return ke.forEach((function(l){var u=JSON.parse(JSON.stringify(l,mi.s.whiteList()));u.customProperty=l.customProperty,Ee.push(u)})),{comment:Ee}}if("userHistories"===l){for(var Ie=[],Ne=k.docTree.userHistories,Fe=0;Fe<Ne.length;Fe++){var He=Ne[Fe],qe=JSON.parse(JSON.stringify(He,vi.R.whiteList()));Ie.push(qe)}return{userHistory:Ie}}var Ke=function doc2XmlJson(l,k){for(var B=[],U=0;U<l.length;U++){var W=l[U],q=void 0;"json"===k&&(W instanceof Un.Fh||W instanceof Bt.re)?q=C.delStyle(W.node2Json(void 0,void 0,"json")):"json"===k?q=C.delStyle(W.node2Json()):W instanceof Un.Fh||W instanceof Bt.re?q=C.delStyle(W.node2Json(void 0,void 0,void 0,v)):W instanceof gn.N&&v?W.isTemplate&&(q=C.delStyle(W.node2Json(void 0,void 0,void 0,v))):q=C.delStyle(W.node2Json()),"xml"===k?_+=N.js2xml(q):B.push(q)}if("json"===u)return B};if("header"===l){for(var Ge=k.subDocManger.getHeaderPageNodes(),et=[],tt=0;tt<Ge.length;tt++){var nt=Ge[tt];if(nt&&nt.length>0)if("xml"===u)_+="<header>",_+=N.js2xml({index:tt}),Ke(nt,u),_+="</header>";else{var it={header:Ke(nt,"json")};et.push(it)}}if("xml"===u)return _;if("json"===u)return et}if("footer"===l){for(var ot=k.subDocManger.getFooterPageNodes(),st=[],lt=0;lt<ot.length;lt++){var ct=ot[lt];if(ct&&ct.length>0)if("xml"===u)_+="<footer>",_+=N.js2xml({index:lt}),Ke(ct,u),_+="</footer>";else{var ut={footer:Ke(ct,"json")};st.push(ut)}}if("xml"===u)return _;if("json"===u)return st}if("main"===l){var dt=k.docTree.mainNodes;if("xml"===u)return Ke(dt,u),_;var ht=Ke(dt,"json");return ht}}},{key:"json2Doc",value:function json2Doc(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=l.docProperty;if(v){var C=_.docTree.docProperty;C&&(C.type=Number(v["type"]?v["type"]:be.Fr.etCaseHistory),C.title=v["title"],C.docID=v["docID"],C.patientID=v["patientID"],C.patientName=v["patientName"],C.lastEditTime=v["lastEditTime"],C.lastEditorID=v["lastEditorID"],C.lastEditorName=v["lastEditorName"])}var k=l.pageSettings;if(k){var N=_.pageProperty;N.printDirection=Number(k.printDirection),N.borderColor=k.borderColor,N.isPaintBorder="true"==k.isPaintBorder,N.paintRowLine=Number(k.paintRowLine),N.pageSize=k.pageSize,N.widthMm=Number(k.widthMm),N.heightMm=Number(k.heightMm),N.source=k.source,N.topMarginMm=Number(k.topMarginMm),N.bottomMarginMm=Number(k.bottomMarginMm),N.leftMarginMm=Number(k.leftMarginMm),N.rightMarginMm=Number(k.rightMarginMm),N.headerYMm=Number(k.headerYMm)>=3?Number(k.headerYMm):3,N.footerYMm=Number(k.footerYMm)>=3?Number(k.footerYMm):3,N.showFirstPageFoot="true"===k.showFirstPageFoot,N.showFirstPageHead="true"===k.showFirstPageHead,N.pageNumber=Number(k.pageNumber),N.isHaveBgImage="true"===k.isHaveBgImage,N.fontFormat=k.fontFormat?k.fontFormat:"宋体",N.fontSize=k.fontSize?Number(k.fontSize):14,N.fontColor=k.fontColor?k.fontColor:"#000000",N.backColor=k.backColor?k.backColor:"transparent",N.paraAlign=k.paraAlign?Number(k.paraAlign):0,N.charSpace=k.charSpace?Number(k.charSpace):1,N.lineHeight=k.lineHeight?Number(k.lineHeight):1.25}for(var B=0;B<_.drawTree.drawPages.length;B++)_.drawTree.drawPages[B].reFreshBounds();this._comments=[];var U=l.comments;this._comments=U.comment,_.docTree.userHistories=[];var W=l.userHistories,q=W.userHistory;void 0==q.length&&(q=Array(q));for(var $=0;$<q.length;$++){var Y=q[$],ee=new vi.R(this._hoEditorFactoryID,vi.N.hetCreate);Object.assign(ee,Y),ee.permissionLevel=Number(Y.permissionLevel),_.docTree.userHistories.push(ee)}var re=l.styles;_.docTree.styles=[];var ne=new Qn.pn(this._hoEditorFactoryID);ne.combineStyle.size!=Number(re.defaultFont["size"])&&(ne.size=Number(re.defaultFont["size"])),_.docTree.styles.push(ne);var ie=re.font?re.font:re.fontStyle,oe=re.para?re.para:re.paraStyle;if(ie&&void 0===ie.length&&(ie=Array(ie)),oe&&void 0===oe.length&&(oe=Array(oe)),Array.isArray(ie)&&ie.forEach((function(l){l&&"string"===typeof l.font&&""===l.font.replace(/^\s+|\s+$/g,"")&&(l.font="宋体")})),ie){var ae=this.getDocStyles("font",ie);_.docTree.styles=_.docTree.styles.concat(ae)}_.docTree.paragraphs=[];var le=new ei.nv(this._hoEditorFactoryID);if(_.docTree.paragraphs.push(le),oe){var ce=this.getDocStyles("para",oe);_.docTree.paragraphs=_.docTree.paragraphs.concat(ce)}var de=l.header,he=new Array;if(de)for(var _e=0;_e<de.length;_e++){var pe=de[_e],fe=_.subDocManger.headerDocTree[_e];fe||(fe=new lt.UJ(pe.pageIndex,pe.beginPath),_.subDocManger.headerDocTree.push(fe));var me=new lt.UJ(pe.pageIndex,pe.beginPath);if(he.push(me),pe)for(var Ee=0;Ee<pe.subDocNodes.length;Ee++){var ke=pe.subDocNodes[Ee];if(ke){var Ie=_.structureConvert.convertNode(ke,fe.subDocNodes,null,me.subDocNodes,void 0,u);if(Ie&&(Ie.rootPath="header/"+_e.toString(),me.subDocNodes.push(Ie),_e>0&&0===Ee&&Ie instanceof mn.C)){var Ne=new Array;Ne.push(Ie),fe.subDocNodes=Ne;var Fe=new it.g(this._hoEditorFactoryID,Ie.rootPath,_e);_.drawPageTree.drawHeaders[_e]=Fe,_.drawTree.headerDNodes[_e]=new Array,_.drawTree.initAreaFirstNode(Ne,_.drawTree.headerDNodes[_e])}}}}var He=l.footer,qe=new Array;if(He)for(var Ke=0;Ke<He.length;Ke++){var Ge=_.subDocManger.footerDocTree[Ke];Ge||(Ge=new lt.UJ(He[Ke].pageIndex,He[Ke].beginPath),_.subDocManger.footerDocTree.push(Ge));var et=He[Ke],tt=new lt.UJ(He[Ke].pageIndex,He[Ke].beginPath);if(qe.push(tt),et)for(var nt=0;nt<et.subDocNodes.length;nt++){var st=et.subDocNodes[nt];if(st){var ct=_.structureConvert.convertNode(st,Ge.subDocNodes,null,tt.subDocNodes,void 0,u);if(ct&&(ct.rootPath="footer/"+Ke.toString(),tt.subDocNodes.push(ct),Ke>0&&0===nt&&ct instanceof mn.C)){var ut=new Array;ut.push(ct),Ge.subDocNodes=ut;var dt=new ot.d(this._hoEditorFactoryID,ct.rootPath,Ke);_.drawPageTree.drawFooters[Ke]=dt,_.drawTree.footerDNodes[Ke]=new Array,_.drawTree.initAreaFirstNode(ut,_.drawTree.footerDNodes[Ke])}}}}for(var ht=l.main,_t=new Array,pt=0;pt<ht.length;pt++){var ft=ht[pt];if(ft){var gt=_.structureConvert.convertNode(ft,_.docTree.mainNodes,null,_t,void 0,u);gt&&_t.push(gt)}}var mt=new Map;return mt.set("header",he),mt.set("footer",qe),mt.set("main",_t),mt}},{key:"getDocStyles",value:function getDocStyles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if("font"===l){for(var v=[],C=_.docTree.styles[0].combineStyle,k=0;k<u.length;k++){var N=u[k],B=new Qn.pn(this._hoEditorFactoryID);"undefined"!==typeof N["size"]&&N["size"]!==C.size.toString()&&(B.size=Number(N["size"])),"undefined"!==typeof N["font"]&&N["font"]!==C.font&&(B.font=N["font"]),"undefined"!==typeof N["color"]&&N["color"]!==C.color&&(B.color=N["color"]),"undefined"!==typeof N["backColor"]&&N["backColor"]!==C.backColor&&(B.backColor=N["backColor"]),"undefined"!==typeof N["bold"]&&N["bold"]!==C.bold.toString()&&(B.bold="true"===N["bold"]),"undefined"!==typeof N["italic"]&&N["italic"]!==C.italic.toString()&&(B.italic="true"===N["italic"]),"undefined"!==typeof N["underline"]&&N["underline"]!==C.underline.toString()&&(B.underline="true"===N["underline"]),"undefined"!==typeof N["strikeout"]&&N["strikeout"]!==C.strikeout.toString()&&(B.strikeout="true"===N["strikeout"]),"undefined"!==typeof N["script"]&&N["script"]!==C.script.toString()&&(B.script=Number(N["script"])),"undefined"!==typeof N["creatorIndex"]&&N["creatorIndex"]!==C.creatorIndex.toString()&&(B.creatorIndex=Number(N["creatorIndex"])),"undefined"!==typeof N["deleterIndex"]&&N["deleterIndex"]!==C.deleterIndex.toString()&&(B.deleterIndex=Number(N["deleterIndex"])),"undefined"!==typeof N["commentID"]&&N["commentID"]!==C.commentID.toString()&&(B.commentID=N["commentID"]),v.push(B)}return v}for(var U=_.docTree.paragraphs[0].combineStyle,W=[],q=0;q<u.length;q++){var $=u[q],Y=new ei.nv(this._hoEditorFactoryID);"undefined"!==typeof $["leftMarginMm"]&&$["leftMarginMm"]!==U.leftMarginMm.toString()&&(Y.leftMargin=Number($["leftMarginMm"])),"undefined"!==typeof $["rightMarginMm"]&&$["rightMarginMm"]!==U.rightMarginMm.toString()&&(Y.rightMargin=Number($["rightMarginMm"])),"undefined"!==typeof $["topMarginMm"]&&$["topMarginMm"]!==U.topMarginMm.toString()&&(Y.topMargin=Number($["topMarginMm"])),"undefined"!==typeof $["bottomMarginMm"]&&$["bottomMarginMm"]!==U.bottomMarginMm.toString()&&(Y.bottomMargin=Number($["bottomMarginMm"])),"undefined"!==typeof $["align"]&&$["align"]!==U.align.toString()&&(Y.align=Number($["align"])),"undefined"!==typeof $["charSpace"]&&$["charSpace"]!==U.charSpace.toString()&&(Y.charSpace=Number($["charSpace"])),"undefined"!==typeof $["lineSpace"]&&$["lineSpace"]!==U.lineSpace.toString()&&(Y.lineSpace=Number($["lineSpace"])),W.push(Y)}return W}},{key:"convertNode",value:function convertNode(l,u,_,v,C,k){if(""!==l){if(l.nodeType=Fe.Jq[l.nodeType],l.nodeType==Fe.Jq.ntTable){if(C&&_ instanceof Bt.re)return void Jn().alert("不允许将表格粘贴到文本域");if(C&&_ instanceof et.D)return void Jn().alert("不允许将表格粘贴到表格");var N=Un.Fh.json2Node(this._hoEditorFactoryID,l,u,_,C,k);return N}if(l.nodeType==Fe.Jq.ntParagraph)return mn.C.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntText)return Gt.R.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntMedicalExpression){if("PupilMap"==l.expressType)return ai.v.json2Node(this._hoEditorFactoryID,l,u,_);if("LightLocationMap"==l.expressType)return si.D.json2Node(this._hoEditorFactoryID,l,u,_);if("MenstrualHistory"==l.expressType)return li.n.json2Node(this._hoEditorFactoryID,l,u,_);if("FetalHeartMap"==l.expressType)return ci.t.json2Node(this._hoEditorFactoryID,l,u,_);if("PermanentTeethMap"==l.expressType)return ui.f.json2Node(this._hoEditorFactoryID,l,u,_);if("PrimaryTeethMap"==l.expressType)return di.x.json2Node(this._hoEditorFactoryID,l,u,_)}else if(l.nodeType==Fe.Jq.ntImage){if("Image"==l.imageType)return Sn.H.json2Node(this._hoEditorFactoryID,l,u,_);if("Barcode"==l.imageType)return hi.T.json2Node(this._hoEditorFactoryID,l,u,_);if("Qrcode"==l.imageType)return _i.d.json2Node(this._hoEditorFactoryID,l,u,_)}else if(l.nodeType==Fe.Jq.ntControl){if("ctDateTime"==l.type)return Rt.Z.json2Node(this._hoEditorFactoryID,l,u,_,C);if("ctDownList"==l.type)return Ft.yF.json2Node(this._hoEditorFactoryID,l,u,_,C);if("ctRadioAndCheckBox"==l.type)return He.Yh.json2Node(this._hoEditorFactoryID,l,u,_,C)}else{if(l.nodeType==Fe.Jq.ntField)return Bt.re.json2Node(this._hoEditorFactoryID,l,u,_,C,k);if(l.nodeType==Fe.Jq.ntSpecialChar)return fi.y.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntMark)return $t.j.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntPageCount)return yi.y.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntPageNum)return bi.h.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntTableFormula)return Pi.N.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntSeparateChar)return Ei.O.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntLabel)return Si.P.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntSign)return gn.N.json2Node(this._hoEditorFactoryID,l,u,_,k);if(l.nodeType==Fe.Jq.ntGestation)return Ti.G.json2Node(this._hoEditorFactoryID,l,u,_)}}}},{key:"delStyle",value:function delStyle(l){var u=this;return l["style"]&&delete l["style"],Object.keys(l).forEach((function(_){"object"==(0,ri.Z)(l[_])&&null!=l[_]&&(l[_]=u.delStyle(l[_]))})),l}},{key:"mergeJson",value:function mergeJson(l){var u=JSON.parse(JSON.stringify(l).replace(/}{/,",").replace(/{,/,"{"));return this.delStyle(u)}},{key:"openFile",value:function openFile(l,u,_){var v=this;this._superiorSign=[];var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=new FileReader;k.readAsText(l,"UTF-8"),k.onload=function(_){var k,N=_.target.result,B="";N&&(B=N.toString()),k="text/xml"==l.type?C.structureConvert.xml2Doc(B):C.structureConvert.json2Doc(JSON.parse(B)),Promise.resolve().then((function(){C.drawTree.updateDrawTreeFirstLine(),v.openJson2Doc(k,u)}))}}},{key:"loadFiles",value:function loadFiles(l){var u=new Array;return l.forEach((function(l){var _=new FileReader;_.readAsText(l,"UTF-8"),_.onload=function(l){var _=l.target.result,v="";_&&(v=_.toString(),u.push(v))}})),u}},{key:"openXml",value:function openXml(l,u,_,v){var C=this,k=rt.b.instance().getFactory(this._hoEditorFactoryID);this._superiorSign=[],k.isThrowError=!1;var N=k.structureConvert.xml2Doc(l,v);Promise.resolve().then((function(){k.drawTree.updateDrawTreeFirstLine(),C.openJson2Doc(N,u,_)}))}},{key:"openJson2Doc",value:function openJson2Doc(l,u,_){var v=this,C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u&&u({text:C.vueController.getDocTitle(),count:0}),l){var k=function insertNode(l,u){var _=l[0];_ instanceof mn.C&&u instanceof mn.C&&(0!==_.paraNo&&(u.paraNo=_.paraNo),_.customProperty&&(u.customProperty=_.customProperty));for(var k=1;k<l.length;k++){var N=l[k];if(!(N instanceof Gt.R&&0===N.text.length)){var B="";if(N.parentNode){if(B=C.docTree.getNodeLastPath(N.parentNode),N.parentNode instanceof Bt.re){var U=C.docTree.findNodePositionByPath(B);if(U&&U.node){var W=U.node.previousLeaf();W&&(B=C.docTree.getNodeLastPath(W))}}C.docTree.insertNodeAfterPath(B,N)}else if(N instanceof Un.Fh){var q=l[k+1];B=C.docTree.getNodeLastPath(u),C.docTree.insertNodeAfterPath(B,q),C.docTree.insertNodeAfterPath(B,N),k+=1,u=q}else B=C.docTree.getNodeLastPath(u),C.docTree.insertNodeAfterPath(B,N),u=N;N instanceof $t.j&&v._markNodes.push(N),N instanceof gn.N&&C.superiorSigns.length>0&&C.superiorSigns.includes(N.customProperty.bce01)&&(v._superiorSign[0]=N)}}},N=l.get("header");if(N)for(var B=0;B<N.length;B++){var U=N[B];if(!C.subDocManger.headerDocTree[B]){var W=new lt.UJ(U.pageIndex,U.beginPath);C.subDocManger.headerDocTree[B]=W}var q=C.subDocManger.headerDocTree[B],$=q.subDocNodes[0];k(U.subDocNodes,$);var Y=q.subDocNodes.length-1,ee=C.docTree.getNodeLastPath(q.subDocNodes[Y]),re=new pi.G(this._hoEditorFactoryID,be.gk.daInsert,"header/"+B.toString()+"/0",ee);re.repaintImmediate=!0,C.docTree.change(re),B<=C.drawTree.drawPages.length-1&&C.subDocManger.updateAllSameSubDoc(B,lt.pi.hftHead,!0,!0)}var ne=l.get("footer");if(ne)for(var ie=0;ie<ne.length;ie++){var oe=ne[ie];if(!C.subDocManger.footerDocTree[ie]){var ae=new lt.UJ(oe.pageIndex,oe.beginPath);C.subDocManger.footerDocTree[ie]=ae}var le=C.subDocManger.footerDocTree[ie],ce=le.subDocNodes[0];k(oe.subDocNodes,ce);var de=le.subDocNodes.length-1,he=C.docTree.getNodeLastPath(le.subDocNodes[de]),_e=new pi.G(this._hoEditorFactoryID,be.gk.daInsert,"footer/"+ie.toString()+"/0",he);_e.repaintImmediate=!0,C.docTree.change(_e),ie<=C.drawTree.drawPages.length-1&&C.subDocManger.updateAllSameSubDoc(ie,lt.pi.hftFoot,!0,!0)}var pe=l.get("main"),fe=C.docTree.mainNodes[0];_&&pe.length>1&&pe[pe.length-1]instanceof mn.C&&!(pe[pe.length-2]instanceof Un.Fh)&&pe.splice(pe.length-1,1),k(pe,fe);var me=C.docTree.mainNodes.length-1,Ne=C.docTree.getNodeLastPath(C.docTree.mainNodes[me]),Fe=new pi.G(this._hoEditorFactoryID,be.gk.daInsert,"main/0",Ne);C.docTree.change(Fe);var He,qe=[];if(qe=void 0===this._comments.length?Array(this._comments):this._comments,this._markNodes.length>0)for(var Ke=function _loop(l){var u=qe[l],_=v._markNodes[0],k=u["id"];v._markNodes.forEach((function(l){l.text===k&&(_=l)}));var N=new mi.s(v._hoEditorFactoryID,k,u["text"],_);N.date=u["date"],N.lineHeight=Number(u["lineHeight"]),N.userID=u["userID"],N.userName=u["userName"],N.customProperty=u["customProperty"],C.drawTree.commentsMap.set(N.id,N);var B=C.drawPageTree.getMainRootArea(_.drawNodes[0]);null===B||void 0===B||B.areaComments.set(N.id,N)},Ge=0;Ge<qe.length;Ge++)Ke(Ge);He=C.docTree.mainNodes.length>1?C.docTree.mainNodes[1]:C.docTree.mainNodes[0];var et=C.docTree.getNodeFirstPath(He),tt=new Ie.a(this._hoEditorFactoryID,et,et);C.docTree.curDomRange=tt;var nt=new ke.r(tt,tt);C.docTree.selectChange(nt),this._superiorSign.length>0&&(C.drawTree.paintStatus===Ee.Dh.psEdit||C.drawTree.paintStatus===Ee.Dh.psReview?C.vueController.hiddenMask(!1):C.vueController.hiddenMask(!0));var it=C.drawTree.formularNodes;it.forEach((function(l,u){if(l.formularType===Pi.a.ftSum||l.formularType===Pi.a.ftFormular||l.formularType===Pi.a.ftBMI||l.formularType===Pi.a.ftLaborProcess||l.formularType===Pi.a.ftExpectedBirthDate||l.formularType===Pi.a.ftPregnantWeeks||l.formularType===Pi.a.ftScoreMapping){l.updateResult(),l.getParentCell().drawCell.needUpdate=!0;var _=l.previousLeaf();if(!_)throw new Error("错误的绘制位置");var k=C.docTree.getNodeLastPath(_),N=new pi.G(v._hoEditorFactoryID,be.gk.daModifyStyle,k,k);N.oldEndPath=k,N.oldDrawLines=new xi.E(v._hoEditorFactoryID).getRangeDrawLines(k,k,!1),C.docTree.change(N)}})),u&&u({text:C.vueController.getDocTitle(),count:0}),C.isThrowError=!0}}},{key:"loadDataSet",value:function loadDataSet(l){void 0===l.length&&(l=Array(l));for(var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.mainNodes,v=null,C=0;C<_.length;C++){var k=_[C];if(k instanceof Un.Fh){v=k;break}}if(v){for(var N=0,B=0;B<v.rowInfos.length;B++){var U=v.rowInfos[B],W=U.rowProperty;W.repeatAsTitleAtPageTop||N++}l.length-N>0&&v.insertRows(v.rowCount,l.length-N,v.rowCount-1);for(var q=-1,$=0;$<l.length;$++){var Y=v.rowInfos[$],ee=Y.rowProperty;if(!ee.repeatAsTitleAtPageTop){q++;var re=l[q];Y.id=re[Object.keys(re)[0]],Y.isAllowEdit=re[Object.keys(re)[1]];for(var ne=0;ne<v.colInfos.length;ne++){if("operType"===Object.keys(re)[ne+2])break;var ie=v.rows[$][ne];if(ie){var oe=v.childNodes.indexOf(ie);ie.childNodes.splice(1,ie.childNodes.length-1);var ae=new Gt.R(this._hoEditorFactoryID,_,ie,Fe.Jq.ntText,re[Object.keys(re)[ne+2]].toString(),0);ie.drawCell.needUpdate=!0,ae&&ie.childNodes.push(ae),v.rows[$][ne]=ie,v.childNodes[oe]=ie}}}}v.update()}}},{key:"getRowsJsonData",value:function getRowsJsonData(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=JSON.parse(JSON.stringify(l));void 0===_.length&&(_=Array(_));for(var v=u.docTree.mainNodes,C=null,k=0;k<v.length;k++){var N=v[k];if(N instanceof Un.Fh){C=N;break}}if(C){for(var B=Object.keys(_[0]),U=0;U<_.length;U++){for(var W=_[U]["id"],q=-1,$=0;$<C.rowInfos.length;$++)if(W===C.rowInfos[$].id){q=0;for(var Y=0;Y<C.rows[$].length;Y++){var ee=C.rows[$][Y];if(ee){var re=ee.getCellText(),ne=_[U][B[Y+2]];re!==ne.toString()&&(_[U][B[Y+2]]=re,_[U]["operType"]="edit")}}}-1===q&&(_[U]["operType"]="del")}for(var ie=0;ie<C.rowInfos.length;ie++){var oe=C.rowInfos[ie];if(!oe.rowProperty.repeatAsTitleAtPageTop&&"0"===oe.id){var ae=JSON.parse(JSON.stringify(_[0]));ae["id"]="0",ae["isAllowEdit"]=!0;for(var le=0;le<C.rows[ie].length;le++){var ce=C.rows[ie][le];ce&&(ae[B[le+2]]=ce.getCellText())}ae["operType"]="add",_[_.length]=ae}}}for(var de="",he=0;he<_.length;he++)de+=JSON.stringify(_[he]);return de}}]),StructureConvert}(),ki=(__webpack_require__(83753),__webpack_require__(22872)),Ii=__webpack_require__(11471);(function(l){l["ctText"]="text/plain",l["ctHTML"]="text/html",l["ctJSON"]="application/json"})(Ci||(Ci={}));var Mi=function(){function NodeConvert(l){(0,q.Z)(this,NodeConvert),this._hoEditorFactoryID=l}return(0,$.Z)(NodeConvert,[{key:"FromJSON",value:function FromJSON(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=new Array,k=new Array;"main"===u&&(k=v.docTree.mainNodes);for(var N=JSON.parse(l),B=v.docTree.curDomRange.normalize().startPath,U=v.docTree.getParentNode(B),W=u?k:v.docTree.curDomRange.normalize().npStart.roots,q=0;q<N.length;q++){var $=N[q];if($){var Y=v.structureConvert.convertNode($,W,u?null:U,void 0,!_);if(!Y)return[];if(Y){if(Y instanceof Gt.R&&0===Y.text.length)continue;u&&(Y.rootPath=u),C.push(Y),u&&u.split("/").length>1&&k.push(Y)}}}return C}},{key:"FromHTML",value:function FromHTML(l){var u,_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=/<body[^>]*>([\s\S]+?)<\/body>/i,C=v.exec(l);if(!C)return[];u="<div>"+C[1]+"</div>";var k=_.htmlConverter.Exec(Yn()(u)[0],"");return k}},{key:"FromText",value:function FromText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=new Array,v=l;if(v)for(var C=v.split(/[\n\r|\r\n|\r|\n]+/),k=0;k<C.length;k++)if(C[k]){if(k>0){var N=new mn.C(this._hoEditorFactoryID,u.docTree.mainNodes,null,u.docTree.curParaNo);_.push(N)}var B=new Gt.R(this._hoEditorFactoryID,u.docTree.mainNodes,null,Fe.Jq.ntText,C[k],0);_.push(B)}return _}},{key:"toJSON",value:function toJSON(l,u,_){var v=this,C=new Array;return l[0].node instanceof mn.C&&0===l[0].node.paraNo&&l.splice(0,1),l.forEach((function(k,N){if(u&&(k.node instanceof Bt.re&&(k.node.text="",k.node.childNodes.splice(1,k.node.childNodes.length-2)),k.node instanceof Rt.Z&&(k.node.text=""),k.node instanceof Ft.yF&&(k.node.text="")),k.node instanceof Bt.re||k.node instanceof He.Yh||k.node instanceof Ft.yF||k.node instanceof Rt.Z)C.push(k.node.node2Json(k.range,!0,_));else if(k.node instanceof $t.j&&k.node.parentNode instanceof Bt.re){var B=rt.b.instance().getFactory(v._hoEditorFactoryID),U=B.docTree.curDomRange.normalize();if(k.node.MarkNodeType===$t.q.mtStart){var W=k.node.parentNode.childNodes[k.node.parentNode.childNodes.length-1].isTotalSelected(U,!0);W&&C.push(k.node.node2Json(k.range,!0))}if(k.node.MarkNodeType===$t.q.mtEnd){var q=k.node.parentNode.childNodes[0].isTotalSelected(U,!0);q?C.push(k.node.node2Json(k.range,!0)):N===l.length-1&&(B.docTree.curDomRange.endPath=B.docTree.getNodeLastPath(k.node.previousLeaf()))}}else C.push(k.node.node2Json(k.range,!0))})),this._jsondata=JSON.stringify(C),JSON.stringify(C)}},{key:"toTHML",value:function toTHML(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);l&&this.toJSON(l);var _=JSON.parse(this._jsondata);return _?u.toHtmlConverter.Exec(this._hoEditorFactoryID,_):""}},{key:"toText",value:function toText(l){l&&this.toJSON(l);var u=JSON.parse(this._jsondata);if(!u)return"";var _="",v=function json2text(l){for(var u=0;u<l.length;u++){var v=l[u];v["nodeType"]&&(v.nodeType==Fe.Jq[Fe.Jq.ntText]?_+=v.text:v.nodeType==Fe.Jq[Fe.Jq.ntParagraph]?0!=u&&(_+="\n"):v.nodeType==Fe.Jq[Fe.Jq.ntControl]?_+=v.text:v.nodeType==Fe.Jq[Fe.Jq.ntField]?json2text(v.childNodes.item):v.nodeType==Fe.Jq[Fe.Jq.ntTable]?Array.isArray(v.childNodes.item)&&json2text(v.childNodes.item):"ntRow"==v.nodeType?(0!=u&&(_+="\n"),json2text(v.childNodes.item)):v.nodeType==Fe.Jq[Fe.Jq.ntCell]&&(0!=u&&(_+="\t"),json2text(v.childNodes.item)))}};return v(u),_}}]),NodeConvert}(),Ni=function(){function StructureRecord(l,u,_,v){(0,q.Z)(this,StructureRecord),this._hoEditorFactoryID=l,this._node=_,this._path=u,this._range=v}return(0,$.Z)(StructureRecord,[{key:"node",get:function get(){return this._node}},{key:"range",get:function get(){return this._range}}]),StructureRecord}(),Oi=function(){function StructureNode(l){(0,q.Z)(this,StructureNode),this._hoEditorFactoryID=l,this._Convertor=new Mi(this._hoEditorFactoryID)}return(0,$.Z)(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(l){var u=l.range();return u.from}},{key:"Copy",value:function Copy(l,u,_,v){var C,k=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l instanceof Ie.a)C=l.normalize();else{var N=l[0].range();C=new Ie.a(this._hoEditorFactoryID,N.from,k.docTree.getNodeLastPath(l[l.length-1]))}var B=this.getAncestorsChild(C.startPath,C.endPath),U=C.startPath.split("/").slice(0,B.level+1).join("/"),W=C.endPath.split("/").slice(0,B.level+1).join("/"),q=k.docTree.findNodePositionByPath(U).node,$=k.docTree.findNodePositionByPath(W).node;if(this._structoredNode||(this._structoredNode=new Array),this._structoredNode=[],q==$)this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(q),q,{from:C.startPath,to:C.endPath}));else if(q instanceof et.D&&$ instanceof et.D&&q.table==$.table)this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(q.table),q.table,{from:q.range().from,to:$.range().to}));else{var Y=k.docTree.getNodeLastPath(q);Y===C.startPath&&(Y!==C.startPath||"header/0/0"!=Y&&"footer/0/0"!=Y&&"main/0"!=Y)||this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(q),q,{from:q instanceof Un.Fh?q.range().from:C.startPath}));for(var ee=q.nextSibling();;){if(!ee)break;if(ee==$){this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath($),$,{to:$ instanceof Un.Fh?$.range().to:C.endPath}));break}this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(ee),ee)),ee=ee.nextSibling()}}if(this._json=this._Convertor.toJSON(this._structoredNode,_,v),this._html=this._Convertor.toTHML(),this._text=this._Convertor.toText(),!u)return this._json;u.setData(Ci.ctJSON,this._json),u.setData(Ci.ctHTML,this._html),u.setData(Ci.ctText,this._text)}},{key:"Parse",value:function Parse(l,u,_,v){return l==Ci.ctJSON?this._Convertor.FromJSON(u,_,v):l==Ci.ctHTML?this._Convertor.FromHTML(u):this._Convertor.FromText(u)}},{key:"getAncestorsChild",value:function getAncestorsChild(l,u){var _,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=l.split("/"),k=u.split("/");if(!Ii.F.pathCanCompare(l,u))throw ki.P.PathNotAtSameRoot();var N=0;while(C[N]==k[N])if(N+=1,N>C.length||N>k.length)break;if(1===N||2===N&&"main"!==C[0]){var B=v.docTree.findNodePositionByPath(C.slice(0,N+1).join("/")).node;if(!B)throw ki.P.NodeNotFound();_=B.parentNode?B.parentNode.childNodes:B.rootNodes}else{var U=C.slice(0,N).join("/"),W=v.docTree.findNodePositionByPath(U).node;if(!W)throw ki.P.NodeNotFound();_=W.childNodes}return{level:N,child:_}}}]),StructureNode}(),Li=function(){function TestDataSet(l){(0,q.Z)(this,TestDataSet),this._hoEditorFactoryID=l}return(0,$.Z)(TestDataSet,[{key:"getTestJsonData",value:function getTestJsonData(){var l=[{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 l}}]),TestDataSet}(),Ai=function(){function TOHTMLConverter(l){var u=this;(0,q.Z)(this,TOHTMLConverter),this._valign=["top","center","bottom"],this._hoEditorFactoryID=l,this.convert=new Map,this.convert.set(Fe.Jq[Fe.Jq.ntText],(function(l){return u.TransText(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntControl],(function(l){return u.TransText(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntField],(function(l){return u.TransField(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntImage],(function(l){return u.TransImg(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntParagraph],(function(l){return u.TransPara(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntTable],(function(l){return u.TransTable(l)})),this.convert.set("ntRow",(function(l){return u.TaransRow(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntCell],(function(l){return u.TransCell(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntSpecialChar],(function(l){return u.TransText(l)}))}return(0,$.Z)(TOHTMLConverter,[{key:"nextnode",value:(0,fe.Z)().mark((function nextnode(l){var u,_;return(0,fe.Z)().wrap((function nextnode$(v){while(1)switch(v.prev=v.next){case 0:_=0;case 1:if(!(_<l.length)){v.next=17;break}case 2:return v.next=4,l[_];case 4:if(u=v.sent,-1!=u){v.next=9;break}return v.abrupt("continue",10);case 9:return v.abrupt("break",12);case 10:v.next=2;break;case 12:if(!l[_]["childNodes"]){v.next=14;break}return v.delegateYield(this.nextnode(l[_]["childNodes"]["item"]),"t0",14);case 14:_++,v.next=1;break;case 17:case"end":return v.stop()}}),nextnode,this)}))},{key:"Exec",value:function Exec(l,u){var _="";for(this.nodes=u,this.iterator=this.nextnode(u);;){var v=this.iterator.next();if(v.done)break;_+=this.Link(v.value)}return"<html><body>\x3c!--StartFragment--\x3e".concat(_,"\x3c!--EndFragment--\x3e</body></html>")}},{key:"Link",value:function Link(l){if(l){var u=this.convert.get(l.nodeType);return u&&l?u(l):""}return""}},{key:"TransBody",value:function TransBody(l){return""}},{key:"TransControl",value:function TransControl(l){var u=this.getNodesStyle(l),_="";return"ctDateTime"==l.type?(_+=l.text,'<span style="'.concat(u,'">').concat(_,"</span>")):("ctDownList"==l.type||l.type,"")}},{key:"TransText",value:function TransText(l){var u=this.getNodesStyle(l),_="";return l.nodeType==Fe.Jq[Fe.Jq.ntText]&&(_+=l.text),l.nodeType==Fe.Jq[Fe.Jq.ntControl]&&(_+=l.text),l.nodeType==Fe.Jq[Fe.Jq.ntSpecialChar]&&(_+=l.text),'<span style="'.concat(u,'">').concat(_,"</span>")}},{key:"TransField",value:function TransField(l){var u=this.iterator.next();return this.Link(u.value)}},{key:"TransImg",value:function TransImg(l){var u=this.ToHTMLStyle(l),_=l.imageDataBase64String;return'<img id="'.concat(l.id,'" style="').concat(u,'" src="').concat(_,'"/>')}},{key:"TransPara",value:function TransPara(l){for(var u=this.ToHTMLStyle(l),_="",v="";;){var C=this.iterator.next();if(C.done)break;if(C.value.nodeType==Fe.Jq[Fe.Jq.ntParagraph])return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if(C.value.nodeType==Fe.Jq[Fe.Jq.ntTable])return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if(C.value.nodeType==Fe.Jq[Fe.Jq.ntCell])return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if("ntRow"==C.value.nodeType)return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if("ntEnd"==C.value.nodeType)return _=""==_?"<span>&nbsp;</span>":_,v='<p style="'.concat(u,'">').concat(_,"</p>"),v;_+=this.Link(C.value)}return v+='<p style="'.concat(u,'">').concat(_,"</p>"),v}},{key:"TransTable",value:function TransTable(l){for(var u=this.ToHTMLStyle(l),_="",v=0;v<l.childNodes.item.length;v++){var C=this.iterator.next();if(C.done)break;C.value["style"]=l.rowInfos.item[v],C.value["colInfos"]=l.colInfos,_+=this.Link(C.value)}return'<table style="'.concat(u,'" border="1" cellspacing="0" cellpadding="0">').concat(_,"</table>")}},{key:"TaransRow",value:function TaransRow(l){for(var u=this.ToHTMLStyle(l),_="",v=0;v<l.childNodes.item.length;v++){var C=this.iterator.next();if(C.done)break;C.value["style"]=l.colInfos.item[v],_+=this.Link(C.value)}return'<tr style="'.concat(u,'">').concat(_,"</tr>")}},{key:"TransCell",value:function TransCell(l){l.crossLineType!=et.v[et.v.ctNone]&&(l["style"]["crossLineType"]=l.crossLineType);var u='valign="'.concat(this._valign[Number(tt.TR[l.cellProperty.align])],'"'),_='rowSpan="'.concat(l.rowSpan,'" colSpan="').concat(l.colSpan,'"'),v=this.ToHTMLStyle(l),C="",k=this.iterator.next();return C=this.Link(k.value),"<td ".concat(_," ").concat(u,' style="').concat(v,'">').concat(C,"</td>")}},{key:"ToHTMLStyle",value:function ToHTMLStyle(l){var u="";if(l["style"]){var _=l.style;if("ntRow"==l["nodeType"]){u+="margin: 0;";var v=_["rowHeight"]?"height:".concat(_.rowHeight,"px;"):"";_["rowProperty"]&&(v=_.rowProperty["rowHeight"]&&0!=_.rowProperty["rowHeight"]?"height:".concat(_.rowProperty.rowHeight,"cm;"):v),u+=v}else if(l["nodeType"]==Fe.Jq[Fe.Jq.ntCell]){if(u+="margin: 0;",u+=_["colWidth"]?"width:".concat(_.colWidth,"px;"):"",_["crossLineType"])switch(_.crossLineType){case et.v[et.v.ct02]:u+="mso-diagonal-down: 0.5pt solid windowtext;";break;case et.v[et.v.ct13]:u+="mso-diagonal-up: 0.5pt solid windowtext;";break}}else{var C=l.style,k=C._align;u+=ei.xM.alleft==k?"text-align:left;":"",u+=ei.xM.alright==k?"text-align:right;":"",u+=ei.xM.alcenter==k?"text-align:center;":"",u+="line-height:".concat(C._lineSpace||1,";"),u+="letter-spacing:".concat(C._charSpace||2,"px;"),u+="margin-left:".concat(C._leftMarginPixes||0,"px;"),u+="margin-right:".concat(C._rightMarginPixes||0,"px; "),u+="margin-top:".concat(C._topMarginPixes||0,"px;"),u+="margin-bottom:".concat(C._bottomMarginPixes||0,"px;")}l["width"]&&(u+="width:".concat(l.width,"px;")),l["height"]&&(u+="height:".concat(l.height,"px;"))}else l["width"]&&(u+="width:".concat(l.width,"px;")),l["height"]&&(u+="height:".concat(l.height,"px;")),l["nodeType"]==Fe.Jq[Fe.Jq.ntTable]&&(u+="border-collapse: collapse;");return u}},{key:"CombineStyleToHTMLStyle",value:function CombineStyleToHTMLStyle(l){var u="";u+="font-size:"+l.size+"px;",u+="font-family:"+l.font+";",u+=l.bold?"font-weight:bold;":"",u+=l.italic?"font-style:italic;":"";var _="";return l.underline&&(_="text-decoration:underline"),l.strikeout&&(_?_+=" line-through":_="text-decoration:line-through"),u+=_?_+";":"",l.script&&(l.script==Qn.n$.sstsup?u+="vertical-align:super;":l.script==Qn.n$.sstsub&&(u+="vertical-align:sub;")),u+="background-color:"+l.backColor+";",u+="color:"+l.color,u}},{key:"getNodesStyle",value:function getNodesStyle(l){var u,_="",v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=v.docTree.styles[l.styleIndex];return u=C?C.combineStyle:v.docTree.styles[0].combineStyle,_+=this.CombineStyleToHTMLStyle(u),_}}]),TOHTMLConverter}(),Ri=__webpack_require__(36648),Fi=__webpack_require__(80775),ji=(__webpack_require__(60285),__webpack_require__(41637),__webpack_require__(33714)),Bi=__webpack_require__(60765),Ui=__webpack_require__(70899),Hi=__webpack_require__(25049),Wi=__webpack_require__(64913),qi=__webpack_require__(94598),zi=__webpack_require__(28602),Vi=__webpack_require__(82686),Ki=function(){function VueController(l){(0,q.Z)(this,VueController),this._hoEditorFactoryID=l}return(0,$.Z)(VueController,[{key:"combineStyle",get:function get(){return this._combineStyle},set:function set(l){l!==this._combineStyle&&(this._combineStyle=l)}},{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID}},{key:"getCurTextStyle",value:function getCurTextStyle(){var l=this,u=new Qn.pn(this._hoEditorFactoryID),_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=v.normalize(),k=C.npStart.node,N=C.npEnd.node;if(!k||!N)throw new Error("错误的选择范围".concat(C.startPath," ").concat(C.endPath));if(k===N&&N instanceof zi.H){var B=function getCurStyle(v){if(v instanceof Gt.R||v instanceof wi.w||v instanceof $t.j||v instanceof mn.C||v instanceof gn.N){var C=_.docTree.styles[v.styleIndex];l._combineStyle=C.combineStyle,u.setTextStyle(C.combineStyle),_.docTree.curStyleIndex=_.docTree.styleCompare(u)}else{var k=v.previousLeaf();getCurStyle(k)}};B(N)}else{var U=k,W=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.styles,q=0;if(U&&N){do{if(U){if(U instanceof Gt.R||U instanceof wi.w||U instanceof $t.j||U instanceof mn.C||U instanceof gn.N){q=U.styleIndex;break}U=U.nextLeaf()}}while(U&&U!==N.nextLeaf());u.copyProperty(W[q],u);var $=W[0].combineStyle;W[q]&&($=W[q].combineStyle);do{if(U){if((U instanceof Gt.R||U instanceof wi.w||U instanceof $t.j||U instanceof mn.C||U instanceof gn.N)&&U.styleIndex!==q){var Y=void 0;Y=W[U.styleIndex]?W[U.styleIndex].combineStyle:W[0].combineStyle,Y.font!==$.font&&""!==u.font&&(u.font=""),Y.size!==$.size&&0!==u.size&&(u.size=0),Y.script!==$.script&&u.script!==Qn.n$.sstnormal&&(u.script=Qn.n$.sstnormal),Y.bold!==$.bold&&!1!==u.bold&&(u.bold=!1),Y.italic!==$.italic&&!1!==u.italic&&(u.italic=!1),Y.underline!==$.underline&&!1!==u.underline&&(u.underline=!1),Y.strikeout!==$.strikeout&&!1!==u.strikeout&&(u.strikeout=!1),Y.color!==$.color&&""!==u.color&&(u.color=""),Y.backColor!==$.backColor&&""!==u.backColor&&(u.backColor=""),Y.creatorIndex!==$.creatorIndex&&-1!==u.creatorIndex&&(u.creatorIndex=-1),Y.deleterIndex!==$.deleterIndex&&-1!==u.deleterIndex&&(u.deleterIndex=-1),Y.commentID!==$.commentID&&"0"!==u.commentID&&(u.commentID="0")}U=U.nextLeaf()}}while(U&&U!==N.nextLeaf()&&N.nextLeaf());this._combineStyle=u.combineStyle,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(u)}}}},{key:"unDoOperate",value:function unDoOperate(){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.undoOperate()}},{key:"reDoOperate",value:function reDoOperate(){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.redoOperate()}},{key:"fontFormat",value:function fontFormat(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontFormat);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontFormat",u,l)}},{key:"clearFormat",value:function clearFormat(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;rt.b.instance().getFactory(this._hoEditorFactoryID).docController.formatClearOrPainter(l,0)}},{key:"formatPainter",value:function formatPainter(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.formatPainter.startFormatPainter(l,u.docTree.curStyleIndex,u.docTree.curParaNo,!1);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange}},{key:"fontSize",value:function fontSize(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontSize);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontSize",u,l.toString())}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daModifyStyle,u,_,ji.y.fontSizeEnlarge);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeEnlarge",l)}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daModifyStyle,u,_,ji.y.fontSizeDecrease);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeDecrease",l)}},{key:"fontSuperScript",value:function fontSuperScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontSuperScript);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSuperScript",u,l)}},{key:"fontSubScript",value:function fontSubScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontSubScript);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSubScript",u,l)}},{key:"fontBold",value:function fontBold(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontBold);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontBold",u,l)}},{key:"fontItalic",value:function fontItalic(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontItalic);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontItalic",u,l)}},{key:"fontUnderline",value:function fontUnderline(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontUnderline);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontUnderline",u,l)}},{key:"fontStrikeout",value:function fontStrikeout(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontStrikeout);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontStrikeout",u,l)}},{key:"fontColor",value:function fontColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontColor);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontColor",u,l)}},{key:"fontBackColor",value:function fontBackColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontBackColor);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontBackColor",u,l)}},{key:"alignedLeft",value:function alignedLeft(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedLeft);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedLeft",l)}},{key:"alignedCenter",value:function alignedCenter(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedCenter);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedCenter",l)}},{key:"alignedRight",value:function alignedRight(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedRight);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedRight",l)}},{key:"alignedBothEnds",value:function alignedBothEnds(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedBothEnds);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedBothEnds",l)}},{key:"addIndent",value:function addIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.addIndent);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("addIndent",l)}},{key:"decreaseIndent",value:function decreaseIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.decreaseIndent);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("decreaseIndent",l)}},{key:"setLineHeight",value:function setLineHeight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daParaStyleChange,_,v,ji.y.setLineHeight);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("lineHeight",u,l)}},{key:"insertTable",value:function insertTable(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertTable);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTable(_,l,u)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertRowAbove);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowAbove(u,l)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertRowBelow);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowBelow(u,l)}},{key:"insertTableColLeft",value:function insertTableColLeft(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertColLeft);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableColLeft(u,l)}},{key:"insertTableColRight",value:function insertTableColRight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertColRight);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableColRight(u,l)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableDeleteRows);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteRows(l)}},{key:"tableDeleteCols",value:function tableDeleteCols(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableDeleteCols);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteCols(l)}},{key:"tableMergerCells",value:function tableMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableMergerCells);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableMergerCells(l)}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableUnMergerCells);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableUnMergerCells(l)}},{key:"tableProperty",value:function tableProperty(l,u){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setTableProperty(l,u)}},{key:"rowProperty",value:function rowProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setRowProperty(_,l,u)}},{key:"colProperty",value:function colProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setColProperty(_,l,u)}},{key:"cellProperty",value:function cellProperty(l,u){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setCellProperty(l,u)}},{key:"insertMenstrualHistory",value:function insertMenstrualHistory(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);if(N.editController.canIsEdit(N)){var B=N.docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daInsert,U,W,ji.y.insertMedicalExpression);N.docTree.changing(q)&&N.docController.insertMenstrualHistory("add",B,u,_,v,C,k)}}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(U)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory("update",k,l,u,_,v,C)}},{key:"insertPupilMap",value:function insertPupilMap(l,u,_,v,C,k,N,B){var U=rt.b.instance().getFactory(this._hoEditorFactoryID);if(U.editController.canIsEdit(U)){var W=U.docTree.curDomRange,q=W.normalize().startPath,$=W.normalize().endPath,Y=new ji.Q(be.gk.daInsert,q,$,ji.y.insertMedicalExpression);U.docTree.changing(Y)&&U.docController.insertPupilMap("add",W,u,_,v,C,k,N,B)}}},{key:"updatePupilMap",value:function updatePupilMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daInsert,U,W,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(q)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap("update",B,l,u,_,v,C,k,N)}},{key:"insertLightLocation",value:function insertLightLocation(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);if(q.editController.canIsEdit(q)){var $=q.docTree.curDomRange,Y=$.normalize().startPath,ee=$.normalize().endPath,re=new ji.Q(be.gk.daInsert,Y,ee,ji.y.insertMedicalExpression);q.docTree.changing(re)&&q.docController.insertLightLocation("add",$,u,_,v,C,k,N,B,U,W)}}},{key:"updateLightLocation",value:function updateLightLocation(l,u,_,v,C,k,N,B,U){var W=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,q=W.normalize().startPath,$=W.normalize().endPath,Y=new ji.Q(be.gk.daInsert,q,$,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(Y)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation("update",W,l,u,_,v,C,k,N,B,U)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);if(B.editController.canIsEdit(B)){var U=B.docTree.curDomRange,W=U.normalize().startPath,q=U.normalize().endPath,$=new ji.Q(be.gk.daInsert,W,q,ji.y.insertMedicalExpression);B.docTree.changing($)&&B.docController.insertFetalHeartMap("add",U,u,_,v,C,k,N)}}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(W)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap("update",N,l,u,_,v,C,k)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);if(k.editController.canIsEdit(k)){var N=k.docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.insertMedicalExpression);k.docTree.changing(W)&&k.docController.insertPermanentTeethMap("add",N,u,_,v,C)}}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=C.docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.updateMedicalExpression);C.docTree.changing(U)&&C.docController.insertPermanentTeethMap("update",k,l,u,_,v)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);if(k.editController.canIsEdit(k)){var N=k.docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.insertMedicalExpression);k.docTree.changing(W)&&k.docController.insertPrimaryTeethMap("add",N,u,_,v,C)}}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=C.docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.updateMedicalExpression);C.docTree.changing(U)&&C.docController.insertPrimaryTeethMap("update",k,l,u,_,v)}},{key:"insertTextInputField",value:function insertTextInputField(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertTextInputField);if(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)){var N=rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("add",_,u);return N}return v}},{key:"updateTextInputField",value:function updateTextInputField(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.updateTextInputField);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("update",u,l)}},{key:"insertImage",value:function insertImage(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(C.editController.canIsEdit(C)){var k=C.docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.insertImage);C.docTree.changing(U)&&C.docController.insertImage(k,l,u,_,v)}}},{key:"insertBarcode",value:function insertBarcode(l,u,_,v,C,k,N,B){var U=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,W=U.normalize().startPath,q=U.normalize().endPath,$=new ji.Q(be.gk.daInsert,W,q,ji.y.insertBarcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing($)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("add",U,u,_,v,C,k,N,B)}},{key:"updateBarcode",value:function updateBarcode(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daInsert,U,W,ji.y.updateBarcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(q)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("update",B,l,u,_,v,C,k,N)}},{key:"insertQrcode",value:function insertQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y,ee){var re=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,ne=re.normalize().startPath,ie=re.normalize().endPath,oe=new ji.Q(be.gk.daInsert,ne,ie,ji.y.insertQrcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(oe)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("add",re,u,_,v,C,k,N,B,U,W,q,$,Y,ee)}},{key:"updateQrcode",value:function updateQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y){var ee=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,re=ee.normalize().startPath,ne=ee.normalize().endPath,ie=new ji.Q(be.gk.daInsert,re,ne,ji.y.updateQrcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(ie)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("update",ee,l,u,_,v,C,k,N,B,U,W,q,$,Y)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertRadioAndCheckBox);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("add",_,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.updateRadioAndCheckBox);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("update",u,l,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"find",value:function find(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=rt.b.instance().getFactory(this._hoEditorFactoryID).docController.find(v,l,u,_);return C}},{key:"replace",value:function replace(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;rt.b.instance().getFactory(this._hoEditorFactoryID).docController.replace(N,l,u,_,v,C,k)}},{key:"insertDateTime",value:function insertDateTime(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertDateTime);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("add",_,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDateTime",value:function updateDateTime(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.updateDateTime);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("update",u,l,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertDownList",value:function insertDownList(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.insertDownList);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(N)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("add",v,u,_,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDownList",value:function updateDownList(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.updateDownList);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("update",_,l,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertSpecialChars",value:function insertSpecialChars(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.editController.canIsEdit(_);if(v){var C=_.docTree.curDomRange,k=C.normalize().startPath,N=C.normalize().endPath,B=new ji.Q(be.gk.daInsert,k,N,ji.y.insertSpecialChars);_.docTree.changing(B)&&_.docController.insertSpecialChars(l,C,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}}},{key:"openLocalFiles",value:function openLocalFiles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.isThrowError=!1;var v=_.docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.openLocalFiles);_.docTree.changing(N)&&(_.docController.initBlankDoc(),_.drawTree.inViewPages=[0],_.openXmled=!0,_.structureConvert.openFile(l,u)),_.undoService.stack=[]}},{key:"openLocalFilesTest",value:function openLocalFilesTest(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.initBlankDoc(),_.structureConvert.openFile(l,u,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=JSON.parse(JSON.stringify(l));rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(u)}},{key:"saveAsFile",value:function saveAsFile(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(_.isThrowError=!1,!u){_.contentIsModify.isModify=!1;var v=_.undoService.stack;if(v.length>0){var C=v[v.length-1],k=C.undoUnits,N=k[k.length-1];_.lastSaveTime=N.opTime}else _.lastSaveTime=new Date(Date.now())}var B=_.docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daUnkown,U,W,ji.y.saveAsFile);if(this.setDocCommentIsHandle(),_.docTree.changing(q)){var $="";return"xml"===l&&($=_.structureConvert.doc2Xml("xml",void 0,!0)),"plain"===l&&($=_.structureConvert.doc2Text()),"html"===l&&this.saveAsPDF("","html"),"json"===l&&($=_.structureConvert.doc2Xml("json",void 0,!0),$=Bi.pd.json($)),$}return""}},{key:"getDocTitle",value:function getDocTitle(){return rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.title}},{key:"getDocProperty",value:function getDocProperty(){return rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.docProperty}},{key:"getDocXml",value:function getDocXml(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml("xml",l,u,_);return v}},{key:"getDocJson",value:function getDocJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(l);return u}},{key:"setPageProperty",value:function setPageProperty(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.setPageProperty(l);for(var _=0;_<u.drawTree.drawPages.length;_++)u.drawTree.drawPages[_].reFreshBounds();u.drawTree.drawPages.length>1||u.drawTree.mainDNodes.length>1||u.drawTree.mainDNodes[0]instanceof Bn.t||u.drawTree.mainDNodes[0]instanceof Rn.a&&u.drawTree.mainDNodes[0].drawItems.length>0||u.drawTree.headerDNodes.length>=1&&u.drawTree.headerDNodes[0].length>1||u.drawTree.footerDNodes.length>=1&&u.drawTree.footerDNodes[0].length>1?this.rebuildAll(!0):u.drawTree.updateDrawTreeFirstLine()}},{key:"insertComment",value:function insertComment(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertComment);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertComment(l,_,u)}},{key:"deleteComment",value:function deleteComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daDelete,_,v,ji.y.deleteComment);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.deleteComment(l)}},{key:"insertPageNum",value:function insertPageNum(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,k=C.normalize().startPath,N=C.normalize().endPath,B=new ji.Q(be.gk.daInsert,k,N,ji.y.insertPageNum);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(B)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPageNum(l,C,u,_,v)}},{key:"newFile",value:function newFile(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);"caseHistory"===l&&(u.docTree.docProperty.type=be.Fr.etCaseHistory),"form"===l&&(u.docTree.docProperty.type=be.Fr.etForm);var _=u.docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daUnkown,v,C,ji.y.newFile);u.docTree.changing(k)&&u.docController.initBlankDoc()}},{key:"editComment",value:function editComment(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daUpdate,v,C,ji.y.editComment);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.editComment(l,u)}},{key:"insertTableFormula",value:function insertTableFormula(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.insertTableFormula);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(N)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableFormula(v,l,u,_)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=new Vn(this.hoEditorFactoryID);_.setReviewLevelColor(l.reviewLev1Color,l.reviewLev2Color,l.reviewLev3Color,l.fieldColor,l.dateTimeColor,l.downListColor,l.downListColor2,l.signColor),u.option=_}},{key:"setUserLoginInfo",value:function setUserLoginInfo(l,u,_,v){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setUserLoginInfo(l,u,_,v)}},{key:"setEditorStatus",value:function setEditorStatus(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.isHideComments=!0,_.drawTree.paintStatus=l,_.printStatus.printRange=2,2==l&&void 0!=u?_.printStatus.printRange=u:(_.printStatus.drawPrintRecord.clear(),_.printStatus.clearArea());var v=0;4===l&&(v=50,_.isHideComments=!1),v!==_.pageProperty.commentWidthMm&&_.vueController.setPageProperty(JSON.stringify({commentWidthMm:v})),_.structureConvert._superiorSign.length>0&&(1===l||4===l?this.hiddenMask(!1):this.hiddenMask(!0))}},{key:"hiddenMask",value:function hiddenMask(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l)for(var _=0;_<u.drawTree.drawPages.length;_++){for(var v=u.drawTree.drawPages[_],C=0;C<v.selectContainer.children.length;C++)v.selectContainer.children[C].name&&v.selectContainer.children[C].name.indexOf("mask")>=0&&v.selectContainer.children.splice(C,1);u.drawPageTree.updateDrawPage(_)}else{var k=u.structureConvert._superiorSign,N=k[0],B=u.drawPageTree.getMainRootArea(N.drawNodes[0]);if(B&&B instanceof An.$){var U=u.pageProperty.widthPixes+1,W=u.pageProperty.heightPixes,q=u.drawPageTree.drawMainDocs.indexOf(B),$=function paintMask(l,_){for(var v=u.drawTree.drawPages[l],C=v.selectContainer,k=0;k<C.children.length;k++)C.children[k].name&&C.children[k].name.indexOf("mask")>=0&&C.children.splice(k,1);var N=new createjs.Shape;N.graphics.clear(),N.graphics.beginFill("#000000").drawRect(0,0,U,_).closePath(),N.x=0,N.y=0,N.alpha=.1,N.name=_<W?"mask0":"mask"+(l+1).toString(),C.addChild(N),u.drawPageTree.updateDrawPage(l)};if(q>0)for(var Y=0;Y<q;Y++)$(Y,W);var ee=N.drawNodes[0],re=u.drawTree.getDrawLineByDNode(ee),ne=u.drawPageTree.drawHeaders[0].actualHeight;k[1]=q;var ie=re.localToGlobal(ee.x,ee.y),oe=B.globalToLocal(ie.x,ie.y);k[2]=oe.y,$(q,oe.y+ne+ee.y)}}}},{key:"pageProperty",value:function pageProperty(){return rt.b.instance().getFactory(this._hoEditorFactoryID).pageProperty}},{key:"generateID",value:function generateID(l){return rt.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID(l)}},{key:"printToPDF",value:function printToPDF(l){qe.Kh.printToPDF(this._hoEditorFactoryID)}},{key:"printPromisePDF",value:function printPromisePDF(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.printController.printPromisePDF(l,u)}},{key:"saveAsPDF",value:function saveAsPDF(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.printController.saveAsPDF(l,u,_)}},{key:"rebuildAll",value:function rebuildAll(l){rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(l)}},{key:"moveCaretToPath",value:function moveCaretToPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.drawTree.moveCaretToPath(l),u.docTree.curDomRange.setSamePath(l)}},{key:"getCaretPosition",value:function getCaretPosition(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange;return u.endPath}},{key:"findNodebyPath",value:function findNodebyPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.findNodePositionByPath(l);if(_)return _;Jn().alert("根据路径"+l+"未找到文档节点")}},{key:"getDomRange",value:function getDomRange(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();return u}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"setDomRange",value:function setDomRange(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.curDomRange,C=new Ie.a(_.hoEditorFactoryId,l,u),k=C.npStart.node,N=C.npEnd.node;if(!k||!N)throw new Error("错误的选择范围".concat(l," ").concat(u));_.docTree.curDomRange=C;var B=new ke.r(v,C);_.docTree.selectChange(B)}},{key:"insertText",value:function insertText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.editController.canIsEdit(u);_&&u.docController.keyBoardInput(l)}},{key:"deleteText",value:function deleteText(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.docController.keyBoardDelete("Backspace")}},{key:"getTextStyles",value:function getTextStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.styles;return u}},{key:"getParaStyles",value:function getParaStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.paragraphs;return u}},{key:"clearUndos",value:function clearUndos(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.undoService.clear()}},{key:"iteratesDocTree",value:function iteratesDocTree(l){for(var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=function iteratesNodes(u){for(var _=0;_<u.length;_++){var v=u[_];v instanceof gi.V?iteratesNodes(v.childNodes):l(v)}},v=u.subDocManger.headerDocTree,C=u.docTree.mainNodes,k=u.subDocManger.footerDocTree,N=0;N<v.length;N++)_(v[N].subDocNodes);_(C);for(var B=0;B<k.length;B++)_(k[B].subDocNodes)}},{key:"hasComment",value:function hasComment(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.commentsMap;return u.size>0}},{key:"hideComments",value:function hideComments(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=0;l||(_=50),this.setPageProperty(JSON.stringify({commentWidthMm:_}));var v=u.drawTree.commentsMap;if(u.isHideComments=l,v.size>0){var C=function changeComments(l,_){var v=u.drawPageTree.getMainRootArea(_.eNode.drawNodes[0]);if(v){for(var C=v.children,k=C.length-1;k>=0;k--){var N=C[k];N.name===_.id&&(l?N.alpha=.01:N instanceof createjs.Container?N.alpha=1:N.alpha=.5)}u.drawPageTree.updateDrawPage(v.index)}};v.forEach((function(u){C(l,u)}))}}},{key:"getNodeByID",value:function getNodeByID(l,u){var _=null,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function iteratesNodes(l){for(var v=0;v<l.length;v++){var C=l[v];if((C instanceof hi.T||C instanceof _i.d||C instanceof Sn.H||C instanceof wi.w||C instanceof Bt.re)&&C.id===u){_=C;break}C instanceof gi.V&&iteratesNodes(C.childNodes)}};if("header"===l)for(var k=v.subDocManger.headerDocTree,N=0;N<k.length;N++)if(k[N]&&(C(k[N].subDocNodes),_))break;if("main"===l){var B=v.docTree.mainNodes;C(B)}if("footer"===l)for(var U=v.subDocManger.footerDocTree,W=0;W<U.length;W++)if(U[W]&&(C(U[W].subDocNodes),_))break;if("all"===l){for(var q=v.subDocManger.headerDocTree,$=0;$<q.length;$++)if(q[$]&&(C(q[$].subDocNodes),_))break;if(!_){var Y=v.docTree.mainNodes;C(Y)}if(!_)for(var ee=v.subDocManger.footerDocTree,re=0;re<ee.length;re++)if(ee[re]&&(C(ee[re].subDocNodes),_))break}return _}},{key:"getNodeByDataID",value:function getNodeByDataID(l,u){var _=null,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function iteratesNodes(l){for(var v=0;v<l.length;v++){var C=l[v];if((C instanceof wi.w||C instanceof Bt.re)&&C.dataId===u){_=C;break}C instanceof gi.V&&iteratesNodes(C.childNodes)}};if("header"===l)for(var k=v.subDocManger.headerDocTree,N=0;N<k.length;N++)if(k[N]&&(C(k[N].subDocNodes),_))break;if("main"===l){var B=v.docTree.mainNodes;C(B)}if("footer"===l)for(var U=v.subDocManger.footerDocTree,W=0;W<U.length;W++)if(U[W]&&(C(U[W].subDocNodes),_))break;if("all"===l){for(var q=v.subDocManger.headerDocTree,$=0;$<q.length;$++)if(q[$]&&(C(q[$].subDocNodes),_))break;if(!_){var Y=v.docTree.mainNodes;C(Y)}if(!_)for(var ee=v.subDocManger.footerDocTree,re=0;re<ee.length;re++)if(ee[re]&&(C(ee[re].subDocNodes),_))break}return _}},{key:"getNodesByName",value:function getNodesByName(l,u,_){var v=[],C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=function iteratesNodes(l){for(var C=0;C<l.length;C++){var k=l[C];if((k instanceof wi.w||k instanceof Bt.re)&&k.name===_&&(v.push(k),!u))break;k instanceof gi.V&&iteratesNodes(k.childNodes)}};if("header"===l)for(var N=C.subDocManger.headerDocTree,B=0;B<N.length;B++)if(k(N[B].subDocNodes),!u&&v.length>0)break;if("main"===l){var U=C.docTree.mainNodes;k(U)}if("footer"===l)for(var W=C.subDocManger.footerDocTree,q=0;q<W.length;q++)if(k(W[q].subDocNodes),!u&&v.length>0)break;if("all"===l){for(var $=C.subDocManger.headerDocTree,Y=0;Y<$.length;Y++)if(k($[Y].subDocNodes),!u&&v.length>0)break;if(u||!u&&0===v.length){var ee=C.docTree.mainNodes;k(ee)}if(u||!u&&0===v.length)for(var re=C.subDocManger.footerDocTree,ne=0;ne<re.length;ne++)if(k(re[ne].subDocNodes),!u&&v.length>0)break}return v}},{key:"getNodesById",value:function getNodesById(l,u,_){var v=[],C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=function iteratesNodes(l){for(var C=0;C<l.length;C++){var k=l[C];if((k instanceof wi.w||k instanceof Bt.re)&&k.id===_&&(v.push(k),!u))break;k instanceof gi.V&&iteratesNodes(k.childNodes)}};if("header"===l)for(var N=C.subDocManger.headerDocTree,B=0;B<N.length;B++)if(k(N[B].subDocNodes),!u&&v.length>0)break;if("main"===l){var U=C.docTree.mainNodes;k(U)}if("footer"===l)for(var W=C.subDocManger.footerDocTree,q=0;q<W.length;q++)if(k(W[q].subDocNodes),!u&&v.length>0)break;if("all"===l){for(var $=C.subDocManger.headerDocTree,Y=0;Y<$.length;Y++)if(k($[Y].subDocNodes),!u&&v.length>0)break;if(u||!u&&0===v.length){var ee=C.docTree.mainNodes;k(ee)}if(u||!u&&0===v.length)for(var re=C.subDocManger.footerDocTree,ne=0;ne<re.length;ne++)if(k(re[ne].subDocNodes),!u&&v.length>0)break}return v}},{key:"insertHtmlText",value:function insertHtmlText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.editController.canIsEdit(u);if(_){for(var v=u.htmlConverter.parseHtmlString(l),C=0;C<v.length;C++){var k=v[C];if(k instanceof Gt.R||k instanceof mn.C){var N=u.docTree.styles[k.styleIndex].clone(),B=u.docTree.styles[u.docTree.curStyleIndex];N.size=B.combineStyle.size;var U=u.docTree.styleCompare(N);k.styleIndex=U}}u.docController.parseNodeData(v)}}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.modifyRedraw(l,u)}},{key:"deleteRedraw",value:function deleteRedraw(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.deleteRedraw(l)}},{key:"insertRedraw",value:function insertRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.insertRedraw(l,u)}},{key:"fullRedraw",value:function fullRedraw(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.drawTree.rebuildAllDrawLine(!1)}},{key:"updateStyles",value:function updateStyles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);u=_.structureConvert.replaceNodesName(u);var v=new(oi())({stripWhitespaces:!1}),C=v.xml2js(u),k=JSON.parse(JSON.stringify(C));if(k.root){var N=k.root.docProperty.docId,B=k.root.styles,U=Array(B.defaultFont),W=_.structureConvert.getDocStyles("font",U),q=B.font?B.font:B.fontStyle;if(q){void 0===q.length&&(q=Array(q));for(var $=0;$<q.length;$++){var Y=q[$];0===Y.length&&(q[$]=B.defaultFont)}var ee=_.structureConvert.getDocStyles("font",q);W=W.concat(ee)}var re=Array(B.defaultPara),ne=_.structureConvert.getDocStyles("para",re),ie=B.para?B.para:B.paraStyle;if(ie){void 0===ie.length&&(ie=Array(ie));var oe=_.structureConvert.getDocStyles("para",ie);ne=ne.concat(oe)}var ae=function iteratesNode(l){for(var u=0;u<l.length;u++){var v=l[u];if("ntField"!==v.nodeType&&"ntCell"!==v.nodeType||v.childNodes&&v.childNodes.node&&v.childNodes.node.length>0&&iteratesNode(v.childNodes.node),"ntTable"===v.nodeType&&v.childNodes&&v.childNodes.item){var C=v.childNodes.item;void 0===C.length&&(C=Array(v.childNodes.item));for(var k=0;k<C.length;k++){var N=C[k];if(N.childNodes&&N.childNodes.node){var B=N.childNodes.node;void 0===B.length&&(B=Array(N.childNodes.node)),iteratesNode(B)}}}if(v.styleIndex){var U=Number(v.styleIndex);if("ntParagraph"===v.nodeType){var q=ne[U];v.styleIndex=_.docTree.styleCompare(q);var $=Number(v.textStyleNo||0),Y=W[$];v.textStyleNo=_.docTree.styleCompare(Y)}else{var ee=W[U];v.styleIndex=_.docTree.styleCompare(ee)}}}return l};if("header"===l){var le=k.root.headers.header;void 0===le.length&&(le=Array(k.root.headers.header));var ce=le[0],de=ce.node;return void 0===de.length&&(de=Array(le[0].node)),ae(de),[de,N]}if("footer"===l){var he=k.root.footers.footer;void 0===he.length&&(he=Array(k.root.footers.footer));var _e=he[0],pe=_e.node;return void 0===pe.length&&(pe=Array(he[0].node)),ae(pe),[pe,N]}var fe=k.root.main.node;return void 0===fe.length&&(fe=Array(k.root.main.node)),ae(fe),[fe,N]}}},{key:"showCellAdress",value:function showCellAdress(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docTree.mainNodes.forEach((function(_){if(_ instanceof Un.Fh){for(var v=0;v<_.rowCount;v++)for(var C=0;C<_.colCount;C++){var k=_.rows[v][C];if(k)for(var N=0,B=k.drawCell.drawPageCells.length;N<B;N++)k.drawCell.drawPageCells[N].paintCellAdress(l)}for(var U=0,W=_.drawTable.drawPageTables.length;U<W;U++){var q=u.drawPageTree.getDrawPageByDNode(_.drawTable.drawPageTables[U]);q&&(q.needUpdateStage=!0,u.drawPageTree.updateDrawPage(q.pageIndex))}}}))}},{key:"insertXml",value:function insertXml(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=this.updateStyles(u,l),B=JSON.stringify(N[0]),U=N[1],W=k.drawTree.drawPages.length,q="main";"header"===u&&(q="header/"+k.subDocManger.headerDocTree.length.toString()),"footer"===u&&(q="footer/"+k.subDocManger.footerDocTree.length.toString());var $=k.structureNode.Parse(Ci.ctJSON,B,q,C);if(v&&"main"===u&&$.length>1&&$[$.length-1]instanceof mn.C&&!($[$.length-2]instanceof Un.Fh)&&$.splice($.length-1,1),"main"!==u){var Y=new Array;if("header"===u){var ee=k.subDocManger.headerDocTree.length,re="header/"+ee.toString(),ne=new it.g(this._hoEditorFactoryID,re,W);k.drawPageTree.drawHeaders.push(ne),k.drawTree.headerDNodes.push(new Array);var ie=new mn.C(this._hoEditorFactoryID,Y,null,0);Y.push(ie),ie.rootPath=re;var oe=new lt.UJ(W,"");oe.subDocNodes=Y,k.subDocManger.headerDocTree.push(oe),k.drawTree.initAreaFirstNode(Y,k.drawTree.headerDNodes[ee]),k.docTree.curDomRange.setSamePath(re+"/0"),$[0]instanceof mn.C&&(oe.subDocNodes[0].paraNo=$[0].paraNo,oe.subDocNodes[0].styleIndex=$[0].styleIndex,$.splice(0,1)),k.docController.parseNodeData($)}else if("footer"===u){var ae=k.subDocManger.footerDocTree.length,le="footer/"+ae.toString(),ce=new ot.d(this._hoEditorFactoryID,le,W);k.drawPageTree.drawFooters.push(ce),k.drawTree.footerDNodes.push(new Array);var de=new mn.C(this._hoEditorFactoryID,Y,null,0);Y.push(de),de.rootPath=le;var he=new lt.UJ(W,"");he.subDocNodes=Y,k.subDocManger.footerDocTree.push(he),k.drawTree.initAreaFirstNode(Y,k.drawTree.footerDNodes[ae]),k.docTree.curDomRange.setSamePath(q+"/0"),$[0]instanceof mn.C&&(he.subDocNodes[0].paraNo=$[0].paraNo,he.subDocNodes[0].styleIndex=$[0].styleIndex,$.splice(0,1)),k.docController.parseNodeData($)}}else{var _e=k.docTree.mainNodes,pe=k.docTree.getNodeLastPath(_e[_e.length-1]);_||1!==k.docTree.mainNodes.length||(k.docTree.mainNodes[0].docId=U&&""!==U?U:k.gernerateCode.generateID("DocId"),$[0]instanceof mn.C&&(k.docTree.mainNodes[0].paraNo=$[0].paraNo,k.docTree.mainNodes[0].styleIndex=$[0].styleIndex,$.splice(0,1))),_&&($[0].printAsSinglePage=_,$[0].docId=U&&""!==U?U:k.gernerateCode.generateID("DocId")),k.docTree.curDomRange.setSamePath(pe),k.docController.parseNodeData($)}}},{key:"mergeDocs",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(l,u,_,v){return(0,fe.Z)().wrap((function _callee$(C){while(1)switch(C.prev=C.next){case 0:return u?(this.insertXml(l,"header"),this.insertXml(l,"footer"),this.insertXml(l,"main",u,v)):this.insertXml(l,"main",void 0,v),_&&_(),C.abrupt("return",!0);case 3:case"end":return C.stop()}}),_callee,this)})));function mergeDocs(u,_,v,C){return l.apply(this,arguments)}return mergeDocs}()},{key:"openDocsForPrint",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee2(l){var u,_,v,C,k,N,B,W,q,$,Y,ee,re,ne,ie,oe,ae,le,ce,de;return(0,fe.Z)().wrap((function _callee2$(he){while(1)switch(he.prev=he.next){case 0:if(0!=l.length){he.next=2;break}return he.abrupt("return");case 2:if(u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.curDomRange.normalize(),v=_.startPath,C=_.endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.openXml),u.openXmled=!0,!u.docTree.changing(k)){he.next=12;break}return he.next=11,u.docController.initBlankDoc();case 11:u.drawTree.inViewPages=[0];case 12:for(N=new Array,B=new Array,W=function getDetailStyle(l,u){var _=JSON.stringify(u),v=JSON.parse(_);return"undefined"!==typeof l["size"]&&l["size"]!==u.size.toString()&&(v["size"]=l["size"]),"undefined"!==typeof l["creatorIndex"]&&l["creatorIndex"]!==u.creatorIndex.toString()&&(v["creatorIndex"]=l["creatorIndex"]),"undefined"!==typeof l["deleterIndex"]&&l["deleterIndex"]!==u.deleterIndex.toString()&&(v["deleterIndex"]=l["deleterIndex"]),"undefined"!==typeof l["bold"]&&l["bold"]!==u.bold.toString()&&(v["bold"]=l["bold"]),"undefined"!==typeof l["italic"]&&l["italic"]!==u.italic.toString()&&(v["italic"]=l["italic"]),"undefined"!==typeof l["script"]&&l["script"]!==u.script.toString()&&(v["script"]=l["script"]),"undefined"!==typeof l["strikeout"]&&l["strikeout"]!==u.strikeout.toString()&&(v["strikeout"]=l["strikeout"]),"undefined"!==typeof l["underline"]&&l["underline"]!==u.underline.toString()&&(v["underline"]=l["underline"]),"undefined"!==typeof l["color"]&&l["color"]!==u.color&&(v["color"]=l["color"]),"undefined"!==typeof l["font"]&&l["font"]!==u.font&&(v["font"]=l["font"]),"undefined"!==typeof l["backColor"]&&l["backColor"]!==u.backColor&&(v["backColor"]=l["backColor"]),"undefined"!==typeof l["commentID"]&&l["commentID"]!==u.commentID&&(v["commentID"]=l["commentID"]),v},q=u.structureConvert.xml2Object(l[0][1]),N.push(JSON.stringify(q.styles.defaultFont)),B.push(JSON.stringify(q.styles.defaultPara)),$=JSON.parse(N[0]),$["size"]=$["size"].toString(),$["creatorIndex"]=$["creatorIndex"].toString(),$["deleterIndex"]=$["deleterIndex"].toString(),$["bold"]=$["bold"].toString(),$["italic"]=$["italic"].toString(),$["script"]=$["script"].toString(),$["strikeout"]=$["strikeout"].toString(),$["underline"]=$["underline"].toString(),N[0]=JSON.stringify($),Y=JSON.parse(B[0]),Y["charSpace"]=Y["charSpace"].toString(),Y["lineSpace"]=Y["lineSpace"].toString(),Y["leftMarginMm"]=Y["leftMarginMm"].toString(),Y["topMarginMm"]=Y["topMarginMm"].toString(),Y["bottomMarginMm"]=Y["bottomMarginMm"].toString(),Y["rightMarginMm"]=Y["rightMarginMm"].toString(),Y["align"]=Y["align"].toString(),B[0]=JSON.stringify(Y),""==q.styles.fontStyle?q.styles.fontStyle=[]:Array.isArray(q.styles.fontStyle)||(q.styles.fontStyle=[q.styles.fontStyle]),""==q.styles.paraStyle?q.styles.paraStyle=[]:Array.isArray(q.styles.paraStyle)||(q.styles.paraStyle=[q.styles.paraStyle]),ee=0;ee<q.styles.fontStyle.length;ee++)re=JSON.stringify(q.styles.fontStyle[ee]),'""'==re?(N.push(JSON.stringify($)),q.styles.fontStyle[ee]=$):(ne=W(q.styles.fontStyle[ee],$),N.push(JSON.stringify(ne)),q.styles.fontStyle[ee]=ne);for(ie=0;ie<q.styles.paraStyle.length;ie++)oe=JSON.stringify(q.styles.paraStyle[ie]),'""'==oe?B.push(JSON.stringify(Y)):B.push(JSON.stringify(q.styles.paraStyle[ie]));if(q){he.next=43;break}return he.abrupt("return");case 43:for(ae=function updateNodesStyle(l,u,_){for(var v=0;v<l.length;v++){var C=l[v];if(C.styleIndex)if("ntParagraph"==C.nodeType){var k=parseInt(C.styleIndex),U=_.get(k);if(void 0==U||'""'==B[U]?C.styleIndex=_.get(0):C.styleIndex=U,C.textStyleNo){var W=parseInt(C.textStyleNo),q=u.get(W);void 0==q||'""'==N[q]?C.textStyleNo=u.get(0):C.textStyleNo=q}}else{var $=parseInt(C.styleIndex),Y=u.get($);void 0==Y||'""'==N[Y]?C.styleIndex=u.get(0):C.styleIndex=Y}if("ntField"!==C.nodeType&&"ntCell"!==C.nodeType||C.childNodes&&C.childNodes.node&&C.childNodes.node.length>0&&updateNodesStyle(C.childNodes.node,u,_),"ntTable"===C.nodeType&&C.childNodes&&C.childNodes.item){var ee=C.childNodes.item;void 0===ee.length&&(ee=Array(C.childNodes.item));for(var re=0;re<ee.length;re++){var ne=ee[re];if(ne.childNodes&&ne.childNodes.node){var ie=ne.childNodes.node;void 0===ie.length&&(ie=Array(ne.childNodes.node)),updateNodesStyle(ie,u,_)}}}}},le=function _loop(_){var v=new Map,C=new Map,k=u.structureConvert.xml2Object(l[_][1]),$=k.styles.fontStyle,Y=k.styles.defaultFont,ee=JSON.stringify(Y),re=N.indexOf(ee);re>=0?v.set(0,re):(q.styles.fontStyle.push(Y),N.push(ee),v.set(0,N.length-1));var ne=[];if(""!=$){ne=Array.isArray($)?$:[$];for(var ie=0;ie<ne.length;ie++){var oe=W(ne[ie],Y),le=JSON.stringify(oe),ce=N.lastIndexOf(le);ce>=0?v.set(ie+1,ce):'""'==le?v.set(ie+1,v.get(0)):(q.styles.fontStyle.push(oe),N.push(le),v.set(ie+1,N.length-1))}}var de=k.styles.paraStyle,he=k.styles.defaultPara,_e=JSON.stringify(he),pe=B.indexOf(_e);pe>=0?C.set(0,pe):(q.styles.paraStyle.push(he),B.push(_e),C.set(0,B.length-1));var fe=function getParaDetailStyle(l){var u=JSON.stringify(he),_=JSON.parse(u);return"undefined"!==typeof l["charSpace"]&&l["charSpace"]!==he.charSpace.toString()&&(_["charSpace"]=l["charSpace"]),"undefined"!==typeof l["lineSpace"]&&l["lineSpace"]!==he.lineSpace.toString()&&(_["lineSpace"]=l["lineSpace"]),"undefined"!==typeof l["align"]&&l["align"]!==he.align.toString()&&(_["align"]=l["align"]),_},me=[];""!=de&&(me=de&&!Array.isArray(de)?[de]:de);for(var be=0;be<me.length;be++){var Ee=fe(me[be]),ke=JSON.stringify(Ee),Ie=B.indexOf(ke);Ie>=0?C.set(be+1,Ie):'""'==ke?C.set(be+1,C.get(0)):(q.styles.paraStyle.push(Ee),B.push(ke),C.set(be+1,B.length-1))}ae(k.main,v,C);var Ne;q.main.length;if(q.pageSettingsTree=[],l[_][0]){ae(k.header[0].subDocNodes,v,C);var Fe=u.gernerateCode.generateID("cb");k.header[0].beginPath=Fe,k.header[0].pageIndex=-1,q.header.push(k.header[0]),ae(k.footer[0].subDocNodes,v,C),k.footer[0].beginPath=Fe,k.footer[0].pageIndex=-1,q.footer.push(k.footer[0]),k.main[0].printAsSinglePage="true",k.main[0].docId=Fe,q.pageSettingsTree.push(k.pageSettings),u.printStatus.pageSettingMap.set(Fe,{widthMm:Number(k.pageSettings.widthMm),heightMm:Number(k.pageSettings.heightMm),pageSize:k.pageSettings.pageSize,printDirection:Number(k.pageSettings.printDirection)})}Array.isArray(k.main)?(Ne=q.main).push.apply(Ne,(0,U.Z)(k.main)):q.main.push(k.main)},ce=1;ce<l.length;ce++)le(ce);return he.next=48,u.structureConvert.json2Doc(q);case 48:return de=he.sent,he.next=51,u.drawTree.updateDrawTreeFirstLine();case 51:return he.next=53,u.structureConvert.openJson2Doc(de);case 53:return he.abrupt("return");case 54:case"end":return he.stop()}}),_callee2,this)})));function openDocsForPrint(u){return l.apply(this,arguments)}return openDocsForPrint}()},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.getHeaderPageNodes()[0],_=l.docTree.getNodeLastPath(u[u.length-1]),v=new Ie.a(this._hoEditorFactoryID,"header/0/0",_),C=l.structureNode.Copy(v,null),k=this.getSubDocImg(l.drawTree.activePageIndex.index,lt.pi.hftHead);return[C,k]}},{key:"insertHeaderJson",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee3(l){var u,_,v,C,k,N,B,U,W,q,$,Y,ee;return(0,fe.Z)().wrap((function _callee3$(re){while(1)switch(re.prev=re.next){case 0:return u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=0,v=u.subDocManger.headerDocTree[_].subDocNodes,C=u.docTree.getNodeLastPath(v[v.length-1]),k="header/"+_.toString()+"/0",N=new Ie.a(this._hoEditorFactoryID,k,C),re.next=8,u.docController.deleteRange(N,!0);case 8:for(u.docTree.curDomRange.setSamePath(k),B=u.structureNode.Parse(Ci.ctJSON,l),B[0]instanceof mn.C&&(v[0].paraNo=B[0].paraNo,B.splice(0,1)),u.docController.parseNodeData(B),U=0;U<u.subDocManger.headerDocTree.length;U++)W=u.subDocManger.headerDocTree[U].subDocNodes,W.length>0&&(u.drawTree.headerDNodes.length>0&&(q=u.drawTree.headerDNodes[0],q instanceof Rn.a&&(q.dWidth=q.paragraphNode.getParagraphLeftWidth()[1]-q.paragraphNode.combineParagraph.leftMarginPixes-q.paragraphNode.combineParagraph.rightMarginPixes)),$=W[0].getNodePath(),Y=u.docTree.getNodeLastPath(W[W.length-1]),ee=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,$,Y),ee.oldEndPath=Y,ee.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines($,Y,!0),u.docTree.change(ee),u.subDocManger.updateAllSameSubDoc(U,lt.pi.hftHead,!1,!1));case 13:case"end":return re.stop()}}),_callee3,this)})));function insertHeaderJson(u){return l.apply(this,arguments)}return insertHeaderJson}()},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.getFooterPageNodes()[0],_=l.docTree.getNodeLastPath(u[u.length-1]),v=new Ie.a(this._hoEditorFactoryID,"footer/0/0",_),C=l.structureNode.Copy(v,null),k=this.getSubDocImg(l.drawTree.activePageIndex.index,lt.pi.hftFoot);return[C,k]}},{key:"insertFooterJson",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee4(l){var u,_,v,C,k,N,B,U,W,q,$,Y;return(0,fe.Z)().wrap((function _callee4$(ee){while(1)switch(ee.prev=ee.next){case 0:return u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.subDocManger.getFooterPageNodes(),v=_[0],C=u.docTree.getNodeLastPath(v[v.length-1]),k=new Ie.a(this._hoEditorFactoryID,"footer/0/0",C),ee.next=7,u.docController.deleteRange(k,!0);case 7:for(u.docTree.curDomRange.setSamePath("footer/0/0"),N=u.structureNode.Parse(Ci.ctJSON,l),N[0]instanceof mn.C&&(v[0].paraNo=N[0].paraNo,N.splice(0,1)),u.docController.parseNodeData(N),B=0;B<_.length;B++)U=_[B],U.length>0&&(u.drawTree.footerDNodes.length>0&&(W=u.drawTree.footerDNodes[0],W instanceof Rn.a&&(W.dWidth=W.paragraphNode.getParagraphLeftWidth()[1]-W.paragraphNode.combineParagraph.leftMarginPixes-W.paragraphNode.combineParagraph.rightMarginPixes)),q=U[0].getNodePath(),$=u.docTree.getNodeLastPath(U[U.length-1]),Y=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,q,$),Y.oldEndPath=$,Y.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(q,$,!0),u.docTree.change(Y),u.subDocManger.updateAllSameSubDoc(B,lt.pi.hftFoot,!1,!1));case 12:case"end":return ee.stop()}}),_callee4,this)})));function insertFooterJson(u){return l.apply(this,arguments)}return insertFooterJson}()},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.docTree.curDomRange.isEmpty)return"";var _=u.structureNode.Copy(u.docTree.curDomRange,null,l);return _}},{key:"insertSelectedJson",value:function insertSelectedJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.editController.canIsEdit(u);if(_)if("object"===(0,ri.Z)(JSON.parse(l))){var v=u.structureNode.Parse(Ci.ctJSON,l);u.docController.parseNodeData(v)}else u.docController.keyBoardInput(l)}},{key:"openXml",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee5(l,u,_,v,C){var k,N,B,U,W;return(0,fe.Z)().wrap((function _callee5$(q){while(1)switch(q.prev=q.next){case 0:if(!1!==v){q.next=2;break}return q.abrupt("return");case 2:if(k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=k.docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.openXml),k.openXmled=!0,!k.docTree.changing(W)){q.next=15;break}return q.next=11,k.docController.initBlankDoc();case 11:if(k.drawTree.inViewPages=[0],!(l>"")){q.next=15;break}return q.next=15,k.structureConvert.openXml(l,u,_,C);case 15:case"end":return q.stop()}}),_callee5,this)})));function openXml(u,_,v,C,k){return l.apply(this,arguments)}return openXml}()},{key:"getSubDocImg",value:function getSubDocImg(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.subDocManger.getSubDocCopyDrawArea(l,u);if(v&&!v.stage&&(v=u===lt.pi.hftHead?_.drawTree.drawPages[l].drawHeader:_.drawTree.drawPages[l].drawFooter),v&&v.stage&&v.stage.canvas){var C=Math.max(Math.min(v.docHeight,v.maxHeight),v.dHeight)*nt.f.instance().scaleXY,k=v.stage.canvas.getContext("2d");if(k){var N=k.getImageData(0,v.y*nt.f.instance().scaleXY,_.pageProperty.widthPixes*nt.f.instance().scaleXY,C),B=document.createElement("canvas");B.width=_.pageProperty.widthPixes*nt.f.instance().scaleXY,B.height=C;var U=B.getContext("2d");if(U)return U.putImageData(N,0,0),B.toDataURL()}}return""}},{key:"getRangeText",value:function getRangeText(l){l=l.normalize();var u="",_=[],v=l.npStart.childIndex,C=l.npEnd.childIndex,k=function getNodeText(l){var u="";return l instanceof wi.w&&(u=l.text),l instanceof Bt.re?u=l.getFieldText():l instanceof et.D?u=l.getCellText():l instanceof mn.C&&(u="\n"),u};if(l.npStart.node===l.npEnd.node)return u=l.npStart.node instanceof Gt.R?l.npStart.node.text.substring(v+1,C+1):k(l.npStart.node),u;_=Ie.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID,l.startPath,l.endPath);for(var N=0;N<_.length;N++){var B=_[N];B instanceof Gt.R?N===_.length-1&&B instanceof Gt.R?u+=B.text.substring(0,C+1):u+=B.text:u+=k(B)}return u}},{key:"deleteNode",value:function deleteNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l){if(l.parentNode&&l.parentNode instanceof et.D){var _=l.parentNode.delCellNodeText();if(!_)return}if(l instanceof et.D){var v=l.delCellNodeText();if(!v)return}var C=l.previousLeaf(),k=u.docTree.getNodeLastPath(C),N=u.docTree.getNodeLastPath(l);if(u.drawTree.paintStatus===Ee.Dh.psReview&&l instanceof gn.N){var B=l.customProperty.bce01;if(u.userInfo.id!=B)return void Jn().alert("不是本人签名,不允许删除!")}if(u.drawTree.paintStatus!==Ee.Dh.psDesign&&l instanceof gn.N&&l.isTemplate&&0===l.number)Jn().alert("该签名元素不允许删除!","系统提示");else{if(l instanceof gn.N){var U=l.nextLeaf();if((""!==l.imgSrc||""!==l.fingerPrintSrc)&&l.isTemplate&&!(C instanceof gn.N)&&!(U instanceof gn.N)){var W=new gn.N(this._hoEditorFactoryID,l.rootNodes,l.parentNode,Fe.Jq.ntSign,0,0,""===l.name?"签名":l.name,l.signType,l.signFormat,"","",l.signTimeFormat,"",0,0,{},!0,l.styleIndex,l.connectMode,l.isFront,l.allowEditSignTime,"",void 0,l.attribute);return u.undoService.begin(),u.undoService.add(new Hi.w(this._hoEditorFactoryID,l,N)),u.undoService.add(new qi.R(this._hoEditorFactoryID,k,W)),void u.undoService.commit()}if(C instanceof gn.N){if(u.drawTree.paintStatus!==Ee.Dh.psDesign&&l.isTemplate&&0===l.number)return void Jn().alert("该签名元素不允许删除!","系统提示");var q="";q=2===l.number||1===l.number&&l.isTemplate?u.docTree.getNodeLastPath(C.previousLeaf()):u.docTree.getNodeLastPath(C);u.docTree.getNodeLastPath(l);var $=new gn.N(this._hoEditorFactoryID,C.rootNodes,C.parentNode,Fe.Jq.ntSign,1,C.type,""===C.name?"签名":C.name,C.signType,C.signFormat,C.signor,C.signTime,C.signTimeFormat,C.imgSrc,C.imgWidth,C.imgHeight,C.customProperty,C.isTemplate?C.isTemplate:l.isTemplate,l.styleIndex,C.connectMode,C.isFront,C.allowEditSignTime);return u.undoService.begin(),u.undoService.add(new Wi.F(this._hoEditorFactoryID,q,N)),(2===l.number||1===l.number&&l.isTemplate)&&u.undoService.add(new qi.R(this._hoEditorFactoryID,q,$)),void u.undoService.commit()}}u.undoService.begin(),u.undoService.add(new Hi.w(this._hoEditorFactoryID,l)),u.undoService.commit(),u.drawTree.moveCaretToPath(k);var Y=l.parentNode;Y&&Y instanceof Bt.re&&2===Y.childNodes.length&&u.docController.resetEmptyInputFieldNode(u,Y)}}}},{key:"insertSeparateChar",value:function insertSeparateChar(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(_.editController.canIsEdit(_)){var v=_.docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.insertSeparateChar);_.docTree.changing(N)&&_.docController.insertSeparateChar(v,l,u)}}},{key:"insertGestation",value:function insertGestation(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);if(v.editController.canIsEdit(v)){var C=v.docTree.curDomRange,k=C.normalize().startPath,N=C.normalize().endPath,B=new ji.Q(be.gk.daInsert,k,N,ji.y.insertGestation);v.docTree.changing(B)&&v.docController.insertGestation(C,l,u,_)}}},{key:"textToLabel",value:function textToLabel(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();u.isEmpty||u.npStart&&u.npEnd&&u.npStart.node&&u.npEnd.node&&l.docController.textToLabel(u)}},{key:"labelToText",value:function labelToText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.labelToText(l)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=[],_="",v=l.subDocManger.headerDocTree,C=l.subDocManger.footerDocTree,k=l.docTree.mainNodes,N=function loopFieldNodes(l){for(var v=0;v<l.length;v++){var C=l[v],k=C.dataVerifyFormat;k.mustInputValue&&""===C.text?(_="必须输入,不能为空",u.push([C,_])):k.dataFormat===Bt.ZX.text?(k.minLength>0&&C.text.length<k.minLength&&(_="内容不能少于"+k.minLength.toString()+"个字符",u.push([C,_])),k.maxLength>0&&C.text.length>k.maxLength&&(_="内容不能多于"+k.maxLength.toString()+"个字符",u.push([C,_]))):(0,Ui.hj)(C.text)?k.onlyInputInt?Number(C.text)%1!==0?(_="数值必须为整数",u.push([C,_])):(0!==k.maxValue&&Number(C.text)>k.maxValue&&(_="数值不能大于"+k.maxValue.toString(),u.push([C,_])),0!==k.minValue&&Number(C.text)<k.minValue&&(_="数值不能小于"+k.minValue.toString(),u.push([C,_]))):0!==k.maxSmallBits&&C.text.split(".")[1].length>k.maxSmallBits&&(_="小数位数不能多于"+k.maxSmallBits.toString()+"位",u.push([C,_])):(_="内容必须为数值",u.push([C,_]))}},B=0;B<v.length;B++){var U=v[B].subDocNodes,W=U[0].getNodePath(),q=l.docTree.getNodeLastPath(U[U.length-1]),$=Ie.a.getRangeTextInputField(this._hoEditorFactoryID,W,q,!1);N($)}var Y=k[0].getNodePath(),ee=l.docTree.getNodeLastPath(k[k.length-1]),re=Ie.a.getRangeTextInputField(this._hoEditorFactoryID,Y,ee,!1);N(re);for(var ne=0;ne<C.length;ne++){var ie=C[ne].subDocNodes,oe=ie[0].getNodePath(),ae=l.docTree.getNodeLastPath(ie[ie.length-1]),le=Ie.a.getRangeTextInputField(this._hoEditorFactoryID,oe,ae,!1);N(le)}return u}},{key:"insertEmptySignNode",value:function insertEmptySignNode(l,u,_,v,C,k,N,B){var U=rt.b.instance().getFactory(this._hoEditorFactoryID),W=U.docTree.curDomRange.normalize(),q=W.normalize().startPath,$=W.normalize().endPath,Y=new ji.Q(be.gk.daInsert,q,$,ji.y.insertSign);U.docTree.changing(Y)&&U.docController.insertEmptySignNode(W,l,u,_,v,C,k,N,B)}},{key:"insertSignNode",value:function insertSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID),$=q.docTree.curDomRange.normalize(),Y=$.normalize().startPath,ee=$.normalize().endPath,re=new ji.Q(be.gk.daInsert,Y,ee,ji.y.insertSign);q.docTree.changing(re)&&q.docController.insertSignNode($,l,u,_,v,C,k,N,B,U,W)}},{key:"updateSignNode",value:function updateSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);q.docController.updateSignNode(l,u,_,v,C,k,N,B,U,W)}},{key:"updateSignTime",value:function updateSignTime(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.updateSignTime(l,u)}},{key:"updateSignType",value:function updateSignType(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);k.docController.updateSignType(l,u,_,v,C)}},{key:"forceDelete",value:function forceDelete(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=u.startPath,v=u.endPath;_!=v?(l.undoService.begin(),l.undoService.add(new Wi.F(this._hoEditorFactoryID,_,v,!0)),l.undoService.commit()):Jn().alert("请选中需要删除的内容进行删除")}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(l,u){if(l&&l instanceof He.Yh&&l.isEditText&&0!==u.trim().length){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.getNodeLastPath(l.previousLeaf()),C=_.docTree.getNodeLastPath(l),k=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,v,C);k.oldEndPath=C,k.afterChangePath=C,k.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(v,C,!0),l.appendText=u,_.docTree.change(k),_.drawTree.moveCaretToPath(C),_.docTree.curDomRange.setSamePath(C)}}},{key:"delCurPage",value:function delCurPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[l],v=u.drawPageTree.drawMainDocs[l];_&&v||Jn().alert("删除页的索引传入有误:"+l.toString());var C,k="",N="";if(0!==l){var B=u.drawTree.drawPages[l-1],U=u.drawPageTree.drawMainDocs[l-1],W=U.localToGlobal(u.pageProperty.widthPixes,u.pageProperty.heightPixes);C=u.drawTree.getStagePosition(B,U,W.x,W.y)}else C=u.drawTree.getStagePosition(_,v,0,0);if(C){var q=C.dline;k=q instanceof Rn.a?q.parent instanceof Fn.k?q.parent._drawPageTable.table.getNodePath():C.path:q.table.paragraphNode.getNodePath()}var $=v.localToGlobal(u.pageProperty.widthPixes,u.pageProperty.heightPixes),Y=u.drawTree.getStagePosition(_,v,$.x,$.y);if(Y){var ee=Y.dline;N=ee instanceof Rn.a?Y.path:ee.table.getNodePath()}u.undoService.begin(),u.undoService.add(new Wi.F(this._hoEditorFactoryID,k,N,!0)),u.undoService.commit()}},{key:"getMainDocText",value:function getMainDocText(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.headerDocTree[0].subDocNodes,_=l.docTree.mainNodes,v=l.subDocManger.footerDocTree[0].subDocNodes,C="",k=function loopChildNodes(l){l.forEach((function(l){l instanceof Gt.R?C+=l.text:!(l instanceof wi.w)||l instanceof bi.h||l instanceof yi.y?l instanceof gi.V?loopChildNodes(l.childNodes):l instanceof mn.C&&(C+="\n"):C+=l.text}))};return k(u),k(_),k(v),C=C.replace(/&/g,"&amp;"),C=C.replace(/</g,"&lt;"),C=C.replace(/>/g,"&gt;"),C=C.replace(/\'/g,"&#39;"),C=C.replace(/\"/g,"&quot;"),C}},{key:"cancelDel",value:function cancelDel(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=u.startPath,v=u.endPath,C=Ie.a.getSelectDomNodes(this._hoEditorFactoryID,_,v,!0),k=(0,B.Z)(C,3),N=k[0],U=(k[1],k[2],N.length-1);U>=0;U--){var W=N[U];if(W instanceof Gt.R){var q=l.docTree.styles[W.styleIndex];q=q||l.docTree.styles[0],void 0!==q.deleterIndex&&-1!==q.deleterIndex&&(q.deleterIndex=-1,q.strikeout=!1,W.styleIndex=l.docTree.styleCompare(q))}}var $=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(_,v,!0),Y=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,_,v);Y.oldEndPath=v,Y.oldDrawLines=$,l.docTree.change(Y)}},{key:"isModifyDoc",value:function isModifyDoc(){var l=!0,u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.lastSaveTime,v=u.undoService.stack;if(v.length>0){var C=v[v.length-1],k=C.undoUnits,N=k[k.length-1];l=N.opTime!==_}else l=!1;return l}},{key:"getAllElements",value:function getAllElements(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=[],v=function getAllNodes(l){for(var u=0;u<l.length;u++){var v=l[u];(v instanceof Bt.re||v instanceof Ft.yF||v instanceof Rt.Z)&&_.push({id:v.id,name:v.name,text:v.text,dataVerify:void 0,innerIdentifier:v.innerIdentifier,identifierFormat:v.identifierFormat,customProperty:v.customProperty}),v instanceof gi.V&&getAllNodes(v.childNodes)}};if(void 0==l||"header"==l)for(var C=u.subDocManger.headerDocTree,k=0;k<C.length;k++)C[k]&&v(C[k].subDocNodes);if(void 0==l||"main"==l){var N=u.docTree.mainNodes;v(N)}if(void 0==l||"footer"==l)for(var B=u.subDocManger.footerDocTree,U=0;U<B.length;U++)B[U]&&v(B[U].subDocNodes);return _}},{key:"getSysElements",value:function getSysElements(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=[],_=function getAllNodes(l,u){for(var _=function _loop2(_){var v=l[_];if((v instanceof Ft.yF&&v.isReadOnly||v instanceof Rt.Z&&v.isReadOnly||v instanceof Bt.re&&0==v.inputFieldType&&0===v.childNodes.filter((function(l){return l instanceof Bt.re})).length)&&0==u.filter((function(l){return l.name==v.name})).length){var C={id:"",name:"",text:"",json:"",innerIdentifier:"",controlStyle:"",customProperty:{}};C.id=v.id,C.name=v.name,C.text=v.text,C.innerIdentifier=v.innerIdentifier,C.customProperty=v.customProperty,v instanceof Rt.Z&&(C.controlStyle=v.controlStyle),u.push(C)}v instanceof gi.V&&getAllNodes(v.childNodes,u)},v=0;v<l.length;v++)_(v)},v=l.subDocManger.headerDocTree,C=0;C<v.length;C++)v[C]&&_(v[C].subDocNodes,u);var k=l.docTree.mainNodes;_(k,u);for(var N=l.subDocManger.footerDocTree,B=0;B<N.length;B++)N[B]&&_(N[B].subDocNodes,u);return u}},{key:"getCaSignSatatu",value:function getCaSignSatatu(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=!1,_=function getAllNodes(l){for(var _=0;_<l.length;_++){var v=l[_];v instanceof gn.N&&v.customProperty&&"2"==v.customProperty.isCaSign&&(u=!0)}},v=l.docTree.mainNodes;return _(v),u}},{key:"updateElementById",value:function updateElementById(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=this.getNodeByID("all",l);if(!v)throw new Error("根据元素id:"+l+"未找到对应的元素");if(!(v instanceof Bt.re||v instanceof Rt.Z||v instanceof Ft.yF))throw new Error("根据元素id:"+l+"定位到的元素非可回填元素");var C=_.docTree.getNodeLastPath(v.previousLeaf()),k=v;v instanceof Bt.re&&(k=Bt.re.json2Node(this._hoEditorFactoryID,u,v.rootNodes,v.parentNode)),v instanceof Rt.Z&&(k=Rt.Z.json2Node(this._hoEditorFactoryID,u,v.rootNodes,v.parentNode)),v instanceof Ft.yF&&(k=Ft.yF.json2Node(this._hoEditorFactoryID,u,v.rootNodes,v.parentNode)),v.isAllowDelete=!0,_.undoService.begin(),_.undoService.add(new Hi.w(this._hoEditorFactoryID,v,C,"update")),_.undoService.add(new qi.R(this._hoEditorFactoryID,C,k)),_.undoService.commit();var N=_.docTree.getNodeLastPath(k);_.drawTree.moveCaretToPath(N)}},{key:"updateElementText",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee6(l,u,_){var v,C,k;return(0,fe.Z)().wrap((function _callee6$(N){while(1)switch(N.prev=N.next){case 0:if(""!==u&&"请输入"!==u&&"请选择"!==u){N.next=2;break}return N.abrupt("return");case 2:if(v=this.getNodesByName(l,!0,u),!(v.length>0)){N.next=29;break}C=v.length-1;case 5:if(!(C>=0)){N.next=27;break}if(k=v[C],!k){N.next=23;break}if(!(k instanceof Rt.Z||k instanceof Ft.yF||k instanceof Bt.re)){N.next=20;break}if(!(k instanceof Bt.re)){N.next=12;break}return N.next=12,k.setFieldText(_);case 12:if(!(k instanceof Rt.Z)){N.next=15;break}return N.next=15,k.setDateTimeText(_);case 15:if(!(k instanceof Ft.yF)){N.next=18;break}return N.next=18,k.setDownListText(_);case 18:N.next=21;break;case 20:throw new Error("根据元素name:"+u+"定位到的元素非可回填元素");case 21:N.next=24;break;case 23:throw new Error("根据元素name:"+u+"未找到对应的元素");case 24:C--,N.next=5;break;case 27:N.next=30;break;case 29:throw new Error("根据元素name:"+u+"未找到对应的元素");case 30:case"end":return N.stop()}}),_callee6,this)})));function updateElementText(u,_,v){return l.apply(this,arguments)}return updateElementText}()},{key:"updateFirstPageHeader",value:function updateFirstPageHeader(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawPageTree.drawHeaders[0];l.subDocManger.updateAllSameSubDoc(u.index,lt.pi.hftHead,!1,!1)}},{key:"rebuildArea",value:function rebuildArea(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.drawTree.rebuildArea(l,u,_)}},{key:"getUserInfoes",value:function getUserInfoes(){return rt.b.instance().getFactory(this._hoEditorFactoryID).userInfo}},{key:"hoLocalStorage",value:function hoLocalStorage(){return rt.b.instance().getFactory(this._hoEditorFactoryID).hoLocalStorage}},{key:"redrawPage",value:function redrawPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);l>=0&&l<u.drawTree.drawPages.length&&u.drawPageTree.updateDrawPage(l)}},{key:"createPNG",value:function createPNG(l,u){var _=this,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function createElementNodes(){var C=v.drawTree.drawPages,k=document.createElement("div");k.id="hoImageFileBox";var N=l||.8,B=u||"image/jpeg";C.forEach((function(l,u){var _;0==u&&(l.paintBackGround(),l.needUpdateStage=!0),l.drawDomLevel&&!l.drawDomLevel.stage&&(l.drawDomLevel.bindStage(),l.needUpdateStage=!0),l.needUpdateStage&&l.drawDomLevel&&l.drawDomLevel.stage&&(l.drawDomLevel.stage.update(),l.needUpdateStage=!1);var v=document.createElement("img"),C=null===(_=l.drawDomLevel)||void 0===_?void 0:_.domCanvas;v.src=C.toDataURL(B,N),k.appendChild(v)})),k.id="hoImageFileBox";var U=document.createElement("button");U.id="hoDownLoadImageBtn",U.style.position="fixed",U.style.left="20px",U.style.top="200px",U.style.padding="10px 20px",U.style.background="#f2f4f7",U.style.border="none",U.style.outline="none",document.body.appendChild(U),document.body.appendChild(k),document.querySelector("#hoDownLoadImageBtn").onclick=function(){_.downLoadPNGHTML()}};v.loadImageCount<=0?C():v.loadImageCallback=C}},{key:"createImgList",value:function createImgList(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages,v=[];return _.forEach((function(u){var _;u.drawDomLevel&&!u.drawDomLevel.stage&&(u.drawDomLevel.bindStage(),u.needUpdateStage=!0),u.needUpdateStage&&u.drawDomLevel&&u.drawDomLevel.stage&&(u.drawDomLevel.stage.update(),u.needUpdateStage=!1);var C=null===(_=u.drawDomLevel)||void 0===_?void 0:_.domCanvas,k=l||.8;v.push(C.toDataURL("image/jpeg",k))})),v}},{key:"createPDF",value:function createPDF(){var l=this,u=document.createElement("button");u.id="hoDownLoadPDFBtn",u.style.position="fixed",u.style.left="20px",u.style.top="300px",u.style.padding="10px 20px",u.style.background="transparent",u.style.border="none",u.style.outline="none",document.body.appendChild(u),document.querySelector("#hoDownLoadPDFBtn").onclick=function(){l.saveAsPDF()}}},{key:"downLoadPNGHTML",value:function downLoadPNGHTML(){var l=document.querySelector("#hoImageFileBox"),u=this.getDocTitle()?this.getDocTitle():"电子病历文档",_='\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===l||void 0===l?void 0:l.innerHTML,"</body>\n </html>\n "),v=window.URL.createObjectURL(new Blob([_],{type:"text/html"})),C=document.createElement("a");C.style.display="none",C.href=v,C.setAttribute("download",u+".html"),document.body.appendChild(C),C.click(),setTimeout((function(){C.remove(),document.body.removeChild(l),document.body.removeChild(document.querySelector("#hoDownLoadImageBtn"))}),300)}},{key:"moveCaretToElement",value:function moveCaretToElement(l,u){var _=this.getNodeByID(l,u);if(_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=v.docTree.curDomRange,k=v.docTree.getNodeLastPath(_.previousLeaf()),N=v.docTree.getNodeLastPath(_),B=N;_ instanceof Bt.re&&(k=v.docTree.getNodeLastPath(_.childNodes[0]),N=v.docTree.getNodeLastPath(_.childNodes[_.childNodes.length-1].previousLeaf()),B=_.childNodes[1]instanceof $t.j?k:N),v.drawTree.moveCaretToPath(B);var U=new Ie.a(this.hoEditorFactoryID,k,N);v.docTree.curDomRange=U;var W=new ke.r(C,U);v.docTree.selectChange(W)}}},{key:"getPosition",value:function getPosition(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.caret,_=.75*(l.pageProperty.heightPixes-u.stageY);return[u.pageIndex+1,.75*u.stageX,_]}},{key:"getBase64",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee7(l){var u,_,v,C,k,N,B,U,W,q,$,Y;return(0,fe.Z)().wrap((function _callee7$(ee){while(1)switch(ee.prev=ee.next){case 0:if("html"!==l){ee.next=14;break}if(_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.curDomRange.normalize(),C=v.normalize().endPath,k=null===(u=_.vueController.findNodebyPath(C))||void 0===u?void 0:u.node,!(k instanceof gn.N)||k.isTemplate||1!=k.attribute){ee.next=8;break}return ee.next=8,this.deleteNode(k);case 8:return ee.next=10,_.printController.createHtml();case 10:return N=ee.sent,ee.abrupt("return",N);case 14:if(U=rt.b.instance().getFactory(this._hoEditorFactoryID),W=U.docTree.curDomRange.normalize(),q=W.normalize().endPath,$=null===(B=U.vueController.findNodebyPath(q))||void 0===B?void 0:B.node,!($ instanceof gn.N)||$.isTemplate||1!=$.attribute){ee.next=21;break}return ee.next=21,this.deleteNode($);case 21:return ee.next=23,U.printController.createBase64();case 23:return Y=ee.sent,ee.abrupt("return",Y);case 25:case"end":return ee.stop()}}),_callee7,this)})));function getBase64(u){return l.apply(this,arguments)}return getBase64}()},{key:"insertWriteSign",value:function insertWriteSign(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=C.docTree.curDomRange.normalize(),N=k.normalize().startPath,B=k.normalize().endPath,U=k.npEnd.node;if(U instanceof gn.N)U.isTemplate?""!==U.imgSrc||""!==U.fingerPrintSrc?(this.deleteNode(U),setTimeout((function(){var k=C.docTree.curDomRange.normalize(),N=k.npEnd.node;N instanceof gn.N&&Promise.all([C.docController.updateSignNode(N,3,"患者签名","","",l,0,0,{},u,_)]).then((function(){setTimeout((function(){v&&v()}),0)}))}),0)):Promise.all([C.docController.updateSignNode(U,3,"患者签名","","",l,0,0,{},u,_)]).then((function(){setTimeout((function(){v&&v()}),0)})):(this.deleteNode(U),setTimeout((function(){var k=C.docTree.curDomRange.normalize(),N=k.normalize().startPath,B=k.normalize().endPath,W=new ji.Q(be.gk.daInsert,N,B,ji.y.insertSign);C.docTree.changing(W)&&Promise.all([C.docController.insertSignNode(k,1,"患者签名",U.signor,U.signTime,U.signTimeFormat,l,U.imgWidth,U.imgHeight,U.customProperty,u,_)]).then((function(){setTimeout((function(){v&&v()}),0)}))}),0));else{var W=new ji.Q(be.gk.daInsert,N,B,ji.y.insertSign);C.docTree.changing(W)&&Promise.all([C.docController.insertSignNode(k,3,"患者签名","","","",l,0,0,{},u,_)]).then((function(){setTimeout((function(){v&&v()}),0)}))}}},{key:"setCanvasScale",value:function setCanvasScale(l){var u=l||1;nt.f.instance().scaleXY=u}},{key:"setBackgroundByName",value:function setBackgroundByName(l){for(var u=this,_=[],v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function iteratesNodes(v){for(var C=0;C<v.length;C++){var k=v[C];if(k instanceof wi.w||k instanceof Bt.re)for(var N=0,B=l.length-1;N<=B;N++){var U=l[N];if(""!==U.text&&U.name===k.name&&-1!==k.text.indexOf(U.text)){var W=u.search(k,U.text);W.length>0&&(_=_.concat(W))}else if(""===U.text&&U.name===k.name){var q=u.search(k,k.text);q.length>0&&(_=_.concat(q))}}}},k=v.subDocManger.headerDocTree,N=0;N<k.length;N++)C(k[N].subDocNodes);var B=v.docTree.mainNodes;C(B);for(var U=v.subDocManger.footerDocTree,W=0;W<U.length;W++)C(U[W].subDocNodes);_.length>0?v.drawTree.drawMultiCustomRange(_,!0,!0):console.warn("未搜索到符合条件的元素")}},{key:"search",value:function search(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=[],C=[],k=new Map;if(l instanceof Bt.re){var N=[];N.push(l.childNodes[0]);var B=function loopChildNodes(l){for(var u=1;u<l.length-1;u++){var _=l[u];_ instanceof mn.C&&N.push(_),_ instanceof Bt.re&&loopChildNodes(_.childNodes)}};B(l.childNodes),N.forEach((function(u,v){var N=u.nextLeaf(),B="",U=0,W=1;do{if(N){if(N instanceof Gt.R){-1===U&&B.length>0&&(C.push((v+1).toString()+"|"+W.toString()+"|"+B),W++,B="",U=0);var q=_.docTree.getNodeFirstPath(N);k.set((v+1).toString()+"|"+W.toString()+"|"+B.length,q),B+=N.text}else if(N instanceof wi.w){B.length>0&&(C.push((v+1).toString()+"|"+W.toString()+"|"+B),W++,B=""),C.push((v+1).toString()+"|"+W.toString()+"|"+N.text);var $=N.getNodePath();k.set((v+1).toString()+"|"+W.toString()+"|0",$),W++}else{if(N instanceof mn.C)break;U=-1}N=N.nextLeaf()}}while(N!==l.EndMarkNode);B.length>0&&C.push((v+1).toString()+"|"+W.toString()+"|"+B)}))}else{var U=l.getNodePath();k.set("1|1|0",U),C.push("1|1|"+l.text)}return v=this.getSelectRanges(C,u,k),v}},{key:"getSelectRanges",value:function getSelectRanges(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=[],k=new Map,N=0;l.forEach((function(l,_){var v=l.split("|")[0],C=l.split("|")[1];l=l.split("|")[2];var B=l.indexOf(u);if(-1!==B)do{N++,k.set(N,v+"|"+C+"|"+B.toString()),B=l.indexOf(u,B+1)}while(-1!==B)}));var U=[],W=[];k.forEach((function(l,u){var C,k="",N=l.split("|")[0],q=l.split("|")[1],$=parseInt(l.split("|")[2]),Y=(0,Fi.Z)(_);try{for(Y.s();!(C=Y.n()).done;){var ee=(0,B.Z)(C.value,2),re=ee[0],ne=ee[1],ie=parseInt(re.split("|")[2]);if(re.split("|")[0]===N&&re.split("|")[1]===q&&$>=ie){var oe=v.docTree.findNodePositionByPath(ne);if(oe&&oe.node){if(oe.node instanceof Gt.R&&$<ie+oe.node.text.length){var ae=$-ie-1;if(ae>=0){var le=ne.split("/");le[le.length-1]=ae.toString(),k=le.join("/")}else{var ce=oe.node.previousLeaf();ce&&(k=v.docTree.getNodeLastPath(ce))}U.push(k)}if(oe.node instanceof wi.w){var de=v.docTree.getNodeLastPath(oe.node.previousLeaf());W.push([de,ne])}}}}}catch(he){Y.e(he)}finally{Y.f()}}));for(var q=0;q<U.length;q++){for(var $=U[q],Y=$,ee=$,re=0;re<u.length;re++){var ne=v.docTree.findNodePositionByPath(Y);if(ne&&ne.node&&(ee=v.docTree.getNodeLastPath(ne.node)),Y===ee){var ie,oe;Y=v.docTree.getNodeFirstPath(null===(ie=ne.node)||void 0===ie?void 0:ie.nextLeaf()),ee=v.docTree.getNodeLastPath(null===(oe=ne.node)||void 0===oe?void 0:oe.nextLeaf())}else{var ae=Y.split("/"),le=parseInt(ae[ae.length-1]);ae[ae.length-1]=(le+1).toString(),Y=ae.join("/")}}var ce=new xi.E(this.hoEditorFactoryID),de=Vi.M.getStagePosByPath(this._hoEditorFactoryID,$),he=Vi.M.getStagePosByPath(this._hoEditorFactoryID,Y);ce.spStart=de,ce.spEnd=he,C.push(ce)}for(var _e=0;_e<W.length;_e++){var pe=Vi.M.getStagePosByPath(this._hoEditorFactoryID,W[_e][0]),fe=Vi.M.getStagePosByPath(this._hoEditorFactoryID,W[_e][1]),me=new xi.E(this.hoEditorFactoryID);me.spStart=pe,me.spEnd=fe,C.push(me)}return C}},{key:"findAndLightElementsByNames",value:function findAndLightElementsByNames(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(0!=l.length){for(var _=[],v=[],C=0;C<l.length;C++)if(""!==l[C]){var k=this.getNodesByName("all",!0,l[C]);_=_.concat(k)}for(var N=0;N<_.length;N++){var B=_[N],U=u.docTree.getNodeLastPath(B.previousLeaf()),W=u.docTree.getNodeLastPath(B),q=Vi.M.getStagePosByPath(this._hoEditorFactoryID,U),$=Vi.M.getStagePosByPath(this._hoEditorFactoryID,W),Y=new xi.E(this.hoEditorFactoryID);Y.spStart=q,Y.spEnd=$,v.push(Y)}v.length>0&&u.drawTree.drawMultiCustomRange(v,!0,!0)}else u.drawTree.selectRange.clearAllCustomSelectShape()}},{key:"initAiFunc",value:function initAiFunc(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.aiTextFunc=l}},{key:"getCaretPreviousText",value:function getCaretPreviousText(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l.aiTextFunc){var u=l.docTree.curDomRange.normalize(),_=u.npEnd.node,v="";_ instanceof Gt.R&&(v+=_.text);var C=function getText(){var l=null===_||void 0===_?void 0:_.previousLeaf();l instanceof Gt.R&&(v+=l.text,v.length<20&&getText())},k=function callback(u){var _=l.drawTree.caret.aiInfo;l.drawTree.caret.aiInfo.lastPosition=[_.pageIndex,_.x,_.y],l.drawTree.caret.aiInfo.aiText=u};v.length<20&&C(),v.length>=20?(v=v.slice(v.length-20,v.length),l.aiTextFunc(v,k)):v.length>0&&l.aiTextFunc(v,k)}}},{key:"clearSelectedRangeParas",value:function clearSelectedRangeParas(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();if(!u.isEmpty){for(var _=Ie.a.getSelectDomNodes(this._hoEditorFactoryID,u.startPath,u.endPath,!0),v=_[0],C=!1,k=0;k<v.length;k++)if(v[k]instanceof mn.C){C=!0;break}if(C){for(var N=0;N<v.length;N++){var B=v[N];if(B instanceof mn.C){var U=B.getNodePath();l.undoService.begin(),l.undoService.add(new Hi.w(this._hoEditorFactoryID,B,U)),l.undoService.commit()}}var W=l.docTree.getNodeLastPath(v[v.length-1]);if(_[2]>0){var q=W.split("/");q[q.length-1]=_[2].toString(),W=q.join("/")}var $=u,Y=new Ie.a(this._hoEditorFactoryID,u.startPath,W),ee=new ke.r($,Y);l.docTree.selectChange(ee),l.docTree.curDomRange=Y,l.drawTree.moveCaretToPath(u.startPath)}else Jn().alert("选区内没有换行符,无需清除.")}}},{key:"getCaretPreviousTextNode",value:function getCaretPreviousTextNode(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=u.npEnd.node,v="",C=function getText(l){return l instanceof Gt.R||l instanceof Si.P||l instanceof Ft.yF?l.text:(null===l||void 0===l?void 0:l.parentNode)instanceof Bt.re&&(null===l||void 0===l?void 0:l.parentNode.inputFieldType)===Bt.Zi.dropDownList?null===l||void 0===l?void 0:l.parentNode.text:void 0};return _ instanceof Gt.R&&!(_ instanceof Bt.re)?v=_.text?_.text:C(_.previousLeaf()):(null===_||void 0===_?void 0:_.parentNode)instanceof Bt.re?(v=C(_.parentNode.previousLeaf()),v||(v=C(_.previousLeaf()))):_ instanceof gn.N&&3!==_.type&&(v=C(_.previousLeaf())),v}},{key:"initBlankDoc",value:function initBlankDoc(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.docController.initBlankDoc()}},{key:"destoryEditor",value:function destoryEditor(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.clear(),l=null}},{key:"clearSignNodes",value:function clearSignNodes(){var l=this.getDocXml(!0,!0,!0);return l}},{key:"getDocComment",value:function getDocComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap,_=!1;return u.forEach((function(u){"1"===l?u.customProperty&&"1"===u.customProperty.ishandle&&(_=!0):"0"===l?(!u.customProperty||u.customProperty&&"0"===u.customProperty.ishandle)&&(_=!0):void 0===l&&(_=!0)})),_}},{key:"getDocCommentValue",value:function getDocCommentValue(){return rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap}},{key:"setDocCommentIsHandle",value:function setDocCommentIsHandle(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree,_=u.commentsMap;_.forEach((function(u,v){u.customProperty||(u.customProperty={}),u.customProperty.ishandle=void 0==l?"1":l,_.set(v,u)})),u.commentsMap=_}},{key:"SyncElements",value:function SyncElements(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=Ie.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID,u.startPath,u.endPath),v=[],C=[],k=[];l.docTree.curDomRange=new Ie.a(this._hoEditorFactoryID,u.startPath,u.startPath);for(var N=0;N<_.length;N++){var B=_[N];if(B instanceof Bt.re&&-1===v.indexOf(B.name)){v.push(B.name);for(var U=this.getNodesByName("all",!0,B.name),W=0;W<U.length;W++){var q=U[W];_.indexOf(q)>=0||q instanceof Bt.re&&q.setFieldText(B.text)}}if(B instanceof Rt.Z&&-1===C.indexOf(B.name)){C.push(B.name);for(var $=this.getNodesByName("all",!0,B.name),Y=0;Y<$.length;Y++){var ee=$[Y];_.indexOf(ee)>=0||ee instanceof Rt.Z&&ee.setDateTimeText(B.text)}}if(B instanceof Ft.yF&&-1===k.indexOf(B.name)){k.push(B.name);for(var re=this.getNodesByName("all",!0,B.name),ne=0;ne<re.length;ne++){var ie=re[ne];_.indexOf(ie)>=0||ie instanceof Ft.yF&&ie.setDownListText(B.text)}}}}},{key:"showElementsEditRecord",value:function showElementsEditRecord(l){var u=[],_=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.setPageProperty(JSON.stringify({commentWidthMm:50}));for(var v=0;v<l.length;v++)for(var C=l[v],k=C.name,N=C.oldValue,B=this.getNodesByName("main",!0,k),U=0;U<B.length;U++){var W=B[U],q=_.gernerateCode.generateID("C"),$=void 0;W instanceof Bt.re&&($=new mi.s(this._hoEditorFactoryID,q,N,W.EndMarkNode),$.lineHeight=$.lineHeight-20,u.push($)),(W instanceof Rt.Z||W instanceof Ft.yF)&&($=new mi.s(this._hoEditorFactoryID,q,N,W),$.lineHeight=$.lineHeight-20,u.push($))}u.forEach((function(l,v){v++;var C=l.eNode.drawNodes[0],k=_.drawPageTree.getMainRootArea(C),N=_.drawTree.getDrawLineByDNode(C),B=N.localToGlobal(C.x,C.y),U=k.globalToLocal(B.x,B.y),W=N.parent instanceof Fn.k?U.x:C.x,q=U.y;k.removeComment(l,!0);var $=l.eNode.getNodePath();(l.eNode instanceof Rt.Z||l.eNode instanceof Ft.yF)&&(W+=l.eNode.drawNodes[0].dWidth),1===v&&k.drawEditRecords(l,W,q,q),v>=2&&k.repaintRecored(u,l,$,W,q)}))}},{key:"clearEditRecords",value:function clearEditRecords(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.setPageProperty(JSON.stringify({commentWidthMm:0}));for(var u=l.drawPageTree.drawMainDocs,_=u.length-1;_>=0;_--){for(var v=u[_].children,C=v.length-1;C>=0;C--){var k=v[C];k.name&&k.name.indexOf("recordC")>=0&&v.splice(C,1)}l.drawPageTree.updateDrawPage(_)}}},{key:"updateImageSrc",value:function updateImageSrc(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.getNodeLastPath(l.previousLeaf()),C=l.getNodePath(),k=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,v,C);k.oldEndPath=C,k.afterChangePath=C,k.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(v,C,!0),l.imageDataBase64String=u,_.docTree.change(k)}},{key:"setParaCustomProperty",value:function setParaCustomProperty(l,u){l.setCustomProperty(u)}},{key:"getAllEmptySignNode",value:function getAllEmptySignNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=!1,v=0,C=!1,k=function getAllNodes(u){for(var k=0;k<u.length;k++){var N=u[k];if(N instanceof gn.N){if(1==l&&1===N.attribute&&v++,1==l&&1===N.attribute&&(""!==N.imgSrc||""!==N.fingerPrintSrc)){_=!0;break}if(1!=l&&1!=N.attribute&&""===N.imgSrc){C=!0;break}}N instanceof gi.V&&1===l&&_&&getAllNodes(N.childNodes),N instanceof gi.V&&1!=l&&!C&&getAllNodes(N.childNodes)}},N=u.docTree.mainNodes;return k(N),1==l?0==v||_:C}},{key:"getAllSignNode",value:function getAllSignNode(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=!1,_=function getAllNodes(l){for(var _=0;_<l.length;_++){var v=l[_];if(v instanceof gn.N&&3!==v.type&&v.imgSrc){u=!0;break}v instanceof gi.V&&!u&&getAllNodes(v.childNodes)}},v=l.docTree.mainNodes;return _(v),u}},{key:"setHoEditorFactoryParams",value:function setHoEditorFactoryParams(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);Object.keys(l).forEach((function(_){u[_]=l[_]}))}}]),VueController}(),$i=function(){function BaseController(l){(0,q.Z)(this,BaseController),this._hoEditorFactoryID=l}return(0,$.Z)(BaseController,[{key:"unDoOperate",value:function unDoOperate(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.unDoOperate()}},{key:"reDoOperate",value:function reDoOperate(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.reDoOperate()}},{key:"setUserLoginInfo",value:function setUserLoginInfo(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.setUserLoginInfo(l,u,_,v)}},{key:"setEditorStatus",value:function setEditorStatus(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.setEditorStatus(l,u)}},{key:"generateID",value:function generateID(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.vueController.generateID(l)}},{key:"rebuildAll",value:function rebuildAll(l){rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(l)}},{key:"getTextStyles",value:function getTextStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.docTree.styles}},{key:"getParaStyles",value:function getParaStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.docTree.paragraphs}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.modifyRedraw(l,u)}},{key:"deleteRedraw",value:function deleteRedraw(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.deleteRedraw(l)}},{key:"insertRedraw",value:function insertRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.insertRedraw(l,u)}},{key:"fullRedraw",value:function fullRedraw(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.drawTree.rebuildAllDrawLine(!1)}},{key:"copy",value:function copy(){}}]),BaseController}(),Gi=function(){function DomController(l){(0,q.Z)(this,DomController),this._hoEditorFactoryID=l}return(0,$.Z)(DomController,[{key:"newFile",value:function newFile(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.newFile(l)}},{key:"openLocalFiles",value:function openLocalFiles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.openLocalFiles(l,u)}},{key:"saveAsFile",value:function saveAsFile(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.vueController.saveAsFile(l);return _}},{key:"setPageProperty",value:function setPageProperty(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.setPageProperty(l)}},{key:"getPageProperty",value:function getPageProperty(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.vueController.pageProperty()}},{key:"openLocalFilesTest",value:function openLocalFilesTest(l,u){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc(),rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.openFile(l,u,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=JSON.parse(JSON.stringify(l));rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(u)}},{key:"getDocXml",value:function getDocXml(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.vueController.saveAsFile("xml");return u}},{key:"getDocJson",value:function getDocJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(l);return u}},{key:"iteratesDocTree",value:function iteratesDocTree(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.iteratesDocTree(l)}},{key:"insertText",value:function insertText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.keyBoardInput(l)}},{key:"deleteRange",value:function deleteRange(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.deleteRange(l,!1)}},{key:"insertXml",value:function insertXml(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertXml(l,"main")}},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.vueController.saveHeaderAsJson();return u[0]}},{key:"insertHeaderJson",value:function insertHeaderJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertHeaderJson(l)}},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.vueController.saveFooterAsJson();return u[0]}},{key:"insertFooterJson",value:function insertFooterJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertFooterJson(l)}},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.vueController.saveSelectedAsJson(l);return _}},{key:"insertSelectedJson",value:function insertSelectedJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertSelectedJson(l)}},{key:"openXml",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(l,u){var _;return(0,fe.Z)().wrap((function _callee$(v){while(1)switch(v.prev=v.next){case 0:if(void 0!==u&&!0!==u){v.next=4;break}return _=rt.b.instance().getFactory(this._hoEditorFactoryID),v.next=4,_.vueController.openXml(l,void 0,void 0,u);case 4:case"end":return v.stop()}}),_callee,this)})));function openXml(u,_){return l.apply(this,arguments)}return openXml}()},{key:"mergeDocs",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee2(l,u){var _,v;return(0,fe.Z)().wrap((function _callee2$(C){while(1)switch(C.prev=C.next){case 0:return _=rt.b.instance().getFactory(this._hoEditorFactoryID),C.next=3,_.vueController.mergeDocs(l,u);case 3:return v=C.sent,C.abrupt("return",v);case 5:case"end":return C.stop()}}),_callee2,this)})));function mergeDocs(u,_){return l.apply(this,arguments)}return mergeDocs}()},{key:"loadFileList",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee3(l){var u,_;return(0,fe.Z)().wrap((function _callee3$(v){while(1)switch(v.prev=v.next){case 0:u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=0;case 2:if(!(_<l.length)){v.next=13;break}if(0!=_){v.next=8;break}return v.next=6,u.vueController.openXml(l[_].xml);case 6:v.next=10;break;case 8:return v.next=10,this.mergeDocs(l[_].xml,l[_].isMerge);case 10:_++,v.next=2;break;case 13:case"end":return v.stop()}}),_callee3,this)})));function loadFileList(u){return l.apply(this,arguments)}return loadFileList}()},{key:"getLogs",value:function getLogs(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.undoService.getModifyHistory()}},{key:"registOnNodeInsertByID",value:function registOnNodeInsertByID(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.onInsertNodeByID=l}},{key:"delCurPage",value:function delCurPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.delCurPage(l)}},{key:"isModifyDoc",value:function isModifyDoc(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.vueController.isModifyDoc()}}]),DomController}(),Zi=__webpack_require__(16473),Ji=__webpack_require__.n(Zi),Xi=function(){function EditController(l){(0,q.Z)(this,EditController),this._hoEditorFactoryID=l}return(0,$.Z)(EditController,[{key:"fontFormat",value:function fontFormat(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontFormat(l)}},{key:"fontSize",value:function fontSize(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontSize(l)}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.fontSizeEnlarge()}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.fontSizeDecrease()}},{key:"fontSuperScript",value:function fontSuperScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontSuperScript(l)}},{key:"fontSubScript",value:function fontSubScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontSubScript(l)}},{key:"fontBold",value:function fontBold(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontBold(l)}},{key:"fontItalic",value:function fontItalic(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontItalic(l)}},{key:"fontUnderline",value:function fontUnderline(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontUnderline(l)}},{key:"fontStrikeout",value:function fontStrikeout(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontStrikeout(l)}},{key:"fontColor",value:function fontColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontColor(l)}},{key:"fontBackColor",value:function fontBackColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontBackColor(l)}},{key:"alignedLeft",value:function alignedLeft(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedLeft()}},{key:"alignedCenter",value:function alignedCenter(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedCenter()}},{key:"alignedRight",value:function alignedRight(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedRight()}},{key:"alignedBothEnds",value:function alignedBothEnds(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedBothEnds()}},{key:"addIndent",value:function addIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.addIndent()}},{key:"decreaseIndent",value:function decreaseIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.decreaseIndent()}},{key:"setLineHeight",value:function setLineHeight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.setLineHeight(l)}},{key:"find",value:function find(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=v.vueController.find(l,u,_);return C}},{key:"replace",value:function replace(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);N.vueController.replace(l,u,_,v,C,k)}},{key:"insertHtmlText",value:function insertHtmlText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertHtmlText(l)}},{key:"clearUndos",value:function clearUndos(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.undoService.clear()}},{key:"editKeyCopy",value:function editKeyCopy(l){if(l&&l.clipboardData){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docTree.curDomRange.isEmpty||u.structureNode.Copy(u.docTree.curDomRange,l.clipboardData,void 0,"copy"),l.preventDefault()}}},{key:"editKeyPaste",value:function editKeyPaste(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.drawTree.paintStatus!==Ee.Dh.psReadOnly&&u.drawTree.paintStatus!==Ee.Dh.psPreview&&u.drawTree.paintStatus!==Ee.Dh.psPrint){var _=u.docTree.curDomRange.startPath,v=u.docTree.getParentNode(_);if(!(v instanceof Bt.re)||v.canModifyContent){var C,k="",N="",B="";if(l instanceof DataTransfer&&(k=l.getData("application/json"),N=l.getData("text/html"),B=l.getData("text/plain")),C=k&&u.drawTree.paintStatus===Ee.Dh.psDesign?u.structureNode.Parse(Ci.ctJSON,k):N?u.structureNode.Parse(Ci.ctHTML,N):u.structureNode.Parse(Ci.ctText,B),!u.pasteBase)for(var U=0;U<C.length;U++){var W=C[U];if(W instanceof mn.C||W instanceof Gt.R||W instanceof $t.j||W instanceof wi.w){var q=u.docTree.styles[W.styleIndex];if(0!=q.combineStyle.script){var $=q.clone();$.script=q.combineStyle.script;var Y=u.docTree.styleCompare($);W.styleIndex=Y}else W.styleIndex=u.docTree.curStyleIndex}W instanceof mn.C&&(W.paraNo=u.docTree.curParaNo)}u.docController.parseNodeData(C)}}}},{key:"canIsEdit",value:function canIsEdit(l){var u=!0;if(l.isUseForm){var _,v,C=l.docTree.curDomRange.normalize(),k=C.npStart.node,N=C.npEnd.node;!N||0!=N.nodeType||(null===N||void 0===N?void 0:N.parentNode)instanceof Bt.re||(u=!1),null!=(null===N||void 0===N?void 0:N.parentNode)&&null!=(null===k||void 0===k?void 0:k.parentNode)||(u=!1),N instanceof $t.j&&2==N.MarkNodeType&&(null==(null===(_=N.parentNode)||void 0===_?void 0:_.parentNode)||(null===(v=N.parentNode)||void 0===v?void 0:v.parentNode)instanceof et.D)&&(u=!1)}return u||(Ji().closeAll(),Ji().error("表单状态元素外不可编辑")),u}}]),EditController}(),Yi=function(){function ElementController(l){(0,q.Z)(this,ElementController),this._hoEditorFactoryID=l}return(0,$.Z)(ElementController,[{key:"findNodebyPath",value:function findNodebyPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.vueController.findNodebyPath(l)}},{key:"getNodeByID",value:function getNodeByID(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.vueController.getNodeByID(l,u)}},{key:"getNodesByName",value:function getNodesByName(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);return v.vueController.getNodesByName(l,u,_)}},{key:"getTextInputFieldValue",value:function getTextInputFieldValue(l){var u=l.getFieldText();return u}},{key:"getCellText",value:function getCellText(l){var u=l.getCellText();return u}},{key:"updateTextInputFieldValue",value:function updateTextInputFieldValue(l,u,_,v){var C=Promise.resolve();C=C.then((function(C){return new Promise(function(){var C=(0,me.Z)((0,fe.Z)().mark((function _callee(C){return(0,fe.Z)().wrap((function _callee$(k){while(1)switch(k.prev=k.next){case 0:return k.next=2,l.setFieldText(u,_,v);case 2:C();case 3:case"end":return k.stop()}}),_callee)})));return function(l){return C.apply(this,arguments)}}())}))}},{key:"updateCellText",value:function updateCellText(l,u){l.setCellText(u)}},{key:"updateDateTimeText",value:function updateDateTimeText(l,u){l.setDateTimeText(u)}},{key:"updateDownListText",value:function updateDownListText(l,u){l.setDownListText(u)}},{key:"deleteNode",value:function deleteNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.deleteNode(l)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.vueController.verifyTextFieldsDataFormat()}},{key:"getAllElementNodes",value:function getAllElementNodes(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.headerDocTree,_=l.docTree.mainNodes,v=l.subDocManger.footerDocTree,C=new Array,k=0;k<u.length;k++){var N=u[k].subDocNodes,B=N[0].getNodePath(),U=l.docTree.getNodeLastPath(N[N.length-1]);C=C.concat(Ie.a.getElementNode(this._hoEditorFactoryID,B,U,!0))}var W=_[0].getNodePath(),q=l.docTree.getNodeLastPath(_[_.length-1]);C=C.concat(Ie.a.getElementNode(this._hoEditorFactoryID,W,q,!0));for(var $=0;$<v.length;$++){var Y=v[$].subDocNodes,ee=Y[0].getNodePath(),re=l.docTree.getNodeLastPath(Y[Y.length-1]);C=C.concat(Ie.a.getElementNode(this._hoEditorFactoryID,ee,re,!0))}return C}},{key:"insertSignNode",value:function insertSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);q.vueController.insertSignNode(l,u,_,v,C,k,N,B,U,W)}},{key:"updateSignNode",value:function updateSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);q.vueController.updateSignNode(l,u,_,v,C,k,N,B,U,W)}},{key:"forceDelete",value:function forceDelete(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.forceDelete()}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(l,u){if(l&&l instanceof He.Yh&&l.isEditText&&0!==u.trim().length){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.editRadioCheckBoxText(l,u)}}},{key:"getAllElements",value:function getAllElements(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.getAllElements()}},{key:"updateElementById",value:function updateElementById(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.updateElementById(l,u)}},{key:"moveCaretToElement",value:function moveCaretToElement(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.moveCaretToElement(l,u)}}]),ElementController}(),Qi=function(){function NodeController(l){(0,q.Z)(this,NodeController),this._hoEditorFactoryID=l}return(0,$.Z)(NodeController,[{key:"insertMenstrualHistory",value:function insertMenstrualHistory(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);k.vueController.insertMenstrualHistory("add",l,u,_,v,C)}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);k.vueController.updateMenstrualHistory(l,u,_,v,C)}},{key:"insertPupilMap",value:function insertPupilMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.insertPupilMap("add",l,u,_,v,C,k,N)}},{key:"updatePupilMap",value:function updatePupilMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.updatePupilMap(l,u,_,v,C,k,N)}},{key:"insertLightLocation",value:function insertLightLocation(l,u,_,v,C,k,N,B,U){var W=rt.b.instance().getFactory(this._hoEditorFactoryID);W.vueController.insertLightLocation("add",l,u,_,v,C,k,N,B,U)}},{key:"updateLightLocation",value:function updateLightLocation(l,u,_,v,C,k,N,B,U){var W=rt.b.instance().getFactory(this._hoEditorFactoryID);W.vueController.updateLightLocation(l,u,_,v,C,k,N,B,U)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);N.vueController.insertFetalHeartMap("add",l,u,_,v,C,k)}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);N.vueController.updateFetalHeartMap(l,u,_,v,C,k)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.insertPermanentTeethMap("add",l,u,_,v)}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.updatePermanentTeethMap(l,u,_,v)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.insertPrimaryTeethMap("add",l,u,_,v)}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.updatePrimaryTeethMap(l,u,_,v)}},{key:"insertTextInputField",value:function insertTextInputField(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.vueController.insertTextInputField("add",l);return _}},{key:"updateTextInputField",value:function updateTextInputField(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.updateTextInputField(l)}},{key:"insertImage",value:function insertImage(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertImage(l,u,_)}},{key:"insertBarcode",value:function insertBarcode(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.insertBarcode("add",l,u,_,v,C,k,N)}},{key:"updateBarcode",value:function updateBarcode(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.updateBarcode(l,u,_,v,C,k,N)}},{key:"insertQrcode",value:function insertQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y){var ee=rt.b.instance().getFactory(this._hoEditorFactoryID);ee.vueController.insertQrcode("add",l,u,_,v,C,k,N,B,U,W,q,$,Y)}},{key:"updateQrcode",value:function updateQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y){var ee=rt.b.instance().getFactory(this._hoEditorFactoryID);ee.vueController.updateQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertRadioAndCheckBox("add",l)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.updateRadioAndCheckBox(l)}},{key:"insertDateTime",value:function insertDateTime(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertDateTime("add",l)}},{key:"updateDateTime",value:function updateDateTime(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.updateDateTime(l)}},{key:"insertDownList",value:function insertDownList(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.insertDownList("add",l,u)}},{key:"updateDownList",value:function updateDownList(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.updateDownList(l,u)}},{key:"insertSpecialChars",value:function insertSpecialChars(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertSpecialChars("add",l)}},{key:"insertPageNum",value:function insertPageNum(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertPageNum("add",l,u,_)}},{key:"insertSeparateChar",value:function insertSeparateChar(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.insertSeparateChar(l,u)}},{key:"insertGestation",value:function insertGestation(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertGestation(l,u,_)}}]),NodeController}(),eo=__webpack_require__(4466),ro=function(){function PrintController(l){(0,q.Z)(this,PrintController),this._viewXmlList=[],this._xmlIndex=0,this._isSetFont=!1,this._isFont=!1,this._waitPrint=!1,this._waitSavepdf=!1,this._a4Size={p:[793,1122],l:[1122,793]},this._hoEditorFactoryID=l}return(0,$.Z)(PrintController,[{key:"isSetFont",get:function get(){return this._isSetFont}},{key:"createHtml",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(){var l,u,_,v,C,k,N=this;return(0,fe.Z)().wrap((function _callee$(B){while(1)switch(B.prev=B.next){case 0:return l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize().endPath,_=l.drawTree.paintStatus,v=l.vueController.getDocXml(!0),C={text:""},k=Promise.resolve(),k=k.then((function(){return new Promise((function(u){l.printStatus.printMode=0,l.drawTree.paintStatus=Ee.Dh.psPreview,l.drawTree.rebuildAllDrawLine(!1,u)}))})),k=k.then((function(){return new Promise((function(l){qe.Kh.createHTML(N._hoEditorFactoryID,l,C)}))})),B.next=10,k.then((function(u){l.drawTree.paintStatus=_,l.vueController.openXml(v)}));case 10:return setTimeout((function(){l.vueController.moveCaretToPath(u)}),0),B.abrupt("return",C.text);case 12:case"end":return B.stop()}}),_callee,this)})));function createHtml(){return l.apply(this,arguments)}return createHtml}()},{key:"createBase64",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee2(){var l,u,_,v,C,k,N,B,U,W,q=this;return(0,fe.Z)().wrap((function _callee2$($){while(1)switch($.prev=$.next){case 0:if(this._isSetFont){$.next=3;break}return this._waitSavepdf=!0,$.abrupt("return");case 3:return l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize().endPath,_=l.drawTree.paintStatus,v=l.vueController.getDocXml(!0),C=l.pageProperty.widthMm>l.pageProperty.heightMm?"l":"p",k=[l.pageProperty.widthPixes,l.pageProperty.heightPixes],N={orientation:C,unit:"px",format:k,hotfixes:["px_scaling"],compress:!0},B=new eo.ZP(N),U=Promise.resolve(),U=U.then((function(){return new Promise((function(u){l.printStatus.printMode=0,l.drawTree.paintStatus=Ee.Dh.psPreview,l.drawTree.rebuildAllDrawLine(!1,u)}))})),U=U.then((function(){return new Promise((function(l){qe.Kh.createPDFBase64(q._hoEditorFactoryID,l,B)}))})),$.next=16,U.then((function(u){return l.drawTree.paintStatus=_,l.vueController.openXml(v),B.deletePage(1),new Promise((function(l){l(B.output("datauristring"))}))}));case 16:if(W=$.sent,!W){$.next=20;break}return setTimeout((function(){l.vueController.moveCaretToPath(u)}),0),$.abrupt("return",W.replace(/^data:application\/pdf;filename=generated.pdf;base64,/,""));case 20:return $.abrupt("return",null);case 21:case"end":return $.stop()}}),_callee2,this)})));function createBase64(){return l.apply(this,arguments)}return createBase64}()},{key:"setjsPDFFonts",value:function setjsPDFFonts(l){eo.ZP.API.events.push(["addFonts",function(){this.addFileToVFS("SimSun-normal.ttf",l),this.addFont("SimSun-normal.ttf","SimSun","normal"),this.setFont("SimSun","normal")}]),this._isSetFont=!0,this._waitPrint&&(Jn().close(),this.printPromisePDF()),this._waitSavepdf&&this.saveAsPDF()}},{key:"saveAsPDF",value:function saveAsPDF(l,u,_){var v=this,C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(this._isSetFont){var k=u||"pdf",N=l||(C.vueController.getDocTitle()?C.vueController.getDocTitle():"电子病历文档"),B=C.drawTree.paintStatus,U=C.vueController.getDocXml(!0),W=Promise.resolve();W=W.then((function(){return new Promise((function(l){C.printStatus.printMode=0,C.drawTree.paintStatus=Ee.Dh.psPreview,C.drawTree.rebuildAllDrawLine(!1,l)}))})),W=W.then((function(){return new Promise((function(l){var u=C.pageProperty.widthMm>C.pageProperty.heightMm?"l":"p",B=[C.pageProperty.widthPixes,C.pageProperty.heightPixes];"1"==C.isFixedPrintToA4&&_&&(B=v._a4Size[u]),"2"==C.isFixedPrintToA4&&"a5"==C.pageProperty.pageSize.toLocaleLowerCase()&&(B=[793,1122],u="p");var U={orientation:u,unit:"px",format:B},W=new eo.ZP(U);qe.Kh.printToPDF(v._hoEditorFactoryID,W,k,N,l,void 0,B)}))})),W.then((function(l){C.drawTree.paintStatus=B,C.vueController.openXml(U)}))}else this._waitSavepdf=!0}},{key:"printPromisePDF",value:function printPromisePDF(l,u,_,v){var C=this,k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=k.drawTree.paintStatus,B="";if(2!==k.printStatus.printRange&&(B=k.vueController.getDocXml(!0,!0)),k.startPageNum=0,k.firstPageStartTop=0,!this._isSetFont)return this._waitPrint=!0,void Jn().alert("<p>打印所需文件正在加载中,请稍候</p><p>加载完成后会自动进行打印</p>","提示",{iconClass:"el-icon-loading",center:!0,showConfirmButton:!1,dangerouslyUseHTMLString:!0});if(k.isHideComments||k.vueController.hideComments(!0),l&&u){var U=u.replace(/\s*/g,"").replace(/[^\d]/g,",").split(","),W=k.drawTree.drawPages.length,q=U.filter((function(l){return l&&Number(l)>W}));if(q.length>0)return"指定页输入超出文档页范围"}var $=new Promise(function(){var _=(0,me.Z)((0,fe.Z)().mark((function _callee3(_,v){return(0,fe.Z)().wrap((function _callee3$(C){while(1)switch(C.prev=C.next){case 0:return C.prev=0,k.printStatus.printAppoint="",k.printStatus.printMode=l||0,3===l&&u&&(k.printStatus.printAppoint=u),k.drawTree.paintStatus=Ee.Dh.psPreview,C.next=7,k.drawTree.rebuildAllDrawLine(!1,_);case 7:C.next=12;break;case 9:C.prev=9,C.t0=C["catch"](0),v(!1);case 12:case"end":return C.stop()}}),_callee3,null,[[0,9]])})));return function(l,u){return _.apply(this,arguments)}}());$.then((function(l){if(l)return new Promise((function(l,u){var v=k.pageProperty.widthMm>k.pageProperty.heightMm?"l":"p",N=[k.pageProperty.widthPixes,k.pageProperty.heightPixes];"1"==k.isFixedPrintToA4&&(N=C._a4Size[v]),"2"==k.isFixedPrintToA4&&"a5"==k.pageProperty.pageSize.toLocaleLowerCase()&&(N=[793,1122],v="p");var B={orientation:v,unit:"px",format:N,hotfixes:["px_scaling"],compress:!0},U=new eo.ZP(B);qe.Kh.printToPDF(C._hoEditorFactoryID,U,_,void 0,l,void 0,N)}))})).then((function(l){"printend"===l&&(v&&v(k.printStatus.printRecord.last()),k.printStatus.printAppoint="",k.printStatus.drawPrintRecord.Position=[0,0],k.startPageNum=0,k.firstPageStartTop=0,2!==k.printStatus.printRange?(k.printStatus.printRange=2,k.drawTree.paintStatus=5,k.vueController.openXml(B)):(k.drawTree.paintStatus=N,k.drawTree.drawPages.forEach((function(l){var u;l.drawSelectLevel&&!l.drawSelectLevel.stage&&l.drawSelectLevel.bindStage(),l.selectContainer.children=[],null===(u=l.selectContainer.stage)||void 0===u||u.update()})),k.vueController.rebuildAll(!0)))}))}},{key:"printToPDF",value:function printToPDF(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return qe.Kh.printToPDF(this._hoEditorFactoryID),l.printStatus.printRecord.last()}},{key:"setDocStartInfo",value:function setDocStartInfo(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.startPageNum=l,_.firstPageStartTop=u,_.drawTree.rebuildAllDrawLine(!1)}},{key:"setEditorStatus",value:function setEditorStatus(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.printStatus.printRange=l}},{key:"mergeXmlToPrintPDFNew",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee5(l,u){var _,v,C,k,N,B,W,q=this;return(0,fe.Z)().wrap((function _callee5$(u){while(1)switch(u.prev=u.next){case 0:return console.time("连续打印总用时"),_=[],l.xmlList.forEach((function(l){_.push([l.isMerge,l.xml])})),v=l.positionY,C=rt.b.instance().getFactory(this._hoEditorFactoryID),void 0!==l.pageNum&&(C.startPageNum=l.pageNum),k=C.drawTree.paintStatus,N=C.vueController.getDocXml(!0),C.isHideComments||C.vueController.hideComments(!0),C.printStatus.printMode=0,C.drawTree.paintStatus=Ee.Dh.psPreview,B=Promise.resolve(),console.time("连续查看病历合并总用时"),B=B.then((function(l){return new Promise((function(l){Promise.all([C.vueController.openDocsForPrint(_)]).then((function(){0===C.loadImageCount?(l(),C.loadImageCallback=null):C.loadImageCallback=l}))}))})),B=B.then((function(){return console.timeEnd("连续查看病历合并总用时"),console.time("生成pdf用时"),new Promise(function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee4(l){var u,_,k,N;return(0,fe.Z)().wrap((function _callee4$(B){while(1)switch(B.prev=B.next){case 0:u=C.pageProperty.widthMm>C.pageProperty.heightMm?"l":"p",_=[C.pageProperty.widthPixes,C.pageProperty.heightPixes],"1"==C.isFixedPrintToA4&&(_=q._a4Size[u]),"2"==C.isFixedPrintToA4&&"a5"==C.pageProperty.pageSize.toLocaleLowerCase()&&(_=[793,1122],u="p"),k={orientation:u,unit:"px",format:_,hotfixes:["px_scaling"]},N=new eo.ZP(k),qe.Kh.printToPDF(q._hoEditorFactoryID,N,void 0,void 0,l,v,_);case 7:case"end":return B.stop()}}),_callee4)})));return function(u){return l.apply(this,arguments)}}())})),u.next=17,B.then((function(l){return l?(console.timeEnd("生成pdf用时"),new Promise((function(l){var u,_=C.printStatus.printRecord.last(),B=C.drawTree.drawPages[C.startPageNum],W=B.drawMainDoc.dHeight,q=B.drawHeader.dHeight,$=0;$=W+q-v<C.defaultLineHeight?C.startPageNum+1:C.startPageNum,_&&(u=[$].concat((0,U.Z)(_))),_&&C.startPageNum==_[0]&&v===_[1]&&(u=null),C.drawTree.paintStatus=k,C.printStatus.drawPrintRecord.Position=[0,0],C.startPageNum=0,C.firstPageStartTop=0,C.vueController.openXml(N),console.timeEnd("连续打印总用时"),l(u)}))):(C.drawTree.paintStatus=k,C.printStatus.drawPrintRecord.Position=[0,0],C.startPageNum=0,C.firstPageStartTop=0,C.vueController.openXml(N),console.timeEnd("连续打印总用时"),null)}));case 17:if(W=u.sent,!W){u.next=20;break}return u.abrupt("return",{startPageNum:W[0],pageNum:W[1],positionY:W[2]});case 20:return u.abrupt("return",null);case 21:case"end":return u.stop()}}),_callee5,this)})));function mergeXmlToPrintPDFNew(u,_){return l.apply(this,arguments)}return mergeXmlToPrintPDFNew}()},{key:"pintAllToPDF",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee8(l,u){var _,v,C,k,N,B,U,W,q,$,Y,ee=this;return(0,fe.Z)().wrap((function _callee8$(re){while(1)switch(re.prev=re.next){case 0:_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.drawTree.paintStatus,C=_.vueController.getDocXml(),_.isHideComments||_.vueController.hideComments(!0),_.printStatus.printMode=0,_.drawTree.paintStatus=Ee.Dh.psPreview,k=-1,N=[],U="",W={unit:"px",hotfixes:["px_scaling"],compress:!0},q=new eo.ZP(W),$=function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee6(){return(0,fe.Z)().wrap((function _callee6$(l){while(1)switch(l.prev=l.next){case 0:qe.Kh.printAllNew(ee._hoEditorFactoryID,Y,q,B);case 1:case"end":return l.stop()}}),_callee6)})));return function toPrint(){return l.apply(this,arguments)}}(),Y=function(){var W=(0,me.Z)((0,fe.Z)().mark((function _callee7(){var W;return(0,fe.Z)().wrap((function _callee7$(ee){while(1)switch(ee.prev=ee.next){case 0:k++,k<=l.length-1?l[k][2]?(void 0==B&&(B={}),B&&0!=Object.keys(B).length&&(u&&u(_objectSpread2(_objectSpread2({},B),{},{continuousid:U})),B={}),U&&l[k][2]!==U&&(N=[]),U=l[k][2],N.push([l[k][1],l[k][0]]),l[k][3]?Promise.all([_.vueController.openDocsForPrint(N)]).then((function(){0===_.loadImageCount?($(),_.loadImageCallback=null):_.loadImageCallback=$})):Y()):(N=[],U="",Promise.all([_.vueController.openXml(l[k][0])]).then((function(){0===_.loadImageCount?($(),_.loadImageCallback=null):_.loadImageCallback=$}))):k>l.length-1&&(u&&u(_objectSpread2(_objectSpread2({},B),{},{continuousid:U})),_.drawTree.paintStatus=v,_.vueController.openXml(C),null===q||void 0===q||q.deletePage(1),W=_.vueController.getDocTitle()?_.vueController.getDocTitle():"电子病历文档",qe.Kh.openDataUriInWindow(q,W,_.pageProperty.widthPixes));case 2:case"end":return ee.stop()}}),_callee7)})));return function createSvg(){return W.apply(this,arguments)}}(),Y();case 14:case"end":return re.stop()}}),_callee8,this)})));function pintAllToPDF(u,_){return l.apply(this,arguments)}return pintAllToPDF}()},{key:"mergeViewAll",value:function mergeViewAll(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=[];l.forEach((function(l){v.push([!1,l])})),_.vueController.openDocsForPrint(v)}}]),PrintController}(),no=function(){function ReviewController(l){(0,q.Z)(this,ReviewController),this._hoEditorFactoryID=l}return(0,$.Z)(ReviewController,[{key:"insertComment",value:function insertComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertComment(l)}},{key:"deleteComment",value:function deleteComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.deleteComment(l)}},{key:"editComment",value:function editComment(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.editComment(l,u)}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"hideComments",value:function hideComments(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.hideComments(l)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.setReviewLevelColor(l)}},{key:"cancelDel",value:function cancelDel(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.cancelDel()}}]),ReviewController}(),io=function(){function SelectController(l){(0,q.Z)(this,SelectController),this._hoEditorFactoryID=l}return(0,$.Z)(SelectController,[{key:"getDomRange",value:function getDomRange(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();return u}},{key:"setDomRange",value:function setDomRange(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.setDomRange(l,u)}},{key:"moveCaretToPath",value:function moveCaretToPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.drawTree.moveCaretToPath(l)}},{key:"getCaretPosition",value:function getCaretPosition(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.docTree.curDomRange.endPath}},{key:"getRangeText",value:function getRangeText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.getRangeText(l)}}]),SelectController}(),oo=function(){function TableController(l){(0,q.Z)(this,TableController),this._hoEditorFactoryID=l}return(0,$.Z)(TableController,[{key:"insertTable",value:function insertTable(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.insertTable(l,u)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableRowAbove(l)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableRowBelow(l)}},{key:"insertTableColLeft",value:function insertTableColLeft(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableColLeft(l)}},{key:"insertTableColRight",value:function insertTableColRight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableColRight(l)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableUnMergerCells()}},{key:"tableProperty",value:function tableProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.tableProperty(l,u)}},{key:"rowProperty",value:function rowProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.rowProperty(l,u)}},{key:"colProperty",value:function colProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.colProperty(l,u)}},{key:"cellProperty",value:function cellProperty(l,u){for(var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=0,C=u.length;v<C;v++){var k=u[v];_.vueController.cellProperty(l,k),k.drawCell.needUpdate=!0}u.length>0&&u[0].table.update()}},{key:"insertTableFormula",value:function insertTableFormula(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertTableFormula(l,u,_)}}]),TableController}(),ao=__webpack_require__(90142),so=__webpack_require__(47398),lo=function(){function FormatPainterUndoUnit(l,u,_,v,C){(0,q.Z)(this,FormatPainterUndoUnit),this._hoEditorFactoryID=l,this._undo=new $n.O(this._hoEditorFactoryID),this._startPath=u,this._endPath=_,this._newStyle=v,this._newParaNo=C,this._undoNodes=new Array,this._opTime=new Date,this._affectText=""}return(0,$.Z)(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 l=new so.p("formatPainter",this._newParaNo);this._undo.add(new ao.d(this._hoEditorFactoryID,this._startPath,this._endPath,l)),this._undo.commit(),this._undo.begin();var u=new so.p("formatPainter",this._newStyle);this._undo.add(new so.o(this._hoEditorFactoryID,this._startPath,this._endPath,u)),this._undo.commit()}},{key:"merge",value:function merge(l){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}(),co=function(){function FormatPainter(l){(0,q.Z)(this,FormatPainter),this._hoeditorFactoryID=l,this._storeFontStyleNo=0,this._storeParaStyleNo=0,this._continuePainter=!1,this._inuse=!1}return(0,$.Z)(FormatPainter,[{key:"inuse",get:function get(){return this._inuse}},{key:"startFormatPainter",value:function startFormatPainter(l,u,_,v){this._storeFontStyleNo=u,this._storeParaStyleNo=_,this._continuePainter=v,this._inuse=!0,this._formatNode=l,this._formatNode.className="sub-bar-item ho-format-paint selected",document.body.className="format-cursor"}},{key:"useFormatPainter",value:function useFormatPainter(){var l=rt.b.instance().getFactory(this._hoeditorFactoryID),u=l.docTree.curDomRange.normalize();l.undoService.begin(),l.undoService.add(new lo(this._hoeditorFactoryID,u.startPath,u.endPath,this._storeFontStyleNo,this._storeParaStyleNo)),l.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}(),uo=__webpack_require__(69483),ho=__webpack_require__.n(uo),_o=function(){function HoLocalStorage(l){(0,q.Z)(this,HoLocalStorage),this._intervalsTime=3e4,this._expirationTime=108e5,this._storeName="web_list",this._hoEditorFactoryID=l}return(0,$.Z)(HoLocalStorage,[{key:"initHoWebSql",value:function initHoWebSql(){this._ho_web=ho().createInstance({name:"_ho_web",storeName:this._storeName}),this._print_font=ho().createInstance({name:"_ho_web",storeName:"_print_font"}),this._cache_clear_time=ho().createInstance({name:"_ho_web",storeName:"_cache_clear_time"})}},{key:"getLocalStorage",value:function getLocalStorage(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return this._key=l.userInfo.id+l.docTree.docProperty.patientID+l.docTree.docProperty.title,this._ho_web.getItem(this._key)}},{key:"removeLocalStorage",value:function removeLocalStorage(l){var u=this;this._ho_web.keys().then((function(l){l.forEach((function(l){u._ho_web.getItem(l).then((function(_){Array.isArray(_)?(new Date).getTime()-new Date(_[0].saveTime).getTime()&&u._ho_web.removeItem(l):(new Date).getTime()-new Date(_.saveTime).getTime()&&u._ho_web.removeItem(l)}))}))}))}},{key:"clearLocalStorage",value:function clearLocalStorage(){this._ho_web.clear().then((function(){}))}},{key:"autoSaveLocalStorage",value:function autoSaveLocalStorage(){var l=this;if(!(this._lastSaveTime&&(new Date).getTime()-this._lastSaveTime<=this._intervalsTime)){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);this._key=u.userInfo.id+u.docTree.docProperty.patientID+u.docTree.docProperty.title,this._ho_web.getItem(this._key).then((function(_){var v=(0,Lt.vc)(new Date);if(_){if(Array.isArray(_)?l._lastSaveTime=new Date(_[0].saveTime).getTime():l._lastSaveTime=new Date(_.saveTime).getTime(),(new Date).getTime()-l._lastSaveTime<=l._intervalsTime)return}else l._lastSaveTime=new Date(v).getTime();var C=(0,U.Z)(u.domController.getLogs());if(_)if(Array.isArray(_))_.unshift({xml:u.structureConvert.doc2Xml("xml",!0),saveTime:v,logs:C}),3===_.length&&_.pop(),l._ho_web.setItem(l._key,_);else{var k=[];k.push({xml:u.structureConvert.doc2Xml("xml",!0),saveTime:v,logs:C}),k.push(_),l._ho_web.setItem(l._key,k)}else{var N=[];N.push({xml:u.structureConvert.doc2Xml("xml",!0),saveTime:v,logs:C}),l._ho_web.setItem(l._key,N)}l._cache_clear_time.getItem("_cache_clear_time").then((function(u){var _=u;u||(_=(new Date).getTime(),l._cache_clear_time.setItem("_cache_clear_time",_)),l._lastClearTime=_,(new Date).getTime()-u>=l._expirationTime&&(l.removeLocalStorage(u),setTimeout((function(){l._cache_clear_time.setItem("_cache_clear_time",(new Date).getTime())}),0))}))}))}}},{key:"saveFontString",value:function saveFontString(l){this._print_font.setItem("sunsim_font",l)}},{key:"loadFontString",value:function loadFontString(){return this._print_font.getItem("sunsim_font")}}]),HoLocalStorage}(),po=_o,fo=function(){function HOEditorFactory(l){(0,q.Z)(this,HOEditorFactory),this._isEnabledGlobalColor=!1,this._isSameColorWithEmptyVlaue=!1,this._isCanUseTableProperty=!1,this._loadImageCount=0,this._loadImageCallback=null,this._aiTextFunc=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=l}return(0,$.Z)(HOEditorFactory,[{key:"hoLocalStorage",get:function get(){return this._hoLocalStorage||(this._hoLocalStorage=new po(this._hoEditorFactoryId)),this._hoLocalStorage}},{key:"baseController",get:function get(){return this._baseController||(this._baseController=new $i(this._hoEditorFactoryId)),this._baseController}},{key:"domController",get:function get(){return this._domController||(this._domController=new Gi(this._hoEditorFactoryId)),this._domController}},{key:"editController",get:function get(){return this._editController||(this._editController=new Xi(this._hoEditorFactoryId)),this._editController}},{key:"elementController",get:function get(){return this._elementController||(this._elementController=new Yi(this._hoEditorFactoryId)),this._elementController}},{key:"nodeController",get:function get(){return this._nodeController||(this._nodeController=new Qi(this._hoEditorFactoryId)),this._nodeController}},{key:"printController",get:function get(){return this._printController||(this._printController=new ro(this._hoEditorFactoryId)),this._printController}},{key:"reviewController",get:function get(){return this._reviewController||(this._reviewController=new no(this._hoEditorFactoryId)),this._reviewController}},{key:"selectController",get:function get(){return this._selectController||(this._selectController=new io(this._hoEditorFactoryId)),this._selectController}},{key:"tableController",get:function get(){return this._tableController||(this._tableController=new oo(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(l){l!==this._defaultLineHeight&&(this._defaultLineHeight=l)}},{key:"userInfo",get:function get(){if(!this._userInfo){var l=this.gernerateCode.generateID("USER");this._userInfo=new zn.a(this._hoEditorFactoryId),this._userInfo.setUserInfo(l,"李医生",1,"")}return this._userInfo},set:function set(l){this._userInfo=l}},{key:"option",get:function get(){return this._option||(this._option=new Vn(this._hoEditorFactoryId)),this._option},set:function set(l){this._option=l}},{key:"hoEditorFactoryIndex",get:function get(){return this._hoEditorFactoryIndex},set:function set(l){this._hoEditorFactoryIndex=l}},{key:"docTree",get:function get(){return this._docTree||(this._docTree=new be.E_(this._hoEditorFactoryId)),this._docTree}},{key:"drawTree",get:function get(){return this._drawTree||(this._drawTree=new Ee.C6(this._hoEditorFactoryId),this._drawTree.init()),this._drawTree}},{key:"drawPageTree",get:function get(){return this._drawPageTree||(this._drawPageTree=new Hn(this._hoEditorFactoryId)),this._drawPageTree}},{key:"vueController",get:function get(){return this._vueController||(this._vueController=new Ki(this._hoEditorFactoryId)),this._vueController}},{key:"docController",get:function get(){return this._docController||(this._docController=new On.P(this._hoEditorFactoryId)),this._docController}},{key:"pageProperty",get:function get(){return this._pageProperty||(this._pageProperty=new Ln.fK(this._hoEditorFactoryId)),this._pageProperty},set:function set(l){l!==this._pageProperty&&(this._pageProperty=l)}},{key:"undoService",get:function get(){return this._undoService||(this._undoService=new $n.O(this._hoEditorFactoryId)),this._undoService}},{key:"subDocManger",get:function get(){return this._subDocManger||(this._subDocManger=new lt.Ft(this._hoEditorFactoryId)),this._subDocManger}},{key:"formatPainter",get:function get(){return this._formatPainter||(this._formatPainter=new co(this._hoEditorFactoryId)),this._formatPainter}},{key:"printStatus",get:function get(){return this._printStatus||(this._printStatus=new qe.Ic(this._hoEditorFactoryId)),this._printStatus}},{key:"timeStamp",get:function get(){return this._timeStamp||(this._timeStamp=new Kn(this._hoEditorFactoryId)),this._timeStamp}},{key:"gernerateCode",get:function get(){return this._gernerateCode||(this._gernerateCode=new Gn(this._hoEditorFactoryId)),this._gernerateCode}},{key:"htmlConverter",get:function get(){return this._htmlConverter||(this._htmlConverter=new ti(this._hoEditorFactoryId)),this._htmlConverter}},{key:"structureConvert",get:function get(){return this._structureConvert||(this._structureConvert=new Di(this._hoEditorFactoryId)),this._structureConvert}},{key:"structureNode",get:function get(){return this._structureNode||(this._structureNode=new Oi(this._hoEditorFactoryId)),this._structureNode}},{key:"toHtmlConverter",get:function get(){return this._toHtmlConverter||(this._toHtmlConverter=new Ai(this._hoEditorFactoryId)),this._toHtmlConverter}},{key:"unitConvert",get:function get(){return this._unitConvert||(this._unitConvert=new Ri.P),this._unitConvert}},{key:"nodeMouseMove",get:function get(){return this._nodeMouseMove||(this._nodeMouseMove=new qn(this._hoEditorFactoryId)),this._nodeMouseMove}},{key:"testDataSet",get:function get(){return this._testDataSet||(this._testDataSet=new Li(this._hoEditorFactoryId)),this._testDataSet}},{key:"hoEditorFactoryId",get:function get(){return this._hoEditorFactoryId}},{key:"startPageNum",get:function get(){return this._startPageNum},set:function set(l){this._startPageNum!=l&&(this._startPageNum=l)}},{key:"firstPageStartTop",get:function get(){return this._firstPageStartTop},set:function set(l){this._firstPageStartTop!=l&&(this._firstPageStartTop=l)}},{key:"signHeight",get:function get(){return this._signHeight},set:function set(l){this._signHeight!==l&&(this._signHeight=l)}},{key:"pasteBase",get:function get(){return this._pasteBase},set:function set(l){this._pasteBase!==l&&(this._pasteBase=l)}},{key:"isHideComments",get:function get(){return this._isHideComments},set:function set(l){this._isHideComments!==l&&(this._isHideComments=l)}},{key:"continuousView",get:function get(){return this._continuousView},set:function set(l){this._continuousView!==l&&(this._continuousView=l)}},{key:"openXmled",get:function get(){return this._openXmled},set:function set(l){this._openXmled!==l&&(this._openXmled=l)}},{key:"isThrowError",get:function get(){return this._isThrowError},set:function set(l){this._isThrowError!==l&&(this._isThrowError=l)}},{key:"loadImageCount",get:function get(){return this._loadImageCount},set:function set(l){this._loadImageCount!==l&&(this._loadImageCount=l),this._loadImageCount<=0&&this._loadImageCallback&&(this._loadImageCallback(),this._loadImageCallback=null)}},{key:"loadImageCallback",set:function set(l){this._loadImageCallback=l}},{key:"aiTextFunc",get:function get(){return this._aiTextFunc},set:function set(l){this._aiTextFunc!==l&&(this._aiTextFunc=l)}},{key:"lastSaveTime",get:function get(){return this._lastSaveTime},set:function set(l){this._lastSaveTime!==l&&(this._lastSaveTime=l)}},{key:"contentIsModify",get:function get(){return this._contentIsModify},set:function set(l){this._contentIsModify!==l&&(this._contentIsModify=l)}},{key:"isCanEditHeadFoot",get:function get(){return this._isCanEditHeadFoot},set:function set(l){this._isCanEditHeadFoot!==l&&(this._isCanEditHeadFoot=l)}},{key:"superiorSigns",get:function get(){return this._superiorSigns},set:function set(l){this._superiorSigns!==l&&(this._superiorSigns=l)}},{key:"isFixedPrintToA4",get:function get(){return this._isFixedPrintToA4},set:function set(l){this._isFixedPrintToA4!==l&&(this._isFixedPrintToA4=l)}},{key:"isRotate",get:function get(){return this._isRotate},set:function set(l){this._isRotate!==l&&(this._isRotate=l)}},{key:"isUseImagePrint",get:function get(){return this._isUseImagePrint},set:function set(l){this._isUseImagePrint!==l&&(this._isUseImagePrint=l)}},{key:"isUseForm",get:function get(){return this._isUseForm},set:function set(l){this._isUseForm!==l&&(this._isUseForm=l)}},{key:"printBlack",get:function get(){return this._printBlack},set:function set(l){this._printBlack!==l&&(this._printBlack=l)}},{key:"isEnabledGlobalColor",get:function get(){return this._isEnabledGlobalColor},set:function set(l){this._isEnabledGlobalColor!==l&&(this._isEnabledGlobalColor=l)}},{key:"isSameColorWithEmptyVlaue",get:function get(){return this._isSameColorWithEmptyVlaue},set:function set(l){this._isSameColorWithEmptyVlaue!==l&&(this._isSameColorWithEmptyVlaue=l)}},{key:"isCanUseTableProperty",get:function get(){return this._isCanUseTableProperty},set:function set(l){this._isCanUseTableProperty!==l&&(this._isCanUseTableProperty=l)}},{key:"clear",value:function clear(){this._docTree&&(this._docTree.clearDocTree(),this._docTree=null),this._subDocManger=null,this._drawPageTree=null,this._vueController=null,this._docController=null,this._pageProperty=null,this._undoService=null,this._printStatus=null,this._timeStamp=null,this._gernerateCode=null,this._htmlConverter=null,this._structureConvert=null,this._structureNode=null,this._toHtmlConverter=null,this._unitConvert=null,this._nodeMouseMove=null,this._testDataSet=null,this._userInfo=null,this._option=null,this._baseController=null,this._domController=null,this._editController=null,this._elementController=null,this._nodeController=null,this._printController=null,this._reviewController=null,this._selectController=null,this._tableController=null,this._formatPainter=null,this._hoLocalStorage=null,this._drawTree&&(this._drawTree.drawPages[0].destory(),this._drawTree.drawPageCount.count=0,this._drawTree.drawPages.splice(0,this._drawTree.drawPages.length),this._drawTree=null)}}]),HOEditorFactory}(),HoFootervue_type_template_id_5908306a_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"ho-footer"},[_("div",{staticClass:"footer-item"}),_("div",{staticClass:"footer-item"},[_("span",{staticClass:"text"},[l._v("第 "+l._s(l.currentActivePages+1===0?1:l.currentActivePages+1)+" 页 / 共 "+l._s(l.drawPages)+" 页")]),l.docName?_("span",{staticClass:"text"},[l._v("名称:"+l._s(l.docName))]):l._e(),l.userNames?_("span",{staticClass:"text"},[l._v("书写人:"+l._s(l.userNames))]):l._e(),l.historyTime?_("span",{staticClass:"text"},[l._v("书写时间:"+l._s(l.historyTime))]):l._e()]),_("p",{staticStyle:{flex:"1"}}),_("div",{staticClass:"footer-item"})])},go=[],Popervue_type_template_id_0f8bfa37_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.classSelected,style:l.poperStyle,on:{mouseenter:l.mouseenter,mouseleave:l.mouseleave}},[l._t("default",(function(){return[_("span",{class:l.classNames})]})),l.title&&l.show?_("Title",{attrs:{title:l.title,styles:l.styles}}):l._e()],2)},mo=[],Titlevue_type_template_id_3d9d462b_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("transition",{attrs:{name:"fade"}},[_("span",{staticClass:"poper-title",style:l.styles},[l._v(l._s(l.title))])])},vo=[],bo=function(l){(0,Y.Z)(Title,l);var u=(0,ee.Z)(Title);function Title(){return(0,q.Z)(this,Title),u.apply(this,arguments)}return(0,$.Z)(Title)}(mixins(jt));__decorate([Prop()],bo.prototype,"title",void 0),__decorate([Prop({default:"bottom"})],bo.prototype,"placement",void 0),__decorate([Prop()],bo.prototype,"styles",void 0),bo=__decorate([ae({name:"Title"})],bo);var wo=bo,xo=wo,Po=normalizeComponent(xo,Titlevue_type_template_id_3d9d462b_scoped_true_render,vo,!1,null,"3d9d462b",null),Co=Po.exports,Eo=function(l){(0,Y.Z)(Poper,l);var u=(0,ee.Z)(Poper);function Poper(){var l;return(0,q.Z)(this,Poper),l=u.apply(this,arguments),l.show=!1,l.styles={left:"0px",top:"0px"},l}return(0,$.Z)(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(l){if(l.currentTarget){var u=l.currentTarget.getBoundingClientRect();this.styles.left=u.x+"px","bottom"===this.placement?this.styles.top=u.y+u.height+13+"px":this.styles.top=u.y-u.height-3+"px",this.show=!0}}},{key:"mouseleave",value:function mouseleave(){this.show=!1,this.styles={left:"0px",top:"0px"}}}]),Poper}(k());__decorate([Prop()],Eo.prototype,"poperStyle",void 0),__decorate([Prop()],Eo.prototype,"selected",void 0),__decorate([Prop()],Eo.prototype,"title",void 0),__decorate([Prop()],Eo.prototype,"svg",void 0),__decorate([Prop({default:"bottom"})],Eo.prototype,"placement",void 0),__decorate([Prop({default:""})],Eo.prototype,"name",void 0),Eo=__decorate([ae({name:"Poper",components:{Title:Co}})],Eo);var So=Eo,To=So,ko=normalizeComponent(To,Popervue_type_template_id_0f8bfa37_render,mo,!1,null,null,null),Io=ko.exports,Mo=Io,No=function(l){(0,Y.Z)(HoFooter,l);var u=(0,ee.Z)(HoFooter);function HoFooter(){var l;return(0,q.Z)(this,HoFooter),l=u.apply(this,arguments),l.docType="",l.docName="",l.userNames="",l.historyTime="",l}return(0,$.Z)(HoFooter,[{key:"docPropertyChange",value:function docPropertyChange(l){this.setDocProperty(l)}},{key:"mounted",value:function mounted(){this.setDocProperty(this.docProperty)}},{key:"setDocProperty",value:function setDocProperty(l){this.docName=null===l||void 0===l?void 0:l.title,this.userNames=null===l||void 0===l?void 0:l.lastEditorName,this.historyTime=null===l||void 0===l?void 0:l.lastEditTime}}]),HoFooter}(k());__decorate([Prop()],No.prototype,"drawPages",void 0),__decorate([Prop()],No.prototype,"currentActivePages",void 0),__decorate([Prop()],No.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],No.prototype,"docProperty",void 0),__decorate([Watch("docProperty",{deep:!0})],No.prototype,"docPropertyChange",null),No=__decorate([ae({name:"HoFooter",components:{Poper:Mo}})],No);var Oo=No,Lo=Oo,Ao=normalizeComponent(Lo,HoFootervue_type_template_id_5908306a_scoped_true_render,go,!1,null,"5908306a",null),Ro=Ao.exports,ControlModalvue_type_template_id_1b898d58_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"toolModals",staticClass:"control-modal",on:{mousedown:l.toolModalDown}},["barcode"===l.controlType?_("Barcode",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose}}):l._e(),"qrcode"===l.controlType?_("QrCode",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose}}):l._e(),"express"===l.controlType?_("ExpressionForm",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController,controlStatus:l.controlStatus,controlProperty:l.controlProperty},on:{closed:l.handleClose}}):l._e(),"text"===l.controlType?_("TextDialog",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose},scopedSlots:l._u([{key:"hoTextFieldModal",fn:function(){return[l._t("hoTextModal")]},proxy:!0}],null,!0)}):l._e(),"date"===l.controlType?_("DateDialog",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose},scopedSlots:l._u([{key:"hoDateFieldModal",fn:function(){return[l._t("hoDateModal")]},proxy:!0},{key:"hoTextFieldModal",fn:function(){return[l._t("hoTextModal")]},proxy:!0}],null,!0)}):l._e(),"select"===l.controlType?_("SelectDialog",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"gestation"===l.controlType?_("Gestation",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"table"===l.controlType?_("TableProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"table-row"===l.controlType?_("TableRowProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"table-cell"===l.controlType?_("TableCellProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"table-col"===l.controlType?_("TableColProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),l.isCustoms?_("CustomAttributes",{attrs:{isTableProperty:l.isTableProperty},on:{closed:l.handleClose}}):l._e(),l.isDataSource?_("DataSourceDialog",{on:{closed:l.handleClose}}):l._e(),l.isListStyle?_("ListSource",{on:{closed:l.handleClose}}):l._e(),"RadioBox"===l.controlType||"CheckBox"===l.controlType?_("RadioCheckbox",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId,controlProperty:l.controlProperty},on:{closed:l.handleClose}}):l._e(),"waterset"===l.controlType?_("WaterSetDialog",{attrs:{vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"comment"===l.controlType?_("CommentDialog",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus},on:{insertComments:l.insertComments,closed:l.handleClose},scopedSlots:l._u([{key:"hoCommentModal",fn:function(){return[l._t("hoComment")]},proxy:!0}],null,!0)}):l._e(),"pageInfoes"===l.controlType?_("PageInfoes",{attrs:{vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"delimiter"===l.controlType?_("Delimiter",{attrs:{vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"sign"===l.controlType?_("Sign",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"upload-image"===l.controlType?_("UploadImageDialog",{attrs:{uploadImageParams:l.uploadImageParams,vueController:l.vueController,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"edit-image"===l.controlType?_("CanvasImageDialog",{attrs:{vueController:l.vueController,hoEditorFactoryId:l.hoEditorFactoryId,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"paragraph"===l.controlType?_("ParagraphDialog",{attrs:{vueController:l.vueController,controlProperty:l.controlProperty,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose},scopedSlots:l._u([{key:"hoParagraph",fn:function(){return[l._t("hoParagraphModal")]},proxy:!0}],null,!0)}):l._e()],1)},Fo=[],SelectDialogvue_type_template_id_62e16cb5_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("下拉框")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.innerIdentifier,callback:function(u){l.innerIdentifier=u},expression:"innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.dataMetaIdentifier,callback:function(u){l.dataMetaIdentifier=u},expression:"dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.identifierFormat,callback:function(u){l.identifierFormat=u},expression:"identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:l.name,callback:function(u){l.name=u},expression:"name"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:l.tipText,callback:function(u){l.tipText=u},expression:"tipText"}})],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{model:{value:l.isReadOnly,callback:function(u){l.isReadOnly=u},expression:"isReadOnly"}},[l._v("内容只读")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{model:{value:l.isAllowDelete,callback:function(u){l.isAllowDelete=u},expression:"isAllowDelete"}},[l._v("允许删除")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{on:{change:l.allowMultiSelectChange},model:{value:l.allowMultiSelect,callback:function(u){l.allowMultiSelect=u},expression:"allowMultiSelect"}},[l._v("允许多选")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{model:{value:l.readType,callback:function(u){l.readType=u},expression:"readType"}},[l._v("自动回填")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{attrs:{disabled:!l.allowMultiSelect},model:{value:l.mutexSelect,callback:function(u){l.mutexSelect=u},expression:"mutexSelect"}},[l._v("选项互斥")])],1)]),_("li",{staticClass:"control-item"},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.downListContent,height:"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.type,callback:function(_){l.$set(u.row,"type",_)},expression:"scope.row.type"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return[u.row.default?_("span",{staticClass:"tags"},[l._v("默认")]):l._e(),u.row.default?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.cancelDefault(u.row.id)}}},[l._v("取消")]):l._e(),!u.row.default&&u.row.text?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.setDefault(u.row.id)}}},[l._v("设为默认")]):l._e(),u.$index!==l.downListContent.length-1&&l.focusIndexs===u.$index?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")]):l._e()]}}])})],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},jo=[],Bo=function(l){(0,Y.Z)(SelectDialog,l);var u=(0,ee.Z)(SelectDialog);function SelectDialog(){var l;return(0,q.Z)(this,SelectDialog),l=u.apply(this,arguments),l.focusIndexs=-1,l.id="",l.name="",l.text="",l.title="下拉选择框",l.tipText="",l.isAllowDelete=!1,l.isReadOnly=!1,l.mutexSelect=!1,l.allowMultiSelect=!1,l.innerIdentifier="",l.dataMetaIdentifier="",l.identifierFormat="",l.readType=!1,l.keyValue="",l.customProperty={},l.errorArr=[],l.errorIndex=[],l.animationClassNames="control-modal-contents select-modal animation-in",l}return(0,$.Z)(SelectDialog,[{key:"created",value:function created(){var l=this,u=this.getKeyId(0),_=[{value:"",text:"",type:0,id:u,default:!1}];if("update"===this.controlStatus){var v=this.getSelectNode();this.id=v.id,this.name=v.name,this.text=v.text,this.title=v.title,this.tipText=v.tipText,this.isAllowDelete=v.isAllowDelete,this.isReadOnly=v.isReadOnly,this.mutexSelect=v.mutexSelect,this.allowMultiSelect=v.allowMultiSelect;var C=[];v.downListContent&&(C=v.downListContent),this.readType=1==v.readType,this.downListContent=[].concat((0,U.Z)(C),_),this.downListContent=(0,U.Z)(this.downListContent.map((function(u,_){return void 0===u.id&&(u.id=l.getKeyId(_)),u}))),this.innerIdentifier=v.innerIdentifier,this.dataMetaIdentifier=v.dataMetaIdentifier,this.identifierFormat=v.identifierFormat,this.keyValue=v.keyValue,this.customProperty=v.customProperty}else this.id=this.vueController.generateID("DL"),this.downListContent=[].concat(_)}},{key:"getSelectNode",value:function getSelectNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof Ft.yF&&(u=C),u}},{key:"allowMultiSelectChange",value:function allowMultiSelectChange(){this.allowMultiSelect||(this.mutexSelect=!1)}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.downListContent[l];if(""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.downListContent.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.downListContent.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0)this.errorIndex.includes(u.id)||this.errorIndex.push(u.id);else{this.errorIndex=[];var _=this.downListContent.filter((function(l){if(""===(null===l||void 0===l?void 0:l.value.replace(/\s*/g,""))&&""===(null===l||void 0===l?void 0:l.text.replace(/\s*/g,"")))return l}));0===_.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(l){var u=this,_=this.downListContent[l];this.errorArr=(0,U.Z)(this.downListContent.filter((function(l){if(l.text===(null===_||void 0===_?void 0:_.text)&&l.id!==(null===_||void 0===_?void 0:_.id))return l})));var v=(0,U.Z)(this.downListContent.filter((function(l){if(!l.text&&!l.value)return l})));this.errorArr.length>0?(this.errorIndex.includes(_.id)||this.errorIndex.push(_.id),v.forEach((function(l){u.deleteCurrentRow(l.id)}))):(this.errorIndex=[],0===v.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(l){var u=this;this.downListContent=(0,U.Z)(this.downListContent.map((function(_){return _.id===l?""!==_.text.replace(/\s*/g,"")&&(_.default=!0):u.allowMultiSelect||(_.default=!1),_})))}},{key:"cancelDefault",value:function cancelDefault(l){this.downListContent=(0,U.Z)(this.downListContent.map((function(u){return u.id===l&&(u.default=!1),u})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.downListContent.filter((function(_,v){_.id===l&&(u=v)})),this.downListContent.splice(u,1)}},{key:"arrToObject",value:function arrToObject(){var l={};return this.downListContent.map((function(u){var _=u;l[_.text]=_.value})),l}},{key:"sure",value:function sure(){var l=this;if(0!==this.errorArr.length)return!1;var u=this.downListContent.filter((function(l){if(l.text||l.value)return l})),_=[],v="";this.downListContent.forEach((function(l,u){l.default&&(_.push(l.text),v+=l.id+",")})),this.text=_.join(","),""===this.text&&(this.name?this.text=this.name:this.text="请选择");var C={id:this.id,name:this.name,text:this.text,keyValue:v,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};C.readType?C.readType=1:C.readType=0,"add"===this.controlStatus?this.vueController.insertDownList("add",JSON.stringify(C),u):"update"===this.controlStatus&&this.vueController.updateDownList(JSON.stringify(C),u),this.$nextTick((function(){return l.handleClose()}))}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents select-modal animation-out",this.$emit("closed")}}]),SelectDialog}(k());__decorate([Prop()],Bo.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Bo.prototype,"controlStatus",void 0),__decorate([Prop()],Bo.prototype,"vueController",void 0),Bo=__decorate([ae({name:"SelectDialog"})],Bo);var Uo=Bo,Ho=Uo,Wo=normalizeComponent(Ho,SelectDialogvue_type_template_id_62e16cb5_scoped_true_render,jo,!1,null,"62e16cb5",null),qo=Wo.exports,zo=qo,DateDialogvue_type_template_id_f39033d6_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("日期时间")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("tabs",{attrs:{tabKey:l.textActiveName}},[_("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.innerIdentifier,callback:function(u){l.innerIdentifier=u},expression:"innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.dataMetaIdentifier,callback:function(u){l.dataMetaIdentifier=u},expression:"dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.identifierFormat,callback:function(u){l.identifierFormat=u},expression:"identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:l.name,callback:function(u){l.name=u},expression:"name"}})],1),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("输入样式")]),_("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:l.controlStyle,callback:function(u){l.controlStyle=u},expression:"controlStyle"}},l._l(l.dateFormatList,(function(l){return _("el-option",{key:l,attrs:{label:l,value:l}})})),1)],1)]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("日期时间")]),l.controlStyle.includes("MM")&&!l.controlStyle.includes("dd")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"month",placeholder:"选择月"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),l.controlStyle.includes("yyyy")&&!l.controlStyle.includes("MM")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"year",placeholder:"选择年"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),l.controlStyle.includes("dd")&&l.controlStyle.includes("mm")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"datetime",format:l.controlStyle,placeholder:"日期时间"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),!l.controlStyle.includes("dd")&&l.controlStyle.includes("mm")?_("el-time-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"time",format:l.controlStyle,placeholder:"时间"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),!l.controlStyle.includes("mm")&&l.controlStyle.includes("dd")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"date",format:l.controlStyle,placeholder:"日期"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e()],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:l.tipText,callback:function(u){l.tipText=u},expression:"tipText"}})],1),_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{model:{value:l.isReadOnly,callback:function(u){l.isReadOnly=u},expression:"isReadOnly"}},[l._v("内容只读")])],1),_("div",{staticStyle:{margin:"0 0 0 20px"}},[_("el-checkbox",{model:{value:l.isAllowDelete,callback:function(u){l.isAllowDelete=u},expression:"isAllowDelete"}},[l._v("允许删除")])],1),_("div",{staticClass:"control-item",staticStyle:{"margin-left":"20px"}},[_("el-checkbox",{model:{value:l.readType,callback:function(u){l.readType=u},expression:"readType"}},[l._v("自动回填")])],1)])])]),l._t("hoTextFieldModal")],2)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Vo=[],Tabvue_type_template_id_7c6c4d81_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"ho-toolbar"},[_("ul",{staticClass:"main-bar"},[l._l(l.navList,(function(u){return _("li",{key:u.name,class:{selected:u.name===l.currentValue},on:{click:function(_){return l.handleChange(l.currentValue,u.name)}}},[l._v(" "+l._s(u.label)+" ")])})),_("li",{staticClass:"tabs-active-bar",style:l.activeBarStyle})],2),_("div",{staticClass:"sub-bar-box"},[l._t("default")],2)])},Ko=[],$o={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(l){return"TabPane"===l.$options.name}))},updateNav:function updateNav(){var l=this;this.navList=[],this.getTabs().forEach((function(u,_){!1!==u.isShow&&(l.navList.push({label:u.label,name:u.name||_}),u.name||(u.name=_))})),this.currentValue||(this.currentValue=this.navList[0].name),this.updateStatus()},updateStatus:function updateStatus(){var l=this,u=this.getTabs();u.forEach((function(u){var _=u.name===l.currentValue;return u.show=_,u.show}))},handleChange:function handleChange(l,u){var _=this;this.currentValue=u,this.$emit("tabClick",l,u),this.$nextTick((function(){var l=0,u=0;if(event){var v=event.target.parentNode;if("main-bar"===v.className){var C=Array.from(v.childNodes);C.forEach((function(_){var v=_.className;"selected"!==v&&"tabs-active-bar"!==v&&0===l&&(u+=_.offsetWidth),"selected"===v&&(l=_.offsetWidth)})),_.activeBarStyle={left:u+"px",width:l+"px"}}}}))}},watch:{tabKey:function tabKey(l){this.currentValue=l},currentValue:function currentValue(l,u){var _=this;this.updateStatus(),setTimeout((function(){_.$emit("updateTabKey",_.currentValue)}),0)}}},Go=$o,Zo=normalizeComponent(Go,Tabvue_type_template_id_7c6c4d81_render,Ko,!1,null,null,null),Jo=Zo.exports,Xo={name:"DateDialog",components:{Tabs:Jo},data:function data(){return{dateFormat:Lt.vc,dateFormatList:Lt.eG,textActiveName:"first",customPropertys:{},customPropertyValue:new Object,id:"",name:"",text:"",title:"日期时间",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:"yyyy/MM/dd",innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,animationClassNames:"control-modal-contents date-modal animation-in"}},props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0},vueController:{type:Object,required:!0}},inject:["getCustomProperty"],computed:{customProperty:function customProperty(){return this.getCustomProperty()}},created:function created(){var l=this;if("update"===this.controlStatus){var u=this.getDateNode();this.id=u.id,this.name=u.name,this.text=u.text&&u.text!==u.controlStyle&&u.text!==u.name?this.stringToDate(u.text,u.controlStyle):"",this.title=u.title,this.tipText=u.tipText,this.isAllowDelete=u.isAllowDelete,this.isReadOnly=u.isReadOnly,this.controlStyle=u.controlStyle,this.innerIdentifier=u.innerIdentifier,this.dataMetaIdentifier=u.dataMetaIdentifier,this.identifierFormat=u.identifierFormat,this.readType=1===u.readType,(0,Ui.Kn)(u.customProperty)?this.customPropertys=u.customProperty:this.customPropertys=new Object;var _=new Object;Object.keys(this.customPropertys).forEach((function(u){_[u]=l.customPropertys[u]})),this.customPropertyValue=_objectSpread2({},_)}else this.id=this.vueController.generateID("DT")},methods:{getDateNode:function getDateNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof Rt.Z&&(u=C),u},querySearch:function querySearch(l,u){u(Lt.dv)},stringToDate:function stringToDate(l,u){var _="",v="",C="";return u.includes("yyyy")&&u.includes("mm")?l&&(_=l.split(" ")[0],v=l.split(" ")[1]):(u.includes("yyyy")&&(_=l),u.includes("mm")&&(v=l)),_&&(_=_.replace(/[^\d]/g,"/").substr(0,10)),v&&(v=v.replace(/[^\d]/g,":").substr(0,8)),_?(C=_,v&&(C+=" "+v.replace(/[^\d]/g,":").substr(0,8))):C=v.replace(/[^\d]/g,":").substr(0,8),C},sure:function sure(){var l=this,u={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)};u.readType?u.readType=1:u.readType=0,"add"===this.controlStatus?this.vueController.insertDateTime(this.controlStatus,JSON.stringify(u)):"update"===this.controlStatus&&this.vueController.updateDateTime(JSON.stringify(u)),this.$nextTick((function(){return l.handleClose()}))},handleClose:function handleClose(){this.animationClassNames="control-modal-contents date-modal animation-out",this.$emit("closed")}}},Yo=Xo,Qo=normalizeComponent(Yo,DateDialogvue_type_template_id_f39033d6_render,Vo,!1,null,null,null),ta=Qo.exports,ia=ta,BarCodesvue_type_template_id_5569452d_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("条形码")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("条形码内容")]),_("el-input",{attrs:{size:"mini",placeholder:"条形码内容不能为空",maxlength:"20","show-word-limit":""},on:{input:l.codeChange},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("是否显示文本")]),_("el-checkbox",{on:{change:l.codeChange},model:{value:l.isDisplayText,callback:function(u){l.isDisplayText=u},expression:"isDisplayText"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1),_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{staticClass:"bar-code"},[_("img",{directives:[{name:"show",rawName:"v-show",value:l.textContent&&!l.textField,expression:"textContent && !textField"}],ref:"barcode",attrs:{id:"barcode"}}),_("span",{directives:[{name:"show",rawName:"v-show",value:l.textContent&&l.textField,expression:"textContent && textField"}]},[l._v(l._s(l.textField))])])])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},oa=[],_a=(__webpack_require__(77601),__webpack_require__(55961)),pa=__webpack_require__.n(_a),ya={name:"Barcode",props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0}},inject:["setIsDataSource","getDataSource","setDataSource"],data:function data(){return{id:"",textContent:"",barCodeStyle:"CODE39",textAlign:"center",isDisplayText:!1,stripWidth:2,textField:"",textEslint:/^[a-zA-Z0-9_]+$/,animationClassNames:"control-modal-contents barcode-modal animation-in",barcode:null,dataSource:null}},created:function created(){var l=this;if("update"===this.controlStatus){var u=this.getBarCodeNode();this.id=u.id,this.textContent=u.textContent,this.isDisplayText=u.isDisplayText,this.$nextTick((function(){return l.codeChange()}))}else this.id=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController.generateID("BC")},mounted:function mounted(){this.barcode=this.$refs.barcode},methods:{getBarCodeNode:function getBarCodeNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof hi.T&&(u=C),u},codeChange:function codeChange(){if(this.textField="",this.textEslint.test(this.textContent)){var l=38;this.isDisplayText&&(l=24),pa()("#barcode",this.textContent,{format:"",width:2,textAlign:"textAlign",text:this.textContent,fontSize:14,margin:0,height:l,textPosition:"bottom",textMargin:0,font:"宋体",displayValue:this.isDisplayText})}else this.textField=""},sure:function sure(){var l=[this.barcode.naturalWidth,this.barcode.naturalHeight],u=l[0],_=l[1],v=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController;this.dataSource=this.getDataSource(),"add"===this.controlStatus?v.insertBarcode(this.controlStatus,this.id,this.textContent,this.isDisplayText,this.barcode.src,u,_,JSON.stringify(this.dataSource)):"update"===this.controlStatus&&v.updateBarcode(this.id,this.textContent,this.isDisplayText,this.barcode.src,u,_,JSON.stringify(this.dataSource)),this.handleClose()},openDataSourceModal:function openDataSourceModal(){this.setIsDataSource(!0)},handleClose:function handleClose(){this.animationClassNames="control-modal-contents barcode-modal animation-out",this.$emit("closed")}}},ba=ya,Ca=normalizeComponent(ba,BarCodesvue_type_template_id_5569452d_render,oa,!1,null,null,null),Ea=Ca.exports,Da=Ea,QrCodevue_type_template_id_368e4a4c_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("二维码")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("文本内容")]),_("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:4,maxRows:8},clearable:"",placeholder:"文本内容",maxlength:"256","show-word-limit":""},on:{input:l.codeChange},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("宽(高)")]),_("el-input-number",{attrs:{controls:!1,size:"mini",autocomplete:"off"},on:{change:l.qrSizeChange},model:{value:l.size,callback:function(u){l.size=u},expression:"size"}}),_("span",{staticStyle:{padding:"0 20px 0 10px"}},[l._v("px")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("纠错能力")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.correctLevel,callback:function(u){l.correctLevel=u},expression:"correctLevel"}},[_("el-option",{attrs:{label:"L: 7%的字码可被修正",value:"L"}}),_("el-option",{attrs:{label:"M: 15%的字码可被修正",value:"M"}}),_("el-option",{attrs:{label:"Q: 25%的字码可被修正",value:"Q"}}),_("el-option",{attrs:{label:"H: 30%的字码可被修正",value:"H"}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)]),_("div",{staticClass:"section-right"},[_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{ref:"hoQrcode",style:l.qrCanvasBoxStyle,attrs:{id:"qrcode"}})])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},ka=[],Ma=__webpack_require__(56239),Na=function(l){(0,Y.Z)(QrCodeDialog,l);var u=(0,ee.Z)(QrCodeDialog);function QrCodeDialog(){var l;return(0,q.Z)(this,QrCodeDialog),l=u.apply(this,arguments),l.id="",l.textContent="",l.correctLevel="M",l.size=80,l.animationClassNames="control-modal-contents qrcode-modal animation-in",l.qrCanvasBoxStyle={width:"170px",height:"170px"},l}return(0,$.Z)(QrCodeDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"mounted",value:function mounted(){var l=this;if("update"===this.controlStatus){var u=this.getQrcodeNode();this.id=u.id,this.textContent=u.textContent,this.correctLevel=u.correctLevel,setTimeout((function(){return l.codeChange()}),100)}else this.id=this.vueController.generateID("QC")}},{key:"getQrcodeNode",value:function getQrcodeNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof _i.d&&(u=C),u}},{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 l=(0,Ma.tZ)({data:this.textContent,size:this.size>400?400:this.size,correctLevel:this.correctLevel});this.hoQrcode.innerHTML="",this.hoQrcode.appendChild(l)}}},{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}(k());__decorate([Prop()],Na.prototype,"vueController",void 0),__decorate([Ref()],Na.prototype,"hoQrcode",void 0),__decorate([Inject("setIsDataSource")],Na.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Na.prototype,"getDataSource",void 0),__decorate([Prop()],Na.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Na.prototype,"controlStatus",void 0),Na=__decorate([ae({name:"QrCodeDialog"})],Na);var La=Na,ja=La,Ba=normalizeComponent(ja,QrCodevue_type_template_id_368e4a4c_render,ka,!1,null,null,null),Ua=Ba.exports,Wa=Ua,TextDialogvue_type_template_id_52be23a2_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("文本域")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("tabs",{attrs:{tabKey:l.textActiveName}},[_("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("类型")]),_("el-radio",{attrs:{disabled:"update"===l.controlStatus,size:"small",label:0},model:{value:l.textParam.inputFieldType,callback:function(u){l.$set(l.textParam,"inputFieldType",u)},expression:"textParam.inputFieldType"}},[l._v("直接输入文本数据")]),_("el-radio",{attrs:{disabled:"update"===l.controlStatus,size:"small",label:1},model:{value:l.textParam.inputFieldType,callback:function(u){l.$set(l.textParam,"inputFieldType",u)},expression:"textParam.inputFieldType"}},[l._v("下拉列表方式")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.textParam.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.textParam.innerIdentifier,callback:function(u){l.$set(l.textParam,"innerIdentifier",u)},expression:"textParam.innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.textParam.dataMetaIdentifier,callback:function(u){l.$set(l.textParam,"dataMetaIdentifier",u)},expression:"textParam.dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.textParam.identifierFormat,callback:function(u){l.$set(l.textParam,"identifierFormat",u)},expression:"textParam.identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:l.textParam.name,callback:function(u){l.$set(l.textParam,"name",u)},expression:"textParam.name"}})],1),_("li",{staticClass:"line"}),0===l.textParam.inputFieldType?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("文本内容")]),_("el-input",{attrs:{disabled:"update"===l.controlStatus,size:"mini",placeholder:"文本内容"},model:{value:l.textParam.text,callback:function(u){l.$set(l.textParam,"text",u)},expression:"textParam.text"}})],1):l._e(),1===l.textParam.inputFieldType?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("下拉列表")]),_("el-input",{attrs:{size:"mini",disabled:!0,placeholder:"下拉列表项"},model:{value:l.textParam.downListProperty.source,callback:function(u){l.$set(l.textParam.downListProperty,"source",u)},expression:"textParam.downListProperty.source"}}),_("el-button",{attrs:{size:"mini"},on:{click:function(u){return u.stopPropagation(),l.openListArrModel.apply(null,arguments)}}},[l._v("浏览")])],1):l._e(),1===l.textParam.inputFieldType?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("是否多选")]),_("div",{staticStyle:{width:"40%"}},[_("el-checkbox",{on:{change:l.allowMultiSelectChange},model:{value:l.textParam.downListProperty.allowMultiSelected,callback:function(u){l.$set(l.textParam.downListProperty,"allowMultiSelected",u)},expression:"textParam.downListProperty.allowMultiSelected"}},[l._v("允许多选")]),_("el-checkbox",{model:{value:l.textParam.downListProperty.mutexSelect,callback:function(u){l.$set(l.textParam.downListProperty,"mutexSelect",u)},expression:"textParam.downListProperty.mutexSelect"}},[l._v("选项互斥")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"60px"}},[l._v("分隔符")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:l.textParam.downListProperty.splitCharacter,callback:function(u){l.$set(l.textParam.downListProperty,"splitCharacter",u)},expression:"textParam.downListProperty.splitCharacter"}},[_("el-option",{attrs:{label:",",value:","}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"-",value:"-"}}),_("el-option",{attrs:{label:"\\",value:"\\"}})],1)],1)]):l._e(),_("li",{staticClass:"line"}),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{type:"textarea",size:"mini",placeholder:"提示文本"},model:{value:l.textParam.tipText,callback:function(u){l.$set(l.textParam,"tipText",u)},expression:"textParam.tipText"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内容只读状态")]),_("el-select",{staticStyle:{"text-align":"left"},attrs:{placeholder:"请选择",size:"mini"},model:{value:l.textParam.readOnlyStatus,callback:function(u){l.$set(l.textParam,"readOnlyStatus",u)},expression:"textParam.readOnlyStatus"}},[_("el-option",{attrs:{label:"继承父元素",value:2}}),_("el-option",{attrs:{label:"是",value:0}}),_("el-option",{attrs:{label:"否",value:1}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("固定宽度")]),_("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:l.textParam.fixedWidth,callback:function(u){l.$set(l.textParam,"fixedWidth",u)},expression:"textParam.fixedWidth"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("厘米")])],1),_("li",{staticClass:"line"}),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.canModifyContent,callback:function(u){l.$set(l.textParam,"canModifyContent",u)},expression:"textParam.canModifyContent"}},[l._v("用户可以直接编辑修改内容")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.isAllowDelete,callback:function(u){l.$set(l.textParam,"isAllowDelete",u)},expression:"textParam.isAllowDelete"}},[l._v("允许被删除")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.enableGlobalColor,callback:function(u){l.$set(l.textParam,"enableGlobalColor",u)},expression:"textParam.enableGlobalColor"}},[l._v("启用全局文本颜色")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.alignWithBlocked,callback:function(u){l.$set(l.textParam,"alignWithBlocked",u)},expression:"textParam.alignWithBlocked"}},[l._v("文本域中的段落使用块对齐(诊断专用)")])],1),_("div",{staticClass:"control-item",staticStyle:{"margin-left":"38px"}},[_("el-checkbox",{model:{value:l.textParam.readType,callback:function(u){l.$set(l.textParam,"readType",u)},expression:"textParam.readType"}},[l._v("自动回填")])],1)])])]),_("tab-pane",{attrs:{label:"其他属性",notHover:!1,name:"third"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)])]),l._t("hoTextFieldModal")],2)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},za=[],Va=function(l){(0,Y.Z)(TextDialog,l);var u=(0,ee.Z)(TextDialog);function TextDialog(){var l;return(0,q.Z)(this,TextDialog),l=u.apply(this,arguments),l.textParam=Object.assign({},Ht),l.textActiveName="first",l.isMinLenth=!1,l.isMaxLenth=!1,l.isMin=!1,l.isMax=!1,l.animationClassNames="control-modal-contents text-modal animation-in",l.customPropertyValue=new Object,l.endPath="",l}return(0,$.Z)(TextDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"customsValue",get:function get(){return this.getCustomsValue().filter((function(l){if(l.text||l.value)return l}))}},{key:"listArrSource",get:function get(){return this.getListArrSource()}},{key:"customProperty",get:function get(){return this.getCustomProperty()}},{key:"created",value:function created(){var l=this,u=rt.b.instance().getFactory(this.hoEditorFactoryId);if(this.endPath=u.docTree.curDomRange.normalize().endPath,"update"===this.controlStatus){var _=this.getTextNode();if(Object.keys(this.textParam).forEach((function(u){var v=u.replace(/_/g,"");if(Object.prototype.hasOwnProperty.call(l.textParam,v))if("readOnlyStatus"===v)l.textParam.readOnlyStatus=Number(_.readOnlyStatus);else if("customProperty"===v){(0,Ui.Kn)(_[v])?l.textParam.customProperty=_.customProperty:l.textParam.customProperty=new Object;var C=new Object;Object.keys(l.textParam.customProperty).forEach((function(u){C[u]=l.textParam.customProperty[u]})),l.customPropertyValue=_objectSpread2({},C)}else"readType"===v?l.textParam.readType=1==_.readType:l.textParam[v]=_[v]})),1===this.textParam.inputFieldType){var v=this.textParam.downListProperty.listItems,C=v?JSON.parse(v):[];this.setListStyle(C,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 l,u,_=null===(l=this.vueController.findNodebyPath(this.endPath))||void 0===l?void 0:l.node;if(_ instanceof $t.j||_ instanceof Bt.re){var v=_.parentNode;u=v instanceof Bt.re?v:_}else if(_ instanceof Gt.R){var C=_.parentNode;C instanceof Bt.re&&(u=C)}return u}},{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(l){}},{key:"maxLengthChange",value:function maxLengthChange(l){}},{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 l=[];this.getListStyle().forEach((function(u){u.default&&l.push(u.text)})),this.textParam.text=l.join(",");var u="";this.getListStyle().forEach((function(l,_){l.default&&(u+=l.id+",")})),this.textParam.keyValue=u}else this.textParam.downListProperty=new Bt.OL;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}(k());__decorate([Ref()],Va.prototype,"barcode",void 0),__decorate([Prop()],Va.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Va.prototype,"controlStatus",void 0),__decorate([Prop()],Va.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],Va.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Va.prototype,"getDataSource",void 0),__decorate([Inject("setIsCustoms")],Va.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Va.prototype,"getCustomsValue",void 0),__decorate([Inject("setListAllowMultiSelected")],Va.prototype,"setListAllowMultiSelected",void 0),__decorate([Inject("setIsListStyle")],Va.prototype,"setIsListStyle",void 0),__decorate([Inject("getListStyle")],Va.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],Va.prototype,"getListArrSource",void 0),__decorate([Inject("setListStyle")],Va.prototype,"setListStyle",void 0),__decorate([Inject("getCustomProperty")],Va.prototype,"getCustomProperty",void 0),Va=__decorate([ae({name:"TextDialog",components:{Tabs:Jo}})],Va);var Ka=Va,Za=Ka,Ja=normalizeComponent(Za,TextDialogvue_type_template_id_52be23a2_render,za,!1,null,null,null),Ya=Ja.exports,es=Ya,ExpressionFormvue_type_template_id_cc393f74_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v(l._s(l.names[l.expressStyle]))]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.cancel}})]),_("section",{staticClass:"expression-form"},["style1"===l.expressStyle?[_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1),_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"line style1-line"}),_("div",{staticClass:"expression-item"},[_("span",[l._v("末次月经/绝经年龄")]),l.isUseDate?_("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:l.useDateFormat,"value-format":l.useDateFormat,placeholder:"日期"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}}):l._e(),l.isUseDate?l._e():_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}})],1)]),_("div",{staticClass:"expression-item"},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)]:l._e(),"style2"===l.expressStyle?[_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1)]),_("div",{staticClass:"line style21-line"}),_("div",{staticClass:"line style22-line"}),_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("末次月经/绝经年龄")]),l.isUseDate?_("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:l.useDateFormat,"value-format":l.useDateFormat,placeholder:"日期"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}}):l._e(),l.isUseDate?l._e():_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}})],1),_("div",{staticClass:"expression-item"},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)])]:l._e(),"style3"===l.expressStyle?[_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1),_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"line style31-line"}),_("div",{staticClass:"line style32-line"}),_("div",{staticClass:"expression-item",staticStyle:{"margin-left":"73px"}},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)]),_("div",{staticClass:"expression-item"},[_("span",[l._v("末次月经/绝经年龄")]),l.isUseDate?_("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:l.useDateFormat,"value-format":l.useDateFormat,placeholder:"日期"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}}):l._e(),l.isUseDate?l._e():_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}})],1)]:l._e(),"style4"===l.expressStyle?_("div",{staticClass:"style4"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"line style41-line"}),_("div",{staticClass:"expression-style4"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1),_("div",{staticClass:"line style42-line"}),_("div",{staticClass:"expression-item"},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)])]):l._e(),"style1"===l.expressStyle||"style2"===l.expressStyle||"style3"===l.expressStyle?[_("div",{staticClass:"express-date-items"},[_("el-checkbox",{on:{change:l.useDateChange},model:{value:l.isUseDate,callback:function(u){l.isUseDate=u},expression:"isUseDate"}},[l._v("使用日期")])],1),l.isUseDate?_("div",{staticClass:"express-date-items"},[_("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:l.dateFormatChange},model:{value:l.useDateFormat,callback:function(u){l.useDateFormat=u},expression:"useDateFormat"}},[_("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),_("el-option",{attrs:{label:"yyyy/MM/dd",value:"yyyy/MM/dd"}}),_("el-option",{attrs:{label:"yyyy年MM月dd日",value:"yyyy年MM月dd日"}})],1)],1):l._e()]:l._e(),"style5"===l.expressStyle?[_("div",{staticClass:"expression-style5"},[_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value1,callback:function(u){l.$set(l.style567,"value1",u)},expression:"style567.value1"}}),_("div",{staticStyle:{width:"100px"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value2,callback:function(u){l.$set(l.style567,"value2",u)},expression:"style567.value2"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value3,callback:function(u){l.$set(l.style567,"value3",u)},expression:"style567.value3"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value4,callback:function(u){l.$set(l.style567,"value4",u)},expression:"style567.value4"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value5,callback:function(u){l.$set(l.style567,"value5",u)},expression:"style567.value5"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value6,callback:function(u){l.$set(l.style567,"value6",u)},expression:"style567.value6"}}),_("div",{staticStyle:{width:"100px"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value7,callback:function(u){l.$set(l.style567,"value7",u)},expression:"style567.value7"}})],1)]:l._e(),"style6"===l.expressStyle?[_("div",{staticClass:"expression-style5"},[_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value1,callback:function(u){l.$set(l.style567,"value1",u)},expression:"style567.value1"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value2,callback:function(u){l.$set(l.style567,"value2",u)},expression:"style567.value2"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value3,callback:function(u){l.$set(l.style567,"value3",u)},expression:"style567.value3"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value4,callback:function(u){l.$set(l.style567,"value4",u)},expression:"style567.value4"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value5,callback:function(u){l.$set(l.style567,"value5",u)},expression:"style567.value5"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value6,callback:function(u){l.$set(l.style567,"value6",u)},expression:"style567.value6"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value7,callback:function(u){l.$set(l.style567,"value7",u)},expression:"style567.value7"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value8,callback:function(u){l.$set(l.style567,"value8",u)},expression:"style567.value8"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value9,callback:function(u){l.$set(l.style567,"value9",u)},expression:"style567.value9"}})],1)]:l._e(),"style7"===l.expressStyle?[_("div",{staticClass:"expression-style5 style7"},[_("div",{staticClass:"line style71-line"}),_("div",{staticClass:"line style72-line"}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value1,callback:function(u){l.$set(l.style567,"value1",u)},expression:"style567.value1"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value2,callback:function(u){l.$set(l.style567,"value2",u)},expression:"style567.value2"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value3,callback:function(u){l.$set(l.style567,"value3",u)},expression:"style567.value3"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value4,callback:function(u){l.$set(l.style567,"value4",u)},expression:"style567.value4"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value5,callback:function(u){l.$set(l.style567,"value5",u)},expression:"style567.value5"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value6,callback:function(u){l.$set(l.style567,"value6",u)},expression:"style567.value6"}})],1)]:l._e(),"style8"===l.expressStyle?[_("div",{staticClass:"style89"},[_("span",{staticClass:"pos-top"},[l._v("上颌")]),_("span",{staticClass:"pos-bottom"},[l._v("下颌")]),_("span",{staticClass:"pos-left"},[l._v("左")]),_("span",{staticClass:"pos-right"},[l._v("右")]),l._m(0),_("ul",[l._l(["8","7","6","5","4","3","2","1"],(function(u){return _("li",{key:u+"a"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topLeft,callback:function(u){l.$set(l.style89,"topLeft",u)},expression:"style89.topLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["1","2","3","4","5","6","7","8"],(function(u){return _("li",{key:u+"b"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topRight,callback:function(u){l.$set(l.style89,"topRight",u)},expression:"style89.topRight"}},[_("el-checkbox-button",{attrs:{size:"mini",label:u}})],1)],1)}))],2),_("ul",[l._l(["8","7","6","5","4","3","2","1"],(function(u){return _("li",{key:u+"c"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomLeft,callback:function(u){l.$set(l.style89,"bottomLeft",u)},expression:"style89.bottomLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["1","2","3","4","5","6","7","8"],(function(u){return _("li",{key:u+"d"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomRight,callback:function(u){l.$set(l.style89,"bottomRight",u)},expression:"style89.bottomRight"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)}))],2)])]:l._e(),"style9"===l.expressStyle?[_("div",{staticClass:"style89 style9"},[_("span",{staticClass:"pos-top"},[l._v("上颌")]),_("span",{staticClass:"pos-bottom"},[l._v("下颌")]),_("span",{staticClass:"pos-left"},[l._v("左")]),_("span",{staticClass:"pos-right"},[l._v("右")]),l._m(1),_("ul",[l._l(["V","IV","III","II","I"],(function(u){return _("li",{key:u+"a"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topLeft,callback:function(u){l.$set(l.style89,"topLeft",u)},expression:"style89.topLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["I","II","III","IV","V"],(function(u){return _("li",{key:u+"b"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topRight,callback:function(u){l.$set(l.style89,"topRight",u)},expression:"style89.topRight"}},[_("el-checkbox-button",{attrs:{size:"mini",label:u}})],1)],1)}))],2),_("ul",[l._l(["V","IV","III","II","I"],(function(u){return _("li",{key:u+"c"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomLeft,callback:function(u){l.$set(l.style89,"bottomLeft",u)},expression:"style89.bottomLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["I","II","III","IV","V"],(function(u){return _("li",{key:u+"d"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomRight,callback:function(u){l.$set(l.style89,"bottomRight",u)},expression:"style89.bottomRight"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)}))],2)])]:l._e()],2),_("footer",{staticClass:"dialog-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确 定")]),"style8"===l.expressStyle||"style9"===l.expressStyle?_("el-button",{attrs:{size:"small"},on:{click:l.reset}},[l._v("重 置")]):l._e(),"style8"===l.expressStyle||"style9"===l.expressStyle?_("el-button",{attrs:{size:"small"},on:{click:l.reverse}},[l._v("反 选")]):l._e(),"style8"===l.expressStyle||"style9"===l.expressStyle?_("el-button",{attrs:{size:"small"},on:{click:l.all}},[l._v("全 选")]):l._e(),_("el-button",{attrs:{size:"small"},on:{click:l.cancel}},[l._v("取 消")])],1)])},ts=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"titles"},[_("li",[l._v("第三磨牙")]),_("li",[l._v("第二磨牙")]),_("li",[l._v("第一磨牙")]),_("li",[l._v("第二前磨牙")]),_("li",[l._v("第一前磨牙")]),_("li",[l._v("尖牙")]),_("li",[l._v("侧切牙")]),_("li",[l._v("中切牙")]),_("li",[l._v("中切牙")]),_("li",[l._v("侧切牙")]),_("li",[l._v("尖牙")]),_("li",[l._v("第一前磨牙")]),_("li",[l._v("第二前磨牙")]),_("li",[l._v("第一磨牙")]),_("li",[l._v("第二磨牙")]),_("li",[l._v("第三磨牙")])])},function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"titles"},[_("li",[l._v("第二乳磨牙")]),_("li",[l._v("第一乳磨牙")]),_("li",[l._v("乳尖牙")]),_("li",[l._v("乳侧切牙")]),_("li",[l._v("乳中切牙")]),_("li",[l._v("乳中切牙")]),_("li",[l._v("乳侧切牙")]),_("li",[l._v("乳尖牙")]),_("li",[l._v("第一乳磨牙")]),_("li",[l._v("第二乳磨牙")])])}],rs={name:"ExpressionForm",data:function data(){return{animationClassNames:"control-modal-contents express-dialog animation-in",isUseDate:!1,useDateFormat:"yyyy-MM-dd",names:{style1:"经期史",style2:"经期史",style3:"经期史",style4:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"},menstrualHistory:{menseDays:"",cycleDays:"",menarcheAge:"14",menoPauseAge:"52"},style567:{value1:"1",value2:"2",value3:"3",value4:"4",value5:"5",value6:"6",value7:"7",value8:"8",value9:"9"},style89:{topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]},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"]},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"]},styleObjectArray:{style1:1,style2:1,style3:1,style4:1,style5:2,style6:2,style7:2,style8:3,style9:3}}},props:{controlProperty:{type:Object,required:!0},vueController:{type:Object,required:!0}},inject:["getUpdateNodeValue"],computed:{controlType:function controlType(){return this.controlProperty.controlType},controlStatus:function controlStatus(){return this.controlProperty.controlStatus},expressStyle:function expressStyle(){return this.controlProperty.expressStyle}},created:function created(){if("update"===this.controlStatus){var l=this.getUpdateNodeValue();if(1===this.styleObjectArray[this.expressStyle]){var u=l,_=/^[0-9]*$/,v=u[3];!_.test(v)&&v&&(this.isUseDate=!0,-1!==v.indexOf("-")?this.useDateFormat="yyyy-MM-dd":-1!==v.indexOf("/")?this.useDateFormat="yyyy/MM/dd":-1!==v.indexOf("年")&&(this.useDateFormat="yyyy年MM月dd日")),this.menstrualHistory={menseDays:u[0]?u[0].replace("天",""):"",cycleDays:u[1]?u[1].replace("天",""):"",menarcheAge:u[2]?u[2].replace("岁",""):"",menoPauseAge:v}}else if(2===this.styleObjectArray[this.expressStyle]){var C=l,k=(0,U.Z)(C);this.style567.value1=k[0],this.style567.value2=k[1],this.style567.value3=k[2],this.style567.value4=k[3],this.style567.value5=k[4],this.style567.value6=k[5],this.style567.value7=k[6],this.style567.value8=k[7],this.style567.value9=k[8]}else if(3===this.styleObjectArray[this.expressStyle]){var N=l,B=(0,U.Z)(N);this.style89.topLeft=B[0],this.style89.topRight=B[1],this.style89.bottomLeft=B[2],this.style89.bottomRight=B[3]}}},methods:{useDateChange:function useDateChange(){this.isUseDate?this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:""}):this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:"52"})},dateFormatChange:function dateFormatChange(){this.menstrualHistory.menoPauseAge&&(this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:(0,Lt.vc)(this.menstrualHistory.menoPauseAge,this.useDateFormat)}))},reset:function reset(){this.style89={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]}},all:function all(){"style8"===this.expressStyle&&(this.style89=Object.assign({},this.style8)),"style9"===this.expressStyle&&(this.style89=Object.assign({},this.style9))},reverse:function reverse(){this.reverseOrSort("reverse")},sureSort:function sureSort(){this.reverseOrSort("sort")},reverseOrSort:function reverseOrSort(l){var u=this,_={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]},v=[];"style8"===this.expressStyle?v=Object.assign({},this.style8):"style9"===this.expressStyle&&(v=Object.assign({},this.style9)),Object.keys(this.style89).map((function(C){v[C].map((function(v){return"reverse"===l?u.style89[C].includes(v)||_[C].push(v):"sort"===l&&(u.style89[C].includes(v)?_[C].push(v):_[C].push("")),v}))})),this.style89=Object.assign({},_)},objectToArray:function objectToArray(l){var u=[];return Object.keys(l).forEach((function(_){u.push(l[_])})),u},cancel:function cancel(){this.animationClassNames="control-modal-contents express-dialog animation-out",this.$emit("closed")},sure:function sure(){if(""===this.expressStyle||"style1"===this.expressStyle||"style2"===this.expressStyle||"style3"===this.expressStyle||"style4"===this.expressStyle){var l=/^[\u2E80-\u9FFF]+$/;l.test(this.menstrualHistory.menseDays)||(this.menstrualHistory.menseDays=this.menstrualHistory.menseDays+"天"),l.test(this.menstrualHistory.cycleDays)||(this.menstrualHistory.cycleDays=this.menstrualHistory.cycleDays+"天"),l.test(this.menstrualHistory.menarcheAge)||(this.menstrualHistory.menarcheAge=this.menstrualHistory.menarcheAge+"岁"),this.insertMenstrualHistory([this.controlStatus,this.expressStyle].concat((0,U.Z)(this.objectToArray(this.menstrualHistory))))}else"style5"===this.expressStyle?this.insertPupilMap([this.controlStatus].concat((0,U.Z)(this.objectToArray(this.style567)))):"style6"===this.expressStyle?this.insertLightLocation([this.controlStatus].concat((0,U.Z)(this.objectToArray(this.style567)))):"style7"===this.expressStyle?this.insertFetalHeartMap([this.controlStatus].concat((0,U.Z)(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()},insertMenstrualHistory:function insertMenstrualHistory(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5];"add"===_?this.vueController.insertMenstrualHistory(_,v,C,k,N,B):this.vueController.updateMenstrualHistory(v,C,k,N,B)},insertPupilMap:function insertPupilMap(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5],W=u[6],q=u[7];"add"===_?this.vueController.insertPupilMap(_,v,C,k,N,B,W,q):this.vueController.updatePupilMap(v,C,k,N,B,W,q)},insertLightLocation:function insertLightLocation(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5],W=u[6],q=u[7],$=u[8],Y=u[9];"add"===_?this.vueController.insertLightLocation(_,v,C,k,N,B,W,q,$,Y):this.vueController.updateLightLocation(v,C,k,N,B,W,q,$,Y)},insertFetalHeartMap:function insertFetalHeartMap(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5],W=u[6];"add"===_?this.vueController.insertFetalHeartMap(_,v,C,k,N,B,W):this.vueController.updateFetalHeartMap(v,C,k,N,B,W)},insertPermanentTeethMap:function insertPermanentTeethMap(l,u){var _=(0,U.Z)(u),v=_[0],C=_[1],k=_[2],N=_[3];"add"===l?this.vueController.insertPermanentTeethMap(l,v,C,k,N):this.vueController.updatePermanentTeethMap(v,C,k,N)},insertPrimaryTeethMap:function insertPrimaryTeethMap(l,u){var _=(0,U.Z)(u),v=_[0],C=_[1],k=_[2],N=_[3];"add"===l?this.vueController.insertPrimaryTeethMap(l,v,C,k,N):this.vueController.updatePrimaryTeethMap(v,C,k,N)}}},ns=rs,os=normalizeComponent(ns,ExpressionFormvue_type_template_id_cc393f74_scoped_true_render,ts,!1,null,"cc393f74",null),as=os.exports,ls=as,RadioCheckboxvue_type_template_id_5067453f_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:"control-modal-contents radio-checkbox-modal "+l.animationClassName,style:{width:1===l.boxGroup?"1060px":"500px"}},[_("header",{staticClass:"modal-title"},[_("span",[l._v(l._s("RadioBox"===l.controlType?"单选框":"复选框")+l._s(1===l.boxGroup?"组":""))]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("类型")]),_("el-radio",{attrs:{disabled:"update"===l.controlStatus,size:"small",label:1},model:{value:l.boxGroup,callback:function(u){l.boxGroup=u},expression:"boxGroup"}},[l._v("多项")]),_("el-radio",{staticStyle:{"margin-left":"30px"},attrs:{disabled:"update"===l.controlStatus,size:"small",label:0},model:{value:l.boxGroup,callback:function(u){l.boxGroup=u},expression:"boxGroup"}},[l._v("单项")])],1),1===l.boxGroup?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:l.groupName,callback:function(u){l.groupName=u},expression:"groupName"}})],1):l._e(),1===l.boxGroup?_("li",{staticClass:"control-item",staticStyle:{padding:"0"}},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.radioCheckBoxGroup,height:"300px"}},[_("el-table-column",{attrs:{label:"文本",width:"160"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}],null,!1,4204152597)}),_("el-table-column",{attrs:{label:"提示文本",width:"100"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:u.row.tipText,callback:function(_){l.$set(u.row,"tipText",_)},expression:"scope.row.tipText"}})]}}],null,!1,2396764658)}),_("el-table-column",{attrs:{label:"数值",width:"80"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:u.row.numericValue,callback:function(_){l.$set(u.row,"numericValue",_)},expression:"scope.row.numericValue"}})]}}],null,!1,3789767535)}),_("el-table-column",{attrs:{label:"内部标识符",width:"120"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"内部标识符"},model:{value:u.row.innerIdentifier,callback:function(_){l.$set(u.row,"innerIdentifier",_)},expression:"scope.row.innerIdentifier"}})]}}],null,!1,1119088692)}),_("el-table-column",{attrs:{label:"数据元标识符",width:"120"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"数据元标识符"},model:{value:u.row.dataMetaIdentifier,callback:function(_){l.$set(u.row,"dataMetaIdentifier",_)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,!1,479119831)}),_("el-table-column",{attrs:{label:"表示格式",width:"100"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"表示格式"},model:{value:u.row.identifierFormat,callback:function(_){l.$set(u.row,"identifierFormat",_)},expression:"scope.row.identifierFormat"}})]}}],null,!1,241604674)}),_("el-table-column",{attrs:{label:"默认选中",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return["RadioBox"===l.controlType?_("el-radio",{staticClass:"table-radio",attrs:{label:u.row.id},model:{value:l.tableRadio,callback:function(u){l.tableRadio=u},expression:"tableRadio"}}):l._e(),"CheckBox"===l.controlType?_("el-checkbox",{model:{value:u.row.isSelected,callback:function(_){l.$set(u.row,"isSelected",_)},expression:"scope.row.isSelected"}}):l._e()]}}],null,!1,1265273066)}),_("el-table-column",{attrs:{label:"勾选框左对齐",width:"54"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.boxAlign,callback:function(_){l.$set(u.row,"boxAlign",_)},expression:"scope.row.boxAlign"}})]}}],null,!1,599012276)}),_("el-table-column",{attrs:{label:"内容转文本",width:"54"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.isTransToText,callback:function(_){l.$set(u.row,"isTransToText",_)},expression:"scope.row.isTransToText"}})]}}],null,!1,1354544746)}),_("el-table-column",{attrs:{label:"编辑文本",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.isEditText,callback:function(_){l.$set(u.row,"isEditText",_)},expression:"scope.row.isEditText"}})]}}],null,!1,3019799127)}),_("el-table-column",{attrs:{label:"可以删除",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.isAllowDelete,callback:function(_){l.$set(u.row,"isAllowDelete",_)},expression:"scope.row.isAllowDelete"}})]}}],null,!1,2012793206)}),_("el-table-column",{attrs:{label:"自动回填",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.readType,callback:function(_){l.$set(u.row,"readType",_)},expression:"scope.row.readType"}})]}}],null,!1,373021414)}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")])]}}],null,!1,1240557165)})],1)],1):l._e(),0===l.boxGroup?[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.radioCheckbox.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.radioCheckbox.innerIdentifier,callback:function(u){l.$set(l.radioCheckbox,"innerIdentifier",u)},expression:"radioCheckbox.innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.radioCheckbox.dataMetaIdentifier,callback:function(u){l.$set(l.radioCheckbox,"dataMetaIdentifier",u)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.radioCheckbox.identifierFormat,callback:function(u){l.$set(l.radioCheckbox,"identifierFormat",u)},expression:"radioCheckbox.identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:l.radioCheckbox.groupName,callback:function(u){l.$set(l.radioCheckbox,"groupName",u)},expression:"radioCheckbox.groupName"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("文本")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},model:{value:l.radioCheckbox.text,callback:function(u){l.$set(l.radioCheckbox,"text",u)},expression:"radioCheckbox.text"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:l.radioCheckbox.tipText,callback:function(u){l.$set(l.radioCheckbox,"tipText",u)},expression:"radioCheckbox.tipText"}})],1),_("li",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.radioCheckbox.isSelected,callback:function(u){l.$set(l.radioCheckbox,"isSelected",u)},expression:"radioCheckbox.isSelected"}},[l._v("处于选择状态")]),_("el-checkbox",{model:{value:l.radioCheckbox.isAllowDelete,callback:function(u){l.$set(l.radioCheckbox,"isAllowDelete",u)},expression:"radioCheckbox.isAllowDelete"}},[l._v("可以删除")]),_("el-checkbox",{model:{value:l.radioCheckbox.boxAlign,callback:function(u){l.$set(l.radioCheckbox,"boxAlign",u)},expression:"radioCheckbox.boxAlign"}},[l._v("勾选框左对齐")]),_("el-checkbox",{model:{value:l.radioCheckbox.readType,callback:function(u){l.$set(l.radioCheckbox,"readType",u)},expression:"radioCheckbox.readType"}},[l._v("自动回填")]),_("el-checkbox",{model:{value:l.radioCheckbox.isTransToText,callback:function(u){l.$set(l.radioCheckbox,"isTransToText",u)},expression:"radioCheckbox.isTransToText"}},[l._v("内容转文本")]),_("el-checkbox",{model:{value:l.radioCheckbox.isEditText,callback:function(u){l.$set(l.radioCheckbox,"isEditText",u)},expression:"radioCheckbox.isEditText"}},[l._v("编辑文本")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数值")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:l.radioCheckbox.numericValue,callback:function(u){l.$set(l.radioCheckbox,"numericValue",u)},expression:"radioCheckbox.numericValue"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("附加数据")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"附加数据"},model:{value:l.radioCheckbox.additionalData,callback:function(u){l.$set(l.radioCheckbox,"additionalData",u)},expression:"radioCheckbox.additionalData"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("勾选级联对象")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"勾选级联对象"},model:{value:l.radioCheckbox.checkCascadeObject,callback:function(u){l.$set(l.radioCheckbox,"checkCascadeObject",u)},expression:"radioCheckbox.checkCascadeObject"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("不勾选级联对象")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"不勾选级联对象"},model:{value:l.radioCheckbox.unCheckCascadeObject,callback:function(u){l.$set(l.radioCheckbox,"unCheckCascadeObject",u)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)]:l._e()],2)]),_("footer",{staticClass:"ho-modal-footer"},[1===l.boxGroup?_("el-button",{staticStyle:{transform:"translateX(-352px)"},attrs:{type:"primary",size:"small"},on:{click:l.addBox}},[l._v("增加"+l._s("RadioBox"===l.controlType?"单选项":"复选项"))]):l._e(),_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},cs=[],us={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},ds=function(l){(0,Y.Z)(RadioCheckbox,l);var u=(0,ee.Z)(RadioCheckbox);function RadioCheckbox(){var l;return(0,q.Z)(this,RadioCheckbox),l=u.apply(this,arguments),l.boxGroup=1,l.groupName="",l.tableRadio="",l.radioCheckBoxGroup=[],l.animationClassName="animation-in",l.radioCheckbox=JSON.parse(JSON.stringify(us)),l.dynamicTags=[],l.inputVisible=!1,l.inputValue="",l}return(0,$.Z)(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 l=this;if("update"===this.controlTypeStatus){var u=this.getRadioCheckNode();Object.keys(this.radioCheckbox).forEach((function(_){"readType"===_?l.radioCheckbox.readType=1==u.readType:l.radioCheckbox[_]=u[_]})),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 l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof He.Yh&&(u=C),u}},{key:"addBox",value:function addBox(){var l=_objectSpread2({},us);l.id="RadioBox"===this.controlType?this.vueController.generateID("RB"):this.vueController.generateID("CB"),l.groupName=this.groupName,this.radioCheckBoxGroup.push(l)}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.radioCheckBoxGroup.filter((function(_,v){_.id===l&&(u=v)})),this.radioCheckBoxGroup.splice(u,1)}},{key:"sure",value:function sure(){var l=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(u){u.groupName=l.groupName,u.controlStyle=l.controlType,u.id===l.tableRadio&&(u.isSelected=!0),l.vueController.insertRadioAndCheckBox("add",JSON.stringify(u))})),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassName="animation-out",this.$emit("closed")}}]),RadioCheckbox}(k());__decorate([Ref()],ds.prototype,"saveTagInput",void 0),__decorate([Prop()],ds.prototype,"controlProperty",void 0),__decorate([Prop()],ds.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],ds.prototype,"controlStatus",void 0),__decorate([Prop()],ds.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],ds.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],ds.prototype,"getDataSource",void 0),ds=__decorate([ae({name:"RadioCheckbox"})],ds);var hs=ds,_s=hs,ps=normalizeComponent(_s,RadioCheckboxvue_type_template_id_5067453f_scoped_true_render,cs,!1,null,"5067453f",null),fs=ps.exports,gs=fs,CommentDialogvue_type_template_id_27b7d6e2_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents comment-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("批注")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:function(u){return l.$emit("closed")}}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_("span",{staticClass:"label"},[l._v("批注内容")]),_("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:6,maxRows:6},clearable:"",placeholder:"批注内容",maxlength:"256","show-word-limit":""},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),l._t("hoCommentModal")],2)]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:function(u){return l.$emit("closed")}}},[l._v("取消")])],1)])},ms=[],vs={name:"CommentDialog",props:{controlStatus:{required:!0},vueController:{require:!0}},inject:["getCustomProperty"],data:function data(){return{textContent:"",commentValue:null}},created:function created(){this.commentValue=this.vueController.getOnSelectedComment(),"update"===this.controlStatus&&this.commentValue&&(this.textContent=this.commentValue.text)},mounted:function mounted(){},methods:{sure:function sure(){var l=this,u=function callback(){l.$emit("closed")};"update"===this.controlStatus?this.$emit("insertComments",{id:this.commentValue.id,content:this.textContent,customProperty:this.getCustomProperty(),type:"update",callback:u}):this.$emit("insertComments",{content:this.textContent,customProperty:this.getCustomProperty(),type:"add",callback:u})}}},ys=vs,bs=normalizeComponent(ys,CommentDialogvue_type_template_id_27b7d6e2_render,ms,!1,null,null,null),ws=bs.exports,xs=ws,CustomAttributesvue_type_template_id_889327aa_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"customsFormModal",staticClass:"control-modal-contents customs-modal",style:{width:l.isTableProperty?"1020px":"400px"},on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("自定义属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[l.isTableProperty?_("div",{staticClass:"table-property-json-edit"},[_("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[_("span",{staticStyle:{"font-size":"14px"}},[l._v('示例:[{"name":"name","value":"value","description":"描述"}]')]),_("el-button",{attrs:{type:"primary",size:"small"},on:{click:l.parseTablePropertyJson}},[l._v("格式化")])],1),_("el-input",{attrs:{rows:13,type:"textarea"},model:{value:l.tablePropertyJson,callback:function(u){l.tablePropertyJson=u},expression:"tablePropertyJson"}}),_("div",{staticStyle:{padding:"10px 0","text-align":"left",color:"#f00"}},[l._v(l._s(l.parseError))]),l._m(0)],1):l._e(),_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.customsValue,"max-height":"520px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"字段名",width:"110"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index,u.row)}},model:{value:u.row.name,callback:function(_){l.$set(u.row,"name",_)},expression:"scope.row.name"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"160"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index,u.row)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),l.isTableProperty?_("el-table-column",{attrs:{label:"描述",width:"160"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index,u.row)}},model:{value:u.row.description,callback:function(_){l.$set(u.row,"description",_)},expression:"scope.row.description"}})]}}],null,!1,2270640960)}):l._e()],1)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Ps=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticStyle:{"text-align":"left",color:"#000","font-size":"12px"}},[_("p",[l._v("提示:")]),_("p",[l._v("Unexpected end of JSON input :不能为空")]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(" ]")]),l._v(" in JSON at position xx :数组结尾字符 "),_("span",{staticStyle:{color:"#f00"}},[l._v("]")]),l._v(" 前不应该有 "),_("span",{staticStyle:{color:"#f00"}},[l._v(",")]),l._v(" 字符")]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(" }")]),l._v(" in JSON at position xx :数组最后一项结尾字符 "),_("span",{staticStyle:{color:"#f00"}},[l._v("}")]),l._v(" 前不应该有 "),_("span",{staticStyle:{color:"#f00"}},[l._v(",")]),l._v(" 字符")]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(" n")]),l._v(" in JSON at position xx :检查name, value, description 是否缺少"),_("span",{staticStyle:{color:"#f00"}},[l._v('""')])]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(",")]),l._v(" in JSON at position xx:一般是出现中文字符"),_("span",{staticStyle:{color:"#f00"}},[l._v(",‘ “ ")]),l._v(" 等")])])}],Cs={name:"CustomAttributes",props:{isTableProperty:{required:!0}},mixins:[jt],inject:["setIsCustoms","getCustomsValue","setCustomsValue"],data:function data(){return{focusIndexs:-1,parseError:"",tablePropertyJson:"",customsFormModal:null}},computed:{customsValue:function customsValue(){var l=this.getCustomsValue();return this.tablePropertyJson=JSON.stringify(l),l}},mounted:function mounted(){this.customsFormModal=this.$refs.customsFormModal},methods:{parseTablePropertyJson:function parseTablePropertyJson(){this.parseError="";try{var l=JSON.parse(this.tablePropertyJson);Array.isArray(l)?(l.push({name:"",value:"",description:""}),this.setCustomsValue((0,U.Z)(l))):this.parseError="JSON 内容无法解析为数组格式"}catch(u){this.parseError=u}},focusIndex:function focusIndex(l){this.focusIndexs=l},inputIndex:function inputIndex(l,u){""==u.name&&""==u.value&&l!==this.customsValue.length-1?this.customsValue.splice(l,1):l===this.customsValue.length-1&&this.customsValue.push({name:"",value:"",description:""})},addCustoms:function addCustoms(){this.customsValue.push({name:"",value:"",description:""})},arrToObject:function arrToObject(){var l={};return this.customsValue.map((function(u){l[u.name]=u.value})),l},sure:function sure(){this.setCustomsValue(this.customsValue),this.closeTimeout()},handleClose:function handleClose(l){var u=l.target,_=document.querySelector(".control-modal");_.contains(u)||this.closeTimeout()},closeTimeout:function closeTimeout(){var l=this;setTimeout((function(){l.setIsCustoms(!1)}),0)},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.customsFormModal,"modal-title")}}},Es=Cs,Ss=normalizeComponent(Es,CustomAttributesvue_type_template_id_889327aa_scoped_true_render,Ps,!1,null,"889327aa",null),Ts=Ss.exports,Ds=Ts,DataSourcevue_type_template_id_65150f69_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"dataSourceModal",staticClass:"control-modal-contents data-modal",on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("绑定数据源")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",staticStyle:{padding:"10px"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{model:{value:l.dataSource.dataSourceEnabled,callback:function(u){l.$set(l.dataSource,"dataSourceEnabled",u)},expression:"dataSource.dataSourceEnabled"}},[l._v("数据源绑定设置有效")])],1)]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-input",{attrs:{size:"mini",disabled:!l.dataSource.dataSourceEnabled,placeholder:"数据源"},model:{value:l.dataSource.dataSource,callback:function(u){l.$set(l.dataSource,"dataSource",u)},expression:"dataSource.dataSource"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("格式化")]),_("el-input",{attrs:{size:"mini",disabled:!l.dataSource.dataSourceEnabled,placeholder:"格式化"},model:{value:l.dataSource.format,callback:function(u){l.$set(l.dataSource,"format",u)},expression:"dataSource.format"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("访问路径")]),_("el-input",{attrs:{size:"mini",disabled:!l.dataSource.dataSourceEnabled,placeholder:"访问路径"},model:{value:l.dataSource.visitPath,callback:function(u){l.$set(l.dataSource,"visitPath",u)},expression:"dataSource.visitPath"}})],1),_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{attrs:{disabled:!l.dataSource.dataSourceEnabled},model:{value:l.dataSource.isReadOnly,callback:function(u){l.$set(l.dataSource,"isReadOnly",u)},expression:"dataSource.isReadOnly"}},[l._v("只读")])],1)]),_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{attrs:{disabled:!l.dataSource.dataSourceEnabled},model:{value:l.dataSource.autoUpdate,callback:function(u){l.$set(l.dataSource,"autoUpdate",u)},expression:"dataSource.autoUpdate"}},[l._v("自动更新,当加载文档或者数据源发生改变时自动更新数值")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("执行状态")]),_("el-select",{staticStyle:{"text-align":"left"},attrs:{disabled:!l.dataSource.dataSourceEnabled,placeholder:"请选择",size:"mini"},model:{value:l.dataSource.executeStatus,callback:function(u){l.$set(l.dataSource,"executeStatus",u)},expression:"dataSource.executeStatus"}},[_("el-option",{attrs:{label:"总是执行",value:0}}),_("el-option",{attrs:{label:"只执行一次",value:1}}),_("el-option",{attrs:{label:"不执行",value:2}})],1)],1)])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},ks=[],Is={name:"DataSourceDialog",props:{},inject:["getDataSource","setIsDataSource","setDataSource"],data:function data(){return{dataSourceModal:null}},mixins:[jt],computed:{dataSource:function dataSource(){return this.getDataSource()}},mounted:function mounted(){this.dataSourceModal=this.$refs.dataSourceModal},methods:{sure:function sure(){this.setDataSource(this.dataSource),this.closeTimeout()},handleClose:function handleClose(l){var u=l.target,_=document.querySelector(".control-modal");_.contains(u)||this.closeTimeout()},closeTimeout:function closeTimeout(){var l=this;setTimeout((function(){l.setIsDataSource(!1)}),0)},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.dataSourceModal,"modal-title")}}},Ms=Is,Ns=normalizeComponent(Ms,DataSourcevue_type_template_id_65150f69_render,ks,!1,null,null,null),Os=Ns.exports,Ls=Os,ListSourcevue_type_template_id_54417541_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:l.handleClose,expression:"handleClose"}],ref:"listSourceModal",staticClass:"control-modal-contents list-source-modal",on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("下拉列表")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item",staticStyle:{width:"100%"}},[_("span",{staticClass:"label",staticStyle:{width:"42px"}},[l._v("来源")]),_("el-input",{attrs:{size:"mini",placeholder:"来源"},model:{value:l.source,callback:function(u){l.source=u},expression:"source"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"42px"}},[l._v("列表")]),_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.listValue,height:"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.type,callback:function(_){l.$set(u.row,"type",_)},expression:"scope.row.type"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return[u.row.default?_("span",{staticClass:"tags"},[l._v("默认")]):l._e(),u.row.default?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.cancelDefault(u.row.id)}}},[l._v("取消")]):l._e(),!u.row.default&&u.row.text?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.setDefault(u.row.id)}}},[l._v("设为默认")]):l._e(),u.$index!==l.listValue.length-1&&l.focusIndexs===u.$index?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")]):l._e()]}}])})],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},As=[],Rs=function(l){(0,Y.Z)(ListSource,l);var u=(0,ee.Z)(ListSource);function ListSource(){var l;return(0,q.Z)(this,ListSource),l=u.apply(this,arguments),l.focusIndexs=-1,l.source="",l.errorArr=[],l.errorIndex=[],l.listValue=[],l.isAllowMultiSelected=!1,l}return(0,$.Z)(ListSource,[{key:"mounted",value:function mounted(){this.init()}},{key:"init",value:function init(){var l=[{text:"",value:"",type:0,id:this.getKeyId()}],u=[],_=this.getListStyle();_&&_.length>0&&(u=(0,U.Z)(this.getListStyle())),this.listValue=[].concat((0,U.Z)(u),l),this.source=this.getListArrSource(),this.isAllowMultiSelected=this.getListAllowMultiSelected()}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.listValue[l];if(""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.listValue.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.listValue.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0)this.errorIndex.includes(u.id)||this.errorIndex.push(u.id);else{this.errorIndex=[];var _=this.listValue.filter((function(l){if(""===(null===l||void 0===l?void 0:l.value.replace(/\s*/g,""))&&""===(null===l||void 0===l?void 0:l.text.replace(/\s*/g,"")))return l}));0===_.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(l){var u=this,_=this.listValue[l];this.errorArr=(0,U.Z)(this.listValue.filter((function(l){if(l.text===(null===_||void 0===_?void 0:_.text)&&l.id!==(null===_||void 0===_?void 0:_.id))return l})));var v=(0,U.Z)(this.listValue.filter((function(l){if(!l.text&&!l.value)return l})));this.errorArr.length>0?(this.errorIndex.includes(_.id)||this.errorIndex.push(_.id),v.forEach((function(l){u.deleteCurrentRow(l.id)}))):(this.errorIndex=[],0===v.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(l){var u=this;this.listValue=(0,U.Z)(this.listValue.map((function(_){return _.id===l?""!==_.text.replace(/\s*/g,"")&&(_.default=!0):u.isAllowMultiSelected||(_.default=!1),_})))}},{key:"cancelDefault",value:function cancelDefault(l){this.listValue=(0,U.Z)(this.listValue.map((function(u){return u.id===l&&(u.default=!1),u})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.listValue.filter((function(_,v){_.id===l&&(u=v)})),this.listValue.splice(u,1)}},{key:"arrToObject",value:function arrToObject(){var l={};return this.listValue.map((function(u){var _=u;l[_.text]=_.value})),l}},{key:"sure",value:function sure(){if(0!==this.errorArr.length)return!1;var l=this.listValue.filter((function(l){if(l.text||l.value)return l}));this.setListStyle(l,this.source),this.closeTimeout()}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var l=this;setTimeout((function(){l.setIsListStyle(!1),l.listValue=[]}),0)}},{key:"toolModalDown",value:function toolModalDown(l){(0,Lt.tC)(l,this.listSourceModal,"modal-title")}}]),ListSource}(mixins(jt));__decorate([Ref()],Rs.prototype,"listSourceModal",void 0),__decorate([Inject("setIsListStyle")],Rs.prototype,"setIsListStyle",void 0),__decorate([Inject("setListStyle")],Rs.prototype,"setListStyle",void 0),__decorate([Inject("getListAllowMultiSelected")],Rs.prototype,"getListAllowMultiSelected",void 0),__decorate([Inject("getListStyle")],Rs.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],Rs.prototype,"getListArrSource",void 0),Rs=__decorate([ae({name:"ListSource"})],Rs);var Fs=Rs,js=Fs,Bs=normalizeComponent(js,ListSourcevue_type_template_id_54417541_scoped_true_render,As,!1,null,"54417541",null),Us=Bs.exports,Hs=Us,PageInfoesvue_type_template_id_0c37255e_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:"control-modal-contents pageinfoes-modal "+l.animationClassName},[_("header",{staticClass:"modal-title"},[_("span",[l._v("页码页数信息")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内容")]),_("el-radio",{attrs:{size:"small",label:0},model:{value:l.content,callback:function(u){l.content=u},expression:"content"}},[l._v("页码")]),_("el-radio",{attrs:{size:"small",label:1},model:{value:l.content,callback:function(u){l.content=u},expression:"content"}},[l._v("总页数")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数字显示格式")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"数字显示格式",size:"mini"},model:{value:l.format,callback:function(u){l.format=u},expression:"format"}},[_("el-option",{attrs:{label:"1. 2. 3. 4. ···",value:0}}),_("el-option",{attrs:{label:"一. 二. 三. 四. ···",value:1}})],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Ws=[],qs=function(l){(0,Y.Z)(PageInfoes,l);var u=(0,ee.Z)(PageInfoes);function PageInfoes(){var l;return(0,q.Z)(this,PageInfoes),l=u.apply(this,arguments),l.content=0,l.format=0,l.animationClassName="animation-in",l}return(0,$.Z)(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}(k());__decorate([Prop()],qs.prototype,"vueController",void 0),qs=__decorate([ae({name:"PageInfoes"})],qs);var zs=qs,Vs=zs,Ks=normalizeComponent(Vs,PageInfoesvue_type_template_id_0c37255e_scoped_true_render,Ws,!1,null,"0c37255e",null),$s=Ks.exports,Gs=$s,Delimitervue_type_template_id_228db06f_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("分割符")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",staticStyle:{padding:"20px"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("宽度")]),_("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:l.width,callback:function(u){l.width=u},expression:"width"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("px")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("颜色")]),_("ho-color-picker",{model:{value:l.color,callback:function(u){l.color=u},expression:"color"}})],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.insertDelimiter}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Zs=[],HoColorPickervue_type_template_id_6f7e38c3_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:l.closed,expression:"closed"}],ref:"colorPicker",staticClass:"ho-color-picker"},[_("div",{staticClass:"color-btn",class:{disabled:l.disabled},style:{"background-color":l.showColor,"border-color":"#ffffff"===l.showColor.toLowerCase()?"#333":"transparent"},on:{click:l.openPanel}}),_("div",{staticClass:"box",class:{open:l.openStatus}},[_("div",{staticClass:"hd"},[_("div",{staticClass:"color-view",style:"background-color: "+l.showPanelColor}),_("div",{staticClass:"default-color",on:{click:l.handleDefaultColor,mouseover:function(u){l.hoveColor=l.defaultColor},mouseout:function(u){l.hoveColor=null}}},[l._v("默认颜色")])]),_("div",{staticClass:"bd"},[_("h3",[l._v("主题颜色")]),_("ul",{staticClass:"t-color"},l._l(l.tColor,(function(u,v){return _("li",{key:v,style:{backgroundColor:u},on:{mouseover:function(_){l.hoveColor=u},mouseout:function(u){l.hoveColor=null},click:function(_){return l.updataValue(u)}}})})),0),_("h3",[l._v("标准颜色")]),_("ul",{staticClass:"t-color"},l._l(l.bColor,(function(u,v){return _("li",{key:v,style:{backgroundColor:u},on:{mouseover:function(_){l.hoveColor=u},mouseout:function(u){l.hoveColor=null},click:function(_){return l.updataValue(u)}}})})),0)])])])},Js=[],Xs={name:"HoColorPicker",props:{value:{required:!0},defaultColor:{default:"#000000"},disabled:{default:!1}},data:function data(){return{openStatus:!1,hoveColor:null,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"],colorConfig:[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],bColor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],html5Color:this.value}},computed:{showPanelColor:function showPanelColor(){return this.hoveColor?this.hoveColor:this.showColor},showColor:function showColor(){return this.value?this.value:this.defaultColor}},methods:{openPanel:function openPanel(){this.openStatus=!this.disabled},updataValue:function updataValue(l){this.$emit("input",l),this.$emit("change",l),this.openStatus=!1},closed:function closed(){this.openStatus=!1},handleDefaultColor:function handleDefaultColor(){this.updataValue(this.defaultColor)},parseColor:function parseColor(l){if(4!==l.length)return l;l="#"+l[1]+l[1]+l[2]+l[2]+l[3]+l[3]},rgbToHex:function rgbToHex(l,u,_){var v=(l<<16|u<<8|_).toString(16);return"#"+new Array(Math.abs(v.length-7)).join("0")+v},hexToRgb:function hexToRgb(l){l=this.parseColor(l);for(var u=[],_=1;_<7;_+=2)u.push(parseInt("0x"+l.slice(_,_+2)));return u},gradient:function gradient(l,u,_){for(var v=this.hexToRgb(l),C=this.hexToRgb(u),k=(C[0]-v[0])/_,N=(C[1]-v[1])/_,B=(C[2]-v[2])/_,U=[],W=0;W<_;W++)U.push(this.rgbToHex(k*W+v[0],N*W+v[1],B*W+v[2]));return U}}},Ys=Xs,Qs=normalizeComponent(Ys,HoColorPickervue_type_template_id_6f7e38c3_scoped_true_render,Js,!1,null,"6f7e38c3",null),el=Qs.exports,tl={name:"Delimiter",components:{HoColorPicker:el},data:function data(){return{width:1,color:"#000",animationClassNames:"control-modal-contents delimiter-modal animation-in"}},props:{vueController:{type:Object,required:!0}},methods:{insertDelimiter:function insertDelimiter(){this.vueController.insertSeparateChar(this.width,this.color),this.handleClose()},handleClose:function handleClose(){this.animationClassNames="control-modal-contents delimiter-modal animation-out",this.$emit("closed")}}},rl=tl,nl=normalizeComponent(rl,Delimitervue_type_template_id_228db06f_render,Zs,!1,null,null,null),il=nl.exports,ol=il,Signvue_type_template_id_38b332be_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("签名")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",staticStyle:{padding:"20px"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名名称")]),_("el-input",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini"},model:{value:l.name,callback:function(u){l.name=u},expression:"name"}})],1),_("li",{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_("span",{staticClass:"label"},[l._v("签名类型")]),_("div",{staticStyle:{flex:"1"}},[_("el-radio",{attrs:{label:1},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("患者签名")]),_("el-radio",{attrs:{label:0},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("医生签名")]),_("el-radio",{attrs:{label:3},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("自定义医生签名")]),_("el-radio",{attrs:{label:2},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("自定义CA签名")])],1)]),l.signType>=3?[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名格式")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.signFormat,callback:function(u){l.signFormat=u},expression:"signFormat"}},[_("el-option",{attrs:{label:"<医师姓名>",value:"<医师姓名>"}}),_("el-option",{attrs:{label:"<医师姓名>(<医师职称>)",value:"<医师姓名>(<医师职称>)"}}),_("el-option",{attrs:{label:"<医师姓名>:<医师职称>",value:"<医师姓名>:<医师职称>"}}),_("el-option",{attrs:{label:"<医师姓名>:<医师职称>\\n<签名时间>",value:"<医师姓名>:<医师职称>\\n<签名时间>"}}),l._l(l.customSignFormatList,(function(l){return _("el-option",{key:l.label,attrs:{label:l.label,value:l.value}})}))],2)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名时间格式")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.signTimeFormat,callback:function(u){l.signTimeFormat=u},expression:"signTimeFormat"}},[_("el-option",{attrs:{label:"yyyy-MM-DD HH:mm:ss",value:"yyyy-MM-DD HH:mm:ss"}}),_("el-option",{attrs:{label:"yyyy-MM-DD HH:mm",value:"yyyy-MM-DD HH:mm"}}),_("el-option",{attrs:{label:"yyyy/MM/DD HH:mm:ss",value:"yyyy/MM/DD HH:mm:ss"}}),_("el-option",{attrs:{label:"yyyy/MM/DD HH:mm",value:"yyyy/MM/DD HH:mm"}}),_("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分ss秒",value:"yyyy年MM月DD日 HH时mm分ss秒"}}),_("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分",value:"yyyy年MM月DD日 HH时mm分"}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名连接方式")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.connectMode,callback:function(u){l.connectMode=u},expression:"connectMode"}},[_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"换行",value:"换行"}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:",",value:","}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"}),_("el-checkbox",{model:{value:l.isFront,callback:function(u){l.isFront=u},expression:"isFront"}},[l._v("连接符前置")]),_("el-tooltip",{attrs:{placement:"right",effect:"dark"}},[_("div",{attrs:{slot:"content"},slot:"content"},[l._v("不勾选参数:     医师签名 / "),_("br"),l._v("   勾选参数:     / 医师签名")]),_("i",{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"}),_("el-checkbox",{model:{value:l.allowEditSignTime,callback:function(u){l.allowEditSignTime=u},expression:"allowEditSignTime"}},[l._v("允许修改签名时间")])],1)]:l._e()],2),l.signType>=3?_("div",{staticClass:"section-right"},[_("div",{staticClass:"custom-format-tool-box"},[_("ul",{staticClass:"custom-format-tool"},[_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<医师姓名>"}}},[l._v("医师姓名")]),_("i",{staticClass:"el-icon-circle-plus"})],1),_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<医师工号>"}}},[l._v("医师工号")]),_("i",{staticClass:"el-icon-circle-plus"})],1),_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<医师职称>"}}},[l._v("医师职称")]),_("i",{staticClass:"el-icon-circle-plus"})],1),_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<签名时间>"}}},[l._v("签名时间")]),_("i",{staticClass:"el-icon-circle-plus"})],1)]),_("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:l.customFormatContent,callback:function(u){l.customFormatContent=u},expression:"customFormatContent"}})],1),_("p",[l._v("提示:")]),_("p",[l._v("1. 尖括号内的内容用来替换, 不能修改")]),_("p",[l._v("2. 尖括号外的内容处理格式,可以编辑")]),_("p",[l._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_("div",{staticClass:"custom-format-tool-btn"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.createSignFormat}},[l._v("添加自定义签名格式")])],1)]):l._e()]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.insertSign}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},al=[],sl=function(l){(0,Y.Z)(Sign,l);var u=(0,ee.Z)(Sign);function Sign(){var l;return(0,q.Z)(this,Sign),l=u.apply(this,arguments),l.height=20,l.name="",l.signType=0,l.signFormat="<医师姓名>",l.connectMode="换行",l.isFront=!1,l.allowEditSignTime=!1,l.signTimeFormat="yyyy-MM-DD HH:mm",l.customFormatContent="",l.customSignFormatList=[],l.animationClassNames="control-modal-contents sign-modal animation-in",l}return(0,$.Z)(Sign,[{key:"createSignFormat",value:function createSignFormat(){var l=JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,""),u=["<医师姓名>","<医师职称>","<医师工号>","<签名时间>"];if(this.$elMessage.closeAll(),0!==u.filter((function(u){return l.includes(u)})).length){var _=["<医师姓名>","<医师姓名>(<医师职称>)","<医师姓名>:<医师职称>","<医师姓名>:<医师职称>\n<签名时间>"].concat();this.customSignFormatList.forEach((function(l){return _.push(l.value)})),_.filter((function(u){return u===l.slice(1,l.length-1)})).length>0?this.$elMessage.warning({message:"签名格式已存在无需插入,已自动选中",duration:3e3,offset:120}):this.customSignFormatList.push({label:l.slice(1,l.length-1),value:l.slice(1,l.length-1)}),this.signFormat=l.slice(1,l.length-1)}else this.$elMessage.warning({message:"至少需要插入'<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'中的一种",duration:3e3,offset:120})}},{key:"insertSign",value:function insertSign(){if(3===this.signType)this.vueController.insertEmptySignNode(this.name?this.name:"医生签名",1,this.signFormat,this.signTimeFormat,this.connectMode,this.isFront,this.allowEditSignTime,0);else{var l=this.name?this.name:1==this.signType?"患者签名":"医生签名";this.vueController.insertEmptySignNode(l,0,"","","",void 0,void 0,this.signType)}this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents sign-modal animation-out",this.$emit("closed")}}]),Sign}(k());__decorate([Prop()],sl.prototype,"vueController",void 0),__decorate([Prop()],sl.prototype,"controlStatus",void 0),sl=__decorate([ae({name:"Sign",components:{HoColorPicker:el}})],sl);var ll=sl,cl=ll,ul=normalizeComponent(cl,Signvue_type_template_id_38b332be_render,al,!1,null,null,null),dl=ul.exports,hl=dl,UploadImageDialogvue_type_template_id_40b59089_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("上传图片")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("上传图片")]),_("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":l.fileList,"show-file-list":!1,"auto-upload":!1,"on-change":l.uploadImage,accept:"image/*"}},[_("el-button",{attrs:{size:"small"}},[l._v("选择图片")])],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("修改")]),_("el-radio",{attrs:{label:"w"},model:{value:l.radio,callback:function(u){l.radio=u},expression:"radio"}},[l._v("宽度")]),_("el-radio",{attrs:{label:"h"},model:{value:l.radio,callback:function(u){l.radio=u},expression:"radio"}},[l._v("高度")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("图片宽度")]),_("el-input",{attrs:{disabled:"h"==l.radio,size:"mini",placeholder:"设置插入后的图片宽度",maxlength:"20"},model:{value:l.width,callback:function(u){l.width=u},expression:"width"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("图片高度")]),_("el-input",{attrs:{disabled:"w"==l.radio,size:"mini",placeholder:"设置插入后的图片高度",maxlength:"20"},model:{value:l.height,callback:function(u){l.height=u},expression:"height"}})],1),l.uploadImageParams&&l.uploadImageParams.uploadUrl?[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("图片格式")]),_("el-radio",{attrs:{label:!1},model:{value:l.upload,callback:function(u){l.upload=u},expression:"upload"}},[l._v("生成base64")]),_("el-radio",{attrs:{label:!0},model:{value:l.upload,callback:function(u){l.upload=u},expression:"upload"}},[l._v("上传到服务器")])],1)]:l._e(),l.upload?l._e():[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"}),_("el-checkbox",{model:{value:l.compress,callback:function(u){l.compress=u},expression:"compress"}},[l._v("是否按缩放后尺寸压缩图片")])],1),_("li",{staticStyle:{"text-align":"left",padding:"0 0 0 10px","line-height":"20px"}},[l._v("图片初始大小:"+l._s((l.uploadImageUrl.length/1024).toFixed(2))+" kb")]),_("li",{staticStyle:{"text-align":"left",padding:"0 0 0 10px","line-height":"20px"}},[l._v("压缩后图片大小:"+l._s((l.imageUrl.length/1024).toFixed(2))+" kb")]),_("li",{staticStyle:{"text-align":"left",padding:"0 0 0 10px","line-height":"20px"}},[l._v("图片默认压缩为 jpeg 格式")])],_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{staticClass:"view-image"},[l.imageUrl?_("img",{ref:"image",attrs:{width:this.width,src:l.imageUrl}}):l._e()])])],2)]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",loading:l.uploadLoading,type:"primary"},on:{click:l.sure}},[l._v(l._s(l.uploadLoading?"正在上传。。。":"上传"))]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},_l=[],pl=function uploadImages(l){return new Promise((function(u,_){if(l.url){var v=l.method||"GET",C=l.async||!0,k=new XMLHttpRequest;"GET"===v?(k.open(v,l.url+"?"+Math.random(),C),k.send(null)):"POST"===v&&(k.open(v,l.url,C),k.send(l.data)),k.onreadystatechange=function(){k.responseText&&u(k.responseText)},k.onerror=function(l){_(l)}}}))},fl=function(l){(0,Y.Z)(UploadImageDialog,l);var u=(0,ee.Z)(UploadImageDialog);function UploadImageDialog(){var l;return(0,q.Z)(this,UploadImageDialog),l=u.apply(this,arguments),l.animationClassNames="control-modal-contents image-modal animation-in",l.fileList=[],l.file=null,l.width=0,l.height=0,l.naturalWidth=0,l.naturalHeight=0,l.scale=0,l.heightScale=0,l.imageUrl="",l.uploadImageUrl="",l.uploadLoading=!1,l.radio="w",l.upload=!1,l.compressMethod="q",l.compressResult=.8,l.compress=!0,l.size=0,l}return(0,$.Z)(UploadImageDialog,[{key:"widthChange",value:function widthChange(){this.width&&"w"===this.radio&&(this.height=Math.floor(this.width*this.scale),this.scaleImage())}},{key:"heightChange",value:function heightChange(){this.height&&"h"===this.radio&&(this.width=Math.floor(this.height/this.scale),this.scaleImage())}},{key:"uploadImageParamsChange",value:function uploadImageParamsChange(){this.uploadImageParams&&this.uploadImageParams.uploadUrl&&(this.upload=!0)}},{key:"compressChange",value:function compressChange(){this.scaleImage()}},{key:"mounted",value:function mounted(){this.uploadImageParams&&this.uploadImageParams.uploadUrl&&(this.upload=!0)}},{key:"uploadImage",value:function uploadImage(l){var u=this;this.file=l,this.scale=0;var _=new FileReader;_.onload=function(l){var _=new Image,v=l.target.result;u.imageUrl=v,u.uploadImageUrl=v,_.src=v,_.onload=function(){u.scale=parseFloat((_.height/_.width).toFixed(2)),u.width?u.height=Math.floor(u.width*u.scale):(u.height=_.height,u.width=_.width)}},_.readAsDataURL(l.raw)}},{key:"uploadfwq",value:function uploadfwq(l){var u=this;if(this.uploadLoading=!0,this.uploadImageParams&&this.uploadImageParams.uploadUrl){var _=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",v=new FormData;v.append(_,l.raw),pl({url:this.uploadImageParams.uploadUrl,method:"POST",data:v}).then((function(l){var _,v="";if(null!==(_=u.uploadImageParams)&&void 0!==_&&_.callbackParamName||"string"!==typeof l){var C,k=null===(C=u.uploadImageParams)||void 0===C?void 0:C.callbackParamName;v=l[k]}else v=JSON.parse(l).imgUrl;if(v)if(u.width&&u.height)u.vueController.insertImage(v,u.width,u.height),u.handleClose();else{var N=new Image;N.src=v,N.onload=function(){u.vueController.insertImage(v,N.width,N.height),u.handleClose()}}else u.insertBase64Image()}),(function(){u.insertBase64Image()}))}else this.insertBase64Image()}},{key:"scaleImage",value:function scaleImage(){var l=this;if(this.width&&this.height){var u=function callback(u){l.imageUrl=u};"q"==this.compressMethod?this.compress?(0,Lt.h9)(this.uploadImageUrl,u,Number(this.compressResult),void 0,[this.width,this.height]):(0,Lt.h9)(this.uploadImageUrl,u,Number(this.compressResult),void 0):"s"==this.compressMethod&&(this.compress?(0,Lt.h9)(this.uploadImageUrl,u,void 0,Number(this.compressResult),[this.width,this.height]):(0,Lt.h9)(this.uploadImageUrl,u,void 0,Number(this.compressResult)))}}},{key:"insertBase64Image",value:function insertBase64Image(){var l=this;if(this.width&&this.height)this.vueController.insertImage(this.imageUrl,Number(this.width),Number(this.height)),this.handleClose();else{var u=new Image;u.src=this.imageUrl,u.onload=function(){l.vueController.insertImage(l.imageUrl,u.width,u.height),l.handleClose()}}}},{key:"sure",value:function sure(){this.file?this.uploadfwq(this.file):(Ji().closeAll(),Ji().warning("请选择图片"))}},{key:"handleClose",value:function handleClose(){this.fileList=[],this.file=null,this.width=0,this.height=0,this.naturalWidth=0,this.naturalHeight=0,this.scale=0,this.heightScale=0,this.imageUrl="",this.uploadLoading=!1,this.radio="w",this.upload=!1,this.compressMethod="q",this.compressResult=.8,this.compress=!0,this.size=0,this.animationClassNames="control-modal-contents image-modal animation-out",this.$emit("closed")}}]),UploadImageDialog}(k());__decorate([Prop()],fl.prototype,"controlStatus",void 0),__decorate([Prop()],fl.prototype,"vueController",void 0),__decorate([Prop()],fl.prototype,"uploadImageParams",void 0),__decorate([Watch("width")],fl.prototype,"widthChange",null),__decorate([Watch("height")],fl.prototype,"heightChange",null),__decorate([Watch("uploadImageParams",{deep:!0})],fl.prototype,"uploadImageParamsChange",null),__decorate([Watch("compress")],fl.prototype,"compressChange",null),fl=__decorate([ae({name:"UploadImageDialog"})],fl);var gl=fl,ml=gl,vl=normalizeComponent(ml,UploadImageDialogvue_type_template_id_40b59089_scoped_true_render,_l,!1,null,"40b59089",null),yl=vl.exports,CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"canvas-image",class:l.animationClassNames,style:{width:l.canvasWidth+250+"px",height:l.canvasHeight+150+"px"}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("编辑图片")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",attrs:{id:"loon_canvas_editor"}},[_("div",{style:{width:l.canvasWidth+"px",height:l.canvasHeight+"px"},attrs:{id:"loon_canvas_editor_box"}},[_("canvas",{style:{width:l.canvasWidth+"px",height:l.canvasHeight+"px"},attrs:{id:"image_canvas",width:l.canvasWidth,height:l.canvasHeight}}),0===l.tool&&l.textAreaStyle.width?_("textarea",{ref:"textCanvas",style:l.textAreaStyle,attrs:{id:"text_canvas"},on:{blur:function(u){return l.drawText()}}}):l._e()])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{type:0===l.tool?"primary":"",size:"small"},on:{click:function(u){l.tool=0}}},[l._v("文字")]),_("el-button",{attrs:{type:1===l.tool?"primary":"",size:"small"},on:{click:function(u){l.tool=1}}},[l._v("画笔")]),_("el-button",{attrs:{size:"small"},on:{click:function(u){return l.canvasUndo()}}},[l._v("撤销")]),_("el-button",{attrs:{size:"small"},on:{click:function(u){return l.canvasRedo()}}},[l._v("恢复")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small",loading:l.uploadLoading,type:"primary"},on:{click:l.sure}},[l._v("保存")]),_("el-button",{attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},bl=[],wl={name:"canvasImageDialog",props:{hoEditorFactoryId:{type:String,required:!0},vueController:{type:Object,required:!0}},data:function data(){return{canvasWidth:500,canvasHeight:400,animationClassNames:"control-modal-contents image-modal animation-in",uploadLoading:!1,lWidth:2,strokeColor:"#FF0000",canvasHistory:[],step:-1,canvas:null,context:null,canvasArea:null,textarea:null,painting:!1,startPoint:{x:void 0,y:void 0},tool:1,textAreaStyle:{},moveDrawCount:0,quadraticCurvePoints:[]}},watch:{tool:function tool(){0===this.tool?this.canvas.removeEventListener("mousemove",this.move):1===this.tool&&this.canvas.addEventListener("mousemove",this.move)},canvasHistory:function canvasHistory(){}},mounted:function mounted(){var l=this;this.canvas=document.querySelector("#image_canvas"),this.canvasArea=document.querySelector("#loon_canvas_editor_box"),this.context=this.canvas.getContext("2d"),this.listenDrawLine();var u=this.getImageNode();if(null===u);else{var _=new Image;_.src=u.imageDataBase64String,_.onload=function(){l.canvasWidth=_.naturalWidth,l.canvasHeight=_.naturalHeight,l.context.clearRect(0,0,l.canvasWidth,l.canvasHeight),setTimeout((function(){l.context.drawImage(_,0,0,l.canvasWidth,l.canvasHeight),l.canvasDraw()}),0)}}},methods:{getImageNode:function getImageNode(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId),u=l.docTree.curOnDragNode;if(u instanceof Sn.H)return u;var _,v=l.docTree.curDomRange.normalize().endPath,C=null===(_=l.vueController.findNodebyPath(v))||void 0===_?void 0:_.node;return C instanceof Sn.H?C:null},listenDrawLine:function listenDrawLine(){this.canvas.addEventListener("mousedown",this.down),this.canvas.addEventListener("mousemove",this.move),this.canvasArea.addEventListener("mouseup",this.up)},clearListenDrawLine:function clearListenDrawLine(){this.canvas.removeEventListener("mousedown",this.down),this.canvas.removeEventListener("mousemove",this.move),this.canvasArea.removeEventListener("mouseup",this.up)},changeTool:function changeTool(l){this.tool=l},down:function down(l){var u=this;this.painting=!0,this.startPoint={x:l.offsetX,y:l.offsetY},this.quadraticCurvePoints.push(this.startPoint),0===this.tool&&(this.textAreaStyle={width:"100px",height:"27px",left:l.offsetX+"px",top:l.offsetY+"px"},setTimeout((function(){u.$refs.textCanvas&&u.$refs.textCanvas.focus()}),0)),l.stopPropagation(),l.preventDefault()},move:function move(l){switch(this.tool){case 0:this.drawText(l);break;case 1:if(this.quadraticCurvePoints.push({x:l.offsetX,y:l.offsetY}),this.quadraticCurvePoints.length>3){var u=this.quadraticCurvePoints.slice(-2),_=u[0],v={x:(u[0].x+u[1].x)/2,y:(u[0].y+u[1].y)/2};this.drawLine(this.startPoint,_,v),this.startPoint=v}break}l.stopPropagation(),l.preventDefault()},up:function up(l){if(0===this.tool&&this.canvas.removeEventListener("mousemove",this.move),this.quadraticCurvePoints.push({x:l.offsetX,y:l.offsetY}),this.quadraticCurvePoints.length>3){var u=this.quadraticCurvePoints.slice(-2),_=u[0],v={x:(u[0].x+u[1].x)/2,y:(u[0].y+u[1].y)/2};this.drawLine(this.startPoint,_,v)}this.quadraticCurvePoints=[],this.painting=!1,1===this.tool&&this.canvasDraw(),l.stopPropagation(),l.preventDefault()},changeText:function changeText(l){l.offsetX-this.startPoint.x>0?this.textAreaStyle.width=l.offsetX-this.startPoint.x+"px":(this.textAreaStyle.width=-(l.offsetX-this.startPoint.x)+"px",this.textAreaStyle.left=l.offsetX+"px"),l.offsetY-this.startPoint.y>0?this.textAreaStyle.height=l.offsetY-this.startPoint.y+"px":(this.textAreaStyle.height=-(l.offsetY-this.startPoint.y)+"px",this.textAreaStyle.top=l.offsetY+"px")},drawText:function drawText(){this.$refs.textCanvas&&this.$refs.textCanvas.value&&(this.context.font="16px 宋体",this.context.fillStyle="#F00",this.context.fillText(this.$refs.textCanvas.value,this.textAreaStyle.left.split("px")[0],Number(this.textAreaStyle.top.split("px")[0])+16),this.canvasDraw(),this.$refs.textCanvas.value="",this.textAreaStyle={})},drawLine:function drawLine(l,u,_){this.painting?(this.context.beginPath(),this.context.lineWidth=this.lWidth,this.context.strokeStyle=this.strokeColor,this.context.lineCap="round",this.context.lineJoin="round",this.context.moveTo(l.x,l.y),this.context.quadraticCurveTo(u.x,u.y,_.x,_.y),this.context.stroke(),this.context.closePath()):this.moveDrawCount=0},canvasDraw:function canvasDraw(){this.step++,this.step<this.canvasHistory.length&&(this.canvasHistory.length=this.step);var l=1,u=this.canvas.toDataURL("image/jpeg",l);while(u.length/1024>100)l-=.01,u=this.canvas.toDataURL("image/jpeg",l);this.canvasHistory.push(this.canvas.toDataURL())},canvasUndo:function canvasUndo(){var l=this;if(this.step>0){this.step--;var u=new Image;u.src=this.canvasHistory[this.step],this.context.clearRect(0,0,this.canvasWidth,this.canvasHeight),u.onload=function(){l.context.drawImage(u,0,0)}}},canvasRedo:function canvasRedo(){var l=this;if(this.step<this.canvasHistory.length-1){this.step++;var u=new Image;u.src=this.canvasHistory[this.step],this.context.clearRect(0,0,this.canvasWidth,this.canvasHeight),u.onload=function(){l.context.drawImage(u,0,0)}}},handleClose:function handleClose(){this.clearListenDrawLine(),this.$emit("closed")},sure:function sure(){var l=this.getImageNode(),u=this.canvasHistory[this.canvasHistory.length-1];l&&u&&(this.vueController.updateImageSrc(l,u),this.handleClose())}}},xl=wl,Pl=normalizeComponent(xl,CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_render,bl,!1,null,"1e0a2026",null),Cl=Pl.exports,ParagraphDialogvue_type_template_id_461dae42_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("段落属性设置")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[l._t("hoParagraph")],2)]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},El=[],Sl={name:"ParagraphDialog",props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0},controlProperty:{type:Object,required:!0}},inject:["getParagraphCustomProperty"],data:function data(){return{textActiveName:"first",animationClassNames:"control-modal-contents paragraph-modal animation-in"}},computed:{domRange:function domRange(){return this.controlProperty.domRange}},methods:{sure:function sure(){var l,u=rt.b.instance().getFactory(this.hoEditorFactoryId),_=null===(l=u.vueController.findNodebyPath(this.domRange.endPath))||void 0===l?void 0:l.node,v=u.drawTree.getDrawLineByDNode(_.drawNodes[0]).paragraphNode;v.setCustomProperty(this.getParagraphCustomProperty()),this.handleClose()},handleClose:function handleClose(){this.animationClassNames="control-modal-contents paragraph-modal animation-out",this.$emit("closed")}}},Tl=Sl,Dl=normalizeComponent(Tl,ParagraphDialogvue_type_template_id_461dae42_render,El,!1,null,null,null),kl=Dl.exports,WaterSetvue_type_template_id_58b59c58_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents water-set animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("水印")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"50px"}},[l._v("内容")]),_("el-input",{attrs:{type:"text",size:"mini",clearable:"",placeholder:"文本内容",maxlength:"20","show-word-limit":""},on:{input:l.codeChange},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"50px"}},[l._v("角度")]),_("el-radio-group",{attrs:{size:"mini"},on:{change:l.codeChange},model:{value:l.rotate,callback:function(u){l.rotate=u},expression:"rotate"}},[_("el-radio-button",{attrs:{label:0}},[l._v("水平")]),_("el-radio-button",{attrs:{label:1}},[l._v("倾斜")])],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"50px"}},[l._v("颜色")]),_("el-color-picker",{attrs:{"show-alpha":""},on:{change:l.codeChange},model:{value:l.color,callback:function(u){l.color=u},expression:"color"}})],1)]),_("div",{staticClass:"section-right"},[_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{attrs:{id:"water"}},[_("img",{directives:[{name:"show",rawName:"v-show",value:l.waterUrl,expression:"waterUrl"}],attrs:{src:l.waterUrl,alt:"背景水印"}})])])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Il=[],Ml=function(l){(0,Y.Z)(WaterSetDialog,l);var u=(0,ee.Z)(WaterSetDialog);function WaterSetDialog(){var l;return(0,q.Z)(this,WaterSetDialog),l=u.apply(this,arguments),l.textContent="",l.rotate=1,l.waterUrl="",l.color="rgba(0, 0, 0, 0.2)",l}return(0,$.Z)(WaterSetDialog,[{key:"created",value:function created(){var l=this.getWaterMark(),u=(0,B.Z)(l,3);this.textContent=u[0],this.rotate=u[1],this.color=u[2]}},{key:"codeChange",value:function codeChange(){this.setWaterMark(this.textContent,150,150,this.callbacks,this.rotate,this.color)}},{key:"callbacks",value:function callbacks(l){this.waterUrl=l}},{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}(k());__decorate([Prop()],Ml.prototype,"vueController",void 0),__decorate([Inject("setWaterMark")],Ml.prototype,"setWaterMark",void 0),__decorate([Inject("getWaterMark")],Ml.prototype,"getWaterMark",void 0),Ml=__decorate([ae({name:"WaterSetDialog"})],Ml);var Nl=Ml,Ol=Nl,Ll=normalizeComponent(Ol,WaterSetvue_type_template_id_58b59c58_render,Il,!1,null,null,null),Al=Ll.exports,Gestationvue_type_template_id_3cebc89e_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("孕周")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("末次月经日期")]),_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",disabled:l.lastMenstruationDateText.length>0,type:"date",format:"yyyy-MM-dd",placeholder:"末次月经日期"},model:{value:l.lastMenstruationDate,callback:function(u){l.lastMenstruationDate=u},expression:"lastMenstruationDate"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("截止日期")]),_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"date",format:"yyyy-MM-dd",placeholder:"截止日期"},model:{value:l.usedDate,callback:function(u){l.usedDate=u},expression:"usedDate"}})],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Rl=[],Fl={name:"Gestation",props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0}},data:function data(){return{animationClassNames:"control-modal-contents gestation-modal animation-in",lastMenstruationDate:"",usedDate:"",lastMenstruationDateText:""}},mounted:function mounted(){"update"===this.controlStatus?this.getGestationNode():(this.getLastDate(),this.usedDate=(0,Lt.vc)(new Date))},methods:{getGestationNode:function getGestationNode(){var l,u=rt.b.instance().getFactory(this.hoEditorFactoryId),_=u.docTree.curDomRange.normalize().endPath,v=null===(l=u.vueController.findNodebyPath(_))||void 0===l?void 0:l.node;v instanceof Ti.G&&(v.lastMenstruationDate&&(this.lastMenstruationDate=v.lastMenstruationDate,this.getLastDate()),v.usedDate&&(this.usedDate=v.usedDate))},getLastDate:function getLastDate(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController,u=l.getNodesByName("main",!1,"末次月经");if(u.length>0&&u[0]){var _=u[0].text.replace(/\s+/g,"").replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,"");_&&(this.lastMenstruationDate=_,this.lastMenstruationDateText=_)}},sure:function sure(){if(!this.lastMenstruationDate)return this.$elMessage.closeAll(),void this.$elMessage.warning("请输入末次月经日期");var l=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController;l.insertGestation(this.controlStatus,this.lastMenstruationDate,this.usedDate),this.handleClose()},handleClose:function handleClose(){this.animationClassNames="control-modal-contents gestation-modal animation-out",this.$emit("closed")}}},jl=Fl,Bl=normalizeComponent(jl,Gestationvue_type_template_id_3cebc89e_render,Rl,!1,null,null,null),Ul=Bl.exports,TablePropertyvue_type_template_id_472d5ba2_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("表格属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canAdjustRowHeight,callback:function(u){l.canAdjustRowHeight=u},expression:"canAdjustRowHeight"}},[l._v("用户可调整行高")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canAdjustRowWidth,callback:function(u){l.canAdjustRowWidth=u},expression:"canAdjustRowWidth"}},[l._v("用户可调整列宽")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canAddRow,callback:function(u){l.canAddRow=u},expression:"canAddRow"}},[l._v("用户可新增表格行列")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canDeleteRow,callback:function(u){l.canDeleteRow=u},expression:"canDeleteRow"}},[l._v("用户可删除表格行列")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canDeleteTable,callback:function(u){l.canDeleteTable=u},expression:"canDeleteTable"}},[l._v("用户可删除表格")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.continuePrintBorders,callback:function(u){l.continuePrintBorders=u},expression:"continuePrintBorders"}},[l._v("续打时打印所有单元格边框")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.isAutoChangeLine,callback:function(u){l.isAutoChangeLine=u},expression:"isAutoChangeLine"}},[l._v("表格内自动换行")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.fixedOnePage,callback:function(u){l.fixedOnePage=u},expression:"fixedOnePage"}},[l._v("表格固定在一页")])],1),_("div",{staticStyle:{width:"100%"}},[_("span",{staticStyle:{padding:"0 10px 0 23px"}},[l._v("表格内自动换行行高")]),_("el-input-number",{attrs:{size:"mini",disabled:!l.isAutoChangeLine,step:1,min:0,precision:2,controls:!1},model:{value:l.autoLineHeight,callback:function(u){l.autoLineHeight=u},expression:"autoLineHeight"}}),_("span",{staticStyle:{"padding-left":"6px"}},[l._v(" 厘米")])],1),_("div",{staticStyle:{width:"100%"}},[_("span",{staticStyle:{padding:"0 10px 0 23px"}},[l._v("当前光标所在行行高 "+l._s(l.rowHeightMm)+" 厘米")])])])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Hl=[],Wl=function(l){(0,Y.Z)(TablePoperty,l);var u=(0,ee.Z)(TablePoperty);function TablePoperty(){var l;return(0,q.Z)(this,TablePoperty),l=u.apply(this,arguments),l.id="",l.canAdjustRowHeight=!1,l.canAdjustRowWidth=!1,l.canAddRow=!0,l.canDeleteRow=!0,l.canDeleteTable=!0,l.continuePrintBorders=!1,l.layoutFullLine=!0,l.tightLineSpace=!1,l.isAutoChangeLine=!1,l.fixedOnePage=!1,l.autoLineHeight=0,l.rowHeightMm=0,l.endPath="",l}return(0,$.Z)(TablePoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"created",value:function created(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l);this.endPath=u.docTree.curDomRange.normalize().endPath;var _=this.getTableNodes();_&&(this.id=_.tableProperty.id?_.tableProperty.id:this.vueController.generateID("TB"),this.canAdjustRowHeight=_.tableProperty.canAdjustRowHeight,this.canAdjustRowWidth=_.tableProperty.canAdjustRowWidth,this.canAddRow=_.tableProperty.canAddRow,this.canDeleteRow=_.tableProperty.canDeleteRow,this.canDeleteTable=_.tableProperty.canDeleteTable,this.continuePrintBorders=_.tableProperty.continuePrintBorders,this.layoutFullLine=_.tableProperty.layoutFullLine,this.tightLineSpace=_.tableProperty.tightLineSpace,this.isAutoChangeLine=_.tableProperty.isAutoChangeLine,this.fixedOnePage=_.tableProperty.fixedOnePage,this.autoLineHeight=_.tableProperty.autoLineHeight)}},{key:"getTableNodes",value:function getTableNodes(){var l,u=this.vueController.findNodebyPath(this.endPath).node,_=this.getCellNode(u),v=null===_||void 0===_?void 0:_.table,C=null===_||void 0===_?void 0:_.table.rows.indexOf(null===_||void 0===_?void 0:_.row);if(void 0!==C){var k=null===_||void 0===_?void 0:_.table.rowInfos[C];if(k){var N=rt.b.instance().getFactory(this.hoEditorFactoryId);k.rowProperty.rowHeight?this.rowHeightMm=Number(k.rowProperty.rowHeight.toFixed(2)):this.rowHeightMm=Number((N.unitConvert.pxConversionMm(k.rowHeight,!1)/10).toFixed(2))}}var B=null===v||void 0===v||null===(l=v.tableProperty)||void 0===l?void 0:l.customProperties;return Array.isArray(B)&&B.length>0?this.setCustomsValue([].concat((0,U.Z)(B),[{name:"",value:""}])):B&&Array.isArray(B.customProperty)&&B.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)(B.customProperty),[{name:"",value:"",description:""}])),v}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"sure",value:function sure(){var l=this,u={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,fixedOnePage:this.fixedOnePage,autoLineHeight:this.autoLineHeight},_=this.getTableNodes();this.vueController.tableProperty(JSON.stringify(u),_),this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TablePoperty}(mixins(Gr));__decorate([Prop()],Wl.prototype,"vueController",void 0),__decorate([Prop()],Wl.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsCustoms")],Wl.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Wl.prototype,"getCustomsValue",void 0),__decorate([Inject("setCustomsValue")],Wl.prototype,"setCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Wl.prototype,"getActiveDocId",void 0),Wl=__decorate([ae({name:"TablePoperty"})],Wl);var ql=Wl,zl=ql,Vl=normalizeComponent(zl,TablePropertyvue_type_template_id_472d5ba2_scoped_true_render,Hl,!1,null,"472d5ba2",null),Kl=Vl.exports,TableRowPropertyvue_type_template_id_c8198e42_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("表格行属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{"padding-right":"20px"}},[_("el-checkbox",{on:{change:l.watchParamsChange},model:{value:l.isSpecifyHeight,callback:function(u){l.isSpecifyHeight=u},expression:"isSpecifyHeight"}},[l._v("指定高度(厘米)")])],1),_("el-input-number",{attrs:{size:"mini",disabled:!l.isSpecifyHeight,precision:2,step:1,min:0,controls:!1,"controls-position":"right"},model:{value:l.rowHeight,callback:function(u){l.rowHeight=u},expression:"rowHeight"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("当前显示高度 "+l._s(l.rowHeightMm)+" 厘米")])],1),_("li",{staticClass:"control-item",staticStyle:{padding:"0 0 0 10px"}},[_("el-checkbox",{attrs:{disabled:!l.isSpecifyHeight},model:{value:l.isLockRowHeight,callback:function(u){l.isLockRowHeight=u},expression:"isLockRowHeight"}},[l._v("锁定行高")])],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.repeatAsTitleAtPageTop,callback:function(u){l.repeatAsTitleAtPageTop=u},expression:"repeatAsTitleAtPageTop"}},[l._v("在隔页顶端以标题行形式重复出现")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.sameLineCanAcrossPages,callback:function(u){l.sameLineCanAcrossPages=u},expression:"sameLineCanAcrossPages"}},[l._v("同行内容能跨页")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.forcedPageBreak,callback:function(u){l.forcedPageBreak=u},expression:"forcedPageBreak"}},[l._v("强制分页")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.printCellBorders,callback:function(u){l.printCellBorders=u},expression:"printCellBorders"}},[l._v("打印单元格边框线")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.printCellBg,callback:function(u){l.printCellBg=u},expression:"printCellBg"}},[l._v("打印单元格背景")])],1)])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},$l=[],Gl=function(l){(0,Y.Z)(TableRowPoperty,l);var u=(0,ee.Z)(TableRowPoperty);function TableRowPoperty(){var l;return(0,q.Z)(this,TableRowPoperty),l=u.apply(this,arguments),l.id="",l.defaultRowProperty={rowHeight:0,isSpecifyHeight:!1,isLockRowHeight:!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}},l.rowHeightMm="0",l.rowHeight=0,l.isSpecifyHeight=!1,l.isLockRowHeight=!1,l.repeatAsTitleAtPageTop=!1,l.sameLineCanAcrossPages=!0,l.forcedPageBreak=!1,l.printCellBorders=!0,l.printCellBg=!0,l.tabKeyInsNewLine=!1,l.paramsChange=[],l.rowInfos=null,l.rowProperty=null,l}return(0,$.Z)(TableRowPoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){this.init()}},{key:"init",value:function init(){var l=this.getCellNodes();if(null!==l){var u=l.table.rows.indexOf(l.row);this.rowInfos=l.table.rowInfos[u]}if(null!==this.rowInfos&&(this.rowProperty=this.rowInfos.rowProperty),null!==this.rowProperty&&null!==this.rowInfos){var _=rt.b.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.isLockRowHeight=this.rowProperty.isLockRowHeight,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=(_.unitConvert.pxConversionMm(this.rowInfos.rowHeight,!1)/10).toFixed(2)}}},{key:"getCellNodes",value:function getCellNodes(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l),_=u.docTree.curDomRange.normalize().endPath,v=this.vueController.findNodebyPath(_).node,C=this.getCellNode(v),k=null===C||void 0===C?void 0:C.table.rows.indexOf(null===C||void 0===C?void 0:C.row);if(k||0===k){var N=null===C||void 0===C?void 0:C.table.rowInfos[k];if(N){var B,W,q,$=null===(B=N.rowProperty)||void 0===B?void 0:B.customProperties;if(Array.isArray($)&&$.length>0?this.setCustomsValue([].concat((0,U.Z)($),[{name:"",value:""}])):$&&Array.isArray($.customProperty)&&$.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)($.customProperty),[{name:"",value:"",description:""}])),null!==(W=N.rowProperty)&&void 0!==W&&W.dataSource)this.setDataSource(null===(q=N.rowProperty)||void 0===q?void 0:q.dataSource);else this.setDataSource()}}return C}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyHeight||(this.rowHeight=0,this.isLockRowHeight=!1)}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"sure",value:function sure(){var l=this,u={id:this.id,customProperties:this.customProperties,dataSource:this.dataSource,isSpecifyHeight:this.isSpecifyHeight,rowHeight:this.rowHeight,isLockRowHeight:this.isLockRowHeight,repeatAsTitleAtPageTop:this.repeatAsTitleAtPageTop,sameLineCanAcrossPages:this.sameLineCanAcrossPages,forcedPageBreak:this.forcedPageBreak,printCellBorders:this.printCellBorders,printCellBg:this.printCellBg,tabKeyInsNewLine:this.tabKeyInsNewLine},_={};Object.keys(u).forEach((function(u){JSON.stringify(l[u])!==JSON.stringify(l.defaultRowProperty[u])&&(_[u]=l[u])})),this.vueController.rowProperty(JSON.stringify(_),this.rowInfos),this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.rowInfos=null,this.rowProperty=null}}]),TableRowPoperty}(mixins(Gr));__decorate([Prop()],Gl.prototype,"vueController",void 0),__decorate([Prop()],Gl.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],Gl.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Gl.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],Gl.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],Gl.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],Gl.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],Gl.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Gl.prototype,"getActiveDocId",void 0),Gl=__decorate([ae({name:"TableRowPoperty"})],Gl);var Zl=Gl,Jl=Zl,Xl=normalizeComponent(Jl,TableRowPropertyvue_type_template_id_c8198e42_scoped_true_render,$l,!1,null,"c8198e42",null),Yl=Xl.exports,TableColPropertyvue_type_template_id_0d009ab0_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("表格列属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{"padding-right":"20px"}},[_("el-checkbox",{on:{change:l.watchParamsChange},model:{value:l.isSpecifyWidth,callback:function(u){l.isSpecifyWidth=u},expression:"isSpecifyWidth"}},[l._v("指定宽度(厘米)")])],1),_("el-input-number",{attrs:{size:"mini",disabled:!l.isSpecifyWidth,step:1,min:0,precision:2,controls:!1},model:{value:l.width,callback:function(u){l.width=u},expression:"width"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("当前显示宽度 "+l._s(l.colWidth)+" 厘米")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("垂直对齐方式")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:l.align,callback:function(u){l.align=u},expression:"align"}},[_("el-option",{attrs:{label:"靠上",value:0}}),_("el-option",{attrs:{label:"居中",value:1}}),_("el-option",{attrs:{label:"靠下",value:2}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编辑器属性")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},on:{change:l.editorPropertyChange},model:{value:l.editorProperty,callback:function(u){l.editorProperty=u},expression:"editorProperty"}},[_("el-option",{attrs:{label:"无",value:0}}),_("el-option",{attrs:{label:"下拉列表",value:1}}),_("el-option",{attrs:{label:"日期",value:2}}),_("el-option",{attrs:{label:"数值",value:3}})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("分隔符")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:l.splitCharacter,callback:function(u){l.splitCharacter=u},expression:"splitCharacter"}},[_("el-option",{attrs:{label:",",value:","}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.allowMultiSelected,callback:function(u){l.allowMultiSelected=u},expression:"allowMultiSelected"}},[l._v("允许多选")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.isAllowDel,callback:function(u){l.isAllowDel=u},expression:"isAllowDel"}},[l._v("允许被删除")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.canModifyContent,callback:function(u){l.canModifyContent=u},expression:"canModifyContent"}},[l._v("用户可以直接编辑修改内容")])],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("来源")]),_("el-input",{attrs:{size:"mini"},model:{value:l.source,callback:function(u){l.source=u},expression:"source"}})],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.listItems,"max-height":"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return u.$index!==l.listItems.length-1&&l.focusIndexs===u.$index?[_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")])]:void 0}}],null,!0)})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:2===l.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("日期格式")]),_("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:l.inputStyle,callback:function(u){l.inputStyle=u},expression:"inputStyle"}},l._l(l.dateFormatList,(function(l){return _("el-option",{key:l,attrs:{label:l,value:l}})})),1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:3===l.editorProperty,expression:"editorProperty === 3"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("最小值")]),_("el-input-number",{attrs:{size:"mini",max:Number(l.maxNumVal),min:0,step:10,controls:!1},model:{value:l.minNumVal,callback:function(u){l.minNumVal=u},expression:"minNumVal"}})],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("最大值")]),_("el-input-number",{attrs:{size:"mini",min:Number(l.minNumVal),step:10,controls:!1},model:{value:l.maxNumVal,callback:function(u){l.maxNumVal=u},expression:"maxNumVal"}})],1)])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Ql=[],tc=function(l){(0,Y.Z)(TableColPoperty,l);var u=(0,ee.Z)(TableColPoperty);function TableColPoperty(){var l;return(0,q.Z)(this,TableColPoperty),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.id="",l.editorProperty=1,l.align=0,l.width=0,l.isSpecifyWidth=!1,l.listItems=[],l.source="",l.canModifyContent=!0,l.isAllowDel=!0,l.allowMultiSelected=!1,l.splitCharacter=",",l.errorArr=[],l.errorIndex=[],l.focusIndexs=-1,l.inputStyle="yyyy-MM-dd HH:mm:ss",l.colWidth="0",l.maxNumVal=0,l.minNumVal=50,l.defaultColProperty={id:"",editorProperty:0,align:0,width:0,isSpecifyWidth:!1,downListProperty:void 0,dateTimeProperty:void 0,numberProperty:void 0},l.colInfoes=null,l}return(0,$.Z)(TableColPoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"created",value:function created(){var l=this.getCellNodes();if(null!==l){var u,_=l.row.indexOf(l);this.colInfoes=l.table.colInfos[_];var v=null===(u=this.colInfoes)||void 0===u?void 0:u.colProperty.customProperties;Array.isArray(v)&&v.length>0?this.setCustomsValue([].concat((0,U.Z)(v),[{name:"",value:""}])):v&&Array.isArray(v.customProperty)&&v.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)(v.customProperty),[{name:"",value:"",description:""}]))}if(null!==this.colInfoes){var C,k,N=rt.b.instance().getFactory(this.hoEditorFactoryId),B=this.colInfoes.colProperty;this.id=B.id?B.id:this.vueController.generateID("TB"),this.editorProperty=B.editorProperty?B.editorProperty:0,this.align=B.align?B.align:0;var W=this.getKeyId(0),q=[{value:"",text:"",id:W}];this.listItems=B.downListProperty&&JSON.parse(B.downListProperty.listItems)?[].concat((0,U.Z)(JSON.parse(B.downListProperty.listItems)),q):[].concat(q),this.source=B.downListProperty?B.downListProperty.source:"",this.canModifyContent=!B.downListProperty||B.downListProperty.canModifyContent,this.isAllowDel=!B.downListProperty||B.downListProperty.isAllowDel,this.allowMultiSelected=!!B.downListProperty&&B.downListProperty.allowMultiSelected,this.splitCharacter=B.downListProperty?B.downListProperty.splitCharacter:",",this.inputStyle=null!==(C=B.dateTimeProperty)&&void 0!==C&&C.inputStyle?null===(k=B.dateTimeProperty)||void 0===k?void 0:k.inputStyle:"yyyy-MM-dd",this.maxNumVal=B.numberProperty?B.numberProperty.maxNumVal:0,this.minNumVal=B.numberProperty?B.numberProperty.minNumVal:100,this.width=B.width?B.width:0,this.colWidth=(N.unitConvert.pxConversionMm(this.colInfoes.colWidth,!1)/10).toFixed(2),this.isSpecifyWidth=!!B.isSpecifyWidth}}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"getCellNodes",value:function getCellNodes(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l),_=u.docTree.curDomRange.normalize().endPath,v=this.vueController.findNodebyPath(_).node;return this.getCellNode(v)}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyWidth||(this.width=0)}},{key:"querySearch",value:function querySearch(l,u){u(Lt.dv)}},{key:"editorPropertyChange",value:function editorPropertyChange(){}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.listItems[l];""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.listItems.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.listItems.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0?this.errorIndex.includes(u.id)||this.errorIndex.push(u.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(l){var u=this.listItems.filter((function(l){if(!l.text&&!l.value)return l}));0===u.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.listItems.filter((function(_,v){_.id===l&&(u=v)})),this.listItems.splice(u,1)}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"sure",value:function sure(){var l,u,_,v=this,C={};if(this.editorProperty===tt.YS.DownList){var k=this.listItems.filter((function(l){if(l.text||l.value)return l}));l={listItems:JSON.stringify(k),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},this.editorProperty!==this.defaultColProperty.editorProperty&&(C.downListProperty=l)}else this.editorProperty===tt.YS.DateTime?(u={inputStyle:this.inputStyle},this.editorProperty!==this.defaultColProperty.editorProperty&&(C.dateTimeProperty=u)):this.editorProperty===tt.YS.Number&&(_={minNumVal:this.minNumVal,maxNumVal:this.maxNumVal},this.editorProperty!==this.defaultColProperty.editorProperty&&(C.numberProperty=_));var N={id:this.id,editorProperty:this.editorProperty,align:this.align,width:this.width,isSpecifyWidth:this.isSpecifyWidth,customProperties:this.customProperties};Object.keys(N).forEach((function(l){JSON.stringify(v[l])!==JSON.stringify(v.defaultColProperty[l])&&(C[l]=v[l])})),this.vueController.colProperty(JSON.stringify(C),this.colInfoes),this.$nextTick((function(){return v.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.colInfoes=null}}]),TableColPoperty}(mixins(Gr));__decorate([Prop()],tc.prototype,"vueController",void 0),__decorate([Prop()],tc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsCustoms")],tc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],tc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],tc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],tc.prototype,"getActiveDocId",void 0),tc=__decorate([ae({name:"TableColPoperty"})],tc);var rc=tc,sc=rc,uc=normalizeComponent(sc,TableColPropertyvue_type_template_id_0d009ab0_render,Ql,!1,null,null,null),_c=uc.exports,TableCellPropertyvue_type_template_id_4214af76_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-cell-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("单元格属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("el-tabs",{model:{value:l.textActiveName,callback:function(u){l.textActiveName=u},expression:"textActiveName"}},[_("el-tab-pane",{attrs:{label:"常规",name:"0"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[l._v("标题")]),_("el-input",{attrs:{size:"mini",placeholder:"标题"},model:{value:l.title,callback:function(u){l.title=u},expression:"title"}})],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.lightCellBorders,callback:function(u){l.lightCellBorders=u},expression:"lightCellBorders"}},[l._v("突出显示单元格边框")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[l._v("垂直对齐方式")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:l.align,callback:function(u){l.align=u},expression:"align"}},[_("el-option",{attrs:{label:"靠上",value:0}}),_("el-option",{attrs:{label:"垂直居中",value:1}}),_("el-option",{attrs:{label:"靠下",value:2}})],1)],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("单元格背景色")]),_("ho-color-picker",{attrs:{defaultColor:"#ffffff"},model:{value:l.backColor,callback:function(u){l.backColor=u},expression:"backColor"}})],1)]),_("li",{staticClass:"control-item"},[_("div",[_("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[l._v("单元格内边距")]),_("span",{staticClass:"label"},[l._v("上")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellTop,callback:function(u){l.cellTop=u},expression:"cellTop"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")]),_("span",{staticClass:"label"},[l._v("下")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellBottom,callback:function(u){l.cellBottom=u},expression:"cellBottom"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")])],1),_("div",[_("span",{staticClass:"label",staticStyle:{display:"inline-block",padding:"0 44px","margin-left":"-1px"}}),_("span",{staticClass:"label"},[l._v("左")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellLeft,callback:function(u){l.cellLeft=u},expression:"cellLeft"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")]),_("span",{staticClass:"label"},[l._v("右")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellRight,callback:function(u){l.cellRight=u},expression:"cellRight"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")])],1)]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("边框设置")]),_("div",[_("el-checkbox",{on:{change:l.isDrawGridlinesChange},model:{value:l.isDrawGridlines,callback:function(u){l.isDrawGridlines=u},expression:"isDrawGridlines"}},[l._v("绘制边框")])],1)]),_("li",{staticClass:"control-item grid-lines-style",style:{color:l.isDrawGridlines?"#000000":"#C0C4CC"}},[_("span",{staticClass:"label"}),_("div",[_("div",{staticClass:"control-item"},[_("div",{staticClass:"grid-lines-color-item"},[_("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[l._v("边框颜色")]),_("ho-color-picker",{model:{value:l.gridLinesColor[0],callback:function(u){l.$set(l.gridLinesColor,0,u)},expression:"gridLinesColor[0]"}})],1)]),_("PrintLineStyle",{attrs:{isDrawGridlines:l.isDrawGridlines,defaultStyle:l.gridLinesStyle,placeholder:"边框样式"},on:{change:l.printStyleChange}}),_("li",{staticClass:"control-item"},[_("el-checkbox",{attrs:{disabled:!l.isDrawGridlines},model:{value:l.printGridLines,callback:function(u){l.printGridLines=u},expression:"printGridLines"}},[l._v("打印边框")])],1)],1)])])]),_("el-tab-pane",{attrs:{label:"双击属性",name:"1"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编辑器属性")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},model:{value:l.editorProperty,callback:function(u){l.editorProperty=u},expression:"editorProperty"}},[_("el-option",{attrs:{label:"无",value:0}}),_("el-option",{attrs:{label:"下拉列表",value:1}}),_("el-option",{attrs:{label:"日期",value:2}})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("分隔符")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:l.splitCharacter,callback:function(u){l.splitCharacter=u},expression:"splitCharacter"}},[_("el-option",{attrs:{label:",",value:","}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.allowMultiSelected,callback:function(u){l.allowMultiSelected=u},expression:"allowMultiSelected"}},[l._v("允许多选")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.isAllowDel,callback:function(u){l.isAllowDel=u},expression:"isAllowDel"}},[l._v("允许被删除")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.canModifyContent,callback:function(u){l.canModifyContent=u},expression:"canModifyContent"}},[l._v("用户可以直接编辑修改内容")])],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("来源")]),_("el-input",{attrs:{size:"mini"},model:{value:l.source,callback:function(u){l.source=u},expression:"source"}})],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.listItems,"max-height":"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return u.$index!==l.listItems.length-1&&l.focusIndexs===u.$index?[_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")])]:void 0}}],null,!0)})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:2===l.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("日期格式")]),_("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:l.inputStyle,callback:function(u){l.inputStyle=u},expression:"inputStyle"}},l._l(l.dateFormatList,(function(l){return _("el-option",{key:l,attrs:{label:l,value:l}})})),1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:2===l.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.isAutoInputCurDate,callback:function(u){l.isAutoInputCurDate=u},expression:"isAutoInputCurDate"}},[l._v("双击设置当前日期时间")])],1)])])]),_("el-tab-pane",{attrs:{label:"斜分割线",name:"2"}},[_("ul",{staticClass:"diagonal-line"},[_("li",{class:0===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(0)}}},[_("span",{staticClass:"line no-line"}),_("span",[l._v("None")])]),_("li",{class:1===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(1)}}},[_("span",{staticClass:"line left-line top-line top-left-one-line"}),_("span",[l._v("TopLeftOneLine")])]),_("li",{class:2===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(2)}}},[_("span",{staticClass:"line left-line top-line top-left-two-line"}),_("span",[l._v("TopLeftTwoLine")])]),_("li",{class:3===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(3)}}},[_("span",{staticClass:"line right-line top-line top-right-one-line"}),_("span",[l._v("TopRightOneLine")])]),_("li",{class:4===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(4)}}},[_("span",{staticClass:"line right-line top-line top-right-two-line"}),_("span",[l._v("TopRightTwoLine")])]),_("li",{class:5===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(5)}}},[_("span",{staticClass:"line left-line bottom-line bottom-left-one-line"}),_("span",[l._v("BottomLeftOneLine")])]),_("li",{class:6===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(6)}}},[_("span",{staticClass:"line left-line bottom-line bottom-left-two-line"}),_("span",[l._v("BottomLeftTwoLine")])]),_("li",{class:7===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(7)}}},[_("span",{staticClass:"line right-line bottom-line bottom-right-one-line"}),_("span",[l._v("BottomRightOneLine")])]),_("li",{class:8===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(8)}}},[_("span",{staticClass:"line right-line bottom-line bottom-right-two-line"}),_("span",[l._v("BottomRightTwoLine")])])])])],1)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},pc=[],PrintLineStylevue_type_template_id_01f80e1a_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-item"},[_("span",{staticClass:"label",style:{width:l.labelWidth}},[l._v(l._s(l.placeholder))]),_("el-select",{staticClass:"grid-lines-style",staticStyle:{width:"144px"},attrs:{disabled:l.isDrawGridlines,placeholder:l.placeholder,size:"mini"},on:{change:l.linesStyleChange},model:{value:l.linesStyle,callback:function(u){l.linesStyle=u},expression:"linesStyle"}},[_("el-option",{attrs:{label:"solid",value:0}},[_("svg",{attrs:{viewBox:"0 0 18236 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"34"}},[_("path",{attrs:{d:"M0 0h18236.952381v1024H0z",fill:"#333"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("solid")])]),_("el-option",{attrs:{label:"dash",value:1}},[_("svg",{attrs:{viewBox:"0 0 15360 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"32",fill:"#333"}},[_("path",{attrs:{d:"M0 1024V0h3072v1024H0z m4096 0V0h3072v1024H4096z m8192 0V0h3072v1024h-3072z m-4096 0V0h3072v1024H8192z"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("dash")])]),_("el-option",{attrs:{label:"dashdot",value:2}},[_("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"}},[_("path",{attrs:{d:"M0 0h2304v1024H0V0z m3328 0h1024v1024h-1024V0z m2048 0h2304v1024h-2304V0z"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("dashdot")])]),_("el-option",{attrs:{label:"dashdotdo",value:3}},[_("svg",{attrs:{viewBox:"0 0 12288 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"80",height:"34",fill:"#333"}},[_("path",{attrs:{d:"M6912 0h1536v1024h-1536V0zM3840 0h1536v1024h-1536V0zM0 0h2304v1024H0V0z m9984 0h2304v1024h-2304V0z"}})]),_("span",{staticStyle:{flex:"1",padding:"0 33px"}}),_("span",[l._v("dashdotdot")])]),_("el-option",{attrs:{label:"dot",value:4}},[_("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"}},[_("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_("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"}},[_("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_("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"}},[_("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("dot")])])],1)],1)},fc=[],vc=(__webpack_require__(35192),function(l){(0,Y.Z)(PrintLineStyle,l);var u=(0,ee.Z)(PrintLineStyle);function PrintLineStyle(){var l;return(0,q.Z)(this,PrintLineStyle),l=u.apply(this,arguments),l.linesStyle=0,l}return(0,$.Z)(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(l){this.$emit("change",l)}}]),PrintLineStyle}(k()));__decorate([Prop()],vc.prototype,"isDrawGridlines",void 0),__decorate([Prop()],vc.prototype,"placeholder",void 0),__decorate([Prop()],vc.prototype,"defaultStyle",void 0),__decorate([Prop({default:"90px"})],vc.prototype,"labelWidth",void 0),vc=__decorate([ae({name:"PrintLineStyle"})],vc);var wc,xc,Pc=vc,Cc=Pc,Sc=normalizeComponent(Cc,PrintLineStylevue_type_template_id_01f80e1a_scoped_true_render,fc,!1,null,"01f80e1a",null),Tc=Sc.exports;(function(l){l[l["vatop"]=0]="vatop",l[l["vacenter"]=1]="vacenter",l[l["vabottom"]=2]="vabottom"})(wc||(wc={})),function(l){l[l["dash"]=0]="dash",l[l["dashdot"]=1]="dashdot",l[l["dashdotdo"]=2]="dashdotdo",l[l["dot"]=3]="dot",l[l["solid"]=4]="solid"}(xc||(xc={}));var Dc=function(l){(0,Y.Z)(TableCellProperty,l);var u=(0,ee.Z)(TableCellProperty);function TableCellProperty(){var l;return(0,q.Z)(this,TableCellProperty),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.textActiveName="0",l.lightCellBorders=!1,l.title="",l.align=wc.vatop,l.backColor="#ffffff",l.isDrawGridlines=!0,l.gridLinesColor=["#000000","#000000","#000000","#000000"],l.gridLinesStyle=xc.solid,l.span=0,l.alignTextToGridline=!0,l.printGridLines=!0,l.cellTop=0,l.cellBottom=0,l.cellLeft=0,l.cellRight=0,l.editorProperty=0,l.listItems=[],l.source="",l.canModifyContent=!0,l.isAllowDel=!0,l.allowMultiSelected=!1,l.splitCharacter=",",l.errorArr=[],l.errorIndex=[],l.focusIndexs=-1,l.inputStyle="yyyy-MM-dd HH:mm",l.isAutoInputCurDate=!0,l.obliqueSplitLine=0,l.endPath="",l}return(0,$.Z)(TableCellProperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l);this.endPath=u.docTree.curDomRange.normalize().endPath;var _=this.getCellNodes();if(null!==_){this.id=null!==_&&void 0!==_&&_.cellProperty.id?_.cellProperty.id:this.vueController.generateID("TB"),this.lightCellBorders=_.cellProperty.lightCellBorders,this.title=_.cellProperty.title?_.cellProperty.title:"",this.align=_.cellProperty.align,this.isDrawGridlines=_.cellProperty.isDrawGridlines,Array.isArray(_.cellProperty.gridLinesColor)?this.gridLinesColor=(0,U.Z)(_.cellProperty.gridLinesColor):this.gridLinesColor=["#000000","#000000","#000000","#000000"],this.backColor=_.cellProperty.backColor?_.cellProperty.backColor:"#ffffff",this.gridLinesStyle=_.cellProperty.gridLinesStyle,this.span=_.cellProperty.span,this.alignTextToGridline=_.cellProperty.alignTextToGridline,this.printGridLines=_.cellProperty.printGridLines;var v=_.cellProperty.cellInnerMargin?_.cellProperty.cellInnerMargin:[0,0,0,0],C=(0,B.Z)(v,4);this.cellTop=C[0],this.cellBottom=C[1],this.cellLeft=C[2],this.cellRight=C[3],this.editorProperty=_.cellProperty.editorProperty;var k=this.getKeyId(0),N=[{value:"",text:"",id:k}],W=_.cellProperty.downListProperty;W?(this.listItems=JSON.parse(W.listItems)?[].concat((0,U.Z)(JSON.parse(W.listItems)),N):[].concat(N),this.source=W.source?W.source:"",this.canModifyContent=void 0===W.canModifyContent||W.canModifyContent,this.isAllowDel=void 0===W.isAllowDel||W.isAllowDel,this.allowMultiSelected=void 0!==W.allowMultiSelected&&W.allowMultiSelected,this.splitCharacter=W.splitCharacter?W.splitCharacter:","):this.listItems=[].concat(N);var q=_.cellProperty.dateTimeProperty;q&&(this.inputStyle=q.inputStyle?q.inputStyle:"yyyy-MM-dd",this.isAutoInputCurDate=void 0!==q.isAutoInputCurDate&&q.isAutoInputCurDate),this.obliqueSplitLine=_.cellProperty.obliqueSplitLine}}},{key:"isDrawGridlinesChange",value:function isDrawGridlinesChange(){this.isDrawGridlines||(this.printGridLines=!1)}},{key:"getCellNodes",value:function getCellNodes(){var l,u,_=this.vueController.findNodebyPath(this.endPath).node,v=this.getCellNode(_),C=(null===v||void 0===v||v.table.rows.indexOf(null===v||void 0===v?void 0:v.row),null===v||void 0===v?void 0:v.cellProperty.customProperties);(Array.isArray(C)&&C.length>0?this.setCustomsValue([].concat((0,U.Z)(C),[{name:"",value:""}])):C&&Array.isArray(C.customProperty)&&C.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)(C.customProperty),[{name:"",value:"",description:""}])),null!==v&&void 0!==v&&null!==(l=v.cellProperty)&&void 0!==l&&l.dataSource)?this.setDataSource(null===(u=v.cellProperty)||void 0===u?void 0:u.dataSource):this.setDataSource();return v}},{key:"querySearch",value:function querySearch(l,u){u(Lt.dv)}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.listItems[l];""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.listItems.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.listItems.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0?this.errorIndex.includes(u.id)||this.errorIndex.push(u.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(l){var u=this.listItems.filter((function(l){if(!l.text&&!l.value)return l}));0===u.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.listItems.filter((function(_,v){_.id===l&&(u=v)})),this.listItems.splice(u,1)}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"printStyleChange",value:function printStyleChange(l){this.gridLinesStyle=l}},{key:"setObliqueSplitLine",value:function setObliqueSplitLine(l){this.obliqueSplitLine=l}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"sure",value:function sure(){var l=this;this.gridLinesColor=[this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0]];var u={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 _=this.listItems.filter((function(l){if(l.text||l.value)return l}));u.downListProperty={listItems:JSON.stringify(_),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},u.dateTimeProperty=void 0}else 2===this.editorProperty&&(u.dateTimeProperty={inputStyle:this.inputStyle,isAutoInputCurDate:this.isAutoInputCurDate},u.downListProperty=void 0);var v=rt.b.instance().getFactory(this.hoEditorFactoryId),C=v.docTree.curDomRange,k=v.docTree.curDomRange.normalize().inSameTable()[1],N=k.getTableSelectCells(C,!0),B=this.getCellNodes();0===N.length&&null!==B&&N.push(B),v.tableController.cellProperty(JSON.stringify(u),N),this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TableCellProperty}(mixins(Gr));__decorate([Prop()],Dc.prototype,"vueController",void 0),__decorate([Prop()],Dc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],Dc.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Dc.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],Dc.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],Dc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],Dc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],Dc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Dc.prototype,"getActiveDocId",void 0),Dc=__decorate([ae({name:"TableCellProperty",components:{PrintLineStyle:Tc,HoColorPicker:el}})],Dc);var Mc=Dc,Nc=Mc,Rc=normalizeComponent(Nc,TableCellPropertyvue_type_template_id_4214af76_scoped_true_render,pc,!1,null,"4214af76",null),Fc=Rc.exports,jc={name:"ControlModal",components:{ExpressionForm:ls,DateDialog:ia,Barcode:Da,QrCode:Wa,Sign:hl,TextDialog:es,CustomAttributes:Ds,DataSourceDialog:Ls,RadioCheckbox:gs,SelectDialog:zo,ListSource:Hs,Gestation:Ul,TableProperty:Kl,TableRowProperty:Yl,TableCellProperty:Fc,TableColProperty:_c,WaterSetDialog:Al,CommentDialog:xs,PageInfoes:Gs,Delimiter:ol,UploadImageDialog:yl,CanvasImageDialog:Cl,ParagraphDialog:kl},mixins:[jt],props:{controlProperty:{type:Object,required:!0},isDataSource:{type:Boolean,required:!0},isCustoms:{type:Boolean,required:!0},isTableProperty:{type:Boolean,required:!0},isListStyle:{type:Boolean,required:!0},hoEditorFactoryId:{type:String,required:!0},uploadImageParams:{type:Object}},data:function data(){return{toolModals:null,names:{style1:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"}}},computed:{controlType:function controlType(){return this.controlProperty.controlType},controlStatus:function controlStatus(){return this.controlProperty.controlStatus},expressStyle:function expressStyle(){return this.controlProperty.expressStyle},vueController:function vueController(){return rt.b.instance().getFactory(this.hoEditorFactoryId).vueController}},mounted:function mounted(){this.toolModals=this.$refs.toolModals},methods:{insertComments:function insertComments(l){this.$emit("insertComments",l)},handleClose:function handleClose(){if(this.isDataSource||this.isCustoms||this.isListStyle||"find"===this.controlType)return!1;this.$emit("closeControlmodal")},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.toolModals,"modal-title")}}},Uc=jc,Wc=normalizeComponent(Uc,ControlModalvue_type_template_id_1b898d58_render,Fo,!1,null,null,null),qc=Wc.exports,FindReplacevue_type_template_id_15d96f32_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"findModal",class:l.animationClassNames,on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("查找替换")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("查找内容")]),_("el-input",{attrs:{type:"text",size:"mini"},nativeOn:{keyup:function(u){return!u.type.indexOf("key")&&l._k(u.keyCode,"enter",13,u.key,"Enter")?null:l.toFind.apply(null,arguments)}},model:{value:l.findContent,callback:function(u){l.findContent=u},expression:"findContent"}})],1),_("li",{staticClass:"control-item"},[_("div",{staticClass:"label"},[_("el-checkbox",{on:{change:l.switchTypes},model:{value:l.switchType,callback:function(u){l.switchType=u},expression:"switchType"}},[l._v("替换内容")])],1),_("el-input",{attrs:{disabled:!l.switchType,type:"text",size:"mini"},model:{value:l.replaceCentent,callback:function(u){l.replaceCentent=u},expression:"replaceCentent"}})],1),_("li",{staticClass:"control-item"},[_("el-radio",{attrs:{label:0},model:{value:l.direction,callback:function(u){l.direction=u},expression:"direction"}},[l._v("向下")]),_("el-radio",{attrs:{label:1},model:{value:l.direction,callback:function(u){l.direction=u},expression:"direction"}},[l._v("向上")]),_("div",{staticStyle:{"margin-left":"30px"}},[_("el-checkbox",{model:{value:l.matchCase,callback:function(u){l.matchCase=u},expression:"matchCase"}},[l._v("区分大小写")])],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{disabled:""===l.findContent,size:"mini"},on:{click:l.toFind}},[l._v("查找")]),_("el-button",{attrs:{disabled:""===l.findContent||!l.switchType,size:"mini"},on:{click:l.toReplace}},[l._v("替换")]),_("el-button",{attrs:{disabled:""===l.findContent||!l.switchType,size:"mini"},on:{click:l.toReplaceAll}},[l._v("全部替换")]),_("el-button",{attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("关闭")])],1)])},Vc=[],$c={name:"FindReplaceDialog",mixins:[jt],Inject:["setControlFindType"],props:{hoEditorFactoryId:{type:String,required:!0}},data:function data(){return{switchType:!1,operType:"find",findContent:"",replaceCentent:"",direction:0,matchCase:!0,path:"",callbackCount:0,animationClassNames:"control-modal-contents find-modal animation-in",findModal:null}},mounted:function mounted(){this.findModal=this.$refs.findModal},methods:{switchTypes:function switchTypes(l){this.operType=l?"replace":"find"},toFind:function toFind(l){if(this.findContent){var u=rt.b.instance().getFactory(this.hoEditorFactoryId);this.path=u.vueController.find(this.findContent,this.direction,this.matchCase),l instanceof Function&&l()}},toReplace:function toReplace(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);""===this.path||"-1"===this.path?this.callbackCount<=2?(this.callbackCount++,this.toFind(this.toReplace)):this.callbackCount=0:(l.vueController.replace(this.findContent,this.replaceCentent,this.path,1,this.direction,this.matchCase),this.callbackCount=0,this.path="")},toReplaceAll:function toReplaceAll(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);l.vueController.replace(this.findContent,this.replaceCentent,"",0,1,this.matchCase),this.callbackCount=0,this.path=""},handleClose:function handleClose(){var l=this;this.animationClassNames="control-modal-contents find-modal animation-out",window.clearTimeout(),setTimeout((function(){l.setControlFindType("")}),100)},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.findModal,"modal-title")}}},Zc=$c,Xc=normalizeComponent(Zc,FindReplacevue_type_template_id_15d96f32_render,Vc,!1,null,null,null),Yc=Xc.exports,Qc=Yc,ViewContinuousXmlvue_type_template_id_db8cca98_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:l.loadMore,expression:"loadMore"}],staticClass:"ho-continuous-viewbox",staticStyle:{overflow:"auto"}},l._l(l.continuousView.currentList,(function(u,v){return _("div",{key:v,domProps:{innerHTML:l._s(u.innerHTML)}})})),0)},eu=[],tu=function(l){(0,Y.Z)(ViewContinuousXml,l);var u=(0,ee.Z)(ViewContinuousXml);function ViewContinuousXml(){var l;return(0,q.Z)(this,ViewContinuousXml),l=u.apply(this,arguments),l.continuousView={status:!1,currentList:[],allList:[]},l}return(0,$.Z)(ViewContinuousXml,[{key:"mounted",value:function mounted(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);l.continuousView=this.continuousView}},{key:"loadMore",value:function loadMore(){var l=this.continuousView.allList,u=this.continuousView.currentList;if(l.length>u.length){var _,v=l.filter((function(l,_){return _>u.length-1&&_<u.length+4}));(_=this.continuousView.currentList).push.apply(_,(0,U.Z)(v))}}}]),ViewContinuousXml}(k());__decorate([Prop()],tu.prototype,"hoEditorFactoryId",void 0),tu=__decorate([ae({name:"ViewContinuousXml",components:{}})],tu);var ru=tu,nu=ru,iu=normalizeComponent(nu,ViewContinuousXmlvue_type_template_id_db8cca98_render,eu,!1,null,null,null),ou=iu.exports,au=ou,su=function(l){(0,Y.Z)(ControlMixin,l);var u=(0,ee.Z)(ControlMixin);function ControlMixin(){var l;return(0,q.Z)(this,ControlMixin),l=u.apply(this,arguments),l.controlType="",l.controlStatus="",l.expressStyle="",l.rightType="",l.rightTypeIsTable=!1,l.commentValue=void 0,l.updateNodeValue=null,l.isDataSource=!1,l.dataSource=JSON.parse(JSON.stringify(Ut)),l.isCustoms=!1,l.isTableProperty=!1,l.customsValue=[{name:"",value:""}],l.customPropertyValue={},l.isListStyle=!1,l.listSource=[],l.listArrSource="",l.listAllowMultiSelected=!1,l.controlFindType=!1,l.activeDocId="",l.domRange={startPath:"",endPath:""},l}return(0,$.Z)(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(Ut)),this.isCustoms=!1,this.isTableProperty=!1,this.customsValue=[{name:"",value:""}],this.listSource=[],this.isListStyle=!1,this.listArrSource="",this.domRange={startPath:"",endPath:""}}},{key:"setControlFindType",value:function setControlFindType(l){this.controlFindType=l}},{key:"getControlProperty",value:function getControlProperty(){return{controlType:this.controlType,controlStatus:this.controlStatus,expressStyle:this.expressStyle,domRange:this.domRange}}},{key:"setControlProperty",value:function setControlProperty(l,u,_){this.controlType=l,this.controlStatus=u,this.expressStyle=_||this.expressStyle,"express"===this.controlType&&this.expressStyle,""===this.controlType&&(this.setDataSource(JSON.parse(JSON.stringify(Ut))),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(l){this.isDataSource=l}},{key:"getDataSource",value:function getDataSource(){return this.dataSource}},{key:"setDataSource",value:function setDataSource(l){this.dataSource=l?_objectSpread2({},l):JSON.parse(JSON.stringify(Ut))}},{key:"getIsListStyle",value:function getIsListStyle(){return this.isListStyle}},{key:"setIsListStyle",value:function setIsListStyle(l){this.isListStyle=l}},{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(l){this.listAllowMultiSelected=l}},{key:"setListStyle",value:function setListStyle(l,u){Array.isArray(l)&&(this.listSource=(0,U.Z)(l)),this.listArrSource=u}},{key:"getIsCustoms",value:function getIsCustoms(){return this.isCustoms}},{key:"setIsCustoms",value:function setIsCustoms(l,u){this.isCustoms=l,this.isTableProperty=!!u}},{key:"getCustomsValue",value:function getCustomsValue(){return this.customsValue}},{key:"setCustomsValue",value:function setCustomsValue(l){this.customsValue=(0,U.Z)(l)}},{key:"setUpdateNodeValue",value:function setUpdateNodeValue(l){l&&l.customProperty&&(0,Ui.Kn)(l.customProperty)&&(this.customPropertyValue=_objectSpread2({},l.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 l;return l=Array.isArray(this.updateNodeValue)?this.updateNodeValue:this.getCurrentSelectNode(),l}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var l,u,_=rt.b.instance().getFactory(this.activeDocId),v=null===(l=_.vueController.findNodebyPath(this.domRange.endPath))||void 0===l?void 0:l.node,C=_.drawTree.selectRange.spStart;if(C){var k,N=null===(k=_.docTree.findNodePositionByPath(C.path))||void 0===k?void 0:k.node;N instanceof gn.N&&3==N.type&&(v=N)}if(v instanceof $t.j||v instanceof Bt.re){var B=v.parentNode;u=B instanceof Bt.re?B:v}else if(v instanceof Gt.R){var U=v.parentNode;(U instanceof Bt.re||U instanceof et.D)&&(u=U)}else(v instanceof Rt.Z||v instanceof Ft.yF||v instanceof hi.T||v instanceof _i.d||v instanceof He.Yh||v instanceof Sn.H||v instanceof Si.P||v instanceof gn.N||v instanceof Ei.O)&&(u=v);return u}},{key:"setRightClickNodeValue",value:function setRightClickNodeValue(){this.rightTypeIsTable=!1,this.rightType="",this.updateNodeValue=null,this.expressStyle="";var l=rt.b.instance().getFactory(this.activeDocId);this.domRange={startPath:l.docTree.curDomRange.normalize().startPath,endPath:l.docTree.curDomRange.normalize().endPath};var u=this.getUpdateNode();if(void 0===u||null===u)return!1;if((null===u||void 0===u?void 0:u.parentNode)instanceof et.D&&(this.rightTypeIsTable=!0,this.rightType="table"),u instanceof Bt.re)this.rightType="text",this.dataSource=u.bandDataSource,(0,Ui.Kn)(u.customProperty)&&(this.customPropertyValue=_objectSpread2({},u.customProperty));else if(u instanceof $t.j&&u.parentNode instanceof Bt.re){var _=u.parentNode;this.rightType="text",this.dataSource=_.bandDataSource,(0,Ui.Kn)(_.customProperty)&&(this.customPropertyValue=_objectSpread2({},_.customProperty))}else if(u instanceof Gt.R){var v=u.parentNode;if(v instanceof Bt.re)this.rightType="text",this.dataSource=v.bandDataSource,(0,Ui.Kn)(v.customProperty)&&(this.customPropertyValue=_objectSpread2({},v.customProperty));else{if(!(v instanceof et.D))return this.rightType="",this.updateNodeValue=null,!1;this.rightTypeIsTable=!0,this.rightType="table"}}else u instanceof Rt.Z?(this.rightType="date",(0,Ui.Kn)(u.customProperty)&&(this.customPropertyValue=_objectSpread2({},u.customProperty))):u instanceof Ft.yF?this.rightType="select":u instanceof hi.T?this.rightType="barcode":u instanceof _i.d?(this.rightType="qrcode",this.dataSource={dataSourceEnabled:u.dataSourceEnabled,dataSource:u.dataSource,format:u.format,visitPath:u.visitPath,isReadOnly:u.isReadOnly,autoUpdate:u.autoUpdate,executeStatus:Number(u.execState)}):u instanceof He.Yh?(this.rightType=u.controlStyle,this.dataSource=u.bandDataSource):u instanceof Sn.H?this.rightType="edit-image":u instanceof Si.P?this.rightType="label":u instanceof gn.N?this.rightType="sign":u instanceof Ei.O||this.setDblclickNodeValue(u,"rightClick")}},{key:"setDblclickNodeValue",value:function setDblclickNodeValue(l,u){if("dblclick"===u&&(this.controlType="express",this.controlStatus="update"),l instanceof li.n){var _=l;this.expressStyle="style"+(_.expressStyle+1),this.updateNodeValue=[_.menseDays,_.cycleDays,_.menarcheAge,_.menoPauseAge]}else if(l instanceof ai.v){var v=l;this.expressStyle="style5",this.updateNodeValue=[v.value1,v.value2,v.value3,v.value4,v.value5,v.value6,v.value7]}else if(l instanceof si.D){var C=l;this.expressStyle="style6",this.updateNodeValue=[C.value1,C.value2,C.value3,C.value4,C.value5,C.value6,C.value7,C.value8,C.value9]}else if(l instanceof ci.t){var k=l;this.expressStyle="style7",this.updateNodeValue=[k.value1,k.value2,k.value3,k.value4,k.value5,k.value6]}else if(l instanceof ui.f){var N=l;this.expressStyle="style8",this.updateNodeValue=[N.topLeftSelected,N.topRightSelected,N.bottomLeftSelected,N.bottomRightSelected]}else if(l instanceof di.x){var B=l;this.expressStyle="style9",this.updateNodeValue=[B.topLeftSelected,B.topRightSelected,B.bottomLeftSelected,B.bottomRightSelected]}else l instanceof Ti.G?(this.controlType="gestation",this.controlStatus="update",this.expressStyle=""):(this.controlType="",this.controlStatus="add");"rightClick"===u&&this.expressStyle&&(this.rightType="express")}},{key:"setCommentValue",value:function setCommentValue(l){this.commentValue=l}},{key:"getCommentValue",value:function getCommentValue(){return this.commentValue}}]),ControlMixin}(k());__decorate([Provide()],su.prototype,"getActiveDocId",null),__decorate([Provide()],su.prototype,"initControlMixin",null),__decorate([Provide()],su.prototype,"setControlFindType",null),__decorate([Provide()],su.prototype,"setControlProperty",null),__decorate([Provide()],su.prototype,"getIsDataSource",null),__decorate([Provide()],su.prototype,"setIsDataSource",null),__decorate([Provide()],su.prototype,"getDataSource",null),__decorate([Provide()],su.prototype,"setDataSource",null),__decorate([Provide()],su.prototype,"getIsListStyle",null),__decorate([Provide()],su.prototype,"setIsListStyle",null),__decorate([Provide()],su.prototype,"getListStyle",null),__decorate([Provide()],su.prototype,"getListArrSource",null),__decorate([Provide()],su.prototype,"getListAllowMultiSelected",null),__decorate([Provide()],su.prototype,"setListAllowMultiSelected",null),__decorate([Provide()],su.prototype,"setListStyle",null),__decorate([Provide()],su.prototype,"getIsCustoms",null),__decorate([Provide()],su.prototype,"setIsCustoms",null),__decorate([Provide()],su.prototype,"getCustomsValue",null),__decorate([Provide()],su.prototype,"setCustomsValue",null),__decorate([Provide()],su.prototype,"setUpdateNodeValue",null),__decorate([Provide()],su.prototype,"getUpdateNodeValue",null),__decorate([Provide()],su.prototype,"getRightClickNodeValue",null),__decorate([Provide()],su.prototype,"setRightClickNodeValue",null),__decorate([Provide()],su.prototype,"setDblclickNodeValue",null),__decorate([Provide()],su.prototype,"setCommentValue",null),__decorate([Provide()],su.prototype,"getCommentValue",null),su=__decorate([ae],su);var lu=function(l){(0,Y.Z)(BackgroundMixins,l);var u=(0,ee.Z)(BackgroundMixins);function BackgroundMixins(){var l;return(0,q.Z)(this,BackgroundMixins),l=u.apply(this,arguments),l.style={backgroundImage:"",backgroundSize:"auto",backgroundRepeat:"no-repeat",backgroundPosition:"center center"},l.waterText="",l.rotateAngle=0,l.color="",l.imgUrl="",l}return(0,$.Z)(BackgroundMixins,[{key:"setCanvasRects",value:function setCanvasRects(l,u){this.canvasWidths=l,this.canvasHeights=u}},{key:"setBackgroundStyle",value:function setBackgroundStyle(l,u,_,v){""===v&&(this.waterText="",this.rotateAngle=1,this.color="rgba(0, 0, 0, 0.2)");var C=0,k=0,N=this.canvasWidths-C,B=this.canvasHeights-k,U="",W="";U=N>u?B<_?"auto":u+"px":N+"px",W=B>_?N<u?"auto":_+"px":B+"px",this.style.backgroundSize=U+" "+W,this.imgUrl=v,this.style=_objectSpread2(_objectSpread2({},this.style),l)}},{key:"getWaterMark",value:function getWaterMark(){return[this.waterText,this.rotateAngle,this.color]}},{key:"setWaterMark",value:function setWaterMark(l,u,_,v,C,k){if(this.waterText=l,this.rotateAngle=C,this.color=k,""===l)return this.setBackgroundStyle({"background-image":""},this.canvasWidths,this.canvasHeights,""),!1;var N={text:l,docWidth:u||this.canvasWidths,docHeight:_||this.canvasWidths,fontStyle:"16px 微软雅黑",rotateAngle:C?-20*Math.PI/180:0,fontColor:k||"rgba(0, 0, 0, 0.2)",firstLinePositionX:0,firstLinePositionY:70},B=document.querySelector("#watercanvas"),U=document.querySelector("#repeat-watercanvas");B.width=16*l.length+40,B.height=100,U.width=N.docWidth,U.height=N.docHeight;var W=B.getContext("2d");W.clearRect(0,0,160,100),W.font=N.fontStyle,W.rotate(N.rotateAngle),W.fillStyle=N.fontColor,W.fillText(N.text,N.firstLinePositionX,N.firstLinePositionY),W.rotate(-N.rotateAngle);var q=U.getContext("2d");q.fillStyle="#fff",q.fillRect(0,0,U.width,U.height);var $=q.createPattern(B,"repeat");q.fillStyle=$,q.fillRect(0,0,U.width,U.height);var Y=U.toDataURL("image/png");v instanceof Function?v(Y):this.setBackgroundStyle({"background-image":"url(".concat(Y,")")},this.canvasWidths,this.canvasHeights,Y)}},{key:"getBackgroundStyle",value:function getBackgroundStyle(){return this.style}},{key:"getBackImgUrl",value:function getBackImgUrl(){return this.imgUrl}}]),BackgroundMixins}(k());__decorate([Provide()],lu.prototype,"getBackgroundStyle",null),__decorate([Provide()],lu.prototype,"getBackImgUrl",null),lu=__decorate([ae],lu);var cu=function(l){(0,Y.Z)(FontStyleMixin,l);var u=(0,ee.Z)(FontStyleMixin);function FontStyleMixin(){var l;return(0,q.Z)(this,FontStyleMixin),l=u.apply(this,arguments),l.textStyle={font:"宋体",size:14,bold:!1,italic:!1,script:0,underline:!1,strikeout:!1,backColor:"transparent",color:"#000000",aligned:"both",lineSpace:1.25,canAddRow:!1,canDeleteRow:!1},l.aligned=["left","right","center","both"],l}return(0,$.Z)(FontStyleMixin,[{key:"getTableNodeInfo",value:function getTableNodeInfo(l){var u=null,_=function isFn(l){null!==(null===l||void 0===l?void 0:l.parentNode)&&null!==l&&void 0!==l&&l.parentNode&&(l.parentNode instanceof et.D?u={cellNode:l.parentNode,tableNode:l.parentNode.parentNode,colInfo:l.parentNode.table.colInfos[l.parentNode.row.indexOf(l.parentNode)],rowInfo:l.parentNode.table.rowInfos[l.parentNode.table.rows.indexOf(l.parentNode.row)]}:isFn(l.parentNode))};return l instanceof et.D?u={cellNode:l,tableNode:l.parentNode,colInfo:l.table.colInfos[l.row.indexOf(l)],rowInfo:l.table.rowInfos[l.table.rows.indexOf(l.row)]}:_(l),u}},{key:"createTable",value:function createTable(l,u){var _=this.getTableNodeInfo(null===u||void 0===u?void 0:u.node);if(_){var v,C=l.drawTree.drawPages[l.drawTree.caret.pageIndex],k=null===(v=C.drawDomLevel)||void 0===v?void 0:v.domCanvas.parentElement,N={x:l.pageProperty.leftMarginPixes+_.tableNode.drawTable.x,y:0,width:_.tableNode.drawTable.dWidth,height:0,cellWidth:null===_||void 0===_?void 0:_.cellNode.drawCell.dWidth,cellHeight:null===_||void 0===_?void 0:_.cellNode.drawCell.dHeight,cellY:20,cellX:0},B=_.tableNode.drawTable.drawPageTables,U=_.cellNode.drawCell.drawPageCells;N.cellX=U[0].x+20,N.cellY=U[0].y+20,N.cellWidth=U[0].dWidth,N.cellHeight=U[0].dHeight,B.forEach((function(l,u){l.parent.pageIndex===C.drawMainDoc.pageIndex&&(N.height=l.dHeight,N.y=C.drawMainDoc.y+l.dTop,U.length===B.length&&(N.cellHeight=U[u].dHeight))}));var W=document.createElement("div");W.id="ho_table_auxiliary",W.style.position="absolute",W.style.left=l.pageProperty.leftMarginPixes-20+"px",W.style.top=N.y-20+"px",W.style.height=l.pageProperty.heightPixes-N.y-l.pageProperty.footerYPixes+"px",W.innerHTML='\n <div id="ho_table_auxiliary_left" style="height: '.concat(N.height,'px"></div>\n <div id="ho_table_auxiliary_left_active" style="height: ').concat(N.cellHeight,"px; top: ").concat(N.cellY,'px;"></div>\n '),null===k||void 0===k||k.appendChild(W)}}},{key:"setFontStyle",value:function setFontStyle(l){var u,_,v=document.querySelector("#ho_table_auxiliary");v&&(null===(_=v.parentElement)||void 0===_||_.removeChild(v));var C,k=l.vueController,N=k.getCaretPosition(),U=k.findNodebyPath(N);if(null!==U&&void 0!==U&&null!==(u=U.node)&&void 0!==u&&u.drawNodes[0]){var W,q=l.drawTree.getDrawLineByDNode(null===U||void 0===U||null===(W=U.node)||void 0===W?void 0:W.drawNodes[0]).paragraphNode;C=q.combineParagraph,l.docTree.curParaNo=q.paraNo}var $=k.getDomRange().inSameTable(),Y=(0,B.Z)($,2),ee=Y[0],re=Y[1],ne={canAddRow:!1,canDeleteRow:!1};ee&&re&&(ne={canAddRow:re.tableProperty.canAddRow,canDeleteRow:re.tableProperty.canDeleteRow}),l.isCanUseTableProperty&&U&&this.createTable(l,U),k.getCurTextStyle(),this.textStyle=_objectSpread2({font:void 0!==k.combineStyle.font?k.combineStyle.font:this.textStyle.font,size:void 0!==k.combineStyle.size?k.combineStyle.size:this.textStyle.size,bold:void 0!==k.combineStyle.bold?k.combineStyle.bold:this.textStyle.bold,italic:void 0!==k.combineStyle.italic?k.combineStyle.italic:this.textStyle.italic,script:void 0!==k.combineStyle.script?k.combineStyle.script:this.textStyle.script,underline:void 0!==k.combineStyle.underline?k.combineStyle.underline:this.textStyle.underline,strikeout:void 0!==k.combineStyle.strikeout?k.combineStyle.strikeout:this.textStyle.strikeout,color:void 0!==k.combineStyle.color?k.combineStyle.color:this.textStyle.color,backColor:void 0!==k.combineStyle.backColor?k.combineStyle.backColor:this.textStyle.backColor,aligned:C?this.aligned[C.align]:"both",lineSpace:C?C.lineSpace:1.25},ne)}}]),FontStyleMixin}(k());cu=__decorate([ae],cu);var uu=__webpack_require__(98522),du=JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun","family":"宋体, SimSun"},{"ch":"Times New Roman","en":"Times New Roman","family":"Times New Roman"}],"CH":[{"name":"初号","value":42},{"name":"小初","value":36},{"name":"一号","value":26},{"name":"小一","value":24},{"name":"二号","value":22},{"name":"小二","value":18},{"name":"三号","value":16},{"name":"小三","value":15},{"name":"四号","value":14},{"name":"小四","value":12},{"name":"五号","value":10.5},{"name":"小五","value":9},{"name":"六号","value":7.5},{"name":"小六","value":6.5},{"name":"七号","value":5.5},{"name":"八号","value":5}]}'),hu=function(l){(0,Y.Z)(HoDocs,l);var u=(0,ee.Z)(HoDocs);function HoDocs(){var l;return(0,q.Z)(this,HoDocs),l=u.apply(this,arguments),l.hoEditorFactoryIdList=[],l.docList=[0],l.drawPageLength=0,l.activePageIndex=0,l.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,gestation:!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},l.defaultDocProperty={version:vn,type:0,title:"",docID:"",patientID:"",patientName:"",lastEditTime:"",lastEditorID:"",lastEditorName:"",currentIP:""},l.contentIsModify={isModify:!1},l}return(0,$.Z)(HoDocs,[{key:"controlProperty",get:function get(){return this.getControlProperty()}},{key:"contentIsModifyChange",value:function contentIsModifyChange(l){this.$emit("contentIsModify",this.contentIsModify)}},{key:"editJsonChange",value:function editJsonChange(l){l&&null!==l&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),l))}},{key:"getCustomProperty",value:function getCustomProperty(){return this.customProperty}},{key:"getParagraphCustomProperty",value:function getParagraphCustomProperty(){return this.paragraphCustomProperty}},{key:"textStyleChange",value:function textStyleChange(l){this.$emit("textStyleChange",l)}},{key:"modalStatusChange",value:function modalStatusChange(l){"find"!==l[0]?this.setControlProperty(l[0],l[1],l[2]):this.controlFindType=!0}},{key:"controlTypeChange",value:function controlTypeChange(l,u){if(""===l&&["text","date","comment","paragraph"].includes(u)&&(this.$emit("closeTextModal"),this.customPropertyValue={}),["text","date"].includes(l))(0,Ui.Kn)(this.customPropertyValue)&&this.$emit("openTextModal",_objectSpread2({},this.customPropertyValue));else if(["comment"].includes(l)){var _,v=null===(_=rt.b.instance().getFactory(this.activeDocId).vueController.getOnSelectedComment())||void 0===_?void 0:_.customProperty;v&&this.$emit("openTextModal",_objectSpread2({},v))}}},{key:"pagePropertyChange",value:function pagePropertyChange(l){l&&this.initPageProperty(_objectSpread2({},l))}},{key:"docPropertyChange",value:function docPropertyChange(l){var u=this;if(l){l.version&&delete l.version,Object.keys(l).forEach((function(_){void 0!==l[_]&&null!==l[_]&&(u.defaultDocProperty[_]=l[_])}));var _=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0];if(_){var v=rt.b.instance().hoEditorFactoryMap.get(_);v&&(v.docTree.docProperty=this.defaultDocProperty)}}}},{key:"isFixedPrintToA4Change",value:function isFixedPrintToA4Change(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l),_=this.isFixedPrintToA4;!0===_?_="1":!1===_&&(_=""),u&&(u.isFixedPrintToA4=_)}},{key:"isUseImagePrintChange",value:function isUseImagePrintChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isUseImagePrint=this.isUseImagePrint)}},{key:"isUseFormChange",value:function isUseFormChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isUseForm=this.isUseForm)}},{key:"superiorSignsChange",value:function superiorSignsChange(){if(Array.isArray(this.superiorSigns)){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.superiorSigns=(0,U.Z)(this.superiorSigns))}}},{key:"isCanEditHeadFootChange",value:function isCanEditHeadFootChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isCanEditHeadFoot=this.isCanEditHeadFoot)}},{key:"printBlackChange",value:function printBlackChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.printBlack=this.printBlack)}},{key:"isEnabledGlobalColorChange",value:function isEnabledGlobalColorChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isEnabledGlobalColor=this.isEnabledGlobalColor)}},{key:"isSameColorWithEmptyVlaueChange",value:function isSameColorWithEmptyVlaueChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isSameColorWithEmptyVlaue=this.isSameColorWithEmptyVlaue)}},{key:"created",value:function created(){var l=this;window.oncontextmenu=function(l){l.preventDefault()},this.$nextTick((function(){l.editJson&&l.editJson.findModal&&(document.onkeydown=function(u){var _=u.keyCode||u.which||u.charCode,v=u.ctrlKey||u.metaKey;v&&70===_&&(u.preventDefault(),l.controlFindType=!l.controlFindType),27===_&&(l.controlFindType=!1)})})),this.docList.forEach((function(){var u=(0,Lt.y)("HO"),_=new fo(u);l.hoEditorFactoryIdList.push(u),Array.isArray(l.superiorSigns)&&l.superiorSigns.length>0&&(_.superiorSigns=(0,U.Z)(l.superiorSigns)),!0===l.isFixedPrintToA4?_.isFixedPrintToA4="1":!1===l.isFixedPrintToA4?_.isFixedPrintToA4="":_.isFixedPrintToA4=l.isFixedPrintToA4,_.isUseImagePrint=l.isUseImagePrint,_.isUseForm=l.isUseForm,_.printBlack=l.printBlack,_.isEnabledGlobalColor=l.isEnabledGlobalColor,_.isSameColorWithEmptyVlaue=l.isSameColorWithEmptyVlaue,_.contentIsModify=l.contentIsModify,_.isCanEditHeadFoot=l.isCanEditHeadFoot,_.docTree.docProperty=l.defaultDocProperty,rt.b.instance().hoEditorFactoryMap.set(u,_)})),uu.Z.instance().imageNodeList=this.deleteImageNodeList,this.editJson&&null!==this.editJson&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),this.editJson)),this.setActiveDocIndex(this.hoEditorFactoryIdList[0]),this.$nextTick((function(){l.pageProperty&&l.initPageProperty(_objectSpread2({},l.pageProperty))}))}},{key:"rightClickEvent",value:function rightClickEvent(l){var u=this,_=this.getRightClickNodeValue(),v=rt.b.instance().getFactory(this.activeDocId);_.rightTypeIsTable=v.docTree.curDomRange.normalize().inSameTable()[0],_.rightPosition=l;var C=_.node();_.labelNode=function(){var l=[],_="",v=rt.b.instance().getFactory(u.activeDocId),k=v.vueController.getDomRange();if(null!==k&&void 0!==k&&k.isEmpty)C instanceof Si.P&&(l.push(C),_="toText");else{_="toLabel";var N=k.startPath,B=k.endPath,U=Ie.a.getSelectDomNodes(u.activeDocId,N,B,!0)[0];U.length>0&&U.forEach((function(u){u instanceof Si.P&&(_="toText",l.push(u))}))}return{labelNode:[].concat(l),isIncludes:_}},_.isElement=!1,_.canShowComment=v.drawTree.paintStatus===Ee.Dh.psEdit||v.drawTree.paintStatus===Ee.Dh.psReview||v.drawTree.paintStatus===Ee.Dh.psReadOnly,_.isHideComments=v.isHideComments,_.activePageIndex=this.activePageIndex,_.paintStatus=v.drawTree.paintStatus;var k=v.vueController.getDomRange(),N=k.inSameTable(),U=(0,B.Z)(N,2),W=U[0],q=U[1];W&&q&&(_.tableProperty={canAddRow:q.tableProperty.canAddRow,canDeleteRow:q.tableProperty.canDeleteRow}),_.getParagraphNode=function(){var l,_=null===(l=v.vueController.findNodebyPath(u.domRange.endPath))||void 0===l?void 0:l.node;return _?v.drawTree.getDrawLineByDNode(_.drawNodes[0]).paragraphNode:null},_.isCanUseTableProperty=v.isCanUseTableProperty,this.$emit("rightClickEvent",_)}},{key:"initListener",value:function initListener(){var l=this;window.oncontextmenu=function(l){l.preventDefault()},this.$nextTick((function(){l.editJson.findModal&&(document.onkeydown=function(u){var _=u.keyCode||u.which||u.charCode,v=u.ctrlKey||u.metaKey;v&&70===_&&(u.preventDefault(),l.controlFindType=!l.controlFindType),27===_&&(l.controlFindType=!1)})}))}},{key:"insertComments",value:function insertComments(l){this.$emit("insertComments",l)}},{key:"dblNodeClick",value:function dblNodeClick(l){this.$emit("dblClickEvent",l)}},{key:"setFontStyles",value:function setFontStyles(){var l=rt.b.instance().getFactory(this.activeDocId);this.setFontStyle(l)}},{key:"setActivePageIndex",value:function setActivePageIndex(l){this.activePageIndex=l}},{key:"setActiveDocIndex",value:function setActiveDocIndex(l){this.activeDocId=l;var u=rt.b.instance().getFactory(this.activeDocId);u.hoLocalStorage.initHoWebSql(),this.$emit("docReady",{vueController:u.vueController,baseController:u.baseController,domController:u.domController,editController:u.editController,elementController:u.elementController,nodeController:u.nodeController,printController:u.printController,reviewController:u.reviewController,selectController:u.selectController,tableController:u.tableController})}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(l){this.drawPageLength=l}},{key:"initPageProperty",value:function initPageProperty(l){var u=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],_=rt.b.instance().hoEditorFactoryMap.get(u);if(_){var v,C=_objectSpread2({},l);C.fontFormat=C.fontFormat?null===(v=C.fontFormat)||void 0===v?void 0:v.match(/[\u4e00-\u9fa5]/g).join(""):"宋体",isNaN(Number(C.fontSize))?(du.CH.forEach((function(l){l.name===C.fontSize&&(C.fontSize=Number(l.value))})),isNaN(Number(C.fontSize))&&(C.fontSize=14)):C.fontSize=Number(C.fontSize),C.charSpace=C.charSpace?null===_||void 0===_?void 0:_.unitConvert.mmConversionPx(10*Number(C.charSpace),!0):0,C.lineHeight=Number(C.lineHeight)?Number(C.lineHeight):1.25,isNaN(Number(l.signHeight))||(_.signHeight=Number(l.signHeight)),l.elementBackColor&&_.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"}),!0===l.pasteBase||!1===l.pasteBase?_.pasteBase=l.pasteBase:_.pasteBase=!1,_.openXmled?(delete C.leftMarginMm,delete C.rightMarginMm,delete C.topMarginMm,delete C.bottomMarginMm,delete C.headerYMm,delete C.footerYMm):(isNaN(Number(C.leftMarginMm))?C.leftMarginMm=15:C.leftMarginMm=Number(C.leftMarginMm),isNaN(Number(C.rightMarginMm))?C.rightMarginMm=15:C.rightMarginMm=Number(C.rightMarginMm),isNaN(Number(C.topMarginMm))?C.topMarginMm=25:C.topMarginMm=Number(C.topMarginMm),isNaN(Number(C.bottomMarginMm))?C.bottomMarginMm=10:C.bottomMarginMm=Number(C.bottomMarginMm),isNaN(Number(C.headerYMm))?C.headerYMm=3:C.headerYMm=Number(C.headerYMm),isNaN(Number(C.footerYMm))?C.footerYMm=3:C.footerYMm=Number(C.footerYMm)),delete C.signHeight,delete C.pasteBase,delete C.elementBackColor,_.vueController.setPageProperty(JSON.stringify(C))}}},{key:"closeControlModal",value:function closeControlModal(){this.setControlProperty("","add","")}},{key:"blankAreaRightClick",value:function blankAreaRightClick(l){l.target instanceof HTMLDivElement&&l.target.className}}]),HoDocs}(mixins(su,cu,lu));__decorate([Prop()],hu.prototype,"editJson",void 0),__decorate([Prop()],hu.prototype,"docStatus",void 0),__decorate([Prop()],hu.prototype,"modalStatus",void 0),__decorate([Prop()],hu.prototype,"docProperty",void 0),__decorate([Prop()],hu.prototype,"uploadImageParams",void 0),__decorate([Prop()],hu.prototype,"customProperty",void 0),__decorate([Prop()],hu.prototype,"paragraphCustomProperty",void 0),__decorate([Prop()],hu.prototype,"deleteImageNodeList",void 0),__decorate([Prop()],hu.prototype,"pageProperty",void 0),__decorate([Prop()],hu.prototype,"superiorSigns",void 0),__decorate([Prop({default:!0})],hu.prototype,"notUseModal",void 0),__decorate([Prop({default:!0})],hu.prototype,"isCanEditHeadFoot",void 0),__decorate([Prop({default:!1})],hu.prototype,"isUseTipText",void 0),__decorate([Prop({default:""})],hu.prototype,"isFixedPrintToA4",void 0),__decorate([Prop({default:!0})],hu.prototype,"isUseImagePrint",void 0),__decorate([Prop({default:!1})],hu.prototype,"isUseForm",void 0),__decorate([Prop({default:!0})],hu.prototype,"printBlack",void 0),__decorate([Prop({default:!1})],hu.prototype,"isEnabledGlobalColor",void 0),__decorate([Prop({default:!1})],hu.prototype,"isSameColorWithEmptyVlaue",void 0),__decorate([Watch("contentIsModify",{deep:!0})],hu.prototype,"contentIsModifyChange",null),__decorate([Watch("editJson")],hu.prototype,"editJsonChange",null),__decorate([Provide()],hu.prototype,"getCustomProperty",null),__decorate([Provide()],hu.prototype,"getParagraphCustomProperty",null),__decorate([Watch("textStyle",{deep:!0})],hu.prototype,"textStyleChange",null),__decorate([Watch("modalStatus",{deep:!0})],hu.prototype,"modalStatusChange",null),__decorate([Watch("controlType",{deep:!0})],hu.prototype,"controlTypeChange",null),__decorate([Watch("pageProperty",{deep:!0})],hu.prototype,"pagePropertyChange",null),__decorate([Watch("docProperty",{deep:!0})],hu.prototype,"docPropertyChange",null),__decorate([Watch("isFixedPrintToA4",{deep:!0})],hu.prototype,"isFixedPrintToA4Change",null),__decorate([Watch("isUseImagePrint",{deep:!0})],hu.prototype,"isUseImagePrintChange",null),__decorate([Watch("isUseForm",{deep:!0})],hu.prototype,"isUseFormChange",null),__decorate([Watch("superiorSigns")],hu.prototype,"superiorSignsChange",null),__decorate([Watch("isCanEditHeadFoot")],hu.prototype,"isCanEditHeadFootChange",null),__decorate([Watch("printBlack")],hu.prototype,"printBlackChange",null),__decorate([Watch("isEnabledGlobalColor")],hu.prototype,"isEnabledGlobalColorChange",null),__decorate([Watch("isSameColorWithEmptyVlaue")],hu.prototype,"isSameColorWithEmptyVlaueChange",null),hu=__decorate([ae({name:"HoDocs",components:{HoDoc:Nn,HoFooter:Ro,ControlModal:qc,FindReplaceDialog:Qc,ViewContinuousXml:au}})],hu);var _u=hu,pu=_u,fu=normalizeComponent(pu,render,N,!1,null,null,null),gu=fu.exports,ToolBarvue_type_template_id_0e95df22_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("tabs",{attrs:{tabKey:l.tabKey},on:{tabClick:l.mainBarClick,updateTabKey:l.updateTabKey}},[l._t("beforeBrowse"),_("tab-pane",{attrs:{isShow:l.defaultBrowseJson.isBrowse,label:"浏览模式",notHover:!0,name:"ho-browse"}},[l.defaultBrowseJson.saveAsFile?_("li",{staticClass:"sub-bar-items"},[_("el-dropdown",{attrs:{trigger:"click"}},[_("span",{staticClass:"el-dropdown-link"},[l._v("另存为")]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("xml")}}},[l._v("XML")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("html")}}},[l._v("HTML")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("pdf")}}},[l._v("PDF")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("plain")}}},[l._v("TXT")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("json")}}},[l._v("JSON")])],1)],1)],1):l._e(),l.isPrinted?_("li",{staticClass:"sub-bar-items"},[_("span",{class:l.isPrintClass,on:{click:l.outPrinted}},[l._v("退出打印预览状态")])]):l._e(),_("li",{staticClass:"sub-bar-items"},[l.defaultBrowseJson.printed?_("span",{class:l.printedClass,on:{click:l.printed}},[l._v("打印")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultBrowseJson.printSelected?_("span",{class:l.printSelectedClass,on:{click:l.printSelected}},[l._v("打印拖动鼠标选中区域")]):l._e()]),_("li",{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[l.defaultBrowseJson.printCaret?_("span",{class:l.printCaretClass,on:{click:l.printCaret}},[l._v("打印鼠标点击位置")]):l._e()]),_("li",{staticClass:"sub-bar-items",staticStyle:{border:"0"}},[l.defaultBrowseJson.printContinue?_("span",{class:l.printContinueClass,on:{click:l.printContinue}},[l._v("续打")]):l._e()]),_("HoPrintDialog",{attrs:{vueController:l.vueController,printBeforeStatus:5,printModal:l.printModal},on:{closed:l.closedHoPrintModal}})],1),l._t("beforeEdit"),_("tab-pane",{attrs:{isShow:l.defaultEditJson.isEdit,label:"编辑模式",notHover:!0,name:"ho-edit"}},[_("ToolBarChild",{attrs:{editJson:l.defaultEditJson,vueController:l.vueController,tabStatus:l.tabStatus,textStyle:l.textStyle,uploadImageParams:l.uploadImageParams},on:{setModalStatus:l.setModalStatus}})],1),l._t("afterEdit"),_("tab-pane",{attrs:{isShow:l.defaultEditJson.isInsertElement,label:"插入",name:"ho-insert"}},[_("tool-control",{attrs:{insert:l.defaultEditJson,vueController:l.vueController,uploadImageParams:l.uploadImageParams},on:{setModalStatus:l.setModalStatus},scopedSlots:l._u([{key:"hoInsertItem",fn:function(){return[l._t("insideInsert")]},proxy:!0}],null,!0)})],1),_("tab-pane",{attrs:{isShow:l.defaultEditJson.isInsertTable,label:"表格",name:"ho-table"}},[_("tool-table",{attrs:{table:l.defaultEditJson,tableProperty:{canAddRow:l.textStyle.canAddRow,canDeleteRow:l.textStyle.canDeleteRow},vueController:l.vueController},scopedSlots:l._u([{key:"hoTableItem",fn:function(){return[l._t("insideTable")]},proxy:!0}],null,!0)})],1),_("tab-pane",{attrs:{isShow:l.defaultReviewJson.isReview,label:"审阅模式",name:"ho-review"}},[_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.insertComment?_("span",{staticClass:"review",on:{click:function(u){return u.stopPropagation(),l.createControlComment.apply(null,arguments)}}},[l._v("插入批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.editComment?_("span",{staticClass:"review",on:{click:l.editComment}},[l._v("编辑批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.deleteComment?_("span",{staticClass:"review",on:{click:l.deleteComment}},[l._v("删除批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.deleteAllComment?_("span",{staticClass:"review",on:{click:l.deleteAllComment}},[l._v("删除全部批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.cancelDelete?_("span",{staticClass:"review",on:{click:l.cancelDelete}},[l._v("取消删除文本")]):l._e()]),l._t("insertReview"),l.defaultReviewJson.printStatus?_("li",{staticClass:"sub-bar-items"},[_("span",{on:{click:l.reviewPrintStatus}},[l._v(l._s(l.isPrinted?"显示批注":"隐藏批注"))])]):l._e()],2),l._t("afterReview")],2)},mu=[],HoMedicalExpressionvue_type_template_id_7096edd1_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{staticClass:"sub-bar-items"},[_("el-dropdown",{class:l.dropdownClassName+" ho-medical-expression-list",attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange,command:l.selectedSure}},[_("span",{staticClass:"el-dropdown-link"},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}})]),_("span",[l._v("医学表达式")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{attrs:{command:"style1"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130 60"}},[_("g",{staticClass:"text",attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"48",y:"13"}},[l._v("经期")]),_("text",{attrs:{x:"48",y:"55"}},[l._v("周期")]),_("text",{attrs:{x:"75",y:"33"}},[l._v("末次月经")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 52 30 L 70 30"}})])])]),_("el-dropdown-item",{attrs:{command:"style2"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"5",y:"20"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("经期")]),_("text",{attrs:{x:"5",y:"50"}},[l._v("末次月经")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("周期")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 5 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-dropdown-item",{attrs:{command:"style3"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"50",y:"13"}},[l._v("经期")]),_("text",{attrs:{x:"40",y:"55"}},[l._v("末次月经")]),_("text",{attrs:{x:"83",y:"33"}},[l._v("周期")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 15 5 L 110 55"}}),_("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),_("el-dropdown-item",{attrs:{command:"style4"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("经期")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("周期")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 62 30 L 110 30"}}),_("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),_("el-dropdown-item",{attrs:{command:"style5"}},[_("p",[l._v("瞳孔图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"10",y:"25"}},[l._v("1")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("2")]),_("text",{attrs:{x:"10",y:"40"}},[l._v("3")]),_("text",{attrs:{x:"45",y:"40"}},[l._v("4")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("5")]),_("text",{attrs:{x:"10",y:"55"}},[l._v("6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("7")])])])]),_("el-dropdown-item",{attrs:{command:"style6"}},[_("p",[l._v("光定位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"10",y:"25"}},[l._v("1")]),_("text",{attrs:{x:"10",y:"40"}},[l._v("4")]),_("text",{attrs:{x:"10",y:"55"}},[l._v("7")]),_("text",{attrs:{x:"45",y:"25"}},[l._v("2")]),_("text",{attrs:{x:"45",y:"40"}},[l._v("5")]),_("text",{attrs:{x:"45",y:"55"}},[l._v("8")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("3")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("9")])])])]),_("el-dropdown-item",{attrs:{command:"style7"}},[_("p",[l._v("胎心图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"26",y:"15"}},[l._v("1")]),_("text",{attrs:{x:"26",y:"35"}},[l._v("4")]),_("text",{attrs:{x:"26",y:"55"}},[l._v("7")]),_("text",{attrs:{x:"84",y:"15"}},[l._v("2")]),_("text",{attrs:{x:"84",y:"35"}},[l._v("5")]),_("text",{attrs:{x:"84",y:"55"}},[l._v("8")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 0 30 L 10 30"}}),_("path",{attrs:{d:"M 52 30 L 67 30"}}),_("path",{attrs:{d:"M 110 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-dropdown-item",{attrs:{command:"style8"}},[_("p",[l._v("恒牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("12345678")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("12345678")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),_("el-dropdown-item",{attrs:{command:"style9"}},[_("p",[l._v("乳牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("I II III IV V")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("I II III IV V")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)],1)],1)},vu=[],yu=function(l){(0,Y.Z)(DropDownClassNameMixins,l);var u=(0,ee.Z)(DropDownClassNameMixins);function DropDownClassNameMixins(){var l;return(0,q.Z)(this,DropDownClassNameMixins),l=u.apply(this,arguments),l.dropdownClassName="",l}return(0,$.Z)(DropDownClassNameMixins,[{key:"dropdownChange",value:function dropdownChange(l){this.dropdownClassName=l?"drop-down-open":"drop-down-close"}}]),DropDownClassNameMixins}(k());yu=__decorate([ae],yu);var bu=function(l){(0,Y.Z)(HoMedicalExpression,l);var u=(0,ee.Z)(HoMedicalExpression);function HoMedicalExpression(){return(0,q.Z)(this,HoMedicalExpression),u.apply(this,arguments)}return(0,$.Z)(HoMedicalExpression,[{key:"selectedSure",value:function selectedSure(l){this.$emit("openExpress",l)}}]),HoMedicalExpression}(mixins(yu));bu=__decorate([ae({name:"HoMedicalExpression"})],bu);var wu=bu,xu=wu,Pu=normalizeComponent(xu,HoMedicalExpressionvue_type_template_id_7096edd1_scoped_true_render,vu,!1,null,"7096edd1",null),Cu=Pu.exports,HoPrintDialogvue_type_template_id_f8a2f34e_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-dialog",{attrs:{title:"打印设置",top:"200px",visible:l.printDialog,center:"",width:"40%","before-close":l.closedHoPrintModal,"append-to-body":"","destroy-on-close":"","close-on-click-modal":!1},on:{"update:visible":function(u){l.printDialog=u}}},[_("section",{staticClass:"ho-print-content"},[_("el-radio",{attrs:{size:"medium",label:0},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("全部打印")]),_("el-radio",{attrs:{label:1},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("奇数页")]),_("el-radio",{attrs:{label:2},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("偶数页")]),_("div",{staticClass:"ho-print-more"},[_("el-radio",{attrs:{label:3},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("打印指定页:")]),_("el-input",{attrs:{disabled:3!==l.printMode,size:"mini",placeholder:"示例: 1, 2-4, 5, 7-10, 12"},model:{value:l.printAppoint,callback:function(u){l.printAppoint=u},expression:"printAppoint"}})],1),l.errorText?_("div",{staticClass:"ho-print-error"},[l._v(l._s(l.errorText))]):l._e(),_("div",{staticClass:"ho-print-title"},[l._v("指定页: 1, 2-4, 5, 7-10, 12")])],1),_("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{size:"mini",type:"primary"},on:{click:l.hoPrinted}},[l._v("确 定")]),_("el-button",{attrs:{size:"mini"},on:{click:l.closedHoPrintModal}},[l._v("取 消")])],1)])},Eu=[],Su=function(l){(0,Y.Z)(HoPrintDialog,l);var u=(0,ee.Z)(HoPrintDialog);function HoPrintDialog(){var l;return(0,q.Z)(this,HoPrintDialog),l=u.apply(this,arguments),l.printMode=0,l.printAppoint="",l.errorText="",l}return(0,$.Z)(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 l=this.vueController.printPromisePDF(this.printMode,this.printAppoint);l?this.errorText=l:this.$emit("closed","sure")}},{key:"closedHoPrintModal",value:function closedHoPrintModal(){this.$emit("closed","cancel")}}]),HoPrintDialog}(k());__decorate([Prop()],Su.prototype,"vueController",void 0),__decorate([Prop()],Su.prototype,"printModal",void 0),__decorate([Prop()],Su.prototype,"printBeforeStatus",void 0),__decorate([Watch("printMode")],Su.prototype,"printModeChange",null),Su=__decorate([ae({name:"HoPrintDialog"})],Su);var Tu=Su,Du=Tu,ku=normalizeComponent(Du,HoPrintDialogvue_type_template_id_f8a2f34e_render,Eu,!1,null,null,null),Iu=ku.exports,Mu=function(l){(0,Y.Z)(ToolFamily,l);var u=(0,ee.Z)(ToolFamily);function ToolFamily(){var l;return(0,q.Z)(this,ToolFamily),l=u.apply(this,arguments),l.fontFamily=du.TN,l.fontSize=du.CH,l.isSuperScript=!1,l.isSubScript=!1,l.familySelected="微软雅黑",l.fontSizeSelected="14",l.font={ch:"宋体",en:"SimSun"},l.size={name:"四号",value:14},l.isBold=!1,l.isItalic=!1,l.isUnderline=!1,l.isStrikeout=!1,l.backcolor="transparent",l.color="#333333",l.predefineColors=["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#158577","#ffffff","#000000"],l.fontFamilyVisible=!1,l.fontSizeVisible=!1,l.fontColorVisible=!1,l.backColorVisible=!1,l}return(0,$.Z)(ToolFamily,[{key:"textStyleChange",value:function textStyleChange(l){this.setCurrentFonts(l)}},{key:"setCurrentFonts",value:function setCurrentFonts(l){this.isBold=l.bold,this.isItalic=l.italic,this.isUnderline=l.underline,this.isStrikeout=l.strikeout,this.backcolor=l.backColor,this.color=l.color,this.isSuperScript=2===l.script,this.isSubScript=1===l.script;var u=du.TN.filter((function(u){if(u.ch===l.font)return u}));Array.isArray(u)&&0!==u.length?this.font=u[0]:this.font={ch:"",en:""};var _=du.CH.filter((function(u){if(u.value===l.size)return u}));Array.isArray(_)&&0!==_.length?this.size=_[0]:this.size={name:"",value:0}}},{key:"fontFamilyClick",value:function fontFamilyClick(l){this.font=l,this.fontFamilyVisible=!1,this.vueController.fontFormat(l.ch)}},{key:"fontSizeClick",value:function fontSizeClick(l){this.size=l,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(l){var u=l.split(","),_=parseInt(u[0].split("(")[1]),v=parseInt(u[1]),C=parseInt(u[2].split(")")[0]),k="#"+((1<<24)+(_<<16)+(v<<8)+C).toString(16).slice(1).toLocaleUpperCase();return k}},{key:"backcolorChanges",value:function backcolorChanges(l){var u=l;-1!==l.indexOf("rgb")?u=this.rgbToHex(u):null===l&&(u="transparent"),this.backColorChange(u)}},{key:"backColorChange",value:function backColorChange(l){var u=l;this.backcolor=u,null===l&&(u="transparent"),this.vueController.fontBackColor(u)}},{key:"colorChanges",value:function colorChanges(l){var u=l;-1!==l.indexOf("rgb")?u=this.rgbToHex(u):null===l&&(u="transparent"),this.fontColorChange(u)}},{key:"fontColorChange",value:function fontColorChange(l){var u=l;this.color=u,null===l&&(u="transparent"),this.vueController.fontColor(u)}},{key:"isSupportFontFamily",value:function isSupportFontFamily(l){var u="Arial";if(l.toLowerCase()==u.toLowerCase())return!0;var _="a",v=100,C=100,k=100,N=document.createElement("canvas"),B=N.getContext("2d");N.width=C,N.height=k,B.textAlign="center",B.fillStyle="black",B.textBaseline="middle";var U=function g(l){B.clearRect(0,0,C,k),B.font=v+"px "+l+", "+u,B.fillText(_,C/2,k/2);var N=B.getImageData(0,0,C,k).data;return[].slice.call(N).filter((function(l){return 0!=l}))};return U(u).join!==U(l).join}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.family;return u("li",{class:"sub-bar-items sub-bar-not-item-hover"},[_.family?u(Mo,{attrs:_objectSpread2({},{title:"字体",poperStyle:{width:"160px",textAlign:"left"}})},[u("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[u("span",{class:"el-dropdown-link"},[this.font.ch,u("i",{class:"el-icon-arrow-down el-icon--right"})]),u("el-dropdown-menu",{slot:"dropdown"},[this.fontFamily.map((function(_){return u("el-dropdown-item",{key:_.en,class:_.en===l.font.en?"selected":"",style:{fontFamilys:_.ch},nativeOn:{click:function click(){return l.fontFamilyClick(_)}}},[u("span",[_.ch])])}))])])]):null,_.size?u(Mo,{attrs:_objectSpread2({},{title:"字号",poperStyle:{width:"60px",textAlign:"left"}})},[u("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[u("span",{class:"el-dropdown-link"},[this.size.name,u("i",{class:"el-icon-arrow-down el-icon--right"})]),u("el-dropdown-menu",{slot:"dropdown"},[this.fontSize.map((function(_){return u("el-dropdown-item",{key:_.name,class:_.name===l.size.name?"selected":"",nativeOn:{click:function click(){return l.fontSizeClick(_)}}},[_.name])}))])])]):null,_.enlargeSize?u(Mo,{attrs:_objectSpread2({},{title:"增大字体",svg:"fontSizeEnlarge"}),nativeOn:{click:this.fontSizeEnlargeClick.bind(this)}}):null,_.decreaseSize?u(Mo,{attrs:_objectSpread2({},{title:"缩小字体",svg:"fontSizeDecrease"}),nativeOn:{click:this.fontSizeDecreaseClick.bind(this)}}):null,_.superScript?u(Mo,{attrs:_objectSpread2({},{title:"上标",svg:"fontSuperScript",selected:this.isSuperScript}),nativeOn:{click:this.fontSuperScriptClick.bind(this)}}):null,_.subScript?u(Mo,{attrs:_objectSpread2({},{title:"下标",svg:"fontSubScript",selected:this.isSubScript}),nativeOn:{click:this.fontSubScriptClick.bind(this)}}):null,_.bold?u(Mo,{attrs:_objectSpread2({},{title:"加粗",svg:"bold",selected:this.isBold}),nativeOn:{click:this.fontBoldClick.bind(this)}}):null,_.underline?u(Mo,{attrs:_objectSpread2({},{title:"下划线",svg:"underline",selected:this.isUnderline}),nativeOn:{click:this.fontUnderlineClick.bind(this)}}):null,_.strikeout?u(Mo,{attrs:_objectSpread2({},{title:"删除线",svg:"strikeout",selected:this.isStrikeout}),nativeOn:{click:this.fontStrikeoutClick.bind(this)}}):null,_.fontColor?u(Mo,{attrs:_objectSpread2({},{title:"字体颜色",poperStyle:{padding:"0",width:"50px"}})},[u("div",{class:"color-picker-menu"},[u("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17"},style:"transform: translate(8px, 0px)"},[u("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-4 -3)"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("rect",{attrs:{width:"16",height:"3",x:"4",y:"17",fill:this.color,rx:"1.5"}})])]),u("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,_.backColor?u(Mo,{attrs:_objectSpread2({},{title:"背景颜色",poperStyle:{padding:"0",width:"50px"}})},[u("div",{class:"color-picker-menu"},[u("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 1024 1024"},style:"transform: translate(2px, 0px)"},[u("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"}}),u("path",{attrs:{d:"M851.536842 485.052632H970.105263l-247.915789 269.473684H377.263158z",fill:this.backcolor}})]),u("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}(k());__decorate([Prop()],Mu.prototype,"vueController",void 0),__decorate([Prop()],Mu.prototype,"family",void 0),__decorate([Prop()],Mu.prototype,"textStyle",void 0),__decorate([Watch("textStyle",{deep:!0})],Mu.prototype,"textStyleChange",null),Mu=__decorate([ae({name:"ToolFamily",components:{Poper:Mo}})],Mu);var Nu=Mu,Ou=function(l){(0,Y.Z)(ToolParagraph,l);var u=(0,ee.Z)(ToolParagraph);function ToolParagraph(){var l;return(0,q.Z)(this,ToolParagraph),l=u.apply(this,arguments),l.aligned="both",l.lineHeight=1.25,l.lineHeightList=[1.25,1.5,2,2.5,3],l.lineHeightVisible=!1,l.isInMenu=!1,l.toolMenuOpenPath=[],l}return(0,$.Z)(ToolParagraph,[{key:"alignChange",value:function alignChange(l){l&&(this.aligned=l)}},{key:"lineSpaceChange",value:function lineSpaceChange(l){l&&(this.lineHeight=l)}},{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(l){this.lineHeightVisible=!1,this.vueController.setLineHeight(l)}},{key:"closeToolMenus",value:function closeToolMenus(l){var u=this;this.toolMenuOpenPath.length>0&&this.toolMenuOpenPath.forEach((function(l){u.toolMenu.closeMenu(l)}))}},{key:"toolMenuSelected",value:function toolMenuSelected(l,u){this.toolMenuOpenPath=u}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.paragraph;this.isInMenu;return u("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-not-item-hover"},[_.alignLeft?u(Mo,{attrs:_objectSpread2({},{title:"向左对齐",svg:"alignLeft",selected:"left"===this.aligned}),nativeOn:{click:this.alignedLeft.bind(this)}}):null,_.alignCenter?u(Mo,{attrs:_objectSpread2({},{title:"居中对齐",svg:"alignCenter",selected:"center"===this.aligned}),nativeOn:{click:this.alignedCenter.bind(this)}}):null,_.alignRight?u(Mo,{attrs:_objectSpread2({},{title:"向右对齐",svg:"alignRight",selected:"right"===this.aligned}),nativeOn:{click:this.alignedRight.bind(this)}}):null,_.alignBoth?u(Mo,{attrs:_objectSpread2({},{title:"两端对齐",svg:"alignBoth",selected:"both"===this.aligned}),nativeOn:{click:this.alignedBothEnds.bind(this)}}):null,_.addIndent?u(Mo,{attrs:_objectSpread2({},{title:"增加缩进",svg:"addIndent"}),nativeOn:{click:this.addIndentClick.bind(this)}}):null,_.decreaseIndent?u(Mo,{attrs:_objectSpread2({},{title:"减少缩进",svg:"decreaseIndent"}),nativeOn:{click:this.decreaseIndentClick.bind(this)}}):null,_.setHeight?u(Mo,{attrs:_objectSpread2({},{title:"设置行高",poperStyle:{width:"44px"}})},[u("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[u("span",{class:"el-dropdown-link"},[u("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"15",viewBox:"0 0 13 15"},style:"transform: translate(5px, -1px)"},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-6 -5)"}},[u("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)"}})])]),u("i",{class:"el-icon-arrow-down el-icon--right"})]),u("el-dropdown-menu",{slot:"dropdown"},[this.lineHeightList.map((function(_){return u("el-dropdown-item",{key:"line-height-"+_,class:_===l.lineHeight?"selected":"",nativeOn:{click:function click(){return l.lineHeightClick(_)}}},[1.25===_?1:_])}))])])]):null])}}]),ToolParagraph}(k());__decorate([Prop()],Ou.prototype,"vueController",void 0),__decorate([Prop()],Ou.prototype,"paragraph",void 0),__decorate([Ref()],Ou.prototype,"toolMenu",void 0),__decorate([Prop()],Ou.prototype,"align",void 0),__decorate([Prop()],Ou.prototype,"lineSpace",void 0),__decorate([Watch("align")],Ou.prototype,"alignChange",null),__decorate([Watch("lineSpace")],Ou.prototype,"lineSpaceChange",null),Ou=__decorate([ae({name:"ToolParagraph",components:{Poper:Mo}})],Ou);var Lu=Ou,MedicalExpressionsvue_type_template_id_2ab05066_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticStyle:{overflow:"hidden",height:"640px"},attrs:{native:!1}},[_("el-menu-item",{staticClass:"express-item",attrs:{index:"style1"},on:{click:function(u){return l.selectedSure("style1")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("Value1")]),_("text",{attrs:{x:"43",y:"13"}},[l._v("Value2")]),_("text",{attrs:{x:"43",y:"55"}},[l._v("Value3")]),_("text",{attrs:{x:"83",y:"33"}},[l._v("Value4")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 40 30 L 80 30"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style2"},on:{click:function(u){return l.selectedSure("style2")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"15",y:"20"}},[l._v("Value1")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("Value2")]),_("text",{attrs:{x:"15",y:"50"}},[l._v("Value3")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("Value4")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 10 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style3"},on:{click:function(u){return l.selectedSure("style3")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("Value1")]),_("text",{attrs:{x:"43",y:"13"}},[l._v("Value2")]),_("text",{attrs:{x:"43",y:"55"}},[l._v("Value3")]),_("text",{attrs:{x:"83",y:"33"}},[l._v("Value4")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 15 5 L 110 55"}}),_("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style4"},on:{click:function(u){return l.selectedSure("style4")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("Value1")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("Value2")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("Value3")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 62 30 L 110 30"}}),_("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style5"},on:{click:function(u){return l.selectedSure("style5")}}},[_("span",[l._v("瞳孔图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"25"}},[l._v("Value1")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("Value2")]),_("text",{attrs:{x:"0",y:"40"}},[l._v("Value3")]),_("text",{attrs:{x:"40",y:"40"}},[l._v("Value4")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("Value5")]),_("text",{attrs:{x:"0",y:"55"}},[l._v("Value6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("Value7")])])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style6"},on:{click:function(u){return l.selectedSure("style6")}}},[_("span",[l._v("光定位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"25"}},[l._v("Value1")]),_("text",{attrs:{x:"0",y:"40"}},[l._v("Value4")]),_("text",{attrs:{x:"0",y:"55"}},[l._v("Value7")]),_("text",{attrs:{x:"40",y:"25"}},[l._v("Value2")]),_("text",{attrs:{x:"40",y:"40"}},[l._v("Value5")]),_("text",{attrs:{x:"40",y:"55"}},[l._v("Value8")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("Value3")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("Value6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("Value9")])])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style7"},on:{click:function(u){return l.selectedSure("style7")}}},[_("span",[l._v("胎心图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"12",y:"15"}},[l._v("Value1")]),_("text",{attrs:{x:"12",y:"35"}},[l._v("Value4")]),_("text",{attrs:{x:"12",y:"55"}},[l._v("Value7")]),_("text",{attrs:{x:"70",y:"15"}},[l._v("Value2")]),_("text",{attrs:{x:"70",y:"35"}},[l._v("Value5")]),_("text",{attrs:{x:"70",y:"55"}},[l._v("Value8")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 0 30 L 10 30"}}),_("path",{attrs:{d:"M 52 30 L 67 30"}}),_("path",{attrs:{d:"M 110 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style8"},on:{click:function(u){return l.selectedSure("style8")}}},[_("span",[l._v("恒牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("12345678")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("12345678")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style9"},on:{click:function(u){return l.selectedSure("style9")}}},[_("span",[l._v("乳牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("I II III IV V")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("I II III IV V")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)},Au=[],Ru=function(l){(0,Y.Z)(MedicalExpression,l);var u=(0,ee.Z)(MedicalExpression);function MedicalExpression(){return(0,q.Z)(this,MedicalExpression),u.apply(this,arguments)}return(0,$.Z)(MedicalExpression,[{key:"selectedSure",value:function selectedSure(l){this.$emit("open-express","express","add",l)}}]),MedicalExpression}(k());Ru=__decorate([ae({name:"MedicalExpression"})],Ru);var Fu=Ru,ju=Fu,Bu=normalizeComponent(ju,MedicalExpressionsvue_type_template_id_2ab05066_scoped_true_render,Au,!1,null,"2ab05066",null),Uu=Bu.exports,UploadImagevue_type_template_id_83f7ba12_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":l.fileList,"auto-upload":!1,"on-change":l.uploadImage,accept:"image/*"}},[_("el-menu-item",{attrs:{slot:"trigger",index:"upload"},slot:"trigger"},[_("svg",{attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("g",{attrs:{transform:"translate(1 1)"}},[_("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"}}),_("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),_("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"}})])]),_("span",{attrs:{size:"small"}},[l._v("图片")])])],1)},Hu=[],Wu=function(l){(0,Y.Z)(UploadImage,l);var u=(0,ee.Z)(UploadImage);function UploadImage(){var l;return(0,q.Z)(this,UploadImage),l=u.apply(this,arguments),l.fileList=[],l}return(0,$.Z)(UploadImage,[{key:"uploadImage",value:function uploadImage(l){var u=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var _=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",v=new FormData;v.append(_,l.raw),pl({url:this.uploadImageParams.uploadUrl,method:"POST",data:v}).then((function(_){var v,C="";if(null!==(v=u.uploadImageParams)&&void 0!==v&&v.callbackParamName||"string"!==typeof _){var k,N=null===(k=u.uploadImageParams)||void 0===k?void 0:k.callbackParamName;C=_[N]}else C=JSON.parse(_).imgUrl;if(C){var B=new Image;B.src=C,B.onload=function(){u.vueController.insertImage(C,B.width,B.height)}}else u.insertBase64Image(l)}),(function(){u.insertBase64Image(l)}))}else this.insertBase64Image(l)}},{key:"insertBase64Image",value:function insertBase64Image(l){var u=this,_=new FileReader;_.onload=function(l){var _=new Image,v=l.target.result;_.src=v,_.onload=function(){u.vueController.insertImage(v,_.width,_.height),u.fileList=[]}},_.readAsDataURL(l.raw)}}]),UploadImage}(k());__decorate([Prop()],Wu.prototype,"vueController",void 0),__decorate([Prop()],Wu.prototype,"uploadImageParams",void 0),Wu=__decorate([ae({name:"UploadImage"})],Wu);var qu=Wu,zu=qu,Vu=normalizeComponent(zu,UploadImagevue_type_template_id_83f7ba12_scoped_true_render,Hu,!1,null,"83f7ba12",null),Ku=Vu.exports,SpecialCharsvue_type_template_id_149aee36_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-menu-item",{staticClass:"special-characters",attrs:{disabled:"",index:"style1"}},[_("section",[_("ul",[_("li",[_("header",[l._v("特殊字符")]),_("p",{staticClass:"chars-list special-chars-list"},l._l(l.specialChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("罗马字符")]),_("p",{staticClass:"chars-list"},l._l(l.romanChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("数学字符")]),_("p",{staticClass:"chars-list"},l._l(l.mathChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)])])])])},$u=[],Gu=function(l){(0,Y.Z)(SpecialChars,l);var u=(0,ee.Z)(SpecialChars);function SpecialChars(){var l;return(0,q.Z)(this,SpecialChars),l=u.apply(this,arguments),l.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],l.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡","▽","△","▷","◁","/","∕"],l.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],l.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],l.usedChars=[],l}return(0,$.Z)(SpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(l){if(this.vueController.insertSpecialChars("",l),this.usedChars.includes(l))return!1;this.usedChars.unshift(l),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var l=this;this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),SpecialChars}(k());__decorate([Prop()],Gu.prototype,"controlStatus",void 0),__decorate([Prop()],Gu.prototype,"vueController",void 0),Gu=__decorate([ae({name:"SpecialChars"})],Gu);var Zu=Gu,Ju=Zu,Xu=normalizeComponent(Ju,SpecialCharsvue_type_template_id_149aee36_scoped_true_render,$u,!1,null,"149aee36",null),Yu=Xu.exports,Qu=function(l){(0,Y.Z)(ToolControls,l);var u=(0,ee.Z)(ToolControls);function ToolControls(){var l;return(0,q.Z)(this,ToolControls),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.dateFormatValue=[],l.dateFormat=Lt.vc,l.fileList=[],l.tableFormulaValue=[],l.tableFormulaList=["sum(a3:a10)","(a1 + a20) * 2"],l}return(0,$.Z)(ToolControls,[{key:"initDropdown",value:function initDropdown(){var l=this,u=[];this.dateFormatList.forEach((function(_,v){v<10&&u.push(l.dateFormat("",_))})),this.dateFormatValue=[].concat(u);var _=[];this.tableFormulaList.forEach((function(l){_.push(l)})),this.tableFormulaValue=[].concat(_)}},{key:"created",value:function created(){this.initDropdown()}},{key:"createControl",value:function createControl(l){this.$emit("setModal",[l,"add",""])}},{key:"openExpress",value:function openExpress(){for(var l=arguments.length,u=new Array(l),_=0;_<l;_++)u[_]=arguments[_];this.$emit("setModal",u)}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModal",["","add",""])}},{key:"selectedDate",value:function selectedDate(l,u){if("more"===l)this.$emit("setModal",["date","add",""]);else{var _={id:this.vueController.generateID("DT"),name:"",text:u,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:l};this.vueController.insertDateTime("add",JSON.stringify(_))}}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.insert,v=this.vueController;return u("el-submenu",{attrs:{"popper-class":"insert-menus",index:"control"}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}})]),u("span",["插入"])]),_.express?u("el-submenu",{attrs:{index:"express","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}})]),u("span",["医学表达式"])]),u(Uu,{on:{"open-express":this.openExpress.bind(this)}})]):null,_.specialChars?u("el-submenu",{attrs:{index:"specialChars","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("defs",[u("g",{attrs:{id:"watermark"}},[u("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"}}),u("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"}})])]),u("use",{attrs:{"xlink:href":"#watermark"}})]),u("span",["特殊字符"])]),u(Yu,{attrs:_objectSpread2({},{vueController:v}),on:{"close-menu":this.closeMenu.bind(this)}})]):null,_.datetime?u("el-submenu",{attrs:{index:"datetime","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("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"}})]),u("span",["日期时间"])]),this.dateFormatValue.map((function(_,v){return u("el-menu-item",{class:"date-time-item",attrs:{index:l.dateFormatList[v]},key:_+v,on:{click:function click(){return l.selectedDate(l.dateFormatList[v],_)}}},[_])})),u("el-menu-item",{class:"date-time-item",attrs:{index:"datetimemore"},on:{click:function click(){return l.selectedDate("more","")}}},["更多日期属性"])]):null,_.select?u("el-menu-item",{attrs:{index:"select"},on:{click:function click(){return l.createControl("select")}}},[u("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}})]),u("span",["下拉框"])]):null,_.text?u("el-menu-item",{attrs:{index:"text"},on:{click:function click(){return l.createControl("text")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("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"}})]),u("span",["文本域"])]):null,_.uploadImage?u(Ku,{attrs:_objectSpread2({},{vueController:v,uploadImageParams:this.uploadImageParams})}):null,_.barcode?u("el-menu-item",{attrs:{index:"bar-code"},on:{click:function click(){return l.createControl("barcode")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}})]),u("span",["条形码"])]):null,_.qrcode?u("el-menu-item",{attrs:{index:"qr-code"},on:{click:function click(){return l.createControl("qrcode")}}},[u("svg",{attrs:{viewBox:"0 0 1041 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),u("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),u("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),u("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),u("span",["二维码"])]):null,_.radioBox?u("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return l.createControl("RadioBox")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}})]),u("span",["单选框"])]):null,_.checkBox?u("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return l.createControl("CheckBox")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}}),u("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"}})]),u("span",["复选框"])]):null,_.pageInfoes?u("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return l.createControl("pageInfoes")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}})]),u("span",["页码页数信息"])]):null])}}]),ToolControls}(mixins(lu));__decorate([Prop()],Qu.prototype,"vueController",void 0),__decorate([Prop()],Qu.prototype,"insert",void 0),__decorate([Prop()],Qu.prototype,"uploadImageParams",void 0),Qu=__decorate([ae({name:"ToolControls",components:{MedicalExpressions:Uu,SpecialChars:Yu,UploadImage:Ku}})],Qu);var ed=Qu,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){l.isDocumentShow=!1},expression:"\n () => {\n isDocumentShow = false;\n }\n "}],staticClass:"sub-bar-items",style:l.isDocumentShow?"background-color: #eaeaea;":"background-color: #fff;"},[_("div",{staticClass:"sub-bar-item",staticStyle:{width:"80px"},on:{click:l.openDocument}},[l._v(" 更新说明 ")]),l.isDocumentShow?_("div",{staticClass:"document-item animation-in"},[l._m(0)]):l._e()])},rd=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",[_("li",[_("p",[_("span",[l._v("0.3.60 ~ 0.3.95 (累积更新)")]),_("span",[l._v("2021/11/01")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v(" 1:编辑器内存占用量大幅降低; ")]),_("p",[l._v(" 2: 改进生成html功能,使导出的html打印效果跟编辑器直接打印一致 ")]),_("p",[l._v(" 3:增加版本号右键显示 ")]),_("p",[l._v(" 4:编辑模式下隐藏、显示批注; ")]),_("p",[l._v(" 5: 医学表达式增加结构化 ")]),_("p",[l._v(" 6:增加了强制删除功能 ")]),_("p",[l._v(" 7:文本域下拉列表增加对应的keyValue和双击事件; ")]),_("p",[l._v(" 8:签名功能重新设计以适配单人、多人签名 ")]),_("p",[l._v(" 9: 增加日期时间格式和处理方式; ")]),_("p",[l._v(" 10:医学表达式添加下拉列表文字描述; ")]),_("p",[l._v(" 11:复制粘贴文本域时 去掉不必要的标记; ")]),_("p",[l._v(" 12:合并打印返回参数增加`startPageNum: 本次打印起始页面` ")]),_("p",[l._v(" 13:单元格双击下拉列表允许删除; ")]),_("p",[l._v(" 14:移除批量打印结束时恢复打印前文档状态异步调用方式; ")]),_("p",[l._v(" 15:优化页眉页脚内表格结束位置多出空行的问题; ")]),_("p",[l._v(" 16:新增删除当前页接口`vueController.delCurPage(pageIndex)` ")]),_("p",[l._v(" 17:设置页顶端至页眉最小默认高度3mm,小于3MM将影响打印 ")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v(" 1: 修复从word复制粘贴最后多个段落; ")]),_("p",[l._v(" 2: 修复在云平台插入元素时 回车是否对齐总是默认是true的问题; ")]),_("p",[l._v(" 3: 处理当文本域中第一个节点为回车时,造成的无法选中问题; ")]),_("p",[l._v(" 4: 处理日期DataID每次保存都会变的问题; ")]),_("p",[l._v(" 5: 处理页码页数,调整字体大小时,导致重复绘制问; ")]),_("p",[l._v(" 6: 处理提示弹窗高度过高问题; ")]),_("p",[l._v(" 7: 文本域下拉列表单选不显示问题修复 ")]),_("p",[l._v(" 9: 修复表格保存行信息异常; ")]),_("p",[l._v(" 10:修复表格的复制粘贴; ")]),_("p",[l._v(" 11:修复批量打印 另起一页 抬头字体样式不对; ")]),_("p",[l._v(" 13: 处理合并行中非最后一行不同列单元格内容变高度,导致边框未正确绘制问题; ")]),_("p",[l._v(" 14: 修复在表达式后面打字字体样式变成文档默认字体的问题; ")]),_("p",[l._v(" 15: 修复下拉框确认按钮显示不完整问题; ")]),_("p",[l._v(" 16: 修复日期框显示不完整问题; ")]),_("p",[l._v(" 17: 处理续打时已打印页面仍然存在的问题; ")]),_("p",[l._v(" 18: 修改打印起始页判断方式; ")]),_("p",[l._v(" 19:处理表格行线偶尔变粗的问题; ")]),_("p",[l._v(" 20: 处理表格边框变粗问题; ")]),_("p",[l._v(" 21: 文档加载时 文档类型是空时默认类型是病历; ")]),_("p",[l._v(" 22: 合并打印返回打印起始页获取位置调整到重置文档状态前; ")]),_("p",[l._v(" 23: 第一份病历合并或者批量打印时,用settimeout方式异步等待图片缩放完成; ")]),_("p",[l._v(" 24: 处理续打位置错误问题; ")]),_("p",[l._v(" 25:打印移除Safari兼容方法, 修复谷歌浏览器打印卡死问题; ")]),_("p",[l._v(" 26:日期时间格式化函数处理中文格式情况, 修复加载异常问题; ")]),_("p",[l._v(" 27:处理合并多行单元格跨页不绘制问题; ")]),_("p",[l._v(" 28:处理病历由医生打开时,文本域标签重复绘制问题; ")]),_("p",[l._v(" 29: 修复从老版本病历复制粘贴到新版本病历时段落消失的问题; ")]),_("p",[l._v(" 30: 修复删除选区包含不允许删除的元素时删除异常的问题; ")]),_("p",[l._v(" 31: 复制、粘贴MarkNode时带上其样式; ")]),_("p",[l._v(" 32: 处理保存病历时检查元素报错的问题; ")]),_("p",[l._v(" 33: 修复日期设置不成功问题; ")]),_("p",[l._v(" 34: 修复删除问题; ")]),_("p",[l._v(" 35:修复部分日期时间格式加载不显示问题; ")]),_("p",[l._v(" 36:修复下拉框元素双击不弹出问题; ")]),_("p",[l._v(" 37:修复低版本打印空元素仍旧显示问题; ")]),_("p",[l._v(" 38:增加`ElementController.forceDelete`强制删除接口; ")]),_("p",[l._v(" 39:修复批量打印时表格内样式加载不对问题; ")]),_("p",[l._v(" 40:修复日期时间表单修改时自动设置当前时间问题; ")]),_("p",[l._v(" 41:优化弹窗定位方式; ")]),_("p",[l._v(" 42:修复chromium内核浏览器粗体打印不显示问题; ")]),_("p",[l._v(" 43:修复另存为的html文件在浏览器上打开后右键打印多出空白页问题; ")]),_("p",[l._v(" 44:需要自定义列表的下拉框和文本域下来列表修改: ")]),_("p",[l._v(" 45:修复批量加载文档; ")]),_("p",[l._v(" 46:处理合并打印时,表格线超过正文内容绘制到页脚的问题; ")]),_("p",[l._v(" 47:处理页码绘制占位宽度不够 48:导致两位数页码时,页码跟文本内容重叠的问题;; ")]),_("p",[l._v(" 49:处理文本域双击下拉选择的文本长短不同时,导致的选区报错问题; ")]),_("p",[l._v(" 50:修复打开文件报错问题 ")]),_("p",[l._v(" 51:修复页眉页脚加载样式错误问题; ")]),_("p",[l._v(" 52:修复文本域内光标位置错误问题; ")]),_("p",[l._v(" 53:修复打印时打印样式未加载成功问题; ")]),_("p",[l._v(" 54:处理自动换行行线模糊,断断续续绘制不完全的问题; ")]),_("p",[l._v(" 55: 下拉列表多选时选中值按列表顺序排列,不再按选中先后顺序排列; ")]),_("p",[l._v(" 56:修复打开非A4纸病历,不显示内容问题; ")]),_("p",[l._v(" 57:处理加载时,如果左右边距与页面默认设置不匹配,导致的偏移问题; ")]),_("p",[l._v(" 58:修复签名删除问题 ")]),_("p",[l._v(" 59:修复下拉列表单选问题 ")]),_("p",[l._v(" 60:修复84版本谷歌浏览器打印问题; ")]),_("p",[l._v(" 61: 修复下拉选择中搜索功能选择和插入顺序问题; ")]),_("p",[l._v(" 62:修复字体样式中带有特殊字符(下划线_),导致打印生成svg不识别无法打印的问题 ")])])]),_("li",[_("p",[_("span",[l._v("0.3.2 ~ 0.3.59 (累积更新)")]),_("span",[l._v("2021/09/29")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1:改进打印,转成svg进行打印,打印质量与word、wps达到一致")]),_("p",[l._v("2: 增加英文与数字分词功能,行首不出现标点,英文数字整体换行")]),_("p",[l._v("3: 新增病历合并显示功能")]),_("p",[l._v("4: 新增批量打印,合并打印,续打连续病历功能")]),_("p",[l._v("5: 新增元素联动功能")]),_("p",[l._v("6: 单元格绑定控件,可以双击单元格实现下拉、日期、固定值填充等")]),_("p",[l._v(" 7: 新增设计模式,元素表格设置的权限在此模式不受限制,用于制作模板 ")]),_("p",[l._v("8: 字号单位由px变更为pt,以适配超高清屏幕")]),_("p",[l._v("9: 打印不再新开页签,直接在当前页弹打印对话框")]),_("p",[l._v("10: 新增打印全部页,奇数页,偶数页,指定页打印设置")]),_("p",[l._v(" 11: 新增customProperty参数用来配置文本域,日期表单自定义属性项; ")]),_("p",[l._v(" 12: 新增pageProperty参数用来初始化编辑器字体字号字间距段落等部分全局样式; ")]),_("p",[l._v("13: 新增插入分隔符功能")]),_("p",[l._v("14: 新增标签转文本和文本转标签的接口方法及右键菜单项;")]),_("p",[l._v("15: 新增编辑器组件emit返回右键事件和双击事件;")]),_("p",[l._v("16: 新增获取所有元素的接口")]),_("p",[l._v("17: 新增接口方法: 验证病历文档中所有的文本域的数据格式")]),_("p",[l._v("18: 新增格式刷以及对应的撤销恢复功能")]),_("p",[l._v("19: 新增单元格属性背景色backColor属性")]),_("p",[l._v("20: 新增数学公式插入表单弹窗")]),_("p",[l._v("21: 新增签名接口和表单弹窗")]),_("p",[l._v("22: 新增行或者列时,复制当前行或者列的单元格的编辑器属性")]),_("p",[l._v(" 23: 新增tab键响应:光标移到下一个元素,日期和下拉列表控件处于选中状态按enter键弹框 ")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 修复行首退格导致输入域丢失提示文本与边框的问题")]),_("p",[l._v("2: 修复单元格另存xml后加载丢失边框问题")]),_("p",[l._v(" 3: 修复设置输入域固定宽度后,在输入域中打字,导致后续内容丢失的问题 ")]),_("p",[l._v(" 4: 修复打印清晰度,打印预览单元格边框不显示,横向打印多出空白页的问题 ")]),_("p",[l._v("5: 修复光标换页错位问题")]),_("p",[l._v("6: 修复在文本中插入回车无效问题")]),_("p",[l._v("7: 修复加载文件单元格属性不起作用")]),_("p",[l._v("9: 修复设置打印起始位置当起始行为表格时无效问题")]),_("p",[l._v("10: 修复页眉未打印问题")]),_("p",[l._v("11: 修复设置分页后加载表格多插入了一页的问题")]),_("p",[l._v("12: 修复文本域修改无法实时更新文本域宽度问题")]),_("p",[l._v("13: 修复图片上传接口返回图片地址接收错误问题")]),_("p",[l._v("14: 修复空文本域打印预览时不打印初始化显示的字")]),_("p",[l._v("15: 修复方向键的响应问题")]),_("p",[l._v(" 16: 修复当选择起始点为自动换行文本非首行起始点时,选区范围绘制错误问题 ")]),_("p",[l._v("17: 修复打印导致除当前页外无法选中的问题")]),_("p",[l._v("18: 修复删除元素不能撤销的问题")]),_("p",[l._v(" 19: 修复输入域内的输入域设置固定宽度后,导致父区域指定的宽度无效问题 ")]),_("p",[l._v("20: 修复pageProperty初始化循环设置问题")]),_("p",[l._v("21: 修复导致设计模式不生效问题和菜单栏切换错误问题")]),_("p",[l._v(" 22: 修复单元格内更新文本域内容带自动换行时,换行后的内容出现在表格外的问题 ")]),_("p",[l._v(" 23: 修复表格中带公式,修改表格内容触发公式计算 导致表格后的非表格行消失问题 ")]),_("p",[l._v("24: 修复工具栏文件,插入表格等菜单配置项错误")]),_("p",[l._v(" 25: 修复打印方向变化后预览界面白色背景未重绘导致出现黑色区域问题,打印预览图片缩放未完成导致预览界面图片与文档图片大小不一致问题 ")]),_("p",[l._v("26: 修复文档的加载")]),_("p",[l._v("27: 修复加载病历时行高获取异常的问题")]),_("p",[l._v("28: 修复表格某列多行合并后跨页绘制异常问题")]),_("p",[l._v("29: 修复调用`openXml`加载文档首页页眉未加载出来的问题")]),_("p",[l._v("30: 修复文档加载时文本域的段落使用块对齐不起作用")]),_("p",[l._v("31: 修复从旧版病历复制粘贴到新版病历,会导致大面积斜体问题")]),_("p",[l._v(" 32: 统一行位置设置坐标位置为段落节点内,不再在其他地方设置行的x坐标,避免位置不齐 ")]),_("p",[l._v("33: 处理在调整表格行列大小时,会误选中单元格内容的问题")]),_("p",[l._v("34: 处理在行较多时,合并多行后,行线会覆盖下面的行的问题")]),_("p",[l._v(" 35: 处理在合并多行列的隔隔行编辑时,合并多行的单元格未正确绘制边框的问题 ")]),_("p",[l._v("36: 修复右键删除签名异常的问题")]),_("p",[l._v("37: 处理输入域在文档中设置了固定宽度后,导致文档对不齐的问题")]),_("p",[l._v("38: 处理表格内合并单元格中文本域混乱问题")]),_("p",[l._v("39: 修复日期修改导致节点后内容被覆盖的问题")]),_("p",[l._v("40: 处理文本域内需要点击两次才能切换菜单的问题")]),_("p",[l._v(" 41: 修复文本域多层嵌套,子文本域内容变动时复文本域内容未更新的问题 ")]),_("p",[l._v("42: 修复单元格表单打开时内边距问题")]),_("p",[l._v("43: 处理合并多行的单元格,绘制时偏移问题")]),_("p",[l._v("44: 处理打印时页眉中的图片未正常显示问题")]),_("p",[l._v(" 45: 处理在页眉中编辑表格导致重绘异常,以及错误的将页眉中的表格绘制于正文的问题 ")]),_("p",[l._v(" 46: 修复双击弹出下拉列表高度不够导致无法动态调整位置和下拉列表高度的问题 ")])])]),_("li",[_("p",[_("span",[l._v("0.3.1")]),_("span",[l._v("2021/08/05")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 表格中插入求和、四则混合运算")]),_("p",[l._v("2: 新增接口页眉页脚插入")]),_("p",[l._v("3: 日期控件增加labelText")]),_("p",[l._v(" 4: 新增接口方法: 保存选区内容(病历段落)、插入段落、删除元素、删除选区内内容 ")]),_("p",[l._v("5: 新增接口方法: 保存与替换页眉页脚")]),_("p",[l._v("6: 元素增加属性是否自动回填")]),_("p",[l._v("7: 新增接口方法: 读取xml病历字符串")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 编辑状态无法打印的问题")]),_("p",[l._v("2: 编辑批注错误问题")]),_("p",[l._v("3: 诊断换行无效问题")]),_("p",[l._v("4: 处理删除输入域 导致输入域后面的文本也被 删除的问题")]),_("p",[l._v("5: 护理记录标题行弹控件问题")])]),_("div",[_("h3",[l._v("others:")]),_("p",[l._v("1: UI优化")])])]),_("li",[_("p",[_("span",[l._v("0.3.0")]),_("span",[l._v("2021/07/31")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 工具栏独立抽出成组件,调用方开源并允许修改")]),_("p",[l._v("2: 增加插入html文本串接口")]),_("p",[l._v("3: 工具栏增加配置功能")]),_("p",[l._v(" 4: 增加直接修改xml文件输入域text字段,加载文件根据text生成节点功能 ")]),_("p",[l._v("5: 绘制页根据可视范围进行创建与销毁,以优化内存")]),_("p",[l._v("6: 增加修改元素的接口方法")]),_("p",[l._v("7: 上传图片的接口方法")]),_("p",[l._v("8: 增加了不合并续打功能")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 修复可视化区监听错误,导致页面多绘问题")]),_("p",[l._v("2: 页面设置弹窗重新打开时获取上次设置信息失败问题")]),_("p",[l._v("3: 绘制方式变更后引入的无法选择问题修复")]),_("p",[l._v("4: 绘制方式变更后换页问题修复")]),_("p",[l._v(" 5: 绘制方式变更后的选择问题、双击问题、路径失效问题、页码问题、全局样式问题 ")]),_("p",[l._v("6: 时间格式小时解析成HH的问题")]),_("p",[l._v("7: 在有文本的行插入图片时造成的行高异常问题")])]),_("div",[_("h3",[l._v("others:")]),_("p",[l._v("1: 更新并整理文档,增加注释")]),_("p",[l._v("2: 去掉hoeditorFacotry的循环引用,以优化内存占用")]),_("p",[l._v("3: 接口方法梳理分类并整理")]),_("p",[l._v("4: 去掉对drawPages的循环引用,以优化内存")]),_("p",[l._v("5: 对可视区外的页面进行销")]),_("p",[l._v("6: 打印功能多入口合并成一个管理对象进行管理")])])]),_("li",[_("p",[_("span",[l._v("0.2.5")]),_("span",[l._v("2021/07/19")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 文本域中的段落使用块对齐")]),_("p",[l._v("2: 另存为json功能")]),_("p",[l._v("3: 存储格式节点名称变更成类型名称")]),_("p",[l._v("4: 直接打印功能,会新开页签")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 输入域元素无法通过下拉选择更新内容,如单选、多选")]),_("p",[l._v("2: 文本域块模式文本超出自动换行不能正确显示,回车换行显示正常")]),_("p",[l._v("3: 在页面设置中设置字间距过大后,会导致文本超出面的右边界")]),_("p",[l._v("4: 批注跨页丢失")]),_("p",[l._v("5: 区域打印,打印了后续页,第三页不能选区的问题")]),_("p",[l._v("6: 文本域里面有换行 保存再加载 显示不对")]),_("p",[l._v(" 7: 在页的末行加批注 第一次点确定没反应 再点一次才插入成功 有偶然性 有时候又正常 ")]),_("p",[l._v("8: 表格删除无法撤销的问题")]),_("p",[l._v("9: 文本域不能嵌套")]),_("p",[l._v(" 10: 分页后,光标无法定位到第一页的后面几行,第二页也无法录入文字 ")]),_("p",[l._v("11: 文本域取消选中全局文本色,没什么变化")])])]),_("li",[_("p",[_("span",[l._v("0.2.4")]),_("span",[l._v("2021/07/13")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 文本自动换行结束处不能回车换行的问题")]),_("p",[l._v("2: 不能区域打印与续打的问题")]),_("p",[l._v("3: 保存为xml文件丢失空格问题")])])]),_("li",[_("p",[_("span",[l._v("0.2.3")]),_("span",[l._v("2021/07/09")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),_("p",[l._v("2: 修正不同的质控层级的批注颜色")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 文本域不能嵌套bug")]),_("p",[l._v("2: 文本域全局文本色无效问题")]),_("p",[l._v("3: 在非首页批注导致页面不可见问题")]),_("p",[l._v("4: 分页后光标无法定位到跨页表格前几行的问题")]),_("p",[l._v("5: 护理记录单第二页前几行无法弹出的问题")]),_("p",[l._v("6: 表格后面删除 然后双击,表格消失问题")]),_("p",[l._v("7: 工具栏字体样式不随光标位置变化问题修复")]),_("p",[l._v("8: 牙位图双击修改后显示错位修复")]),_("p",[l._v("9: 处理调整列宽 合并单元格没有正常绘制边框的问题")]),_("p",[l._v("10: 跨页单元格尾行绘制的行线过多问题、多一行的空行问题")]),_("p",[l._v("11: 日期选择无法选中问题修复")]),_("p",[l._v("12: 未设置允许被删除仍能删除的问题")]),_("p",[l._v("13: 选择一行合并把第二行也合并的问题")]),_("p",[l._v("14: 在横打界面批注,绘制位置偏差的问题")])]),_("div",[_("h3",[l._v("others:")]),_("p",[l._v("1: 表格调整宽度功能优化")]),_("p",[l._v("2: 单元格垂直对齐优化")]),_("p",[l._v("3: 优化表格录入较卡的问题")])])]),_("li",[_("p",[_("span",[l._v("0.2.2")]),_("span",[l._v("2021/06/30")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),_("p",[l._v("2: 修正不同的质控层级的批注颜色")])])]),_("li",[_("p",[_("span",[l._v("0.2.1")]),_("span",[l._v("2021/06/29")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 增加护理记录表单模式编辑病历、包括自动换行、表格列编辑器等")]),_("p",[l._v("2: 批量设置行高、列宽")]),_("p",[l._v("3: 元素使用特殊背景色标识")]),_("p",[l._v("4: 增加一级质控员、二级质控员、三级质控员不同的颜色标记")]),_("p",[l._v("5: 增加状态栏显示文件信息、病历类型、修改时间等功能")]),_("p",[l._v("6: 增加病历文档版本号")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 浏览模式可编辑的问题")]),_("p",[l._v("2 : 处理单元格内对齐方式无效问题")]),_("p",[l._v("3: 处理无法选择合并单元格问题")]),_("p",[l._v("4: 列宽过窄时,文本跳到相邻单元格问题")]),_("p",[l._v(" 5: 在文档编辑过程中切换纸张大小 文档首行的文本显示不正确的问题 ")]),_("p",[l._v("6: 取消合并单元格无效问题")]),_("p",[l._v("7: 列合并单元格左侧插入列,显示混乱问题")]),_("p",[l._v("8: 页眉页脚错乱问题")]),_("p",[l._v("9: 页码显不对问题")]),_("p",[l._v("10: 插入自定义行列数时,双击导致多插入行列问题")]),_("p",[l._v("11: 处理左对齐无效,行缩进无效问题")]),_("p",[l._v("12: 表格后偶尔无法录入的问题")])])]),_("li",[_("p",[_("span",[l._v("0.1.1")]),_("span",[l._v("2021/06/08")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1. 增加自定义表格行列,自定义插入行列")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v(" 1: 选中一段文本进行样式变更 变更完之后鼠标点击选区的前几个字没有反应 ")]),_("p",[l._v("2: 插入一个空文本域 标记框内初始化显示的文字不对")]),_("p",[l._v("3: 插入页码 显示不对")]),_("p",[l._v("4: 合并单元格保存后加载第一行行宽不对的问题")]),_("p",[l._v("5: 删除表格无效与删除后无法撤销恢复表格问题")]),_("p",[l._v("6: 处理取消合并单元格无效问题")]),_("p",[l._v("7: 选中图片后, 隐藏光标")]),_("p",[l._v(" 8: 表格, 上、下插入行或者左、右插入列后, 将新插入的行或者列处于选中状态, 并隐藏光标 ")]),_("p",[l._v("9: 修复编辑批注后, 批注内容较多时, 覆盖其它批注的问题")]),_("p",[l._v("10: 给表格增加列属性, 修改对应的文档的加载和保存")]),_("p",[l._v(" 11: 修复当当前页有选区时, 取消光标聚焦到页的起始位置, 以免发生跳转 ")]),_("p",[l._v("12: 修复插入一个空文本域, 域内初始化显示的文字不对的问题")]),_("p",[l._v("13: 修复文件加载后段落样式没起作用的问题")]),_("p",[l._v("14: 根据最新的绘制逻辑, 修复方向键的响应")]),_("p",[l._v("15: 打印功能整理到编辑模式菜单中")])])]),_("li",{staticClass:"version-line"}),_("li",[_("span",[l._v("2021/6/01 星期二")]),_("p",[l._v("1. 内存性能进一步优化")]),_("p",[l._v("2. 优化表格拖放边框线")]),_("p",[l._v("3. 处理最右侧无法插入列的问题")])]),_("li",[_("span",[l._v("2021/5/21 星期五")]),_("p",[l._v(" 1. 分页绘制优化,引入滚动绘制(不绘制非可视区域),进一步优化绘制速度 ")]),_("p",[l._v("2. 增加编辑批注,添加编辑和删除批注操作提示")]),_("p",[l._v("3. 修复表单粘贴无效且粘贴内容出现在文档中的问题")]),_("p",[l._v("4. 修复多页文档时日期选择弹窗多次创建问题")])]),_("li",[_("span",[l._v("2021/5/21 星期五")]),_("p",[l._v("1. 测试与bug修复")]),_("p",[l._v("2.整理与去HIS的对接文档")])]),_("li",[_("span",[l._v("2021/5/21 星期五")]),_("p",[l._v("1. 重写文本绘制算法,对绘制速度进一步优化")]),_("p",[l._v("2. 优化段落样式变更速度(主要是分散对齐)")]),_("p",[l._v("2. 处理绘制优化后产生的问题")]),_("p",[l._v(" 3. 去绘制缓存,由于速度已经非常快,不再需要绘制缓存,缓存会造成文字变粗 ")])]),_("li",[_("span",[l._v("2021/5/6 星期四")]),_("p",[l._v("1. 重写绘制算法,将删除重绘变更为移动重绘")]),_("p",[l._v("2. 重写表格绘制功能,优化整体性能以及调通变更后的绘制错误")])]),_("li",[_("span",[l._v("2021/5/6 星期四")]),_("p",[l._v("1. 根据新的绘制算法调整批注的插入、选中、删除和对应的文件的保存")]),_("p",[l._v("2. 根据新的绘制算法调整图片的缩放功能")])]),_("li",[_("span",[l._v("2021/4/12 星期一")]),_("p",[l._v("1. 工具栏页面设置功能完善")]),_("p",[l._v("2. 工具栏撤销恢复功能完善")]),_("p",[l._v("3. 工具栏上标下标功能完善")])]),_("li",[_("span",[l._v("2021/03/19 星期一")]),_("p",[l._v("1: bug修复、速度优化、UI优化")])]),_("li",[_("span",[l._v("2021/03/01 星期一")]),_("p",[l._v("1.完善批注的插入 实现批注随着文本的移动而移动")]),_("p",[l._v("2.实现批注的删除和选中时颜色的变化")]),_("p",[l._v("3.实现审阅模式下 逻辑删除")]),_("p",[l._v("4.做插入页码和页数的前期工作")]),_("p",[l._v("5.初步实现文档的新建")])]),_("li",[_("span",[l._v("2021/03/01 星期一")]),_("p",[l._v("1: 页眉页脚中显示页码、页数")]),_("p",[l._v("2: 审阅模式直接输入留痕")]),_("p",[l._v(" 3: 表格的插入行、插入列、删除行、删除列、合并单元格、取消合并单元格、拖动调列宽行高的撤销恢复功能 ")])]),_("li",[_("span",[l._v("2021/03/01 星期一")]),_("p",[l._v("1. 创建表格增加touch事件适配ipad端")]),_("p",[l._v("2. 审阅模式创建和删除提示调整")]),_("p",[l._v("3. 增加页码页数信息插入ui")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 完成web病历自身文档复制剪切粘贴到自身文档")]),_("p",[l._v("2. 完成web病历文档与word文档间的复制剪切粘贴")]),_("p",[l._v("3. 完成web病历文档与记事本文档间复制剪切粘贴")]),_("p",[l._v("4. 完成web病历文档与网页间复制剪切粘贴")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 完善文档xml格式,增加xml数组折叠,改进文档可读性")]),_("p",[l._v("2. 实现图片、条形码、二维码的缩放")]),_("p",[l._v("3. 初步实现审阅模式下逻辑删除;非审阅模式下物理删除")]),_("p",[l._v("4. 初步实现审阅模式下插入批注和批注选中后颜色变化")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 文档元素的滑过提示功能重写")]),_("p",[l._v("2. 工具栏提示组件重新实现,移除elementui组件")]),_("p",[l._v("3. 调整表单弹窗适应iPad")]),_("p",[l._v("4. 审阅模式删除提示和批注添加删除表单功能")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 表格跨页标题行显示、编辑")]),_("p",[l._v("2. 全文档重绘(切换编辑、审阅等页签时调用)")]),_("p",[l._v("3. 表格插入撤销恢复")]),_("p",[l._v("4. 表格删除撤销恢复")]),_("p",[l._v("5. 表格选中部分单元格内容删除的撤销恢复")]),_("p",[l._v("6. 表格选区绘制与表格部分选择时的选区扩展")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 实现打印记录标记绘制")]),_("p",[l._v("2. 实现续打功能")]),_("p",[l._v("3. 实现打印选中区域功能")]),_("p",[l._v("4. 实现打印选中区域的多选打印")]),_("p",[l._v("5. 实现打印鼠标选中位置打印功能")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 表格边框线绘制")]),_("p",[l._v("2. 表格边框拖动以调整行列大小")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 完善文档xml格式的保存和加载")]),_("p",[l._v("2. 文档另存为txt格式")]),_("p",[l._v("3. 文档另存为html格式")]),_("p",[l._v("4. 实现插入特殊字符")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 水印设置功能已实现,ui待进一步优化完善")]),_("p"),_("p",[l._v("2. 页面设置完善")]),_("p",[l._v("3. 特殊字符插入功能接入")]),_("p",[l._v("4. 实现插入特殊字符")])]),_("li",[_("span",[l._v("2020/12/22 星期二")]),_("p",[l._v("1. 表格中插入表格行、列")]),_("p",[l._v("2. 合并单元格功能")]),_("p",[l._v("3. 表格中删除行、列")]),_("p",[l._v("4. 页眉显示优化")]),_("p",[l._v("5. 绘制效率优化")]),_("p",[l._v("6. 取消合并单元格")])]),_("li",[_("span",[l._v("2020/12/22 星期二")]),_("p",[l._v("1. 在文本域中插入下拉列表")]),_("p",[l._v("2. 完善文档的保存和加载")]),_("p",[l._v("3. 添加鼠标放到文本域上显示左右标记事件")])]),_("li",[_("span",[l._v("2020/12/22 星期二")]),_("p",[l._v("1. 表格属性,表格行属性,单元格属性弹窗表单UI已完成")]),_("p",[l._v("2. 背景图片设置与清除")]),_("p",[l._v(" 3. Vue组件化完成,可用npm install+文件本地路径方式加载,import方式引入组件及UI,组件内可用HoDoc单标签方式使用 ")]),_("p",[l._v("4. 带有提示文本的控件增加滑过文本提示层")])]),_("li",[_("span",[l._v("2020/12/14 星期一")]),_("p",[l._v("1. 实现插入单复选控件")]),_("p",[l._v("2. 实现插入日期时间控件")]),_("p",[l._v("3. 实现插入下拉列表控件")]),_("p",[l._v("4. 实现控件的样式变更和内容删除控制")]),_("p",[l._v("5. 实现查找和替换")]),_("p",[l._v("6. 实现方向键的响应")]),_("p",[l._v("7. 完善往表格内插入控件和条形码等")]),_("p",[l._v("8. 实现鼠标移动到单复选控件同组照亮")]),_("p",[l._v("9. 完善页眉和页脚的方向键响应")])]),_("li",[_("span",[l._v("2020/12/11 星期五")]),_("p",[l._v("1. 表格的初步插入绘制功能")]),_("p",[l._v("2. 表格行跨页")]),_("p",[l._v("3. 页眉页脚功能")])]),_("li",[_("span",[l._v("2020/12/11 星期五")]),_("p",[l._v("1. 添加文本域节点绘制")]),_("p",[l._v("2. 实现文本域节点嵌套绘制")]),_("p",[l._v("3. 实现文本域节点定长绘制")]),_("p",[l._v("4. 实现文本域节点整体及内容删除控制")]),_("p",[l._v("5. 实现文本域节点内容只读控制")]),_("p",[l._v("6. 实现文本域placeholder显示及操作控制")]),_("p",[l._v("7. 实现文本域节点边界显示隐藏操作")]),_("p",[l._v("8. 重写节点删除undoredo操作")]),_("p",[l._v("9. 重写样式变更undoredo操作")]),_("p",[l._v("10. 添加打印至pdf测试demo")]),_("p",[l._v("11. 处理斜体文字部分被遮盖问题")])]),_("li",[_("span",[l._v("2020/12/11 星期五")]),_("p",[l._v("1. 日期时间插入功能及ui完成,双击弹窗修改日期功能及ui完成")]),_("p",[l._v("2. 下拉框插入功能及ui完成,双击弹窗修改选择功能及ui完成")]),_("p",[l._v("3. 右键菜单列表中,右键选中任一控件的属性修改功能及ui完成")]),_("p",[l._v("5. 重新整理组件内状态管理方式,移除vuex")])]),_("li",[_("span",[l._v("2020/11/16 星期一")]),_("p",[l._v("1. 段落左对齐")]),_("p",[l._v("2. 段落右对齐")]),_("p",[l._v("3. 段落两端对齐")]),_("p",[l._v("4. 段落行间距")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/16 星期一")]),_("p",[l._v("1. 二维码表单和插入功能")]),_("p",[l._v("2. 图片和条形码插入功能修复")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/13 星期五")]),_("p",[l._v("1. 插入文本域 绘制层实现")]),_("p",[l._v("2. 插入图片 绘制层实现")]),_("p",[l._v("3. 插入条形码 绘制层实现")]),_("p",[l._v("4. 插入二维码 绘制层实现")]),_("p",[l._v("5. 插入和修改医学表达 绘制层实现")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/13 星期五")]),_("p",[l._v("1. 下拉菜单ui部分风格统一调整(插入和表格)")]),_("p",[l._v("2. 弹出层部分ui风格统一调整(医学表达式,条形码,文本域)")]),_("p",[l._v("3. 文本域 ui及功能")]),_("p",[l._v("4. 条形码 UI及功能")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/5 星期四")]),_("p",[l._v("1. 工具栏列表,底部文字信息栏,文档编辑区域布局UI完成")]),_("p",[l._v("2. 颜色选择组件完成")]),_("p",[l._v(" 3. 选中区域或者输入光标所在位置改变工具栏状态(上标下标加粗下划线删除线颜色等选中位置的样式) ")]),_("p",[l._v("4. 医学表达式添加和修改UI及功能完成")]),_("p",[l._v("5. 日期时间控件UI完成")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/10/29 星期四")]),_("p",[l._v("1. 文本节点中下划线绘制")]),_("p",[l._v("2. 文本节点中删除线绘制")]),_("p",[l._v("3. 文本节点中上标样式绘制")]),_("p",[l._v("4. 文本节点中下标样式绘制")]),_("p",[l._v("5. 文本节点中背景色绘制")]),_("p",[l._v("6. 节点(单个/多个选中/文本节点中单个文字)删除操作撤销恢复操作")]),_("p",[l._v("7. 节点插入操作撤销恢复操作")]),_("p",[l._v("8. 文本节点中文本插入操作的合并操作添加时间戳判断")]),_("p",[l._v("9. 文本节点拆分操作的撤销恢复操作")]),_("p",[l._v("10. 文字录入中,多文字连续录入合并撤销,合并恢复")])])])}],nd=function(l){(0,Y.Z)(UpdateDocument,l);var u=(0,ee.Z)(UpdateDocument);function UpdateDocument(){var l;return(0,q.Z)(this,UpdateDocument),l=u.apply(this,arguments),l.isDocumentShow=!1,l}return(0,$.Z)(UpdateDocument,[{key:"openDocument",value:function openDocument(){this.isDocumentShow=!this.isDocumentShow}}]),UpdateDocument}(k());nd=__decorate([ae({name:"UpdateDocument"})],nd);var od=nd,ad=od,cd=normalizeComponent(ad,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render,rd,!1,null,"01703d21",null),_d=cd.exports,ToolTablevue_type_template_id_7e9dd939_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-submenu",{attrs:{"popper-class":"insert-menus",index:"tables"}},[_("template",{slot:"title"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[_("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"}})])]),_("span",[l._v("表格")])]),_("el-submenu",{attrs:{index:"insertTable","popper-append-to-body":!0}},[_("template",{slot:"title"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[_("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"}})])]),_("span",[l._v("插入表格")])]),_("el-menu-item",{staticClass:"table-menus",attrs:{index:"0"}},[_("div",{staticClass:"columns",on:{mouseleave:l.clearData}},[_("p",{staticClass:"table-title"},[l._v(" "+l._s(l.rows?l.rows+" x "+l.columns:"插入")+" 表格 ")]),l._l(10,(function(u){return _("div",{key:"row_"+u,staticClass:"rows",on:{mousemove:l.mouse,click:l.createdTables}},l._l(10,(function(v){return _("span",{key:"column_index"+v,class:u<=l.rows&&v<=l.columns?"selected":"",attrs:{"data-column":v,"data-row":u},on:{touchstart:l.touch,touchmove:l.touch,touchend:l.touchend}})})),0)})),_("p",{staticClass:"table-bottom-title",on:{click:function(u){l.dialogFormVisible=!0}}},[l._v(" 自定义行列数 ")])],2)])],2),l.isOpen?_("TableFeatures",{attrs:{className:"insert-rows-columns-menu",vueController:l.vueController,table:l.table},on:{closeMenu:l.closeMenu}}):l._e(),_("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:l.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("el-form",{attrs:{model:l.form}},[_("el-form-item",{attrs:{label:"行数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.rows,callback:function(u){l.$set(l.form,"rows",u)},expression:"form.rows"}})],1),_("el-form-item",{attrs:{label:"列数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.columns,callback:function(u){l.$set(l.form,"columns",u)},expression:"form.columns"}})],1)],1),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{on:{click:function(u){l.dialogFormVisible=!1}}},[l._v("取 消")]),_("el-button",{attrs:{type:"primary"},on:{click:l.sure}},[l._v("确 定")])],1)],1)],2)},pd=[],TableFeaturesvue_type_template_id_624de6d8_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("p",{class:l.className},[_("ul",{staticClass:"mouse-right-menu"},[l.table.insertRowAbove&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("defs",[_("g",{attrs:{id:"insertTableRowsColumns"}},[_("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"}})])]),_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("上方插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.topRows,callback:function(u){l.topRows=u},expression:"topRows"}}),_("span",[l._v(" 行")])],1)]):l._e(),l.table.insertRowBelow&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("下方插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.bottomRows,callback:function(u){l.bottomRows=u},expression:"bottomRows"}}),_("span",[l._v(" 行")])],1)]):l._e(),l.table.insertColLeft&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("左侧插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.leftRows,callback:function(u){l.leftRows=u},expression:"leftRows"}}),_("span",[l._v(" 列")])],1)]):l._e(),l.table.insertColRight&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("右侧插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:l.rightRows,callback:function(u){l.rightRows=u},expression:"rightRows"}}),_("span",[l._v(" 列")])],1)]):l._e(),l.table.deleteRows&&l.tableProperty.canDeleteRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27213",width:"16",height:"16"}},[_("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"}}),_("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"}})]),_("span",[l._v("删除行")])]):l._e(),l.table.deleteCols&&l.tableProperty.canDeleteRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("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"}}),_("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"}})]),_("span",[l._v("删除列")])]):l._e(),l.table.mergerCells?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[_("path",{attrs:{fill:"#F0F0F0",d:"M0,0 L24,0 L24,24 L0,24 L0,0 Z",opacity:"0"}}),_("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)"}}),_("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"}}),_("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)"}}),_("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"}})])]),_("span",[l._v("合并单元格")])]):l._e(),l.table.unMergerCells?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("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)"}}),_("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"}}),_("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)"}})])]),_("span",[l._v("取消合并单元格")])]):l._e()]),_("el-dialog",{attrs:{title:"表格计算公式",width:"520px",visible:l.dialogFormVisible,top:"200px",center:""},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("section",[_("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[l._v(" "+l._s("a3:a10"===l.dialogFormTitle?"求和公式":"四则运算公式")+" ")]),_("div",{staticStyle:{height:"36px","line-height":"36px"}},[l._v("示例: "+l._s(l.dialogFormTitle))]),_("el-input",{attrs:{autocomplete:"off"},model:{value:l.formula,callback:function(u){l.formula=u},expression:"formula"}})],1),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{type:"primary"},on:{click:l.sure}},[l._v("确 定")])],1)])],1)},fd=[],bd=function(l){(0,Y.Z)(TableFeatures,l);var u=(0,ee.Z)(TableFeatures);function TableFeatures(){var l;return(0,q.Z)(this,TableFeatures),l=u.apply(this,arguments),l.tableFormulaValue=[],l.tableCellCode=!1,l.dialogFormVisible=!1,l.dialogFormTitle="",l.formula="",l.isCellSplitModal=!1,l.row=1,l.column=1,l.topRows=1,l.bottomRows=1,l.leftRows=1,l.rightRows=1,l}return(0,$.Z)(TableFeatures,[{key:"setCellCode",value:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.$emit("closeMenu"),this.init()}},{key:"tableInsertRowAbove",value:function tableInsertRowAbove(l){var u="."+this.className+" .insert-rows-columns-top",_=document.querySelector(u);_.contains(l.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowAbove(this.topRows))}},{key:"tableInsertRowBelow",value:function tableInsertRowBelow(l){var u="."+this.className+" .insert-rows-columns-bottom",_=document.querySelector(u);_.contains(l.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowBelow(this.bottomRows))}},{key:"tableInsertColLeft",value:function tableInsertColLeft(l){var u="."+this.className+" .insert-rows-columns-left",_=document.querySelector(u);_.contains(l.target)||(this.$emit("closeMenu"),this.vueController.insertTableColLeft(this.leftRows))}},{key:"tableInsertColRight",value:function tableInsertColRight(l){var u="."+this.className+" .insert-rows-columns-right",_=document.querySelector(u);_.contains(l.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(l){this.dialogFormVisible=!0,this.dialogFormTitle=l,this.formula=l}},{key:"sure",value:function sure(){this.dialogFormVisible=!1,this.$emit("closeMenu")}},{key:"beforeDestroy",value:function beforeDestroy(){this.init()}}]),TableFeatures}(k());__decorate([Prop()],bd.prototype,"vueController",void 0),__decorate([Prop()],bd.prototype,"className",void 0),__decorate([Prop()],bd.prototype,"table",void 0),__decorate([Prop()],bd.prototype,"tableProperty",void 0),bd=__decorate([ae({name:"TableFeatures"})],bd);var Dd=bd,Id=Dd,Hd=normalizeComponent(Id,TableFeaturesvue_type_template_id_624de6d8_render,fd,!1,null,null,null),qd=Hd.exports,zd=function(l){(0,Y.Z)(ToolTables,l);var u=(0,ee.Z)(ToolTables);function ToolTables(){var l;return(0,q.Z)(this,ToolTables),l=u.apply(this,arguments),l.rows=0,l.columns=0,l.dialogFormVisible=!1,l.form={rows:1,columns:1},l.formLabelWidth="72px",l}return(0,$.Z)(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(l){var u=l.target;if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touch",value:function touch(l){var u=document.elementFromPoint(l.changedTouches[0].pageX,l.changedTouches[0].pageY);if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touchend",value:function touchend(l){this.touch(l),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTables}(k());__decorate([Prop()],zd.prototype,"vueController",void 0),__decorate([Prop()],zd.prototype,"table",void 0),__decorate([Prop()],zd.prototype,"isOpen",void 0),zd=__decorate([ae({name:"ToolTables",components:{TableFeatures:qd}})],zd);var $d=zd,Gd=$d,Zd=normalizeComponent(Gd,ToolTablevue_type_template_id_7e9dd939_render,pd,!1,null,null,null),Yd=Zd.exports,PageSettingvue_type_template_id_224627a8_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal"},[_("div",{ref:"pageSettingModal",class:l.animationClassNames,on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("页面设置")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("el-tabs",{model:{value:l.textActiveName,callback:function(u){l.textActiveName=u},expression:"textActiveName"}},[_("el-tab-pane",{attrs:{label:"页面设置",name:"first"}},[_("div",{staticClass:"control-list"},[_("fieldset",{staticClass:"control-item fieldset",staticStyle:{margin:"0 10px 10px 10px"}},[_("legend",[l._v("页边距    毫米")]),_("ul",{staticClass:"page-spacing"},[_("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("上(T)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.topMarginMm,callback:function(u){l.$set(l.property,"topMarginMm",u)},expression:"property.topMarginMm"}})],1),_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("左(L)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.leftMarginMm,callback:function(u){l.$set(l.property,"leftMarginMm",u)},expression:"property.leftMarginMm"}})],1)]),_("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("下(B)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.bottomMarginMm,callback:function(u){l.$set(l.property,"bottomMarginMm",u)},expression:"property.bottomMarginMm"}})],1),_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("右(R)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.rightMarginMm,callback:function(u){l.$set(l.property,"rightMarginMm",u)},expression:"property.rightMarginMm"}})],1)])])]),_("div",{staticClass:"print-settings"},[_("fieldset",{staticClass:"fieldset print-direction-item"},[_("legend",[l._v("打印方向")]),_("div",{class:0===l.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(u){return l.setPrintDirection(0)}}},[_("div",[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[_("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"}}),_("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"}})])]),_("p",[l._v("纵向(P)")])]),_("div",{class:1===l.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(u){return l.setPrintDirection(1)}}},[_("div",[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[_("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"}}),_("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"}})])]),_("p",[l._v("横向(P)")])])]),_("div",{staticClass:"control-item",staticStyle:{padding:"0","margin-left":"10px"}},[_("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px",margin:"0"}},[_("legend",[l._v("纸张    毫米")]),_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("大小(Z)")]),_("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择纸张大小"},on:{change:function(u){return l.setPrintDirection(l.property.printDirection)}},model:{value:l.property.pageSize,callback:function(u){l.$set(l.property,"pageSize",u)},expression:"property.pageSize"}},l._l(l.paperStyle,(function(l,u){return _("el-option",{key:u,attrs:{label:l[0],value:l[0]}})})),1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("来源(S)")]),_("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择来源"},model:{value:l.property.source,callback:function(u){l.$set(l.property,"source",u)},expression:"property.source"}},[_("el-option",{attrs:{label:"自动选择",value:"0"}})],1)],1),_("li",{staticClass:"control-item paper-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("宽度(W)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==l.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:l.property.widthMm,callback:function(u){l.$set(l.property,"widthMm",u)},expression:"property.widthMm"}})],1),_("li",{staticClass:"control-item paper-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("高度(H)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==l.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:l.property.heightMm,callback:function(u){l.$set(l.property,"heightMm",u)},expression:"property.heightMm"}})],1)])]),_("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px 10px"}},[_("legend",[l._v("边框")]),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.property.isPaintBorder,callback:function(u){l.$set(l.property,"isPaintBorder",u)},expression:"property.isPaintBorder"}},[l._v("绘制边框")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("边框颜色")]),_("ho-color-picker",{model:{value:l.property.borderColor,callback:function(u){l.$set(l.property,"borderColor",u)},expression:"property.borderColor"}})],1),_("PrintLineStyle",{attrs:{labelWidth:"64px",defaultStyle:l.property.paintRowLine,placeholder:"绘制行线"},on:{change:l.printStyleChange}})],1)])])])]),_("el-tab-pane",{attrs:{label:"页眉页脚",name:"second"}},[_("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[_("legend",[l._v("页眉    毫米")]),_("div",{staticClass:"control-item"},[l._v("距页边界:")]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[l._v("至页眉(H):")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.headerYMm,callback:function(u){l.$set(l.property,"headerYMm",u)},expression:"property.headerYMm"}})],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px"}}),_("el-checkbox",{model:{value:l.property.showFirstPageHead,callback:function(u){l.$set(l.property,"showFirstPageHead",u)},expression:"property.showFirstPageHead"}},[l._v("显示-第一页的页眉(H)")])],1)]),_("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[_("legend",[l._v("页脚    毫米")]),_("div",{staticClass:"control-item"},[l._v("距页边界:")]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[l._v("至页脚(F):")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.footerYMm,callback:function(u){l.$set(l.property,"footerYMm",u)},expression:"property.footerYMm"}})],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px"}}),_("el-checkbox",{model:{value:l.property.showFirstPageFoot,callback:function(u){l.$set(l.property,"showFirstPageFoot",u)},expression:"property.showFirstPageFoot"}},[l._v("显示-第一页的页脚(F)")])],1)]),_("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[_("legend",[l._v("页数")]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px"}},[l._v("从第几页开始(S):")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.pageNumber,callback:function(u){l.$set(l.property,"pageNumber",u)},expression:"property.pageNumber"}})],1)])])],1)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"mini",type:"primary"},on:{click:l.sureSetPageing}},[l._v("确定")]),_("el-button",{attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1)])])},eh=[],th=function(l){(0,Y.Z)(PageSetting,l);var u=(0,ee.Z)(PageSetting);function PageSetting(){var l;return(0,q.Z)(this,PageSetting),l=u.apply(this,arguments),l.fontFamily=du.TN,l.fontSize=du.CH,l.alignList=["left","both","right","both"],l.lineHeightList=[1.25,1.5,2,2.5,3],l.fontSpacingList=[0,1,2,3],l.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]]],l.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:"#FFFFFF",paintRowLine:0,isPaintBorder:!1},l.textActiveName="first",l.backFile=null,l.backImgUrl="",l.animationClassNames="control-modal-contents page-setting-content animation-in",l}return(0,$.Z)(PageSetting,[{key:"created",value:function created(){var l=this,u=this.vueController.pageProperty();Object.keys(u).forEach((function(_){var v=_.replace(/_/g,"");"backColor"===v||"fontColor"===v?Object.prototype.hasOwnProperty.call(l.property,v)&&("transparent"===u[v]?l.property[v]=null:l.property[v]=u[v]):Object.prototype.hasOwnProperty.call(l.property,v)&&(l.property[v]=u[v])}))}},{key:"setPrintDirection",value:function setPrintDirection(l){var u=this;this.property.printDirection=l;var _=[];if(this.paperStyle.forEach((function(l){l[0]===u.property.pageSize&&(_=l[1])})),0===this.property.printDirection){var v=_,C=(0,B.Z)(v,2);this.property.widthMm=C[0],this.property.heightMm=C[1]}else{var k=_,N=(0,B.Z)(k,2);this.property.heightMm=N[0],this.property.widthMm=N[1]}}},{key:"printStyleChange",value:function printStyleChange(l){this.property.paintRowLine=l}},{key:"handleClose",value:function handleClose(){this.$emit("closePageSetting",!1)}},{key:"sureSetPageing",value:function sureSetPageing(){var l=_objectSpread2(_objectSpread2({},this.property),{},{isHaveBgImage:!1});null===l.backColor&&(l.backColor="transparent"),null===l.fontColor&&(l.fontColor="transparent"),this.vueController.setPageProperty(JSON.stringify(_objectSpread2({},l))),this.vueController.fullRedraw(),this.handleClose()}},{key:"toolModalDown",value:function toolModalDown(l){(0,Lt.tC)(l,this.pageSettingModal,"modal-title")}}]),PageSetting}(mixins(jt));__decorate([Ref()],th.prototype,"pageSettingModal",void 0),__decorate([Prop()],th.prototype,"vueController",void 0),th=__decorate([ae({name:"PageSetting",components:{HoColorPicker:el,PrintLineStyle:Tc}})],th);var rh=th,nh=rh,ih=normalizeComponent(nh,PageSettingvue_type_template_id_224627a8_scoped_true_render,eh,!1,null,"224627a8",null),oh=ih.exports,UploadFilevue_type_template_id_4361e817_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-upload",{staticClass:"upload-image",attrs:{action:"",accept:".xml",multiple:!1,"show-file-list":!1,"auto-upload":!1,"file-list":l.fileList,"on-change":l.uploadFiles}},[_("span",{attrs:{size:"small"}},[l._v("打开文件")])])},ah=[],sh=function(l){(0,Y.Z)(UploadFile,l);var u=(0,ee.Z)(UploadFile);function UploadFile(){var l;return(0,q.Z)(this,UploadFile),l=u.apply(this,arguments),l.fileList=[],l}return(0,$.Z)(UploadFile,[{key:"uploadFiles",value:function uploadFiles(l){this.vueController.openLocalFiles(l.raw,this.uploadFileCallback)}},{key:"uploadFileCallback",value:function uploadFileCallback(l){}}]),UploadFile}(k());__decorate([Prop()],sh.prototype,"vueController",void 0),sh=__decorate([ae({name:"UploadFile"})],sh);var lh=sh,ch=lh,uh=normalizeComponent(ch,UploadFilevue_type_template_id_4361e817_render,ah,!1,null,null,null),dh=uh.exports,HistoryLogsvue_type_template_id_13465a06_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{staticClass:"sub-bar-items item-history-logs"},[_("span",{staticStyle:{padding:"0 10px"},on:{click:l.openHistoryLogs}},[l._v("历史记录")]),l.showHistoryLogs&&l.historyLog?_("div",{staticClass:"document-item animation-in"},[_("p",{staticStyle:{"text-align":"left","border-bottom":"1px solid #ccc"}},[_("i",{staticClass:"el-icon-circle-close"}),_("span",{on:{click:l.closeHistoryLogs}},[l._v("关闭历史记录")])]),Array.isArray(l.historyLog)?_("ul",l._l(l.historyLog,(function(u,v){return _("li",{key:u.saveTime+Math.random(0,1)},[_("div",[_("p",{staticClass:"flex-rows"},[_("span",{staticStyle:{"padding-left":"4px"}},[l._v("缓存时间:"+l._s(u.saveTime))]),_("span",{staticClass:"cover",on:{click:function(u){return l.manualSaveLocalStorage(v)}}},[l._v("恢复")])]),l._l(u.logs,(function(u){return[_("p",{key:u.operTime},[_("span",[l._v("操作类型:"+l._s(u._operType))]),_("span",[l._v("操作时间:"+l._s(l.dateFormat(u._operTime)))]),_("span",[l._v("操作内容:"+l._s(u._operText))])])]}))],2)])})),0):l._e()]):l._e()])},_h=[],ph=function(l){(0,Y.Z)(HistoryLogs,l);var u=(0,ee.Z)(HistoryLogs);function HistoryLogs(){var l;return(0,q.Z)(this,HistoryLogs),l=u.apply(this,arguments),l.showHistoryLogs=!1,l.historyLog=null,l.dateFormat=Lt.vc,l}return(0,$.Z)(HistoryLogs,[{key:"manualSaveLocalStorage",value:function manualSaveLocalStorage(l){var u=this;this.vueController.hoLocalStorage().getLocalStorage().then((function(_){u.vueController.openXml(_[l].xml)}))}},{key:"getLocalStorage",value:function getLocalStorage(){var l=this;this.historyLog=[],this.vueController.hoLocalStorage().getLocalStorage().then((function(u){u.forEach((function(u){l.historyLog.push({saveTime:u.saveTime,logs:u.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(yu));__decorate([Prop()],ph.prototype,"vueController",void 0),ph=__decorate([ae({name:"HistoryLogs"})],ph);var fh=ph,gh=fh,mh=normalizeComponent(gh,HistoryLogsvue_type_template_id_13465a06_scoped_true_render,_h,!1,null,"13465a06",null),vh=mh.exports,yh=function(l){(0,Y.Z)(ToolBarChild,l);var u=(0,ee.Z)(ToolBarChild);function ToolBarChild(){var l;return(0,q.Z)(this,ToolBarChild),l=u.apply(this,arguments),l.isPageSettingShow=!1,l.isLoginModel=!1,l.cleanAllFormat=!1,l.toolMenuOpenPath=[],l.toolMenuOpenPathTest=[],l.toolPrintOpenPath=[],l.printStatus="",l.isPrinted=!1,l.printModal=!1,l}return(0,$.Z)(ToolBarChild,[{key:"isOpen",get:function get(){return!!this.toolMenuOpenPath.includes("tables")}},{key:"createNew",value:function createNew(l){this.vueController.newFile(l)}},{key:"openPageSettings",value:function openPageSettings(){this.isPageSettingShow=!0}},{key:"closePageSetting",value:function closePageSetting(l){this.isPageSettingShow=l}},{key:"closedHoPrintModal",value:function closedHoPrintModal(l){"sure"===l&&(this.isPrinted=!1),this.printModal=!1}},{key:"printTpPDF",value:function printTpPDF(){this.isPrinted?this.vueController.printPromisePDF():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 l=document.querySelector(".ho-format-paint");this.vueController.formatPainter(l)}},{key:"copyOperateClick",value:function copyOperateClick(){}},{key:"cutOperateClick",value:function cutOperateClick(){}},{key:"pasteOperateClick",value:function pasteOperateClick(){}},{key:"closeToolMenus",value:function closeToolMenus(l){var u=this;this.toolMenuOpenPath.length>0&&(this.toolMenuOpenPath.forEach((function(l){u.toolMenus.closeMenu(l)})),this.toolMenuOpenPath=[])}},{key:"toolMenuSelected",value:function toolMenuSelected(l,u){this.toolMenuOpenPath=u}},{key:"closeToolMenusTest",value:function closeToolMenusTest(l){var u=this;this.toolMenuOpenPathTest.length>0&&(this.toolMenuOpenPathTest.forEach((function(l){u.toolMenusTest.closeMenu(l)})),this.toolMenuOpenPathTest=[])}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(l,u){this.toolMenuOpenPathTest=u}},{key:"toolPrintSelected",value:function toolPrintSelected(l,u){this.toolPrintOpenPath=u,u.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 l=this;!this.isPrinted&&this.toolPrintOpenPath.length>0&&this.toolPrintOpenPath.forEach((function(u){l.toolPrint.closeMenu(u)}))}},{key:"saveAsFile",value:function saveAsFile(l){var u=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档";if("pdf"==l)this.vueController.saveAsPDF("","pdf",!1);else if("html"!==l){var _=this.vueController.saveAsFile(l,!0);this.downloadFile(_,u,l)}else this.vueController.saveAsPDF("","html",!1)}},{key:"saveAsFileTest",value:function saveAsFileTest(l){var u="电子病历文档",_="返回的JSON串",v=this.vueController.getDocXml(l);this.downloadFile(v,u,l);var C=this.vueController.getDocJson();this.downloadFile(C,_,"plain")}},{key:"uploadDataSet",value:function uploadDataSet(){this.vueController.uploadDataSet()}},{key:"downloadFile",value:function downloadFile(l,u,_){var v;"json"===_?(v=window.URL.createObjectURL(new Blob([l],{type:"text/plain;charset=utf-8"})),u+=".json"):v=window.URL.createObjectURL(new Blob([l],{type:"text/".concat(_)}));var C=document.createElement("a");C.style.display="none",C.href=v,C.setAttribute("download",u),document.body.appendChild(C),C.click(),this.$nextTick((function(){return C.remove()}))}},{key:"setModalStatus",value:function setModalStatus(l){this.$emit("setModalStatus",l)}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.editJson,v={family:_.family,size:_.size,enlargeSize:_.enlargeSize,decreaseSize:_.decreaseSize,superScript:_.superScript,subScript:_.subScript,bold:_.bold,italic:_.italic,underline:_.underline,strikeout:_.strikeout,fontColor:_.fontColor,backColor:_.backColor},C={alignLeft:_.alignLeft,alignCenter:_.alignCenter,alignRight:_.alignRight,alignBoth:_.alignBoth,addIndent:_.addIndent,decreaseIndent:_.decreaseIndent,setHeight:_.setHeight},k=Object.keys(v).filter((function(l){return v[l]})).length>0,N=Object.keys(C).filter((function(l){return C[l]})).length>0,B={vueController:this.vueController};return u("ul",{class:"sub-bar"},[_.editFile?u("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-print"},[u("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}},[u("el-submenu",{attrs:{"popper-class":"insert-menus insert-paragraph inset-print",index:"file"}},[u("template",{slot:"title"},[u("span",["文件"])]),u("el-submenu",{attrs:{index:"createNew","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("span",["新建"])]),u("el-menu-item",{attrs:{index:"caseHistory"},nativeOn:{click:function click(){return l.createNew("caseHistory")}}},["病历"]),u("el-menu-item",{attrs:{index:"form"},nativeOn:{click:function click(){return l.createNew("form")}}},["表单"])]),_.openFile&&u("el-menu-item",{attrs:{index:"uploadFile"}},[u(dh,{attrs:_objectSpread2({},B)})]),_.pageSetting&&u("el-menu-item",{attrs:{index:"openPageSettings"},nativeOn:{click:this.openPageSettings.bind(this)}},["页面设置"]),_.saveAsFile&&u("el-submenu",{attrs:{index:"saveAsFile","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("span",["另存为"])]),u("el-menu-item",{attrs:{index:"xml"},nativeOn:{click:function click(){return l.saveAsFile("xml")}}},["XML"]),u("el-menu-item",{attrs:{index:"html"},nativeOn:{click:function click(){return l.saveAsFile("html")}}},["HTML"]),u("el-menu-item",{attrs:{index:"json"},nativeOn:{click:function click(){return l.saveAsFile("pdf")}}},["PDF"]),u("el-menu-item",{attrs:{index:"plain"},nativeOn:{click:function click(){return l.saveAsFile("plain")}}},["TXT"]),u("el-menu-item",{attrs:{index:"json"},nativeOn:{click:function click(){return l.saveAsFile("json")}}},["JSON"])]),u("el-menu-item",{attrs:{disabled:!0,index:"printed"},nativeOn:{click:this.printTpPDF.bind(this)}},[u("span",{class:"print"},["打印"])]),u(Iu,{attrs:_objectSpread2({},{vueController:this.vueController,printBeforeStatus:1,printModal:this.printModal}),on:{closed:this.closedHoPrintModal.bind(this)}}),_.printed&&this.isPrinted&&u("el-menu-item",{attrs:{index:"tool-printed",disabled:!0},nativeOn:{click:this.openPrintPreview.bind(this)}},[u("span",{class:"print-selected"},[this.isPrinted?"退出打印预览":"打印预览"])]),_.printSelected?u("el-menu-item",{attrs:{disabled:!0,index:"printSelected"},nativeOn:{click:this.printSelected.bind(this)}},[u("span",{class:{print:!0,"print-selected":"selected"===this.printStatus}},["打印拖动鼠标选中区域"])]):null,_.printCaret?u("el-menu-item",{attrs:{disabled:!0,index:"printCaret"},nativeOn:{click:this.printCaret.bind(this)}},[u("span",{class:{print:!0,"print-selected":"caret"===this.printStatus}},["打印鼠标点击位置"])]):null,_.printContinue?u("el-menu-item",{attrs:{disabled:!0,index:"printContinue"},nativeOn:{click:this.printContinue.bind(this)}},[u("span",{class:{print:!0,"print-selected":"continue"===this.printStatus}},["续打"])]):null])])]):null,this.isPageSettingShow?u(oh,{attrs:_objectSpread2({},B),on:{closePageSetting:this.closePageSetting.bind(this)}}):null,_.unDoOperate||_.reDoOperate?u("li",{class:"sub-bar-items sub-bar-not-item-hover"},[_.unDoOperate?u(Mo,{attrs:_objectSpread2({},{title:"撤销",svg:"unDoOperate"}),nativeOn:{click:this.unDoOperateClick.bind(this)}}):null,_.reDoOperate?u(Mo,{attrs:_objectSpread2({},{title:"恢复",svg:"reDoOperate"}),nativeOn:{click:this.reDoOperateClick.bind(this)}}):null,_.formatPaint?u(Mo,{attrs:_objectSpread2({},{title:"格式刷",svg:"formatPaint",name:"ho-format-paint"}),nativeOn:{click:this.formatPainterClick.bind(this)}}):null]):null,k?u(Nu,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},B),{},{family:v,textStyle:this.textStyle}))}):null,N?u(Lu,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},B),{},{paragraph:C,align:this.textStyle.aligned,lineSpace:this.textStyle.lineSpace}))}):null,_.updateDocument?u(_d):null,_.findModal?u("li",{class:"sub-bar-items",on:{click:function click(){return l.setModalStatus(["find","add",""])}}},[u(Mo,{attrs:_objectSpread2({},{title:"查找替换",svg:"find"})})]):null,u(vh,{attrs:_objectSpread2({},_objectSpread2({},B))})])}}]),ToolBarChild}(k());__decorate([Prop()],yh.prototype,"vueController",void 0),__decorate([Prop()],yh.prototype,"editJson",void 0),__decorate([Prop()],yh.prototype,"uploadImageParams",void 0),__decorate([Prop()],yh.prototype,"textStyle",void 0),__decorate([Ref()],yh.prototype,"toolMenus",void 0),__decorate([Ref()],yh.prototype,"toolMenusTest",void 0),__decorate([Ref()],yh.prototype,"toolPrint",void 0),yh=__decorate([ae({name:"ToolBarChild",components:{HoPrintDialog:Iu,PageSetting:oh,ToolFamily:Nu,ToolTables:Yd,ToolControl:ed,UpdateDocument:_d,ToolParagraph:Lu,UploadFile:dh,Poper:Mo,HistoryLogs:vh}})],yh);var bh=yh,ToolControlvue_type_template_id_6fa12664_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"sub-bar"},[l._t("insertBefore"),l.insert.delimiter?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("delimiter")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}}),_("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"}}),_("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"}})]),_("span",[l._v("分割符")])]):l._e(),l.insert.uploadImage?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("upload-image")}}},[_("svg",{attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("g",{attrs:{transform:"translate(1 1)"}},[_("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"}}),_("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),_("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"}})])]),_("span",{attrs:{size:"small"}},[l._v("图片")])]):l._e(),l.insert.barcode?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("barcode")}}},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}})]),_("span",[l._v("条形码")])]):l._e(),l.insert.qrcode?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("qrcode")}}},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),_("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),_("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),_("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),_("span",[l._v("二维码")])]):l._e(),l.insert.express?_("HoMedicalExpression",{on:{openExpress:l.openExpress}}):l._e(),l.insert.datetime?_("li",{staticClass:"sub-bar-items"},[_("HoDateTime",{attrs:{vueController:l.vueController},on:{setModal:l.createControl}})],1):l._e(),l.insert.select?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("select")}}},[_("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}})]),_("span",[l._v("下拉框")])]):l._e(),l.insert.text?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("text")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("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"}})]),_("span",[l._v("文本域")])]):l._e(),l.insert.radioBox?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("RadioBox")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}})]),_("span",[l._v("单选框")])]):l._e(),l.insert.checkBox?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("CheckBox")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}}),_("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"}})]),_("span",[l._v("复选框")])]):l._e(),l.insert.mathFormula?_("li",{staticClass:"sub-bar-items"},[_("HoFormula",{attrs:{vueController:l.vueController}})],1):l._e(),l.insert.gestation?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("gestation")}}},[_("span",[l._v("孕周")])]):l._e(),l.insert.sign?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("sign")}}},[_("span",[l._v("签名")])]):l._e(),l.insert.pageInfoes?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("pageInfoes")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}})]),_("span",[l._v("页码页数信息")])]):l._e(),l._t("hoInsertItem"),l.insert.specialChars?_("li",{staticClass:"sub-bar-items"},[_("HoSpecialChars",{attrs:{vueController:l.vueController}})],1):l._e()],2)},wh=[],HoSpecialCharsvue_type_template_id_02ed7d68_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("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"}},[_("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"}})]),_("span",[l._v("特殊字符")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{staticClass:"special-characters",attrs:{disabled:""}},[_("section",[_("ul",[_("li",[_("header",[l._v("特殊字符")]),_("p",{staticClass:"chars-list special-chars-list"},l._l(l.specialChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("罗马字符")]),_("p",{staticClass:"chars-list"},l._l(l.romanChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("数学字符")]),_("p",{staticClass:"chars-list"},l._l(l.mathChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)])])])])],1)],1)},xh=[],Ph=function(l){(0,Y.Z)(HoSpecialChars,l);var u=(0,ee.Z)(HoSpecialChars);function HoSpecialChars(){var l;return(0,q.Z)(this,HoSpecialChars),l=u.apply(this,arguments),l.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],l.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡","▽","△","▷","◁","/","∕"],l.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],l.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],l.usedChars=[],l}return(0,$.Z)(HoSpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(l){if(this.vueController.insertSpecialChars("",l),this.usedChars.includes(l))return!1;this.usedChars.unshift(l),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var l=this;this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),HoSpecialChars}(mixins(yu));__decorate([Prop()],Ph.prototype,"vueController",void 0),Ph=__decorate([ae({name:"HoSpecialChars"})],Ph);var Ch=Ph,Eh=Ch,Sh=normalizeComponent(Eh,HoSpecialCharsvue_type_template_id_02ed7d68_scoped_true_render,xh,!1,null,"02ed7d68",null),Th=Sh.exports,HoDateTimevue_type_template_id_5e85d543_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("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"}})]),_("span",[l._v("日期时间")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l._l(l.dateFormatValue,(function(u,v){return _("el-dropdown-item",{key:u+v,staticClass:"date-time-item",attrs:{index:l.dateFormatList[v]},nativeOn:{click:function(_){return l.selectedDate(l.dateFormatList[v],u)}}},[l._v(l._s(u))])})),_("el-dropdown-item",{staticClass:"date-time-item",nativeOn:{click:function(u){return l.selectedDate("more","")}}},[l._v("更多日期属性")])],2)],1)},Dh=[],kh=function(l){(0,Y.Z)(HoDateTime,l);var u=(0,ee.Z)(HoDateTime);function HoDateTime(){var l;return(0,q.Z)(this,HoDateTime),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.dateFormatValue=[],l.dateFormat=Lt.vc,l}return(0,$.Z)(HoDateTime,[{key:"created",value:function created(){var l=this,u=[];this.dateFormatList.forEach((function(_,v){v<10&&u.push(l.dateFormat("",_))})),this.dateFormatValue=[].concat(u)}},{key:"selectedDate",value:function selectedDate(l,u){if("more"===l)this.$emit("setModal","date");else{var _={id:this.vueController.generateID("DT"),name:"",text:u,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:l,readType:0};this.vueController.insertDateTime("add",JSON.stringify(_))}}}]),HoDateTime}(mixins(yu));__decorate([Prop()],kh.prototype,"vueController",void 0),kh=__decorate([ae({name:"HoDateTime"})],kh);var Ih=kh,Mh=Ih,Nh=normalizeComponent(Mh,HoDateTimevue_type_template_id_5e85d543_render,Dh,!1,null,null,null),Oh=Nh.exports,HoFormulavue_type_template_id_d904f830_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("p",[_("span",{on:{click:l.insertFormula}},[l._v("插入公式")]),_("el-dialog",{staticClass:"ho-formula-iframe",attrs:{title:"公式编辑",width:"868px",visible:l.createFormula,"close-on-click-modal":!1,top:"150px","append-to-body":"",center:""},on:{"update:visible":function(u){l.createFormula=u},"before-close":l.closeFormula}},[_("section",[_("div",{staticClass:"kf-editor",attrs:{id:"HoKfEditorContainer"}}),l.kityformulaError?_("p",[l._v(l._s(l.kityformulaError))]):l._e()]),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:l.sureInsertKityFormula}},[l._v("确认插入")]),_("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:l.closeFormula}},[l._v("取消")])],1)])],1)},Lh=[],Ah=function(l){(0,Y.Z)(HoFormula,l);var u=(0,ee.Z)(HoFormula);function HoFormula(){var l;return(0,q.Z)(this,HoFormula),l=u.apply(this,arguments),l.hoKFEditor=null,l.hoFactorys=null,l.kityformulaError="",l.createFormula=!1,l.defaultLateX="",l}return(0,$.Z)(HoFormula,[{key:"initFormula",value:function initFormula(){var l=this,u=__webpack_require__(69440);this.hoFactorys=u.create(document.querySelector("#HoKfEditorContainer"),{render:{fontsize:50},resource:{path:"111/fonts/"},lang:"zh_cn"}),this.hoFactorys.ready((function(u){u.execCommand("render","\\placeholder"),u.execCommand("focus"),l.hoKFEditor=u}))}},{key:"insertFormula",value:function insertFormula(){var l=this;this.createFormula=!0,this.kityformulaError="",this.defaultLateX="\\placeholder",setTimeout((function(){l.initFormula()}),100)}},{key:"sureInsertKityFormula",value:function sureInsertKityFormula(){var l=this,u=function createImage(u){var _=l.hoKFEditor.execCommand("get.source").replace(/\s/g,"");if(u.width&&u.height)l.vueController.insertImage(u.img,u.width/2,u.height/2,!0,_),l.createFormula=!1;else{var v=new Image;v.src=u.img,v.onload=function(){l.vueController.insertImage(u.img,v.width/2,v.height/2,!0,_),l.closeFormula()}}},_=function getUrl(l){u(l)};this.hoKFEditor.execCommand("get.image.data",_)}},{key:"closeFormula",value:function closeFormula(){this.createFormula=!1,this.hoKFEditor=null,this.hoFactorys=null,this.kityformulaError="",this.defaultLateX=""}}]),HoFormula}(k());__decorate([Prop()],Ah.prototype,"vueController",void 0),Ah=__decorate([ae({name:"HoFormula"})],Ah);var Rh=Ah,Fh=Rh,jh=normalizeComponent(Fh,HoFormulavue_type_template_id_d904f830_render,Lh,!1,null,null,null),Bh=jh.exports,Uh=Bh,Hh=function(l){(0,Y.Z)(ToolControl,l);var u=(0,ee.Z)(ToolControl);function ToolControl(){var l;return(0,q.Z)(this,ToolControl),l=u.apply(this,arguments),l.fileList=[],l}return(0,$.Z)(ToolControl,[{key:"uploadImage",value:function uploadImage(l){var u=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var _=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",v=new FormData;v.append(_,l.raw),pl({url:this.uploadImageParams.uploadUrl,method:"POST",data:v}).then((function(l){var _,v="";if(null!==(_=u.uploadImageParams)&&void 0!==_&&_.callbackParamName||"string"!==typeof l){var C,k=null===(C=u.uploadImageParams)||void 0===C?void 0:C.callbackParamName;v=l[k]}else v=l;if(v){var N=new Image;N.src=v,N.onload=function(){u.loadImage(N.width,N.height,v)}}}),(function(){u.insertBase64Image(l)})).catch((function(){u.insertBase64Image(l)}))}else this.insertBase64Image(l)}},{key:"insertBase64Image",value:function insertBase64Image(l){var u=this,_=new FileReader;_.onload=function(l){u.fileList=[];var _=new Image,v=l.target.result;_.src=v,_.onload=function(){u.loadImage(_.width,_.height,v)}},_.readAsDataURL(l.raw)}},{key:"loadImage",value:function loadImage(l,u,_){var v,C=0,k=0,N=this.vueController.pageProperty(),B=N.widthPixes-N.leftMarginPixes-N.rightMarginPixes,U=this.vueController.getCaretPosition();if(-1!==U.indexOf("header")?v=N.topMarginPixes:-1!==U.indexOf("footer")?v=N.bottomMarginPixes:-1!==U.indexOf("main")&&(v=N.heightPixes-N.topMarginPixes-N.bottomMarginPixes),l<=B&&u<=v)C=l,k=u;else if(l>B&&u<=v)C=B,k=Number((u*B/l).toFixed(0));else if(l<=B&&u>v)C=Number((u*v/u).toFixed(0)),k=v;else if(l>B&&u>v){var W=.8*B/l,q=.8*v/u,$=Math.min(W,q);C=Number((l*$).toFixed(0)),k=Number((u*$).toFixed(0))}this.vueController.insertImage(_,C,k)}},{key:"createControl",value:function createControl(l){this.$emit("setModalStatus",[l,"add",""])}},{key:"openExpress",value:function openExpress(l){this.$emit("setModalStatus",["express","add",l])}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModalStatus",["","add",""])}}]),ToolControl}(mixins(lu));__decorate([Prop()],Hh.prototype,"vueController",void 0),__decorate([Prop()],Hh.prototype,"insert",void 0),__decorate([Prop()],Hh.prototype,"uploadImageParams",void 0),Hh=__decorate([ae({name:"ToolControl",components:{HoMedicalExpression:Cu,HoSpecialChars:Th,UploadImage:Ku,HoDateTime:Oh,HoFormula:Uh,Poper:Mo}})],Hh);var Wh=Hh,qh=Wh,zh=normalizeComponent(qh,ToolControlvue_type_template_id_6fa12664_render,wh,!1,null,null,null),Vh=zh.exports,ToolTablevue_type_template_id_194f516e_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"sub-bar table-bar"},[_("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:l.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("el-form",{attrs:{model:l.form}},[_("el-form-item",{attrs:{label:"行数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.rows,callback:function(u){l.$set(l.form,"rows",u)},expression:"form.rows"}})],1),_("el-form-item",{attrs:{label:"列数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.columns,callback:function(u){l.$set(l.form,"columns",u)},expression:"form.columns"}})],1)],1),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{type:"primary"},on:{click:l.sure}},[l._v("确 定")]),_("el-button",{on:{click:function(u){l.dialogFormVisible=!1}}},[l._v("取 消")])],1)],1),l._t("insertBefore"),l.table.insertTable?_("li",{staticClass:"sub-bar-items"},[_("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("span",[l._v("插入表格")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{staticClass:"ho-insert-table-item",attrs:{disabled:""}},[_("div",{staticClass:"columns",on:{mouseleave:l.clearData}},[_("p",{staticClass:"table-title"},[l._v(l._s(l.rows?l.rows+" x "+l.columns:"插入")+" 表格")]),l._l(10,(function(u){return _("div",{key:"row_"+u,staticClass:"rows",on:{mousemove:l.mouse,click:l.createdTables}},l._l(10,(function(v){return _("span",{key:"column_index"+v,class:u<=l.rows&&v<=l.columns?"selected":"",attrs:{"data-column":v,"data-row":u},on:{touchstart:l.touch,touchmove:l.touch,touchend:l.touchend}})})),0)}))],2),_("p",{staticClass:"table-bottom-title",on:{click:function(u){l.dialogFormVisible=!0}}},[l._v("自定义行列数")])])],1)],1)],1):l._e(),_("HoTableFeatures",{attrs:{vueController:l.vueController,tableProperty:l.tableProperty,dropdownClassName:l.dropdownClassName,table:l.table}}),l._t("hoTableItem")],2)},Kh=[],HoTableFeaturesvue_type_template_id_02d0c560_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_("el-dialog",{attrs:{width:"520px",top:"20%",center:"","append-to-body":"","close-on-click-modal":!1,title:l.dialogFormTitle,visible:l.dialogFormVisible},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("p",{staticStyle:{padding:"10px 0"}},[l._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),"a1: a2"===l.formula||"(a1 + a2) * 2"===l.formula?_("section",[_("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[l._v(" "+l._s(l.dialogFormTitle)+" ")]),_("div",{staticStyle:{height:"36px","line-height":"36px"}},[l._v("示例: "+l._s("表格行列求和公式"===l.dialogFormTitle?"a1: a2":"(a1 + a2) * 2"))]),_("el-checkbox",{model:{value:l.isHideZero,callback:function(u){l.isHideZero=u},expression:"isHideZero"}},[l._v("结果为 0 不显示")]),_("p",{staticStyle:{height:"10px"}}),_("el-input",{attrs:{autocomplete:"off"},model:{value:l.simpleFormula,callback:function(u){l.simpleFormula=u},expression:"simpleFormula"}})],1):l._e(),"bmi"===l.formula?_("section",[_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("身高")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.height,callback:function(u){l.height=u},expression:"height"}})],1),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("体重")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.weight,callback:function(u){l.weight=u},expression:"weight"}})],1)]):l._e(),"labor"===l.formula?_("section",[_("el-checkbox",{model:{value:l.isHideZero,callback:function(u){l.isHideZero=u},expression:"isHideZero"}},[l._v("结果为 0 不显示")]),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("产程类型")]),_("el-select",{attrs:{size:"mini"},on:{change:l.laborTypeChange},model:{value:l.laborType,callback:function(u){l.laborType=u},expression:"laborType"}},[_("el-option",{attrs:{value:1,label:"第一产程"}}),_("el-option",{attrs:{value:2,label:"第二产程"}}),_("el-option",{attrs:{value:3,label:"第三产程"}}),_("el-option",{attrs:{value:0,label:"总产程"}})],1)],1),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v(l._s(["第一产程","宫缩开始","宫口全开","胎儿娩出"][l.laborType]))]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.labor1,callback:function(u){l.labor1=u},expression:"labor1"}})],1),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v(l._s(["第二产程","宫口全开","胎儿娩出","胎盘娩出"][l.laborType]))]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.labor2,callback:function(u){l.labor2=u},expression:"labor2"}})],1),0===l.laborType?_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v(l._s(["第三产程","宫缩开始","宫口全开","胎儿娩出"][l.laborType]))]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.labor3,callback:function(u){l.labor3=u},expression:"labor3"}})],1):l._e()],1):l._e(),"expectedDate"===l.formula||"pregnantDays"===l.formula||"pregnantWeeks"===l.formula?_("section",[_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("末次月经")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.expectedDate,callback:function(u){l.expectedDate=u},expression:"expectedDate"}})],1)]):l._e(),"ftScoreMapping"===l.formula?_("section",[_("div",{staticClass:"ho-table-features-list"},[_("p",{staticStyle:{width:"220px"}},[l._v("分值所在的单元格编号")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.ftScoreMapping.cell,callback:function(u){l.$set(l.ftScoreMapping,"cell",u)},expression:"ftScoreMapping.cell"}})],1),_("div",{staticClass:"ho-table-features-list"},[_("p",{staticStyle:{width:"143px"}},[l._v("分值区间及映射值")]),_("ul",[l._l(l.ftScoreMapping.item,(function(u,v){return _("li",[_("el-input-number",{staticClass:"ft-score-mapping-input",attrs:{size:"mini",controls:!1,min:0},model:{value:u.range[0],callback:function(_){l.$set(u.range,0,_)},expression:"item.range[0]"}}),_("span",{staticStyle:{padding:"0 10px"}},[l._v("到")]),_("el-input-number",{staticClass:"ft-score-mapping-input",attrs:{size:"mini",controls:!1,min:1},model:{value:u.range[1],callback:function(_){l.$set(u.range,1,_)},expression:"item.range[1]"}}),_("span",{staticStyle:{padding:"0 10px 0 0"}},[l._v(" :")]),_("el-input",{staticClass:"ft-score-mapping-input",attrs:{size:"mini",autocomplete:"off"},model:{value:u.text,callback:function(_){l.$set(u,"text",_)},expression:"item.text"}})],1)})),_("li",[_("el-button",{attrs:{size:"mini"},on:{click:l.addFtScoreMappingItem}},[_("i",{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):l._e(),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{type:"primary",size:"small"},on:{click:l.sure}},[l._v("确 定")]),_("el-button",{attrs:{size:"small"},on:{click:function(u){l.dialogFormVisible=!1}}},[l._v("取 消")])],1)]),l.table.tableFormula?_("div",{staticClass:"sub-bar-items"},[_("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("span",[l._v("表格计算公式")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l.table.isTableCode?_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:l.setCellCode,expression:"setCellCode",arg:"30",modifiers:{click:!0}}]},[_("span",[l._v(l._s(l.tableCellCode?"隐藏":"显示")+"单元格编号")])])]):l._e(),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"sumFormula"},on:{click:function(u){return l.openFormula(["表格行列求和公式","a1: a2"])}}},[l._v(" 表格行列求和 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"arithmeticFormula"},on:{click:function(u){l.openFormula(["表格行列混合运算公式","(a1 + a2) * 2"])}}},[l._v(" 表格行列混合运算 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"bmiFormula"},on:{click:function(u){return l.openFormula(["BMI指数计算公式","bmi"])}}},[l._v(" BMI指数 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"laborFormula"},on:{click:function(u){return l.openFormula(["产程计算公式","labor"])}}},[l._v(" 产程 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"expectedDate"},on:{click:function(u){return l.openFormula(["预产期计算公式","expectedDate"])}}},[l._v(" 预产期 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"ftScoreMapping"},on:{click:function(u){return l.openFormula(["分值映射计算公式","ftScoreMapping"])}}},[l._v(" 分值映射 ")])])],1)],1)],1):l._e(),l.table.insertRowAbove&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("上方插入 ")]),_("el-input-number",{staticClass:"insert-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.topRows,callback:function(u){l.topRows=u},expression:"topRows"}}),_("span",[l._v(" 行")])],1):l._e(),l.table.insertRowBelow&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("下方插入 ")]),_("el-input-number",{staticClass:"insert-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.bottomRows,callback:function(u){l.bottomRows=u},expression:"bottomRows"}}),_("span",[l._v(" 行")])],1):l._e(),l.table.insertColLeft&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("左侧插入 ")]),_("el-input-number",{staticClass:"insert-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.leftRows,callback:function(u){l.leftRows=u},expression:"leftRows"}}),_("span",[l._v(" 列")])],1):l._e(),l.table.insertColRight&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("右侧插入 ")]),_("el-input-number",{staticClass:"insert-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:l.rightRows,callback:function(u){l.rightRows=u},expression:"rightRows"}}),_("span",[l._v(" 列")])],1):l._e(),l.table.deleteRows&&l.tableProperty.canDeleteRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("删除行")])]):l._e(),l.table.deleteCols&&l.tableProperty.canDeleteRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("删除列")])]):l._e(),l.table.mergerCells?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("合并单元格")])]):l._e(),l.table.unMergerCells?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("取消合并单元格")])]):l._e()],1)},$h=[],Gh={name:"HoTableFeatures",mixins:[yu],props:{vueController:{required:!0,type:Object},className:{type:String,default:""},table:{required:!0,type:Object},tableProperty:{required:!0,type:Object}},data:function data(){return{hoTableFeatures:null,tableFormulaValue:[],tableCellCode:!1,dialogFormVisible:!1,dialogFormTitle:"",formula:"",simpleFormula:"",isCellSplitModal:!1,row:1,column:1,topRows:1,bottomRows:1,leftRows:1,rightRows:1,height:"",weight:"",laborType:1,labor1:"",labor2:"",labor3:"",expectedDate:"",isHideZero:!0,isOnceClick:!1,ftScoreMapping:{cell:"",item:[{text:"",range:[]},{text:"",range:[]},{text:"",range:[]}]}}},computed:{disabledName:function disabledName(){return this.isOnceClick?"sub-bar-items sub-bar-items-disabled":"sub-bar-items"}},methods:{setCellCode:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.init(),this.vueController.showCellAdress(this.tableCellCode)},tableInsertRowAbove:function tableInsertRowAbove(l){var u=document.querySelector(".insert-top");u.contains(l.target)||this.vueController.insertTableRowAbove(this.topRows)},tableInsertRowBelow:function tableInsertRowBelow(l){var u=document.querySelector(".insert-bottom");u.contains(l.target)||this.vueController.insertTableRowBelow(this.bottomRows)},tableInsertColLeft:function tableInsertColLeft(l){var u=document.querySelector(".insert-left");u.contains(l.target)||this.vueController.insertTableColLeft(this.leftRows)},tableInsertColRight:function tableInsertColRight(l){var u=document.querySelector(".insert-right");u.contains(l.target)||this.vueController.insertTableColRight(this.rightRows)},tableDeleteRows:function tableDeleteRows(){this.vueController.tableDeleteRows()},tableDeleteCols:function tableDeleteCols(){this.vueController.tableDeleteCols()},tableMergerCells:function tableMergerCells(){this.vueController.tableMergerCells()},tableUnMergerCells:function tableUnMergerCells(){this.vueController.tableUnMergerCells()},init: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=""},laborTypeChange:function laborTypeChange(){this.labor1="",this.labor2="",this.labor3=""},addFtScoreMappingItem:function addFtScoreMappingItem(){this.ftScoreMapping.item.push({text:"",range:[]})},openFormula:function openFormula(l){this.dialogFormVisible=!0,this.dialogFormTitle=l[0],this.formula=l[1]},sure:function sure(){if(this.dialogFormVisible=!1,this.$emit("closeMenu"),"bmi"===this.formula)this.vueController.insertTableFormula("".concat(this.weight,",").concat(this.height).toLocaleLowerCase(),this.isHideZero,Pi.a.ftBMI);else if("a1: a2"===this.formula)this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Pi.a.ftSum);else if("(a1 + a2) * 2"===this.formula)this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Pi.a.ftFormular);else if("labor"===this.formula)0===this.laborType?this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2,",").concat(this.labor3).toLocaleLowerCase(),this.isHideZero,Pi.a.ftLaborProcess):this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2).toLocaleLowerCase(),this.isHideZero,Pi.a.ftLaborProcess);else if("expectedDate"===this.formula)this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Pi.a.ftExpectedBirthDate);else if("pregnantWeeks"===this.formula)this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Pi.a.ftPregnantWeeks);else if("pregnantDays"===this.formula);else if("ftScoreMapping"===this.formula){var l=(0,U.Z)(this.ftScoreMapping.item),u={cell:this.ftScoreMapping.cell,items:l.map((function(l){return""===l.text.replace(/\s*/g,"")?"":{text:l.text,range:l.range.join("-")}})).filter((function(l){return l}))};this.vueController.insertTableFormula(JSON.stringify(u).toLocaleLowerCase(),this.isHideZero,Pi.a.ftScoreMapping)}}},beforeDestroy:function beforeDestroy(){this.init()}},Zh=Gh,Jh=normalizeComponent(Zh,HoTableFeaturesvue_type_template_id_02d0c560_render,$h,!1,null,null,null),Xh=Jh.exports,Yh=function(l){(0,Y.Z)(ToolTable,l);var u=(0,ee.Z)(ToolTable);function ToolTable(){var l;return(0,q.Z)(this,ToolTable),l=u.apply(this,arguments),l.rows=0,l.columns=0,l.dialogFormVisible=!1,l.form={rows:1,columns:1},l.formLabelWidth="72px",l}return(0,$.Z)(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(l){var u=l.target;if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touch",value:function touch(l){var u=document.elementFromPoint(l.changedTouches[0].pageX,l.changedTouches[0].pageY);if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touchend",value:function touchend(l){this.touch(l),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTable}(mixins(yu));__decorate([Prop()],Yh.prototype,"vueController",void 0),__decorate([Prop()],Yh.prototype,"table",void 0),__decorate([Prop()],Yh.prototype,"tableProperty",void 0),Yh=__decorate([ae({name:"ToolTable",components:{HoTableFeatures:Xh}})],Yh);var Qh=Yh,e_=Qh,t_=normalizeComponent(e_,ToolTablevue_type_template_id_194f516e_render,Kh,!1,null,null,null),r_=t_.exports,n_=function(l){(0,Y.Z)(ToolBar,l);var u=(0,ee.Z)(ToolBar);function ToolBar(){var l;return(0,q.Z)(this,ToolBar),l=u.apply(this,arguments),l.printModal=!1,l.ctrlS=!1,l.toolMenuOpenPathTest=[],l.printStatus="",l.isPrinted=!1,l.reviewLevel={limit:1,color:["#f19191","#8198f7","#7fd27f"],text:["一级质控","二级质控","三级质控"]},l.userInfoes=null,l.defaultToolBarParams={"ho-browse":5,"ho-edit":1,"ho-insert":1,"ho-table":1,"ho-review":4},l.tabKey="",l.defaultReviewJson={isReview:!0,clearSelectSign:!0,clearAllSign:!0,insertComment:!0,editComment:!0,deleteComment:!0,deleteAllComment:!0,qualityControl:!0,cancelDelete:!0,printStatus:!0},l.defaultBrowseJson={isBrowse:!0,saveAsFile:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0},l.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,gestation:!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},l}return(0,$.Z)(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(l){l&&null!==l&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),l))}},{key:"reviewJsonChange",value:function reviewJsonChange(l){l&&null!==l&&(this.defaultReviewJson=_objectSpread2(_objectSpread2({},this.defaultReviewJson),l))}},{key:"browseJsonChange",value:function browseJsonChange(l){l&&null!==l&&(this.defaultBrowseJson=_objectSpread2(_objectSpread2({},this.defaultBrowseJson),l))}},{key:"toolbarParamsChange",value:function toolbarParamsChange(l){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 l=this;this.tabStatus&&(this.tabKey=this.tabStatus),"[object Function]"===Object.prototype.toString.call(this.vueController.setEditorStatus)&&this.tabKey&&this.$nextTick((function(){return l.vueController.setEditorStatus(l.defaultToolBarParams[l.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(l){var u=this;this.toolMenuOpenPathTest.length>0&&this.toolMenuOpenPathTest.forEach((function(l){u.controlMenus.closeMenu(l)}))}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(l,u){this.toolMenuOpenPathTest=u}},{key:"setLogin",value:function setLogin(l,u){var _=["李医生","张医生","王医生"],v=this.vueController.generateID("UI");this.vueController.setUserLoginInfo(v,_[l-1],l,""),this.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"})}},{key:"setModalStatus",value:function setModalStatus(l){this.$emit("setModalStatus",l)}},{key:"updateTabKey",value:function updateTabKey(l){var u=this;this.$nextTick((function(){return u.vueController.setEditorStatus(u.defaultToolBarParams[l])}))}},{key:"mainBarClick",value:function mainBarClick(l,u){var _=this.defaultToolBarParams[l],v=this.defaultToolBarParams[u];this.emitToolBarStatus(),_!==v&&this.vueController.setEditorStatus(v),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(l){this.$emit("setModalStatus",["express","add",l])}},{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(l){"sure"===l&&(this.isPrinted=!1),this.printModal=!1}},{key:"printed",value:function printed(){this.isPrinted?(this.vueController.printPromisePDF(),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 l=this.vueController.getOnSelectedComment();if(!l)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"点击右侧批注区域内已添加的批注进行编辑操作",duration:3e3,offset:120});this.$emit("setModalStatus",["comment","update",""])}},{key:"deleteComment",value:function deleteComment(){this.$emit("insertComments",{type:"delete",selectedComment:this.vueController.getOnSelectedComment()})}},{key:"deleteAllComment",value:function deleteAllComment(){this.$emit("insertComments",{type:"deleteAll",commentValue:this.vueController.getDocCommentValue()})}},{key:"cancelDelete",value:function cancelDelete(){this.vueController.cancelDel()}},{key:"saveAsFile",value:function saveAsFile(l){var u=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档";if("pdf"==l)this.vueController.saveAsPDF("","pdf",!1);else if("html"!==l){var _=this.vueController.saveAsFile(l,!0);this.downloadFile(_,u,l)}else this.vueController.saveAsPDF("","html",!1)}},{key:"downloadFile",value:function downloadFile(l,u,_){var v=window.URL.createObjectURL(new Blob([l],{type:"text/".concat(_)})),C=document.createElement("a");C.style.display="none",C.href=v,C.setAttribute("download",u),document.body.appendChild(C),C.click(),this.$nextTick((function(){return C.remove()}))}}]),ToolBar}(k());__decorate([Prop()],n_.prototype,"vueController",void 0),__decorate([Prop({default:"ho-edit"})],n_.prototype,"tabStatus",void 0),__decorate([Prop()],n_.prototype,"editJson",void 0),__decorate([Prop()],n_.prototype,"browseJson",void 0),__decorate([Prop()],n_.prototype,"reviewJson",void 0),__decorate([Prop()],n_.prototype,"toolbarParams",void 0),__decorate([Prop()],n_.prototype,"uploadImageParams",void 0),__decorate([Ref()],n_.prototype,"controlMenus",void 0),__decorate([Prop()],n_.prototype,"textStyle",void 0),__decorate([Watch("tabStatus")],n_.prototype,"tabStatusChange",null),__decorate([Watch("editJson",{deep:!0})],n_.prototype,"editJsonChange",null),__decorate([Watch("reviewJson",{deep:!0})],n_.prototype,"reviewJsonChange",null),__decorate([Watch("browseJson",{deep:!0})],n_.prototype,"browseJsonChange",null),__decorate([Watch("toolbarParams",{deep:!0})],n_.prototype,"toolbarParamsChange",null),__decorate([Watch("vueController",{deep:!0})],n_.prototype,"vueControllerChange",null),n_=__decorate([ae({name:"ToolBar",components:{HoMedicalExpression:Cu,HoPrintDialog:Iu,ToolBarChild:bh,ToolControl:Vh,ToolTable:r_,Tabs:Jo}})],n_);var i_=n_,o_=i_,a_=normalizeComponent(o_,ToolBarvue_type_template_id_0e95df22_render,mu,!1,null,null,null),s_=a_.exports,TabPanevue_type_template_id_71cdc485_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{directives:[{name:"show",rawName:"v-show",value:l.show,expression:"show"}],class:l.className},[l._t("default")],2)},l_=[],c_=function(l){(0,Y.Z)(TabPane,l);var u=(0,ee.Z)(TabPane);function TabPane(){var l;return(0,q.Z)(this,TabPane),l=u.apply(this,arguments),l.show=!0,l}return(0,$.Z)(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}(k());__decorate([Prop()],c_.prototype,"name",void 0),__decorate([Prop()],c_.prototype,"label",void 0),__decorate([Prop()],c_.prototype,"isShow",void 0),__decorate([Prop()],c_.prototype,"notHover",void 0),__decorate([Prop()],c_.prototype,"customProperty",void 0),__decorate([Watch("isShow")],c_.prototype,"isShowChange",null),__decorate([Watch("label")],c_.prototype,"labelChange",null),c_=__decorate([ae({name:"TabPane"})],c_);var u_=c_,d_=u_,h_=normalizeComponent(d_,TabPanevue_type_template_id_71cdc485_render,l_,!1,null,null,null),p_=h_.exports,f_=function(l){(0,Y.Z)(HoRightMenu,l);var u=(0,ee.Z)(HoRightMenu);function HoRightMenu(){var l;return(0,q.Z)(this,HoRightMenu),l=u.apply(this,arguments),l.versions=vn,l.defaultTable={insertTable:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,isTableCode:!0,tableFormula:!0},l.poppernIstance=null,l.isIncludes="",l.emrDebug=!1,l}return(0,$.Z)(HoRightMenu,[{key:"mounted",value:function mounted(){var l,u;this.isIncludes=null===(l=this.rightNode)||void 0===l?void 0:l.labelNode().isIncludes,this.isDeisgn=this.rightNode.paintStatus;var _={getBoundingClientRect:this.generateGetBoundingClientRect(null===(u=this.rightNode)||void 0===u?void 0:u.rightPosition)};this.poppernIstance=(0,Ar.fi)(_,this.mouseRightMenuPopup,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","bottom","right","left"],padding:10}}]}),this.emrDebug=!(!window||!window.emrDebug0331)}},{key:"generateGetBoundingClientRect",value:function generateGetBoundingClientRect(l){var u=l.clientX,_=l.clientY;return function(){return{width:0,height:0,top:_,right:u,bottom:_,left:u}}}},{key:"toUpdateNodes",value:function toUpdateNodes(l,u){null===u||void 0===u||u.stopPropagation(),this.$emit("setModalStatus",[l,"update",this.rightNode.style]),this.handleClose()}},{key:"handleClose",value:function handleClose(){var l=this;this.$nextTick((function(){return l.$emit("closeRight")}))}},{key:"labelToText",value:function labelToText(){var l=this,u=this.rightNode.labelNode().labelNode;u.forEach((function(u){l.vueController.labelToText(u)})),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:"clearSelectedRangeParas",value:function clearSelectedRangeParas(){this.vueController.clearSelectedRangeParas(),this.handleClose()}},{key:"render",value:function render(){var l,u,_,v,C,k,N,B,U,W,q,$,Y,ee,re,ne,ie,oe=this,ae=arguments[0];return ae("div",{directives:[{name:"click-outside",value:this.handleClose.bind(this)}],ref:"mouseRightMenuPopup",class:"mouse-right-menu-popup animation-in"},[null===(l=this.$slots.hoRightSlot)||void 0===l?void 0:l.map((function(l){return l})),ae("p",["toLabel"===this.isIncludes&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:this.textToLabel.bind(this)}},["文本转标签"])]),"toText"===this.isIncludes&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:this.labelToText.bind(this)}},["标签转文本"])]),"express"===(null===(u=this.rightNode)||void 0===u?void 0:u.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("express",event)}}},["医学表达式属性"])]),"RadioBox"===(null===(_=this.rightNode)||void 0===_?void 0:_.type)||"CheckBox"===(null===(v=this.rightNode)||void 0===v?void 0:v.type)?ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){var l;return oe.toUpdateNodes(null===(l=oe.rightNode)||void 0===l?void 0:l.type,event)}}},["RadioBox"===(null===(C=this.rightNode)||void 0===C?void 0:C.type)?"单选框属性":"复选框属性"])]):null,"date"===(null===(k=this.rightNode)||void 0===k?void 0:k.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("date",event)}}},["日期属性"])]),"select"===(null===(N=this.rightNode)||void 0===N?void 0:N.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("select",event)}}},["下拉框属性"])]),"barcode"===(null===(B=this.rightNode)||void 0===B?void 0:B.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("barcode",event)}}},["条形码属性"])]),"qrcode"===(null===(U=this.rightNode)||void 0===U?void 0:U.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("qrcode",event)}}},["二维码属性"])]),"edit-image"===(null===(W=this.rightNode)||void 0===W?void 0:W.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("edit-image",event)}}},["编辑图片"])]),("text"===(null===(q=this.rightNode)||void 0===q?void 0:q.type)||this.emrDebug)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("text",event)}}},["文本域属性"])]),((null===($=this.rightNode)||void 0===$?void 0:$.rightTypeIsTable)&&this.defaultTable&&(0===(null===(Y=this.rightNode)||void 0===Y?void 0:Y.paintStatus)||(null===(ee=this.rightNode)||void 0===ee?void 0:ee.isCanUseTableProperty))||this.emrDebug)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table",event)}}},["表格属性"]),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table-col",event)}}},["表格列属性"]),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table-row",event)}}},["表格行属性"]),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table-cell",event)}}},["单元格属性"])]),(null===(re=this.rightNode)||void 0===re?void 0:re.rightTypeIsTable)&&this.defaultTable&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae(qd,{on:{closeMenu:this.handleClose.bind(this)},attrs:_objectSpread2({},{vueController:this.vueController,className:"insert-rows-columns-right",table:this.defaultTable,tableProperty:this.rightNode.tableProperty})})]),(null===(ne=this.rightNode)||void 0===ne?void 0:ne.canShowComment)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.hideComments()}}},[null!==(ie=this.rightNode)&&void 0!==ie&&ie.isHideComments?"显示":"隐藏","批注"])]),ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item"},["编辑器内核版本:  ",ae("span",{style:"font-size: 14px;color: #0a77e3;"},["v ",this.versions])])])])])}}]),HoRightMenu}(mixins(jt));__decorate([Prop()],f_.prototype,"rightPos",void 0),__decorate([Prop()],f_.prototype,"vueController",void 0),__decorate([Prop()],f_.prototype,"editController",void 0),__decorate([Prop()],f_.prototype,"editJson",void 0),__decorate([Prop()],f_.prototype,"rightNode",void 0),__decorate([Ref()],f_.prototype,"mouseRightMenuPopup",void 0),f_=__decorate([ae({name:"HoRightMenu",components:{TableFeatures:qd}})],f_);var g_=f_,viewvue_type_template_id_4a7f3e3a_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return l.hoEditorFactoryIdList.length>0?_("div",{staticClass:"ho-docs",staticStyle:{width:"1px",height:"1px"}},[_("section",{staticClass:"ho-editor-list editor-no-footer"},[l._l(l.hoEditorFactoryIdList,(function(u,v){return[_("PrintDoc",{key:v,attrs:{docIndex:v,hoEditorId:u,hoEditorFactoryIdList:l.hoEditorFactoryIdList,activeDocId:l.activeDocId},on:{setActiveDocIndex:l.setActiveDocIndex,drawPagesLengthChange:l.drawPagesLengthChange}})]}))],2)]):l._e()},m_=[],viewDocvue_type_template_id_717b1315_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.docClassNames},[_("div",{ref:"editorArea",staticClass:"editors"},[l.drawPageLength>0?_("div",{staticClass:"editor"},[l._l(l.drawPageCount.count,(function(u){return[_("PrintPage",{key:u-1,attrs:{"data-id":u-1,index:u-1,docIndex:l.docIndex,canvasWidth:l.canvasParams.width,canvasHeight:l.canvasParams.height,currentActivePages:l.activePageIndex.index,hoEditorId:l.hoEditorId,hoEditorFactoryIdList:l.hoEditorFactoryIdList,viewableAreaObserver:l.viewableAreaObserver,inViewPages:l.inViewPages},on:{pageReady:l.pageReady}})]}))],2):l._e()])])},v_=[],viewPagevue_type_template_id_28aec101_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"hoPage",class:l.pageClassNames,style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"}},[_("canvas",{ref:"domcanvas",staticClass:"domcanvas-selected",style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight}}),_("canvas",{ref:"selectcanvas",staticClass:"selectcanvas",style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight}})])},y_=[],b_=function(l){(0,Y.Z)(PrintPage,l);var u=(0,ee.Z)(PrintPage);function PrintPage(){return(0,q.Z)(this,PrintPage),u.apply(this,arguments)}return(0,$.Z)(PrintPage,[{key:"pageClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-container edit-container-margin":"edit-container"}},{key:"scaleHeight",get:function get(){return this.canvasHeight}},{key:"scaleWidth",get:function get(){return this.canvasWidth}},{key:"mounted",value:function mounted(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId),_=new ct(this.hoEditorId,this.index,this.domcanvas),v=new st(this.hoEditorId,this.index,this.selectcanvas,this.docIndex,this.index),C=u.drawTree.drawPages[this.index];C.init(_,v),this.$emit("pageReady",C),this.$nextTick((function(){var u;return null===(u=l.viewableAreaObserver)||void 0===u?void 0:u.observe(l.hoPage)}))}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=this.viewableAreaObserver)||void 0===l||l.unobserve(this.hoPage)}}]),PrintPage}(k());__decorate([Prop()],b_.prototype,"canvasWidth",void 0),__decorate([Prop()],b_.prototype,"canvasHeight",void 0),__decorate([Prop()],b_.prototype,"index",void 0),__decorate([Prop()],b_.prototype,"hoEditorId",void 0),__decorate([Prop()],b_.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],b_.prototype,"docIndex",void 0),__decorate([Prop()],b_.prototype,"viewableAreaObserver",void 0),__decorate([Prop()],b_.prototype,"inViewPages",void 0),__decorate([Ref()],b_.prototype,"hoPage",void 0),__decorate([Ref()],b_.prototype,"domcanvas",void 0),__decorate([Ref()],b_.prototype,"selectcanvas",void 0),b_=__decorate([ae({name:"PrintPage",components:{HoHeadFoot:ft,AiModel:xt}})],b_);var w_=b_,x_=w_,P_=normalizeComponent(x_,viewPagevue_type_template_id_28aec101_scoped_true_render,y_,!1,null,"28aec101",null),C_=P_.exports,E_=function(l){(0,Y.Z)(PrintDoc,l);var u=(0,ee.Z)(PrintDoc);function PrintDoc(){var l;return(0,q.Z)(this,PrintDoc),l=u.apply(this,arguments),l.canvasParams={width:Math.floor(793*nt.f.instance().scaleXY)%2===1?Math.floor(793*nt.f.instance().scaleXY)+1:Math.floor(793*nt.f.instance().scaleXY),height:Math.floor(1122*nt.f.instance().scaleXY)%2===1?Math.floor(1122*nt.f.instance().scaleXY)+1:Math.floor(1122*nt.f.instance().scaleXY)},l.canvasHeadFootPos={headerY:48,footerY:48},l.drawing=!1,l.drawPageCount={count:-1},l.activePageIndex={index:-1},l.viewableAreaObserver=null,l.inViewPages=[0],l.drawPageLength=0,l}return(0,$.Z)(PrintDoc,[{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:"created",value:function created(){var l=rt.b.instance().getFactory(this.hoEditorId);l.hoEditorFactoryIndex=this.docIndex,l.subDocManger.initBlankDoc(),l.docTree.initBlankDoc(),window.addEventListener("keydown",(function(u){l.docTree.updateCtlKey(u)})),window.addEventListener("keyup",(function(u){l.docTree.updateCtlKey(u)}))}},{key:"mounted",value:function mounted(){var l=rt.b.instance().getFactory(this.hoEditorId);l.pageProperty.canvasParams=this.canvasParams,l.pageProperty.canvasHeadFootPos=this.canvasHeadFootPos,l.drawPageTree.initDoc(),l.drawTree.drawPageCount=this.drawPageCount,l.drawTree.activePageIndex=this.activePageIndex,this.drawing=!1;var u=this.hoEditorFactoryIdList.length;if(0===this.docIndex){var _=l.subDocManger.getHeaderSubDocTree(0);if(!_)throw new Error("需要先创建页眉文档");l.drawTree.buildDrawTree(_.subDocNodes,l.drawTree.headerDNodes[0])}if(this.docIndex===u-1){var v=l.subDocManger.getFooterSubDocTree(0);if(!v)throw new Error("需要先创建页脚文档");l.drawTree.buildDrawTree(v.subDocNodes,l.drawTree.footerDNodes[0])}l.drawTree.buildDrawTree(l.docTree.mainNodes,l.drawTree.mainDNodes),l.drawTree.addPage(),l.drawTree.drawPageCount.count=l.drawTree.drawPages.length,l.drawTree.inViewPages=[0],l.drawPageTree.changeInViewPage()}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=this.viewableAreaObserver)||void 0===l||l.disconnect()}},{key:"pageIntersectionObserver",value:function pageIntersectionObserver(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId);this.viewableAreaObserver=new pn((function(_){if(_){var v=(0,U.Z)(u.drawTree.inViewPages);_.forEach((function(l){var _=Number(l.target.dataset.id),C=u.drawTree.drawPages[_],k=u.drawTree.drawPages.length;C&&C.needUpdateStage&&C.drawDomLevel&&(u.drawPageTree.updateDrawPage(C.pageIndex),C.needUpdateStage=!1),0===l.intersectionRatio?v=v.filter((function(l){return C&&l!==C.pageIndex})):!v.includes(C.pageIndex)&&v.push(C.pageIndex),v=v.filter((function(l){return l<k})).sort()})),l.inViewPages=(0,U.Z)(v),u.drawTree.inViewPages=(0,U.Z)(v),u.drawPageTree.changeInViewPage()}}),{root:null,rootMargin:"0px",threshold:[0,1]})}},{key:"pageReady",value:function pageReady(l){try{null===this.viewableAreaObserver&&this.pageIntersectionObserver();var u=rt.b.instance().getFactory(this.hoEditorId);this.drawing=!0,u.drawTree.paintHeader(l.pageIndex),u.drawTree.paintFooter(l.pageIndex),l.reFreshBounds(),u.drawPageTree.changeInViewPage(),l.drawDomLevel&&u.drawPageTree.updateDrawPage(l.pageIndex)}finally{this.drawing=!1}}}]),PrintDoc}(k());__decorate([Prop()],E_.prototype,"docIndex",void 0),__decorate([Prop()],E_.prototype,"hoEditorId",void 0),__decorate([Prop()],E_.prototype,"hoEditorFactoryIdList",void 0),__decorate([Watch("drawPageCount",{deep:!0})],E_.prototype,"drawPagesLengthChange",null),__decorate([Watch("activePageIndex",{deep:!0})],E_.prototype,"activePageIndexChange",null),E_=__decorate([ae({name:"PrintDoc",components:{PrintPage:C_}})],E_);var S_=E_,T_=S_,D_=normalizeComponent(T_,viewDocvue_type_template_id_717b1315_render,v_,!1,null,null,null),k_=D_.exports,I_=function(l){(0,Y.Z)(PrintDocs,l);var u=(0,ee.Z)(PrintDocs);function PrintDocs(){var l;return(0,q.Z)(this,PrintDocs),l=u.apply(this,arguments),l.hoEditorFactoryIdList=[],l.docList=[0],l.drawPageLength=0,l.activeDocId="",l.defaultDocProperty={version:"",type:0,title:"",docID:"",patientID:"",patientName:"",lastEditTime:"",lastEditorID:"",lastEditorName:"",currentIP:""},l}return(0,$.Z)(PrintDocs,[{key:"pagePropertyChange",value:function pagePropertyChange(l){l&&this.initPageProperty(_objectSpread2({},l))}},{key:"isFixedPrintToA4Change",value:function isFixedPrintToA4Change(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0];rt.b.instance().hoEditorFactoryMap.get(l)}},{key:"printBlackChange",value:function printBlackChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.printBlack=this.printBlack)}},{key:"created",value:function created(){var l=this;window.oncontextmenu=function(l){l.preventDefault()},this.docList.forEach((function(){var u=(0,Lt.y)("HO"),_=new fo(u);l.hoEditorFactoryIdList.push(u),_.isFixedPrintToA4=l.isFixedPrintToA4,_.printBlack=l.printBlack,_.docTree.docProperty=l.defaultDocProperty,rt.b.instance().hoEditorFactoryMap.set(u,_)})),this.setActiveDocIndex(this.hoEditorFactoryIdList[0]),this.$nextTick((function(){l.pageProperty&&l.initPageProperty(_objectSpread2({},l.pageProperty))}))}},{key:"setActiveDocIndex",value:function setActiveDocIndex(l){this.activeDocId=l;var u=rt.b.instance().getFactory(this.activeDocId);u.hoLocalStorage.initHoWebSql(),this.$emit("docReady",{vueController:u.vueController,printController:u.printController})}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(l){this.drawPageLength=l}},{key:"initPageProperty",value:function initPageProperty(l){var u=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],_=rt.b.instance().hoEditorFactoryMap.get(u);_&&(isNaN(Number(l.signHeight))||(_.signHeight=Number(l.signHeight)))}}]),PrintDocs}(mixins());__decorate([Prop()],I_.prototype,"pageProperty",void 0),__decorate([Prop({default:""})],I_.prototype,"isFixedPrintToA4",void 0),__decorate([Prop({default:!0})],I_.prototype,"printBlack",void 0),__decorate([Watch("pageProperty",{deep:!0})],I_.prototype,"pagePropertyChange",null),__decorate([Watch("isFixedPrintToA4",{deep:!0})],I_.prototype,"isFixedPrintToA4Change",null),__decorate([Watch("printBlack")],I_.prototype,"printBlackChange",null),I_=__decorate([ae({name:"PrintDocs",components:{PrintDoc:k_}})],I_);var M_=I_,N_=M_,O_=normalizeComponent(N_,viewvue_type_template_id_4a7f3e3a_render,m_,!1,null,null,null),L_=O_.exports;gu.install=function(l){l.component(gu.name,gu)},L_.install=function(l){l.component(L_.name,L_)},s_.install=function(l){l.component(s_.name,s_)},p_.install=function(l){l.component(p_.name,p_)},g_.install=function(l){l.component(g_.name,g_)},Cu.install=function(l){l.component(Cu.name,Cu)};var A_=__webpack_require__(54813),R_=__webpack_require__.n(A_),F_=__webpack_require__(14561),j_=__webpack_require__.n(F_),B_=__webpack_require__(35034),U_=__webpack_require__.n(B_),H_=__webpack_require__(63364),W_=__webpack_require__.n(H_),q_=__webpack_require__(62618),z_=__webpack_require__.n(q_),V_=__webpack_require__(85517),K_=__webpack_require__.n(V_),$_=__webpack_require__(44242),G_=__webpack_require__.n($_),Z_=__webpack_require__(40032),J_=__webpack_require__.n(Z_),X_=__webpack_require__(54223),Y_=__webpack_require__.n(X_),Q_=__webpack_require__(26906),ep=__webpack_require__.n(Q_),tp=__webpack_require__(42173),rp=__webpack_require__.n(tp),ip=__webpack_require__(43229),op=__webpack_require__.n(ip),ap=__webpack_require__(57099),sp=__webpack_require__.n(ap),lp=__webpack_require__(66177),cp=__webpack_require__.n(lp),dp=__webpack_require__(84005),hp=__webpack_require__.n(dp),fp=__webpack_require__(17113),gp=__webpack_require__.n(fp),mp=__webpack_require__(45614),vp=__webpack_require__.n(mp),yp=__webpack_require__(67186),bp=__webpack_require__.n(yp),wp=__webpack_require__(62810),xp=__webpack_require__.n(wp),Pp=__webpack_require__(13235),Cp=__webpack_require__.n(Pp),Ep=__webpack_require__(82626),Sp=__webpack_require__.n(Ep),Tp=__webpack_require__(88331),Dp=__webpack_require__.n(Tp),kp=__webpack_require__(81337),Ip=__webpack_require__.n(kp),Mp=__webpack_require__(41955),Np=__webpack_require__.n(Mp),Op=__webpack_require__(7987),Lp=__webpack_require__.n(Op),Ap=__webpack_require__(80950),Rp=__webpack_require__.n(Ap),Fp=__webpack_require__(7626),jp=__webpack_require__.n(Fp),Bp=__webpack_require__(91119),Up=__webpack_require__.n(Bp),Hp=__webpack_require__(2444),Wp=__webpack_require__.n(Hp),qp=__webpack_require__(10642),zp=__webpack_require__.n(qp),Vp=__webpack_require__(26426),Kp=__webpack_require__.n(Vp);k().use(Kp()),k().use(zp()),k().use(Wp()),k().use(Up()),k().use(jp()),k().use(Rp()),k().use(Lp()),k().use(Np()),k().use(Ip()),k().use(Dp()),k().use(Sp()),k().use(Cp()),k().use(xp()),k().use(bp()),k().use(vp()),k().use(gp()),k().use(hp()),k().use(cp()),k().use(sp()),k().use(op()),k().use(rp()),k().use(ep()),k().use(Y_()),k().use(J_()),k().use(G_()),k().use(K_()),k().use(z_()),k().use(W_()),k().use(U_()),k().use(j_()),k().use(R_()),k().prototype.$elMessage=Ji(),k().prototype.$elConfirm=Jn().confirm;var $p="click",Gp=Object.create(null),Zp=Object.create(null),Jp=Object.create(null),Xp=Object.create(null),Yp=[Gp,Zp],Qp=function onCommonEvent(l,u,_,v){var C=_.target,k=function itemIteratee(u){var v=u.el;if(v!==C&&!v.contains(C)){var k=u.binding;k.modifiers.stop&&_.stopPropagation(),k.modifiers.prevent&&_.preventDefault(),k.value.call(l,_)}};u[v].forEach(k)},_f=function getEventHandler(l,u){return l?(Jp[u]||(Jp[u]=function onCaptureEvent(l){Qp(this,Gp,l,u)}),Jp[u]):(Xp[u]||(Xp[u]=function onNonCaptureEvent(l){Qp(this,Zp,l,u)}),Xp[u])},Pf=Object.defineProperties({},{$captureInstances:{value:Gp},$nonCaptureInstances:{value:Zp},$captureEventHandlers:{value:Jp},$nonCaptureEventHandlers:{value:Xp},bind:{value:function bind(l,u){if("function"!==typeof u.value)throw new TypeError("Binding value must be a function.");var _=u.arg||$p,v=_objectSpread2(_objectSpread2({},u),{arg:_,modifiers:_objectSpread2(_objectSpread2({},{capture:!1,prevent:!1,stop:!1}),u.modifiers)}),C=v.modifiers.capture,k=C?Gp:Zp;Array.isArray(k[_])||(k[_]=[]),1===k[_].push({el:l,binding:v})&&"object"===("undefined"===typeof document?"undefined":(0,ri.Z)(document))&&document&&document.addEventListener(_,_f(C,_),C)}},unbind:{value:function unbind(l){var u=function compareElements(u){return u.el!==l},_=function instancesIteratee(l){var _=Object.keys(l);if(_.length){var v=l===Gp,C=function keysIteratee(_){var C=l[_].filter(u);C.length?l[_]=C:("object"===("undefined"===typeof document?"undefined":(0,ri.Z)(document))&&document&&document.removeEventListener(_,_f(v,_),v),delete l[_])};_.forEach(C)}};Yp.forEach(_)}}});function clickoutside_install(l){l.directive("click-outside",Pf)}var Sf={install:function install(l){l.directive("clickOnce",{inserted:function inserted(l,u){l.addEventListener("click",(function(){l.disabled||(l.disabled=!0,setTimeout((function(){l.disabled=!1}),u.value||3e3))}))}})}},Tf=void 0,Mf=function debounce(l,u){var _,v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(){for(var C=arguments.length,k=new Array(C),N=0;N<C;N++)k[N]=arguments[N];if(v)return l.apply(Tf,k),void(v=!1);clearTimeout(_),_=setTimeout((function(){l.apply(Tf,k)}),u)}},Nf={install:function install(l){l.directive("debounce",{bind:function bind(l,u){var _=u.value,v=u.arg,C=u.modifiers,k=Object.keys(C)[0];l.addEventListener(k,Mf(_,v))}})}};k().use(l),k().use(Sf),k().use(Nf);var Of=[gu,L_,s_,p_,g_,Cu],Rf=function install(l){Of.forEach((function(u){l.component(u.name,u)}))};"undefined"!==typeof window&&window.Vue&&Rf(window.Vue);var Uf={install:Rf,HoDocs:gu,PrintDocs:L_,ToolBar:s_,TabPane:p_,HoRightMenu:g_,HoMedicalExpression:Cu},Wf=Uf,Vf=Wf}(),__webpack_exports__=__webpack_exports__["default"],__webpack_exports__}()}));
748
+ function _typeof(l){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},_typeof(l)}function _defineProperty(l,u,_){return u in l?Object.defineProperty(l,u,{value:_,enumerable:!0,configurable:!0,writable:!0}):l[u]=_,l}function _toConsumableArray(l){return _arrayWithoutHoles(l)||_iterableToArray(l)||_nonIterableSpread()}function _arrayWithoutHoles(l){if(Array.isArray(l)){for(var u=0,_=new Array(l.length);u<l.length;u++)_[u]=l[u];return _}}function _iterableToArray(l){if(Symbol.iterator in Object(l)||"[object Arguments]"===Object.prototype.toString.call(l))return Array.from(l)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function reflectionIsSupported(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function copyReflectionMetadata(l,u){forwardMetadata(l,u),Object.getOwnPropertyNames(u.prototype).forEach((function(_){forwardMetadata(l.prototype,u.prototype,_)})),Object.getOwnPropertyNames(u).forEach((function(_){forwardMetadata(l,u,_)}))}function forwardMetadata(l,u,_){var v=_?Reflect.getOwnMetadataKeys(u,_):Reflect.getOwnMetadataKeys(u);v.forEach((function(v){var C=_?Reflect.getOwnMetadata(v,u,_):Reflect.getOwnMetadata(v,u);_?Reflect.defineMetadata(v,C,l,_):Reflect.defineMetadata(v,C,l)}))}var re={__proto__:[]},ne=re instanceof Array;function vue_class_component_esm_createDecorator(l){return function(u,_,v){var C="function"===typeof u?u:u.constructor;C.__decorators__||(C.__decorators__=[]),"number"!==typeof v&&(v=void 0),C.__decorators__.push((function(u){return l(u,_,v)}))}}function mixins(){for(var l=arguments.length,u=new Array(l),_=0;_<l;_++)u[_]=arguments[_];return k().extend({mixins:u})}function isPrimitive(l){var u=_typeof(l);return null==l||"object"!==u&&"function"!==u}function collectDataFromConstructor(l,u){var _=u.prototype._init;u.prototype._init=function(){var u=this,_=Object.getOwnPropertyNames(l);if(l.$options.props)for(var v in l.$options.props)l.hasOwnProperty(v)||_.push(v);_.forEach((function(_){Object.defineProperty(u,_,{get:function get(){return l[_]},set:function set(u){l[_]=u},configurable:!0})}))};var v=new u;u.prototype._init=_;var C={};return Object.keys(v).forEach((function(l){void 0!==v[l]&&(C[l]=v[l])})),C}var ie=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function componentFactory(l){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u.name=u.name||l._componentTag||l.name;var _=l.prototype;Object.getOwnPropertyNames(_).forEach((function(l){if("constructor"!==l)if(ie.indexOf(l)>-1)u[l]=_[l];else{var v=Object.getOwnPropertyDescriptor(_,l);void 0!==v.value?"function"===typeof v.value?(u.methods||(u.methods={}))[l]=v.value:(u.mixins||(u.mixins=[])).push({data:function data(){return _defineProperty({},l,v.value)}}):(v.get||v.set)&&((u.computed||(u.computed={}))[l]={get:v.get,set:v.set})}})),(u.mixins||(u.mixins=[])).push({data:function data(){return collectDataFromConstructor(this,l)}});var v=l.__decorators__;v&&(v.forEach((function(l){return l(u)})),delete l.__decorators__);var C=Object.getPrototypeOf(l.prototype),N=C instanceof k()?C.constructor:k(),B=N.extend(u);return forwardStaticMembers(B,l,N),reflectionIsSupported()&&copyReflectionMetadata(B,l),B}var oe={prototype:!0,arguments:!0,callee:!0,caller:!0};function forwardStaticMembers(l,u,_){Object.getOwnPropertyNames(u).forEach((function(v){if(!oe[v]){var C=Object.getOwnPropertyDescriptor(l,v);if(!C||C.configurable){var k=Object.getOwnPropertyDescriptor(u,v);if(!ne){if("cid"===v)return;var N=Object.getOwnPropertyDescriptor(_,v);if(!isPrimitive(k.value)&&N&&N.value===k.value)return}0,Object.defineProperty(l,v,k)}}}))}function Component(l){return"function"===typeof l?componentFactory(l):function(u){return componentFactory(u,l)}}Component.registerHooks=function registerHooks(l){ie.push.apply(ie,_toConsumableArray(l))};var ae=Component,le="__reactiveInject__";function Inject(l){return vue_class_component_esm_createDecorator((function(u,_){"undefined"===typeof u.inject&&(u.inject={}),Array.isArray(u.inject)||(u.inject[_]=l||_)}))}function produceProvide(l){var provide=function(){var u=this,_="function"===typeof l?l.call(this):l;for(var v in _=Object.create(_||null),_[le]=this[le]||{},provide.managed)_[provide.managed[v]]=this[v];var _loop_1=function(l){_[provide.managedReactive[l]]=C[l],Object.defineProperty(_[le],provide.managedReactive[l],{enumerable:!0,get:function(){return u[l]}})},C=this;for(var v in provide.managedReactive)_loop_1(v);return _};return provide.managed={},provide.managedReactive={},provide}function needToProduceProvide(l){return"function"!==typeof l||!l.managed&&!l.managedReactive}function Provide(l){return vue_class_component_esm_createDecorator((function(u,_){var v=u.provide;needToProduceProvide(v)&&(v=u.provide=produceProvide(v)),v.managed[_]=l||_}))}var ce="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function applyMetadata(l,u,_){if(ce&&!Array.isArray(l)&&"function"!==typeof l&&"undefined"===typeof l.type){var v=Reflect.getMetadata("design:type",u,_);v!==Object&&(l.type=v)}}function Prop(l){return void 0===l&&(l={}),function(u,_){applyMetadata(l,u,_),vue_class_component_esm_createDecorator((function(u,_){(u.props||(u.props={}))[_]=l}))(u,_)}}function Watch(l,u){void 0===u&&(u={});var _=u.deep,v=void 0!==_&&_,C=u.immediate,k=void 0!==C&&C;return vue_class_component_esm_createDecorator((function(u,_){"object"!==typeof u.watch&&(u.watch=Object.create(null));var C=u.watch;"object"!==typeof C[l]||Array.isArray(C[l])?"undefined"===typeof C[l]&&(C[l]=[]):C[l]=[C[l]],C[l].push({handler:_,deep:v,immediate:k})}))}function Ref(l){return vue_class_component_esm_createDecorator((function(u,_){u.computed=u.computed||{},u.computed[_]={cache:!1,get:function(){return this.$refs[l||_]}}}))}var de,HoDocvue_type_template_id_0d9b6522_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.docClassNames},[_("div",{ref:"editorArea",staticClass:"editors"},[l.drawPageLength>0?_("div",{staticClass:"editor",on:{click:function(u){return l.setActiveDocIndex(l.hoEditorId)}}},[l._l(l.drawPageCount.count,(function(u){return[_("HoPage",{key:u-1,attrs:{"data-id":u-1,index:u-1,docIndex:l.docIndex,canvasWidth:l.canvasParams.width,canvasHeight:l.canvasParams.height,currentActivePages:l.activePageIndex.index,hoEditorId:l.hoEditorId,hoEditorFactoryIdList:l.hoEditorFactoryIdList,mouseMoveNodes:l.mouseMoveNodes,viewableAreaObserver:l.viewableAreaObserver,inViewPages:l.inViewPages,canvasHeadFootPos:l.canvasHeadFootPos,poperTipPos:l.poperTipPos,textStyle:l.textStyle,aiInfo:l.aiInfo},on:{pageReady:l.pageReady,canvasRightClick:l.mouseRightClickEvent},scopedSlots:l._u([{key:"hoPageHead",fn:function(){return[l._t("hoDocHead")]},proxy:!0},{key:"hoPageFoot",fn:function(){return[l._t("hoDocFoot")]},proxy:!0}],null,!0)})]}))],2):l._e()]),"datePoper"===l.poperType||"selectPoper"===l.poperType?_("PoperSelectModal",{attrs:{poperType:l.poperType,poperSelectList:l.poperSelectList,poperPos:l.poperPos,hoEditorId:l.hoEditorId},on:{poperClose:l.poperClose}}):l._e(),_("PoperMark",{directives:[{name:"show",rawName:"v-show",value:"datePoper"===l.poperType||"selectPoper"===l.poperType||"table-cell-poper"===l.poperType,expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),"table-cell-poper"===l.poperType?_("TableCellPoper",{attrs:{poperNode:l.nodeValue,poperPos:l.poperPos},on:{poperClose:l.poperClose}}):l._e(),_("HoToPage",{attrs:{hoEditorId:l.hoEditorId,inViewPages:l.inViewPages}}),_("PoperTipText",{attrs:{isPoperText:l.isPoperText,poperText:l.poperText,poperPos:l.poperTextPos},on:{poperTextClose:l.poperTextClose}}),_("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return l.isCreateRightMenuModal=!1},expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:l.isCreateRightMenuModal,expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[l.showCommentsBtn?_("li",{staticClass:"mouse-menu-item",on:{click:l.hideComments}},[l._v(l._s(l.isHideComments?"显示":"隐藏")+"批注")]):l._e(),_("li",{staticClass:"mouse-menu-item"},[l._v(" 编辑器内核版本:   "),_("span",{staticStyle:{"font-size":"14px",color:"#0a77e3"}},[l._v("v "+l._s(l.version))])])])],1)},he=[],_e=(__webpack_require__(32023),__webpack_require__(2707),__webpack_require__(15306),function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"hoPage",class:l.pageClassNames,style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"}},[_("canvas",{ref:"domcanvas",class:l.domCanvasName,style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight}}),_("canvas",{ref:"selectcanvas",staticClass:"selectcanvas",style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight},on:{contextmenu:function(u){return l.canvasRightClick.apply(null,arguments)}}}),l.index===l.aiInfo.pageIndex?_("AiModel",{attrs:{textStyle:l.textStyle,scaleWidth:l.scaleWidth,hoEditorFactoryId:l.hoEditorId,aiInfo:l.aiInfo}}):l._e(),"header"===l.isHeadFoot||"footer"===l.isHeadFoot?_("ho-head-foot",{attrs:{headerFooterPosition:l.canvasHeadFootPos,isHeadFoot:l.isHeadFoot},scopedSlots:l._u([{key:"head",fn:function(){return[l._t("hoPageHead")]},proxy:!0},{key:"foot",fn:function(){return[l._t("hoPageFoot")]},proxy:!0}],null,!0)}):l._e()],1)}),pe=[],fe=(__webpack_require__(23123),__webpack_require__(7001)),me=__webpack_require__(74532),be=(__webpack_require__(66992),__webpack_require__(51532),__webpack_require__(78783),__webpack_require__(33948),__webpack_require__(23157),__webpack_require__(40561),__webpack_require__(80705)),Ee=__webpack_require__(15898),ke=__webpack_require__(21785),Ie=__webpack_require__(63670),Ne=__webpack_require__(50141),Fe=__webpack_require__(73916),He=__webpack_require__(7080),qe=__webpack_require__(54254),Ke=__webpack_require__(61837),Ge=__webpack_require__(43856),et=__webpack_require__(61725),tt=__webpack_require__(46989),rt=__webpack_require__(72460),nt=__webpack_require__(66447),it=__webpack_require__(68065),ot=__webpack_require__(66554),st=function(){function DrawSelectLevel(l,u,_,v,C){(0,q.Z)(this,DrawSelectLevel),this._hoEditorFactoryID=l,this._selectCanvas=_,this._pageIndex=u,this._docIndex=v,this._drawPageIndex=C,this._selectStage=null,this._mouseDownCount=0,this._oldRange=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,this._shapesColor=new Map}return(0,$.Z)(DrawSelectLevel,[{key:"bindStage",value:function bindStage(){var l=this;if(!this._selectStage){var u,_,v=rt.b.instance().getFactory(this._hoEditorFactoryID);this._selectCanvas.width=v.pageProperty.canvasParams.width,this._selectCanvas.height=v.pageProperty.canvasParams.height,this._selectStage=new createjs.Stage(this._selectCanvas),this._selectStage.scaleX=nt.f.instance().scaleXY,this._selectStage.scaleY=nt.f.instance().scaleXY;var C=v.drawTree.drawPages[this._pageIndex];null!==(u=C.drawDomLevel)&&void 0!==u&&u.stage&&(this._selectStage.nextStage=null===(_=C.drawDomLevel)||void 0===_?void 0:_.stage),C.setEnableMouseOver(5),this._selectStage.addChild(C.selectContainer),v.drawTree.paintStatus!==Ee.Dh.psPrint&&v.drawTree.paintStatus!==Ee.Dh.psPreview&&(this._selectStage.addChild(C.headerLeftTag),this._selectStage.addChild(C.headerRightTag),this._selectStage.addChild(C.footerLeftTag),this._selectStage.addChild(C.footerRightTag)),this._selectStage.addEventListener("stagemousedown",(function(u){switch(v.drawTree.paintStatus){case Ee.Dh.psPreview:l.mouseDownPreview(u);break;case Ee.Dh.psPrint:break;default:l.mouseDown(u);break}})),this._selectStage.addEventListener("stagemouseup",(function(u){switch(v.drawTree.paintStatus){case Ee.Dh.psPreview:l.mouseUpPreview(u);break;case Ee.Dh.psPrint:break;default:l.mouseup(u);break}})),this._selectStage.addEventListener("stagemousemove",(function(u){switch(v.drawTree.paintStatus){case Ee.Dh.psPreview:l.mouseMovePreview(u);break;case Ee.Dh.psPrint:break;default:l.mousemove(u);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(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];if(u.printStatus.printRange==qe.dR.prCaret){var v=new createjs.Point(l.localX,l.localY),C=_.drawMainDoc;C&&(v.y<C.dTop&&(v.y=0),u.printStatus.drawPrintCaret.Position=[_.pageIndex,v.y])}else if(u.printStatus.printRange==qe.dR.prSelected){var k=new createjs.Point(l.localX,l.localY);u.printStatus.drawPrintSelected.mousePressed=!0;var N=u.docTree.ctlKeyPressed(be.x_.ckCtrl)?1:0;u.printStatus.drawPrintSelected.addPrintArea(_.pageIndex,new Ge.S(k),N)}}},{key:"mouseMovePreview",value:function mouseMovePreview(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.printStatus.printRange==qe.dR.prSelected&&u.printStatus.drawPrintSelected.mousePressed){var _,v=new createjs.Point(l.localX,l.localY);null===(_=u.printStatus.drawPrintSelected.selectedArea)||void 0===_||_.setEndPoint(v),u.printStatus.drawPrintSelected.paintArea()}}},{key:"mouseUpPreview",value:function mouseUpPreview(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.printStatus.printRange==qe.dR.prSelected){var _,v=new createjs.Point(l.localX,l.localY);u.printStatus.drawPrintSelected.mousePressed=!1,null===(_=u.printStatus.drawPrintSelected.selectedArea)||void 0===_||_.setEndPoint(v)}}},{key:"mouseDblClick",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(l){var u,_,v,C,k,N,B,U,W,q,$,Y,ee,re,ne,ie,oe,ae,le,ce,de,he,_e,pe;return(0,fe.Z)().wrap((function _callee$(fe){while(1)switch(fe.prev=fe.next){case 0:if(u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex],l.currentTarget!==this.stage){fe.next=45;break}if(v=u.drawTree.activePage,C=v?v.pageIndex:-1,k=null,v&&v.drawDomLevel&&v.activeDrawRect&&(k=v.activeDrawRect),u.drawTree.selectRange.clearAllSelectShape(),u.drawTree.selectRange.beginRangeSelect=!1,u.drawTree.activePage=_,u.drawTree.inViewPages.indexOf(this._pageIndex)<0&&u.drawTree.inViewPages.push(this._pageIndex),_.drawDomLevel){fe.next=13;break}return fe.abrupt("return",!1);case 13:if(N=_.drawDomLevel.getDrawPlaceByPos(l.stageX,l.stageY),u.isCanEditHeadFoot||!(N instanceof it.g||N instanceof ot.d)){fe.next=16;break}return fe.abrupt("return",!1);case 16:if(B=k==N,_.activeDrawRect=N,k===N){fe.next=22;break}return U=new Ke.$(C,this._pageIndex,k,N),fe.next=22,u.drawTree.pageAreaChanged(U);case 22:if(W=u.drawTree.getStagePosition(_,N,l.stageX,l.stageY),!W){fe.next=45;break}if(B||!W.page){fe.next=30;break}if(u.docTree.curDomRange.setSamePath(W.path),0!==N.children.length){fe.next=28;break}return fe.abrupt("return",!0);case 28:return u.drawTree.moveCaretToPath(W.path),fe.abrupt("return",!0);case 30:if(q=u.docTree.findNodePositionByPath(W.path),!q||!q.node){fe.next=45;break}if(Y=q.node.prevSibling(),Y&&(ee=u.docTree.curDomRange.clone(),re=u.docTree.getNodeLastPath(Y),ne=u.docTree.getNodeLastPath(q.node),ie=new Ie.a(u.hoEditorFactoryId,re,ne),oe=new ke.r(ee,ie),u.docTree.selectChange(oe),u.docTree.curDomRange=ie),q.node.nodeType!==Fe.Jq.ntMedicalExpression&&(q.node.nodeType!==Fe.Jq.ntControl||q.node instanceof He.Yh)&&(null===($=q.node.parentNode)||void 0===$?void 0:$.nodeType)!==Fe.Jq.ntField&&q.node.nodeType!==Fe.Jq.ntSign&&q.node.nodeType!==Fe.Jq.ntGestation&&q.node.nodeType!==Fe.Jq.ntImage||(ae=new Ne.x(q.node,"dblclick",this._pageIndex),u.docTree.nodeNeedModify(ae)),!(q.node.parentNode instanceof et.D)){fe.next=45;break}if(le=q.node.parentNode,ce=le.table.colInfos[q.node.parentNode.row.indexOf(q.node.parentNode)],ce.isAllowEdit){fe.next=40;break}return fe.abrupt("return");case 40:if(de=le.table.rowInfos[q.node.parentNode.table.rows.indexOf(q.node.parentNode.row)],de.isAllowEdit&&!de.rowProperty.repeatAsTitleAtPageTop){fe.next=43;break}return fe.abrupt("return");case 43:he=ce.colProperty,he.editorProperty===tt.YS.DateTime||he.editorProperty===tt.YS.DownList?(_e=new Ne.x(q.node,"dblclick",this._pageIndex),u.docTree.nodeNeedModify(_e)):le.cellProperty.editorProperty!==tt.YS.DateTime&&le.cellProperty.editorProperty!==tt.YS.DownList||(pe=new Ne.x(q.node,"dblclick",this._pageIndex),u.docTree.nodeNeedModify(pe));case 45:return fe.abrupt("return",!0);case 46:case"end":return fe.stop()}}),_callee,this)})));function mouseDblClick(u){return l.apply(this,arguments)}return mouseDblClick}()},{key:"mouseDownHandle",value:function mouseDownHandle(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];if(!_.drawDomLevel)return!1;if(l.currentTarget===this.stage){var v;u.drawTree.selectRange.clearAllSelectShape(),u.drawTree.selectRange.beginRangeSelect=!0,null!==(v=u.drawTree.activePage)&&void 0!==v&&v.activeDrawRect.rootPath.startsWith(be.d9)&&(u.drawTree.activePage=_),u.drawTree.inViewPages.indexOf(this._pageIndex)<0&&u.drawTree.inViewPages.push(this._pageIndex),this._oldRange=u.docTree.curDomRange.clone();var C=u.drawTree.getStagePosition(_,_.activeDrawRect,l.stageX,l.stageY);if(C){var k=u.docTree.curOnDragNode;if(k){var N=k.getNodePath();if(N!==C.path){for(var B=k.drawNodes[0],U=B.children.length-1;U>=0;U--)B.children[U].name!==k.id&&B.children.splice(U,1);u.docTree.curOnDragNode=null,rt.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(_.pageIndex)}}var W=u.drawTree.curOnSelectedComment;if(W){var q=W.eNode.drawNodes[0],$=u.drawPageTree.getMainRootArea(q);if(!$)return!1;for(var Y=0;Y<$.children.length;Y++){var ee=$.children[Y];ee instanceof createjs.Shape&&W.id===ee.name&&(ee.alpha=.5),ee instanceof createjs.Container&&W.id===ee.name&&ee.children.forEach((function(l){"back"===l.name&&(l.alpha=.5)}))}u.drawTree.curOnSelectedComment=null,rt.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(_.pageIndex)}u.drawTree.selectRange.spStart=C,u.drawTree.selectRange.spEnd=C,u.docTree.curDomRange.setSamePath(C.path),u.drawTree.moveCaretToPath(C.path)}}return!0}},{key:"mouseDown",value:function mouseDown(l){var u=this,_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.structureConvert._superiorSign;if(v.length>0&&(_.drawTree.paintStatus===Ee.Dh.psEdit||_.drawTree.paintStatus===Ee.Dh.psReview)){if(this._pageIndex<v[1])return!1;if(this._pageIndex=v[1]){var C=_.drawPageTree.drawMainDocs[this._pageIndex].globalToLocal(l.stageX,l.stageY);if(C.y<v[2])return!1}}if(0===l.nativeEvent.button){this._mouseDownCount+=1;setTimeout((function(){u._mouseDownCount=0}),300);if(2===this._mouseDownCount)return this.mouseDblClick(l),this._mouseDownCount=0,_.drawTree.selectRange.beginRangeSelect=!1,!0;this.mouseDownHandle(l)}else 2===l.nativeEvent.button&&(_.drawTree.selectRange.beginRangeSelect=!1);return!0}},{key:"mousemove",value:function mousemove(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];if(!_.drawDomLevel)return!1;if(u.drawTree.activePage!==_&&(u.drawTree.activePage=_),u.drawTree.inViewPages.indexOf(this._pageIndex)<0&&u.drawTree.inViewPages.push(this._pageIndex),u.drawTree.selectRange.beginRangeSelect&&1===(parseInt(l.nativeEvent.buttons)&&1)){var v;null!==(v=u.drawTree.activePage)&&void 0!==v&&v.activeDrawRect.rootPath.startsWith(be.d9)&&u.drawTree.activePage!==_&&(u.drawTree.activePage=_);var C=u.drawTree.getStagePosition(_,_.activeDrawRect,l.stageX,l.stageY);C&&(u.docTree.curDomRange.endPath=C.path,u.drawTree.selectRange.spEnd=C,u.drawTree.drawSelectRange())}}},{key:"mouseup",value:function mouseup(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.drawTree.selectRange){var _=u.drawTree.selectRange.spStart,v=u.drawTree.selectRange.spEnd;if(u.drawTree.selectRange.beginRangeSelect){if(_&&_.page&&v.dline===_.dline&&v.index===_.index&&v.path===_.path)u.docTree.curDomRange.setSamePath(_.path),-1===v.index?u.drawTree.moveCaretToDitem(_.page,_.dline,_.index):u.drawTree.moveCaretToPath(_.path);else if(u.drawTree.activePage&&u.drawTree.moveEditTo(u.drawTree.activePage.pageIndex,0,0),u.formatPainter.inuse)return u.drawTree.selectRange.beginRangeSelect=!1,void u.formatPainter.useFormatPainter();var C=new ke.r(this._oldRange,u.docTree.curDomRange);u.docTree.selectChange(C)}if(u.drawTree.selectRange.beginRangeSelect=!1,_){var k=u.docTree.findNodePositionByPath(_.path);if(k&&k.node){var N=parseInt(l.nativeEvent.button),B=0===N?"leftclick":2===N?"rightclick":"centerclick",U=new Ne.x(k.node,B,_.page?_.page.pageIndex:this._pageIndex);u.docTree.nodeNeedModify(U)}}}}},{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}(),lt=__webpack_require__(90770);(function(l){l[l["dpNone"]=0]="dpNone",l[l["dpHeader"]=1]="dpHeader",l[l["dpMain"]=2]="dpMain",l[l["dpFooter"]=3]="dpFooter"})(de||(de={}));var ct=function(){function DrawDomLevel(l,u,_){(0,q.Z)(this,DrawDomLevel),this._hoEditorFactoryID=l,this._pageIndex=u,this._domCanvas=_,this._domStage=null,this._headerTop=0,this._mainDocTop=0,this._footerTop=0}return(0,$.Z)(DrawDomLevel,[{key:"footerTop",get:function get(){return this._footerTop},set:function set(l){this._footerTop=l}},{key:"bindStage",value:function bindStage(l){if(this._domStage)l&&this._domStage.update();else{var u=rt.b.instance().getFactory(this._hoEditorFactoryID);this._domCanvas.width=u.pageProperty.canvasParams.width,this._domCanvas.height=u.pageProperty.canvasParams.height,this._domStage=new createjs.Stage(this._domCanvas),this._domStage.scaleX=nt.f.instance().scaleXY,this._domStage.scaleY=nt.f.instance().scaleXY;var _=u.drawTree.drawPages[this._pageIndex];this._domStage.addChild(_.drawDocContainer),_.paintBackGround(),u.subDocManger.paintSubDoc(_.pageIndex,lt.pi.hftHead),u.subDocManger.repaintPageMarkNodes(_.drawHeader,lt.pi.hftHead),u.subDocManger.paintSubDoc(_.pageIndex,lt.pi.hftFoot),u.subDocManger.repaintPageMarkNodes(_.drawFooter,lt.pi.hftFoot),_.drawHeader.x=u.pageProperty.leftMarginPixes,_.drawMainDoc.x=u.pageProperty.leftMarginPixes,_.drawFooter.x=u.pageProperty.leftMarginPixes,_.drawDocContainer.addChild(_.drawMainDoc)}}},{key:"clearStage",value:function clearStage(){if(this._domStage){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.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 l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.drawPages[this._pageIndex];return Math.max(u.drawHeader.dHeight,u.drawHeader.docHeight)},set:function set(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[this._pageIndex];this._mainDocTop=l,_.drawMainDoc&&(_.drawMainDoc.y=l)}},{key:"getDrawPlaceByPos",value:function getDrawPlaceByPos(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.drawTree.drawPages[this._pageIndex],C=u/nt.f.instance().scaleXY;return C>=0&&C<=this._mainDocTop?v.drawHeader:C>this._mainDocTop&&C<this._footerTop?v.drawMainDoc:v.drawFooter}},{key:"domCanvas",get:function get(){return this._domCanvas}}]),DrawDomLevel}(),HoHeadFootvue_type_template_id_05ad976a_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",[_("ul",{staticClass:"ho-headfoot-list ho-head-list",style:l.headTop},[_("li",{staticClass:"ho-headfoot-item"},[l._v("页眉")]),_("span",{staticStyle:{flex:"1"}}),l._t("head")],2),_("ul",{staticClass:"ho-headfoot-list ho-head-list",style:l.footerTop},[_("li",{staticClass:"ho-headfoot-item"},[l._v("页脚")]),_("span",{staticStyle:{flex:"1"}}),l._t("foot")],2)])},ut=[],dt=function(l){(0,Y.Z)(HoHeadFoot,l);var u=(0,ee.Z)(HoHeadFoot);function HoHeadFoot(){return(0,q.Z)(this,HoHeadFoot),u.apply(this,arguments)}return(0,$.Z)(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}(k());__decorate([Prop()],dt.prototype,"headerFooterPosition",void 0),__decorate([Prop()],dt.prototype,"isHeadFoot",void 0),dt=__decorate([ae({name:"HoHeadFoot"})],dt);var ht=dt,_t=ht;function normalizeComponent(l,u,_,v,C,k,N,B){var U,W="function"===typeof l?l.options:l;if(u&&(W.render=u,W.staticRenderFns=_,W._compiled=!0),v&&(W.functional=!0),k&&(W._scopeId="data-v-"+k),N?(U=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,l||"undefined"===typeof __VUE_SSR_CONTEXT__||(l=__VUE_SSR_CONTEXT__),C&&C.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(N)},W._ssrRegister=U):C&&(U=B?function(){C.call(this,(W.functional?this.parent:this).$root.$options.shadowRoot)}:C),U)if(W.functional){W._injectStyles=U;var q=W.render;W.render=function renderWithStyleInjection(l,u){return U.call(u),q(l,u)}}else{var $=W.beforeCreate;W.beforeCreate=$?[].concat($,U):[U]}return{exports:l,options:W}}var pt=normalizeComponent(_t,HoHeadFootvue_type_template_id_05ad976a_render,ut,!1,null,null,null),ft=pt.exports,AiModelsvue_type_template_id_50a8bcce_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return l.aiInfo.aiText&&l.aiInfo.pageIndex===l.aiInfo.lastPosition[0]&&l.aiInfo.x===l.aiInfo.lastPosition[1]&&l.aiInfo.y===l.aiInfo.lastPosition[2]?_("div",{staticClass:"ho-ai-model",style:{top:l.aiInfo.y+"px",width:l.scaleWidth+"px",padding:l.paddingPx,paddingTop:(this.aiInfo.height-this.textStyle.size/.75)/2+"px",paddingBottom:(this.aiInfo.height-this.textStyle.size/.75)/2+"px"}},[_("span",{staticClass:"model-placeholder",style:{paddingLeft:l.aiInfo.x-l.leftMarginPxies+2+"px"}}),_("span",{staticClass:"ho-ai-content",style:Object.assign({},l.fontStyle)},[l._v(" "+l._s(l.aiInfo.aiText)+" ")])]):l._e()},gt=[],mt=(__webpack_require__(50915),__webpack_require__(58734),function(l){(0,Y.Z)(AiModel,l);var u=(0,ee.Z)(AiModel);function AiModel(){var l;return(0,q.Z)(this,AiModel),l=u.apply(this,arguments),l.leftMarginPxies=0,l.rightMarginPixes=0,l.paddingPx="",l.fontStyle={},l}return(0,$.Z)(AiModel,[{key:"textStyleChange",value:function textStyleChange(){this.initStyle()}},{key:"mounted",value:function mounted(){this.init()}},{key:"init",value:function init(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);this.initStyle(),this.leftMarginPxies=l.pageProperty.leftMarginPixes,this.rightMarginPixes=l.pageProperty.rightMarginPixes,this.paddingPx="0 ".concat(this.rightMarginPixes,"px 0 ").concat(this.leftMarginPxies,"px")}},{key:"initStyle",value:function initStyle(){this.fontStyle={"font-family":this.textStyle.font,"font-size":this.textStyle.size/.75+"px","font-weight":this.textStyle.bold?"bold":"normal","font-style":(this.textStyle.italic,"normal"),"text-decoration":this.textStyle.underline?"underline":"normal",color:"#000","padding-top":(this.aiInfo.height-this.textStyle.size/.75)/2+"px","padding-bottom":(this.aiInfo.height-this.textStyle.size/.75)/2+"px","background-color":"#c4c6c9"}}}]),AiModel}(k()));__decorate([Prop()],mt.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],mt.prototype,"aiInfo",void 0),__decorate([Prop()],mt.prototype,"scaleWidth",void 0),__decorate([Prop()],mt.prototype,"textStyle",void 0),__decorate([Watch("textStyle",{deep:!0})],mt.prototype,"textStyleChange",null),mt=__decorate([ae({name:"AiModels"})],mt);var vt=mt,yt=vt,bt=normalizeComponent(yt,AiModelsvue_type_template_id_50a8bcce_render,gt,!1,null,null,null),wt=bt.exports,xt=wt,Pt=function(l){(0,Y.Z)(HoPage,l);var u=(0,ee.Z)(HoPage);function HoPage(){var l;return(0,q.Z)(this,HoPage),l=u.apply(this,arguments),l.isHeadFoot="",l}return(0,$.Z)(HoPage,[{key:"pageClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-container edit-container-margin":"edit-container"}},{key:"scaleHeight",get:function get(){return this.canvasHeight}},{key:"scaleWidth",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(l){-1===l.indexOf(this.index)?this.selectcanvas.removeEventListener("dblclick",this.addEventerDblClick,!0):this.selectcanvas.addEventListener("dblclick",this.addEventerDblClick,!0)}},{key:"mounted",value:function mounted(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId),_=new ct(this.hoEditorId,this.index,this.domcanvas),v=new st(this.hoEditorId,this.index,this.selectcanvas,this.docIndex,this.index),C=u.drawTree.drawPages[this.index];C.init(_,v),this.$emit("pageReady",C),this.$nextTick((function(){var u;return null===(u=l.viewableAreaObserver)||void 0===u?void 0:u.observe(l.hoPage)}))}},{key:"addEventerDblClick",value:function addEventerDblClick(){var l=rt.b.instance().getFactory(this.hoEditorId).vueController.getCaretPosition(),u="";l&&(u=l.split("/")[0]),this.isHeadFoot=u}},{key:"canvasRightClick",value:function canvasRightClick(l){this.$emit("canvasRightClick",l)}},{key:"canvasKeydown",value:function canvasKeydown(l){this.$emit("canvasKeydown",l)}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=this.viewableAreaObserver)||void 0===l||l.unobserve(this.hoPage)}}]),HoPage}(k());__decorate([Prop()],Pt.prototype,"aiInfo",void 0),__decorate([Prop()],Pt.prototype,"canvasWidth",void 0),__decorate([Prop()],Pt.prototype,"canvasHeight",void 0),__decorate([Prop()],Pt.prototype,"index",void 0),__decorate([Prop()],Pt.prototype,"hoEditorId",void 0),__decorate([Prop()],Pt.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],Pt.prototype,"docIndex",void 0),__decorate([Prop()],Pt.prototype,"currentActivePages",void 0),__decorate([Prop()],Pt.prototype,"mouseMoveNodes",void 0),__decorate([Prop()],Pt.prototype,"viewableAreaObserver",void 0),__decorate([Prop()],Pt.prototype,"inViewPages",void 0),__decorate([Prop()],Pt.prototype,"canvasHeadFootPos",void 0),__decorate([Prop()],Pt.prototype,"poperTipPos",void 0),__decorate([Prop()],Pt.prototype,"textStyle",void 0),__decorate([Ref()],Pt.prototype,"hoPage",void 0),__decorate([Ref()],Pt.prototype,"domcanvas",void 0),__decorate([Ref()],Pt.prototype,"selectcanvas",void 0),__decorate([Watch("inViewPages")],Pt.prototype,"inViewPagesChange",null),Pt=__decorate([ae({name:"HoPage",components:{HoHeadFoot:ft,AiModel:xt}})],Pt);var Ct=Pt,Et=Ct,St=normalizeComponent(Et,_e,pe,!1,null,"6ddb2d23",null),Tt=St.exports,HoToPagevue_type_template_id_2e02cb8f_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return l.visible?_("div",{staticClass:"ho-to-page",style:{right:l.styleRight,bottom:l.styleBottom},on:{click:function(u){return u.stopPropagation(),l.handleClick.apply(null,arguments)}}},[l._t("default",(function(){return[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}}),_("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):l._e()},Dt=[],kt={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(l){return 0===l})).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 l,u=rt.b.instance().getFactory(this.hoEditorId),_=u.domController.getPageProperty(),v=_.heightPixes+10,C=1;null===(l=this.container)||void 0===l||l.scrollTo({top:v*(C-1),left:0,behavior:"smooth"})},init:function init(){this.container=document.querySelector(this.target)},initScrollPolyfill:function initScrollPolyfill(){window.scrollTo||(window.scrollTo=function(l,u){window.pageXOffset=l,window.pageYOffset=u}),window.scrollBy||(window.scrollBy=function(l,u){window.pageXOffset+=l,window.pageYOffset+=u}),document.body.scrollTo||(Element.prototype.scrollTo=function(l,u){this.scrollLeft=l,this.scrollTop=u}),document.body.scrollBy||(Element.prototype.scrollBy=function(l,u){this.scrollLeft+=l,this.scrollTop+=u})}}},It=kt,Mt=normalizeComponent(It,HoToPagevue_type_template_id_2e02cb8f_render,Dt,!1,null,null,null),Nt=Mt.exports,Ot=Nt,Lt=__webpack_require__(31079),PoperSelectvue_type_template_id_f3c168f0_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_("div",{staticStyle:{height:"0",overflow:"hidden"}},[_("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("defs",[_("g",{attrs:{id:"selected"}},[_("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"}})])])])]),l.isCanSearch&&!l.mutexSelect?_("div",{staticStyle:{padding:"5px"}},[_("el-input",{attrs:{placeholder:l.currentListNameText+"搜索",size:"mini"},on:{input:l.searchList},model:{value:l.input,callback:function(u){l.input=u},expression:"input"}})],1):l._e(),"selectPoper"===l.poperType&&l.currentList.length>=0?_("div",{staticClass:"select-poper"},[_("div",{staticClass:"list-box"},[0==l.currentList.length?_("ul",{staticClass:"list"},[_("li",{staticStyle:{"text-align":"center"}},[l._v("无选项")])]):l._e(),l.isAllowMultiSelect&&!l.mutexSelect&&l.currentList.length>0?_("el-checkbox-group",{on:{change:l.selectItemsChange},model:{value:l.selectedIds,callback:function(u){l.selectedIds=u},expression:"selectedIds"}},[_("RecycleScroller",{staticClass:"scroller",attrs:{items:l.currentList,"item-size":32,"key-field":"id"},scopedSlots:l._u([{key:"default",fn:function(u){var v=u.item;return[v.title?_("p",{staticClass:"poper-select-title"},[l._v(l._s(v.text))]):l._e(),v.title?l._e():_("el-checkbox",{key:v.id+Math.random(),attrs:{label:v.id}},[l._v(" "+l._s(v.text&&-1!==v.text.indexOf("<元素>")?v.text.split("<元素>")[0]:v.text.split("<搜索>")[0])+" ")])]}}],null,!1,4143456003)})],1):l._e(),l.isAllowMultiSelect&&l.mutexSelect&&l.currentList.length>0?[_("el-checkbox-group",{on:{change:l.mutexSelectItemsChange},model:{value:l.mutexSelectedIds,callback:function(u){l.mutexSelectedIds=u},expression:"mutexSelectedIds"}},[l._l(l.currentList,(function(u,v){return[v>=1&&u.type!=l.currentList[v-1].type?_("p",{key:v+Math.random(),staticClass:"el-checkbox-mutex-line"}):l._e(),_("el-checkbox",{key:u.id+Math.random(),attrs:{label:u.id,disabled:""!==l.mutexType&&l.mutexType!=u.type}},[l._v(" "+l._s(u.text&&-1!==u.text.indexOf("<元素>")?u.text.split("<元素>")[0]:u.text.split("<搜索>")[0])+" ")])]}))],2)]:l._e(),!l.isAllowMultiSelect&&l.currentList.length>0?_("el-radio-group",{model:{value:l.selectedId,callback:function(u){l.selectedId=u},expression:"selectedId"}},l._l(l.currentList,(function(u){return _("el-radio",{key:u.id+Math.random(),attrs:{label:u.id},nativeOn:{"~click":function(_){return l.selectItemsChange(u)}}},[l._v(" "+l._s(u.text&&-1!==u.text.indexOf("<元素>")?u.text.split("<元素>")[0]:u.text.split("<搜索>")[0])+" ")])})),1):l._e(),l.selectedList.length>0&&l.isAllowMultiSelect&&!l.mutexSelect&&l.isCanSearch?_("transition-group",{staticClass:"list",attrs:{name:"drag",tag:"ul"}},[_("li",{key:"已选择",staticStyle:{position:"absolute",top:"0px","z-index":"111",background:"#fff"}},[l._v("已选择"+l._s(l.currentListNameText))]),l._l(l.selectedList,(function(u,v){return[_("li",{key:u.id+Math.random(),staticClass:"drag-item selected",attrs:{draggable:""},on:{dragenter:function(u){return l.dragenter(u,v)},dragover:function(u){return l.dragover(u,v)},dragstart:function(u){return l.dragstart(v)}}},[_("span",[l._v(l._s(u.text&&-1!==u.text.indexOf("<元素>")?u.text.split("<元素>")[0]:u.text.split("<搜索>")[0]))]),_("i",{staticClass:"el-icon-delete",on:{click:function(_){return l.deleteItems(u,v)}}})])]}))],2):l._e()],2)]):l._e(),"selectPoper"!==l.poperType||l.isAllowMultiSelect?l._e():_("footer",[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("关闭")])],1),"selectPoper"===l.poperType&&l.isAllowMultiSelect?_("footer",[l.mutexSelect?l._e():_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.allSelect}},[l._v("全选")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureSelect}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.cancelSelect}},[l._v("清空")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1):l._e(),"datePoper"===l.poperType?_("div",{staticClass:"date-poper"},[l.dateTimeStyle.includes("dd")?_("DatePanel",{attrs:{value:l.date},on:{getValue:l.getTime}}):l._e(),l.dateTimeStyle.includes("MM")&&!l.dateTimeStyle.includes("dd")?_("DatePanel",{attrs:{dateType:"month",value:l.date},on:{getValue:l.getTime}}):l._e(),l.dateTimeStyle.includes("yyyy")&&!l.dateTimeStyle.includes("MM")?_("DatePanel",{attrs:{dateType:"year",value:l.date},on:{getValue:l.getTime}}):l._e(),l.dateTimeStyle.includes("HH")?_("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[_("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:l.timeStyle,"value-format":l.timeStyle,size:"mini"},model:{value:l.time,callback:function(u){l.time=u},expression:"time"}})],1):l._e(),_("footer",[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureDate}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.currentDateTime}},[l._v("此刻")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1)],1):l._e()])},At=[],Rt=(__webpack_require__(19601),__webpack_require__(21249),__webpack_require__(83175)),Ft=__webpack_require__(89470),jt=function(l){(0,Y.Z)(AppendToBodyMixins,l);var u=(0,ee.Z)(AppendToBodyMixins);function AppendToBodyMixins(){return(0,q.Z)(this,AppendToBodyMixins),u.apply(this,arguments)}return(0,$.Z)(AppendToBodyMixins,[{key:"mounted",value:function mounted(){var l=this;this.$nextTick((function(){var u=document.querySelector("body");u.append?u.append(l.$el):u.appendChild(l.$el)}))}}]),AppendToBodyMixins}(k());jt=__decorate([ae],jt);var Bt=__webpack_require__(84257),Ut={dataSourceEnabled:!0,dataSource:"",format:"",visitPath:"",isReadOnly:!1,autoUpdate:!1,executeStatus:0},Ht={inputFieldType:0,id:"",innerCode:"",labelText:"",text:"",name:"",tipText:"",readOnlyStatus:Bt.mK["false"],fixedWidth:0,canModifyContent:!0,isAllowDelete:!1,enableGlobalColor:!1,defaultValue:"",downListProperty:new Bt.OL,dataVerifyFormat:new Bt.wz,bandDataSource:Ut,customProperty:new Object,alignWithBlocked:!1,innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,keyValue:""},DatePanelvue_type_template_id_c837dd86_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"component-date",class:l.customClass},[_("div",{staticClass:"my-vue-date2 "},[_("div",{staticClass:"date-header"},[_("i",{staticClass:"el-icon-d-arrow-left last",on:{click:l.last}}),_("p",[_("span",{directives:[{name:"show",rawName:"v-show",value:"year"===l.type,expression:"type === 'year'"}]},[l._v(l._s(l.yearTitle)+" 年")]),_("span",{directives:[{name:"show",rawName:"v-show",value:"year"!==l.type,expression:"type !== 'year'"}],on:{click:l.showYear}},[l._v(l._s(l.year)+" 年")]),_("span",{directives:[{name:"show",rawName:"v-show",value:"date"===l.type,expression:"type === 'date'"}],on:{click:l.showMonth}},[l._v(l._s(l.month)+" 月")])]),_("i",{staticClass:"el-icon-d-arrow-right next",on:{click:l.next}})]),_("ul",{directives:[{name:"show",rawName:"v-show",value:"year"===l.type,expression:"type === 'year'"}],staticClass:"years"},l._l(l.yearList,(function(u){return _("li",{key:u+Math.random(0,1),class:l.nowYear==u?"active":"",on:{click:function(_){return _.stopPropagation(),l.getYear(u)}}},[l._v(l._s(u))])})),0),_("ul",{directives:[{name:"show",rawName:"v-show",value:"month"===l.type,expression:"type === 'month'"}],staticClass:"years "},l._l(12,(function(u){return _("li",{key:u,class:l.month==u?"active":"",on:{click:function(_){return _.stopPropagation(),l.getMonth(u)}}},[l._v(l._s(u)+"月")])})),0),_("table",{directives:[{name:"show",rawName:"v-show",value:"date"===l.type&&"date"===l.dateType,expression:"type === 'date' && dateType === 'date'"}],attrs:{colspan:"0",rowspan:"0"}},[l._m(0),l._l(l.rows,(function(u,v){return _("tr",{key:v},l._l(u,(function(u,v){return _("td",{key:v,class:u.date==l.nowDate?"today":""},[_("span",{staticClass:"date-item",class:{grey:"last"==u.month||"next"==u.month,active:u.date===l.date},attrs:{title:u.date},on:{dblclick:function(_){return l.getDate(u,_,"dblclick")},click:function(_){return l.getDate(u,_)}}},[l._v(l._s(u.text))])])})),0)}))],2)])])},Wt=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("tr",[_("th",[l._v("日")]),_("th",[l._v("一")]),_("th",[l._v("二")]),_("th",[l._v("三")]),_("th",[l._v("四")]),_("th",[l._v("五")]),_("th",[l._v("六")])])}],qt={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(l){this.init()}},mounted:function mounted(){this.type=this.dateType,this.yearList=[],this.init()},methods:{init:function init(){var l=this.value.replace(/[^\d]/g,"/"),u=l?new Date(l):new Date;this.year=u.getFullYear(),this.month=u.getMonth()+1,this.dateText=u.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+u.getDate());for(var _=0;_<12;_++)this.yearList.push(this.year+_);this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows()},showYear:function showYear(){this.type="year"},getYear:function getYear(l){"year"===this.type&&(this.nowYear=l,this.year=l,this.yearDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},showMonth:function showMonth(){this.type="month"},getMonth:function getMonth(l){"month"===this.type&&(this.month=l,this.monthDialog=!1,this.startDay=new Date(this.year+"/"+this.month+"/01").getDay(),this.getRows())},getDateLength:function getDateLength(l){return 1==l||3==l||5==l||7==l||8==l||10==l||12==l?31:2==l?this.year%4===0&&this.year%100!==0||this.year%400===0?29:28:30},getRows:function getRows(){var l,u=[],_=0,v=this.month-1==0?12:this.month-1,C=this.getDateLength(v);if(0!=this.startDay)for(var k=this.startDay;k>0;k--){var N={};N.text=C-k+1,N.month="last",l=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(C-k+1):this.year-1+this.separator+"12"+this.separator+(C-k+1),N.date=this.format(l),u.push(N)}else for(var B=7;B>0;B--){var U={};U.text=C-B+1,U.month="last",l=this.month>1?this.year+this.separator+(this.month-1)+this.separator+(C-B+1):this.year-1+this.separator+"12"+this.separator+(C-B+1),U.date=this.format(l),u.push(U)}for(var W=0;W<this.getDateLength(this.month);W++){var q={};q.text=W+1,q.month="now",q.date=this.format(this.year+this.separator+this.month+this.separator+(W+1)),u.push(q)}for(var $=this.startDay+this.getDateLength(this.month);$<42;$++){var Y={};_+=1,Y.text=_,Y.month="next",l=this.month<12?this.year+this.separator+(this.month+1)+this.separator+_:this.year+1+this.separator+1+this.separator+_,Y.date=this.format(l),u.push(Y)}for(var ee=[],re=0;re<42;re+=7)ee.push(u.splice(0,7));this.rows=ee,"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 l=0;l<12;l++)this.yearList.push(this.year+l)}else"month"===this.type&&(this.year-=1)},hasChoosed:function hasChoosed(l){if(l===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 l=0;l<12;l++)this.yearList.push(this.year+l)}else"month"===this.type&&(this.year+=1)},getDate:function getDate(l,u,_){this.type,this.date=l.date,this.dateText=l.text,this.$emit("getValue",{value:l.date,type:_})},getWeek:function getWeek(l){if("week"===this.type){this.weekIndex=this.rows[l][3].date;this.rows[l][0].date,this.rows[l][6].date;var u=this.getWeekNumber(new Date(this.rows[l][3].date)),_=new Date(this.rows[l][3].date).getMonth(),v=new Date(this.rows[l][3].date);1===u&&11===_&&(v.setHours(0,0,0,0),v.setDate(v.getDate()+3-(v.getDay()+6)%7));var C=v.getFullYear(),k="".concat(C," 第 ").concat(u>9?u:"0"+u," 周"),N={text:k,date:this.rows[l][3].date,range:[this.rows[l][0].date,this.rows[l][6].date]};this.$emit("getValue",N)}},getWeekNumber:function getWeekNumber(l){var u=new Date(l.getTime());u.setHours(0,0,0,0),u.setDate(u.getDate()+3-(u.getDay()+6)%7);var _=new Date(u.getFullYear(),0,4);return 1+Math.round(((u.getTime()-_.getTime())/864e5-3+(_.getDay()+6)%7)/7)},format:function format(l){var u=l.split(this.separator);return u[1]=u[1]>9?u[1]:"0"+u[1],u[2]=u[2]>9?u[2]:"0"+u[2],u.join(this.separator)}}},zt=qt,Vt=normalizeComponent(zt,DatePanelvue_type_template_id_c837dd86_render,Wt,!1,null,null,null),Kt=Vt.exports,$t=__webpack_require__(62483),Gt=__webpack_require__(82383);function getInternetExplorerVersion(){var l=window.navigator.userAgent,u=l.indexOf("MSIE ");if(u>0)return parseInt(l.substring(u+5,l.indexOf(".",u)),10);var _=l.indexOf("Trident/");if(_>0){var v=l.indexOf("rv:");return parseInt(l.substring(v+3,l.indexOf(".",v)),10)}var C=l.indexOf("Edge/");return C>0?parseInt(l.substring(C+5,l.indexOf(".",C)),10):-1}var Zt=void 0;function initCompat(){initCompat.init||(initCompat.init=!0,Zt=-1!==getInternetExplorerVersion())}var Jt={render:function render(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function compareAndNotify(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Zt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function mounted(){var l=this;initCompat(),this.$nextTick((function(){l._w=l.$el.offsetWidth,l._h=l.$el.offsetHeight}));var u=document.createElement("object");this._resizeObject=u,u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex",-1),u.onload=this.addResizeHandlers,u.type="text/html",Zt&&this.$el.appendChild(u),u.data="about:blank",Zt||this.$el.appendChild(u)},beforeDestroy:function beforeDestroy(){this.removeResizeHandlers()}};function install(l){l.component("resize-observer",Jt),l.component("ResizeObserver",Jt)}var Xt={version:"0.4.5",install:install},Yt=null;"undefined"!==typeof window?Yt=window.Vue:"undefined"!==typeof __webpack_require__.g&&(Yt=__webpack_require__.g.Vue),Yt&&Yt.use(Xt);function vue_observe_visibility_esm_typeof(l){return vue_observe_visibility_esm_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},vue_observe_visibility_esm_typeof(l)}function _classCallCheck(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function _defineProperties(l,u){for(var _=0;_<u.length;_++){var v=u[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(l,v.key,v)}}function _createClass(l,u,_){return u&&_defineProperties(l.prototype,u),_&&_defineProperties(l,_),l}function vue_observe_visibility_esm_toConsumableArray(l){return vue_observe_visibility_esm_arrayWithoutHoles(l)||vue_observe_visibility_esm_iterableToArray(l)||vue_observe_visibility_esm_nonIterableSpread()}function vue_observe_visibility_esm_arrayWithoutHoles(l){if(Array.isArray(l)){for(var u=0,_=new Array(l.length);u<l.length;u++)_[u]=l[u];return _}}function vue_observe_visibility_esm_iterableToArray(l){if(Symbol.iterator in Object(l)||"[object Arguments]"===Object.prototype.toString.call(l))return Array.from(l)}function vue_observe_visibility_esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function processOptions(l){var u;return u="function"===typeof l?{callback:l}:l,u}function throttle(l,u){var _,v,C,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},N=function throttled(N){for(var B=arguments.length,U=new Array(B>1?B-1:0),W=1;W<B;W++)U[W-1]=arguments[W];if(C=U,!_||N!==v){var q=k.leading;"function"===typeof q&&(q=q(N,v)),_&&N===v||!q||l.apply(void 0,[N].concat(vue_observe_visibility_esm_toConsumableArray(C))),v=N,clearTimeout(_),_=setTimeout((function(){l.apply(void 0,[N].concat(vue_observe_visibility_esm_toConsumableArray(C))),_=0}),u)}};return N._clear=function(){clearTimeout(_),_=null},N}function deepEqual(l,u){if(l===u)return!0;if("object"===vue_observe_visibility_esm_typeof(l)){for(var _ in l)if(!deepEqual(l[_],u[_]))return!1;return!0}return!1}var Qt=function(){function VisibilityState(l,u,_){_classCallCheck(this,VisibilityState),this.el=l,this.observer=null,this.frozen=!1,this.createObserver(u,_)}return _createClass(VisibilityState,[{key:"createObserver",value:function createObserver(l,u){var _=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=processOptions(l),this.callback=function(l,u){_.options.callback(l,u),l&&_.options.once&&(_.frozen=!0,_.destroyObserver())},this.callback&&this.options.throttle){var v=this.options.throttleOptions||{},C=v.leading;this.callback=throttle(this.callback,this.options.throttle,{leading:function leading(l){return"both"===C||"visible"===C&&l||"hidden"===C&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(l){var u=l[0];if(l.length>1){var v=l.find((function(l){return l.isIntersecting}));v&&(u=v)}if(_.callback){var C=u.isIntersecting&&u.intersectionRatio>=_.threshold;if(C===_.oldResult)return;_.oldResult=C,_.callback(C,u)}}),this.options.intersection),u.context.$nextTick((function(){_.observer&&_.observer.observe(_.el)}))}}},{key:"destroyObserver",value:function destroyObserver(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function get(){return this.options.intersection&&this.options.intersection.threshold||0}}]),VisibilityState}();function bind(l,u,_){var v=u.value;if(v)if("undefined"===typeof IntersectionObserver)console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var C=new Qt(l,v,_);l._vue_visibilityState=C}}function update(l,u,_){var v=u.value,C=u.oldValue;if(!deepEqual(v,C)){var k=l._vue_visibilityState;v?k?k.createObserver(v,_):bind(l,{value:v},_):unbind(l)}}function unbind(l){var u=l._vue_visibilityState;u&&(u.destroyObserver(),delete l._vue_visibilityState)}var er={bind:bind,update:update,unbind:unbind};function vue_observe_visibility_esm_install(l){l.directive("observe-visibility",er)}var tr={version:"0.4.6",install:vue_observe_visibility_esm_install},rr=null;"undefined"!==typeof window?rr=window.Vue:"undefined"!==typeof __webpack_require__.g&&(rr=__webpack_require__.g.Vue),rr&&rr.use(tr);var nr=__webpack_require__(27274),ir=__webpack_require__.n(nr),or={itemsLimit:1e3};function vue_virtual_scroller_esm_typeof(l){return vue_virtual_scroller_esm_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"===typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},vue_virtual_scroller_esm_typeof(l)}function vue_virtual_scroller_esm_defineProperty(l,u,_){return u in l?Object.defineProperty(l,u,{value:_,enumerable:!0,configurable:!0,writable:!0}):l[u]=_,l}function vue_virtual_scroller_esm_ownKeys(l,u){var _=Object.keys(l);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);u&&(v=v.filter((function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),_.push.apply(_,v)}return _}function vue_virtual_scroller_esm_objectSpread2(l){for(var u=1;u<arguments.length;u++){var _=null!=arguments[u]?arguments[u]:{};u%2?vue_virtual_scroller_esm_ownKeys(Object(_),!0).forEach((function(u){vue_virtual_scroller_esm_defineProperty(l,u,_[u])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(_)):vue_virtual_scroller_esm_ownKeys(Object(_)).forEach((function(u){Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(_,u))}))}return l}function _unsupportedIterableToArray(l,u){if(l){if("string"===typeof l)return _arrayLikeToArray(l,u);var _=Object.prototype.toString.call(l).slice(8,-1);return"Object"===_&&l.constructor&&(_=l.constructor.name),"Map"===_||"Set"===_?Array.from(_):"Arguments"===_||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?_arrayLikeToArray(l,u):void 0}}function _arrayLikeToArray(l,u){(null==u||u>l.length)&&(u=l.length);for(var _=0,v=new Array(u);_<u;_++)v[_]=l[_];return v}function _createForOfIteratorHelper(l){if("undefined"===typeof Symbol||null==l[Symbol.iterator]){if(Array.isArray(l)||(l=_unsupportedIterableToArray(l))){var u=0,F=function(){};return{s:F,n:function(){return u>=l.length?{done:!0}:{done:!1,value:l[u++]}},e:function(l){throw l},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,v,C=!0,k=!1;return{s:function(){_=l[Symbol.iterator]()},n:function(){var l=_.next();return C=l.done,l},e:function(l){k=!0,v=l},f:function(){try{C||null==_.return||_.return()}finally{if(k)throw v}}}}var ar={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function validator(l){return["vertical","horizontal"].includes(l)}}};function simpleArray(){return this.items.length&&"object"!==vue_virtual_scroller_esm_typeof(this.items[0])}var sr=!1;if("undefined"!==typeof window){sr=!1;try{var lr=Object.defineProperty({},"passive",{get:function get(){sr=!0}});window.addEventListener("test",null,lr)}catch($f){}}var cr=0,ur={name:"RecycleScroller",components:{ResizeObserver:Jt},directives:{ObserveVisibility:er},props:vue_virtual_scroller_esm_objectSpread2({},ar,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),data:function data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function sizes(){if(null===this.itemSize){for(var l,sizes={"-1":{accumulator:0}},u=this.items,_=this.sizeField,v=this.minItemSize,C=1e4,k=0,N=0,B=u.length;N<B;N++)l=u[N][_]||v,l<C&&(C=l),k+=l,sizes[N]={accumulator:k,size:l};return this.$_computedMinItemSize=C,sizes}return[]},simpleArray:simpleArray},watch:{items:function items(){this.updateVisibleItems(!0)},pageMode:function pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function handler(){this.updateVisibleItems(!1)},deep:!0}},created:function created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function mounted(){var l=this;this.applyPageMode(),this.$nextTick((function(){l.$_prerender=!1,l.updateVisibleItems(!0),l.ready=!0}))},beforeDestroy:function beforeDestroy(){this.removeListeners()},methods:{addView:function addView(l,u,_,v,C){var k={item:_,position:0},N={id:cr++,index:u,used:!0,key:v,type:C};return Object.defineProperty(k,"nr",{configurable:!1,value:N}),l.push(k),k},unuseView:function unuseView(l){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_=this.$_unusedViews,v=l.nr.type,C=_.get(v);C||(C=[],_.set(v,C)),C.push(l),u||(l.nr.used=!1,l.position=-9999,this.$_views.delete(l.nr.key))},handleResize:function handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function handleScroll(l){var u=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame((function(){u.$_scrollDirty=!1;var l=u.updateVisibleItems(!1,!0),_=l.continuous;_||(clearTimeout(u.$_refreshTimout),u.$_refreshTimout=setTimeout(u.handleScroll,100))})))},handleVisibilityChange:function handleVisibilityChange(l,u){var _=this;this.ready&&(l||0!==u.boundingClientRect.width||0!==u.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame((function(){_.updateVisibleItems(!1)}))):this.$emit("hidden"))},updateVisibleItems:function updateVisibleItems(l){var u,_,v,C,k=arguments.length>1&&void 0!==arguments[1]&&arguments[1],N=this.itemSize,B=this.$_computedMinItemSize,U=this.typeField,W=this.simpleArray?null:this.keyField,q=this.items,$=q.length,Y=this.sizes,ee=this.$_views,re=this.$_unusedViews,ne=this.pool;if($)if(this.$_prerender)u=0,_=this.prerender,v=null;else{var ie=this.getScroll();if(k){var oe=ie.start-this.$_lastUpdateScrollPosition;if(oe<0&&(oe=-oe),null===N&&oe<B||oe<N)return{continuous:!0}}this.$_lastUpdateScrollPosition=ie.start;var ae=this.buffer;if(ie.start-=ae,ie.end+=ae,null===N){var le,ce,de=0,he=$-1,_e=~~($/2);do{ce=_e,le=Y[_e].accumulator,le<ie.start?de=_e:_e<$-1&&Y[_e+1].accumulator>ie.start&&(he=_e),_e=~~((de+he)/2)}while(_e!==ce);for(_e<0&&(_e=0),u=_e,v=Y[$-1].accumulator,_=_e;_<$&&Y[_].accumulator<ie.end;_++);-1===_?_=q.length-1:(_++,_>$&&(_=$))}else u=~~(ie.start/N),_=Math.ceil(ie.end/N),u<0&&(u=0),_>$&&(_=$),v=$*N}else u=_=v=0;_-u>or.itemsLimit&&this.itemsLimitError(),this.totalSize=v;var pe=u<=this.$_endIndex&&_>=this.$_startIndex;if(this.$_continuous!==pe){if(pe){ee.clear(),re.clear();for(var fe=0,me=ne.length;fe<me;fe++)C=ne[fe],this.unuseView(C)}this.$_continuous=pe}else if(pe)for(var be=0,Ee=ne.length;be<Ee;be++)C=ne[be],C.nr.used&&(l&&(C.nr.index=q.findIndex((function(l){return W?l[W]===C.item[W]:l===C.item}))),(-1===C.nr.index||C.nr.index<u||C.nr.index>=_)&&this.unuseView(C));for(var ke,Ie,Ne,Fe,He=pe?null:new Map,qe=u;qe<_;qe++){ke=q[qe];var Ke=W?ke[W]:ke;if(null==Ke)throw new Error("Key is ".concat(Ke," on item (keyField is '").concat(W,"')"));C=ee.get(Ke),N||Y[qe].size?(C?(C.nr.used=!0,C.item=ke):(Ie=ke[U],Ne=re.get(Ie),pe?Ne&&Ne.length?(C=Ne.pop(),C.item=ke,C.nr.used=!0,C.nr.index=qe,C.nr.key=Ke,C.nr.type=Ie):C=this.addView(ne,qe,ke,Ke,Ie):(Fe=He.get(Ie)||0,(!Ne||Fe>=Ne.length)&&(C=this.addView(ne,qe,ke,Ke,Ie),this.unuseView(C,!0),Ne=re.get(Ie)),C=Ne[Fe],C.item=ke,C.nr.used=!0,C.nr.index=qe,C.nr.key=Ke,C.nr.type=Ie,He.set(Ie,Fe+1),Fe++),ee.set(Ke,C)),C.position=null===N?Y[qe-1].accumulator:qe*N):C&&this.unuseView(C)}return this.$_startIndex=u,this.$_endIndex=_,this.emitUpdate&&this.$emit("update",u,_),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:pe}},getListenerTarget:function getListenerTarget(){var l=ir()(this.$el);return!window.document||l!==window.document.documentElement&&l!==window.document.body||(l=window),l},getScroll:function getScroll(){var l,u=this.$el,_=this.direction,v="vertical"===_;if(this.pageMode){var C=u.getBoundingClientRect(),k=v?C.height:C.width,N=-(v?C.top:C.left),B=v?window.innerHeight:window.innerWidth;N<0&&(B+=N,N=0),N+B>k&&(B=k-N),l={start:N,end:N+B}}else l=v?{start:u.scrollTop,end:u.scrollTop+u.clientHeight}:{start:u.scrollLeft,end:u.scrollLeft+u.clientWidth};return l},applyPageMode:function applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!sr&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function scrollToItem(l){var u;u=null===this.itemSize?l>0?this.sizes[l-1].accumulator:0:l*this.itemSize,this.scrollToPosition(u)},scrollToPosition:function scrollToPosition(l){"vertical"===this.direction?this.$el.scrollTop=l:this.$el.scrollLeft=l},itemsLimitError:function itemsLimitError(){var l=this;throw setTimeout((function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",l.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")})),new Error("Rendered items limit reached")},sortViews:function sortViews(){this.pool.sort((function(l,u){return l.nr.index-u.nr.index}))}}};function vue_virtual_scroller_esm_normalizeComponent(l,u,_,v,C,k,N,B,U,W){"boolean"!==typeof N&&(U=B,B=N,N=!1);const q="function"===typeof _?_.options:_;let $;if(l&&l.render&&(q.render=l.render,q.staticRenderFns=l.staticRenderFns,q._compiled=!0,C&&(q.functional=!0)),v&&(q._scopeId=v),k?($=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,l||"undefined"===typeof __VUE_SSR_CONTEXT__||(l=__VUE_SSR_CONTEXT__),u&&u.call(this,U(l)),l&&l._registeredComponents&&l._registeredComponents.add(k)},q._ssrRegister=$):u&&($=N?function(l){u.call(this,W(l,this.$root.$options.shadowRoot))}:function(l){u.call(this,B(l))}),$)if(q.functional){const l=q.render;q.render=function renderWithStyleInjection(u,_){return $.call(_),l(u,_)}}else{const l=q.beforeCreate;q.beforeCreate=l?[].concat(l,$):[$]}return _}const dr=ur;var __vue_render__=function(){var l,u,_=this,v=_.$createElement,C=_._self._c||v;return C("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:_.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(l={ready:_.ready,"page-mode":_.pageMode},l["direction-"+_.direction]=!0,l),on:{"&scroll":function(l){return _.handleScroll(l)}}},[_.$slots.before?C("div",{staticClass:"vue-recycle-scroller__slot"},[_._t("before")],2):_._e(),_._v(" "),C("div",{ref:"wrapper",staticClass:"vue-recycle-scroller__item-wrapper",style:(u={},u["vertical"===_.direction?"minHeight":"minWidth"]=_.totalSize+"px",u)},_._l(_.pool,(function(l){return C("div",{key:l.nr.id,staticClass:"vue-recycle-scroller__item-view",class:{hover:_.hoverKey===l.nr.key},style:_.ready?{transform:"translate"+("vertical"===_.direction?"Y":"X")+"("+l.position+"px)"}:null,on:{mouseenter:function(u){_.hoverKey=l.nr.key},mouseleave:function(l){_.hoverKey=null}}},[_._t("default",null,{item:l.item,index:l.nr.index,active:l.nr.used})],2)})),0),_._v(" "),_.$slots.after?C("div",{staticClass:"vue-recycle-scroller__slot"},[_._t("after")],2):_._e(),_._v(" "),C("ResizeObserver",{on:{notify:_.handleResize}})],1)},hr=[];__vue_render__._withStripped=!0;const _r=void 0,pr=void 0,fr=void 0,gr=!1,mr=vue_virtual_scroller_esm_normalizeComponent({render:__vue_render__,staticRenderFns:hr},_r,dr,pr,gr,fr,!1,void 0,void 0,void 0);var vr={name:"DynamicScroller",components:{RecycleScroller:mr},inheritAttrs:!1,provide:function provide(){return"undefined"!==typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver((function(l){var u,_=_createForOfIteratorHelper(l);try{for(_.s();!(u=_.n()).done;){var v=u.value;if(v.target){var C=new CustomEvent("resize",{detail:{contentRect:v.contentRect}});v.target.dispatchEvent(C)}}}catch(k){_.e(k)}finally{_.f()}}))),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},props:vue_virtual_scroller_esm_objectSpread2({},ar,{minItemSize:{type:[Number,String],required:!0}}),data:function data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:simpleArray,itemsWithSize:function itemsWithSize(){for(var l=[],u=this.items,_=this.keyField,v=this.simpleArray,C=this.vscrollData.sizes,k=0;k<u.length;k++){var N=u[k],B=v?k:N[_],U=C[B];"undefined"!==typeof U||this.$_undefinedMap[B]||(U=0),l.push({item:N,id:B,size:U})}return l},listeners:function listeners(){var listeners={};for(var l in this.$listeners)"resize"!==l&&"visible"!==l&&(listeners[l]=this.$listeners[l]);return listeners}},watch:{items:function items(){this.forceUpdate(!1)},simpleArray:{handler:function handler(l){this.vscrollData.simpleArray=l},immediate:!0},direction:function direction(l){this.forceUpdate(!0)}},created:function created(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated:function activated(){this.vscrollData.active=!0},deactivated:function deactivated(){this.vscrollData.active=!1},methods:{onScrollerResize:function onScrollerResize(){var l=this.$refs.scroller;l&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible:function onScrollerVisible(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate:function forceUpdate(){var l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(l||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem:function scrollToItem(l){var u=this.$refs.scroller;u&&u.scrollToItem(l)},getItemSize:function getItemSize(l){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,_=this.simpleArray?null!=u?u:this.items.indexOf(l):l[this.keyField];return this.vscrollData.sizes[_]||0},scrollToBottom:function scrollToBottom(){var l=this;if(!this.$_scrollingToBottom){this.$_scrollingToBottom=!0;var u=this.$el;this.$nextTick((function(){u.scrollTop=u.scrollHeight+5e3;var _=function cb(){u.scrollTop=u.scrollHeight+5e3,requestAnimationFrame((function(){u.scrollTop=u.scrollHeight+5e3,0===l.$_undefinedSizes?l.$_scrollingToBottom=!1:requestAnimationFrame(cb)}))};requestAnimationFrame(_)}))}}}};const yr=vr;var __vue_render__$1=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("RecycleScroller",l._g(l._b({ref:"scroller",attrs:{items:l.itemsWithSize,"min-item-size":l.minItemSize,direction:l.direction,"key-field":"id"},on:{resize:l.onScrollerResize,visible:l.onScrollerVisible},scopedSlots:l._u([{key:"default",fn:function(u){var _=u.item,v=u.index,C=u.active;return[l._t("default",null,null,{item:_.item,index:v,active:C,itemWithSize:_})]}}],null,!0)},"RecycleScroller",l.$attrs,!1),l.listeners),[l._v(" "),_("template",{slot:"before"},[l._t("before")],2),l._v(" "),_("template",{slot:"after"},[l._t("after")],2)],2)},br=[];__vue_render__$1._withStripped=!0;const wr=void 0,xr=void 0,Pr=void 0,Cr=!1,Er=vue_virtual_scroller_esm_normalizeComponent({render:__vue_render__$1,staticRenderFns:br},wr,yr,xr,Cr,Pr,!1,void 0,void 0,void 0);var Sr={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id:function id(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size:function size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive:function finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id:function id(){this.size||this.onDataUpdate()},finalActive:function finalActive(l){this.size||(l?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?l?this.observeSize():this.unobserveSize():l&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created:function created(){var l=this;if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){var u=function _loop(u){l.$watch((function(){return l.sizeDependencies[u]}),l.onDataUpdate)};for(var _ in this.sizeDependencies)u(_);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted:function mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy:function beforeDestroy(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize:function updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData:function updateWatchData(){var l=this;this.watchData?this.$_watchData=this.$watch("data",(function(){l.onDataUpdate()}),{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate:function onVscrollUpdate(l){var u=l.force;!this.finalActive&&u&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!u&&this.size||this.updateSize()},onDataUpdate:function onDataUpdate(){this.updateSize()},computeSize:function computeSize(l){var u=this;this.$nextTick((function(){if(u.id===l){var _=u.$el.offsetWidth,v=u.$el.offsetHeight;u.applySize(_,v)}u.$_pendingSizeUpdate=null}))},applySize:function applySize(l,u){var _=Math.round("vertical"===this.vscrollParent.direction?u:l);_&&this.size!==_&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,_),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize:function observeSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize:function unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize:function onResize(l){var u=l.detail.contentRect,_=u.width,v=u.height;this.applySize(_,v)}},render:function render(l){return l(this.tag,this.$slots.default)}};const Tr=Sr,Dr=void 0,kr=void 0,Ir=void 0,Mr=void 0,Nr=vue_virtual_scroller_esm_normalizeComponent({},Dr,Tr,kr,Mr,Ir,!1,void 0,void 0,void 0);function registerComponents(l,u){l.component("".concat(u,"recycle-scroller"),mr),l.component("".concat(u,"RecycleScroller"),mr),l.component("".concat(u,"dynamic-scroller"),Er),l.component("".concat(u,"DynamicScroller"),Er),l.component("".concat(u,"dynamic-scroller-item"),Nr),l.component("".concat(u,"DynamicScrollerItem"),Nr)}var Or={version:"1.0.10",install:function install(l,u){var _=Object.assign({},{installComponents:!0,componentsPrefix:""},u);for(var v in _)"undefined"!==typeof _[v]&&(or[v]=_[v]);_.installComponents&&registerComponents(l,_.componentsPrefix)}},Lr=null;"undefined"!==typeof window?Lr=window.Vue:"undefined"!==typeof __webpack_require__.g&&(Lr=__webpack_require__.g.Vue),Lr&&Lr.use(Or);var Ar=__webpack_require__(14519),Rr=function(l){(0,Y.Z)(PoperSelectModal,l);var u=(0,ee.Z)(PoperSelectModal);function PoperSelectModal(){var l;return(0,q.Z)(this,PoperSelectModal),l=u.apply(this,arguments),l.textParam=Object.assign({},Ht),l.isCanSearch=!1,l.mutexSelect=!1,l.input="",l.currentListNameText="",l.currentList=[],l.selectedIds=[],l.mutexSelectedIds=[],l.mutexType="",l.selectedId="",l.selectedList=[],l.posStyle={left:"",right:"",top:"",bottom:""},l.dateFormat=Lt.vc,l.computedPoperPosition=Lt.Nv,l.date="",l.time="",l.dateStyle="",l.timeStyle="",l.dateTimeStyle="",l.dragIndex=0,l.enterIndex=0,l.endPath="",l.poppernIstance=null,l}return(0,$.Z)(PoperSelectModal,[{key:"isAllowMultiSelect",get:function get(){var l=this.getCurrentPoperNode();return l instanceof Ft.yF?l.allowMultiSelect:l instanceof Bt.re&&l.downListProperty.allowMultiSelected}},{key:"selectedListChange",value:function selectedListChange(l,u){(0===l.length&&u.length>0||l.length>0&&0===u.length)&&this.poppernIstance&&this.poppernIstance.update()}},{key:"created",value:function created(){var l,u=this;null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.addEventListener("scroll",this.listenScroller,!0),window.addEventListener("keydown",this.arrowKeysController);var _=rt.b.instance().getFactory(this.hoEditorId);this.endPath=_.docTree.curDomRange.normalize().endPath;var v=this.getCurrentPoperNode();if("datePoper"===this.poperType){var C;if(v instanceof Rt.Z){var k;this.dateTimeStyle=v.controlStyle;var N=null===(k=v.controlStyle)||void 0===k?void 0:k.replace(/\hh/g,"HH");(N.includes("yyyy")||N.includes("MM"))&&N.includes("HH")?(this.dateStyle=N.split(" ")[0]?N.split(" ")[0]:"yyyy/MM/dd",this.timeStyle=N.split(" ")[1]?N.split(" ")[1]:"HH:mm:ss"):((N.includes("yyyy")||N.includes("MM"))&&(this.dateStyle=N),(N.includes("HH")||N.includes("mm"))&&(this.timeStyle=N));var B=v.text.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,"");B&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(B=(0,Lt.vc)(new Date,"yyyy")+"/"+B),B&&":"===B[B.length-1]&&(B=B.substr(0,B.length-1)),B&&((0,Lt.J_)(B)||(0,Lt.J_)("2021/10/08 "+B))?(N.includes("yyyy")||N.includes("MM"))&&(N.includes("HH")||N.includes("mm"))?(this.date=B.split(" ")[0],this.time=B):((N.includes("yyyy")||N.includes("MM"))&&(this.date=B),(N.includes("HH")||N.includes("mm"))&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd ")+B)):(this.date=(0,Lt.vc)(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd "+this.timeStyle)))}this.date=null===(C=this.date)||void 0===C?void 0:C.replace(/[^\d]/g,"/");var W=0;(v.controlStyle.includes("yyyy")||v.controlStyle.includes("MM"))&&(W=300),(v.controlStyle.includes("HH")||v.controlStyle.includes("mm"))&&(W=90),(v.controlStyle.includes("yyyy")||v.controlStyle.includes("MM"))&&(v.controlStyle.includes("HH")||v.controlStyle.includes("mm"))&&(W=350),this.posStyle=this.computedPoperPosition(W,this.poperPos)}else{var q,$=[];v instanceof Ft.yF?($=v.keyValue?v.keyValue.split(","):[],this.mutexSelect=v.mutexSelect):v instanceof Bt.re&&($=v.keyValue?v.keyValue.split(","):[],this.mutexSelect=!!v.downListProperty.mutexSelect),null===(q=this.poperSelectList)||void 0===q||q.forEach((function(l,_){l.id=String(l.id),l.selected=!1,$.length>0&&1===$.filter((function(u){return l.id==u})).length&&(l.selected=!0,u.isAllowMultiSelect&&u.poperSelectList.length>=20&&(u.selectedList[$.indexOf(l.id)]=l),u.mutexType=String(l.type),u.selectedIds.push(l.id),u.mutexSelectedIds.push(l.id),u.selectedId=l.id)})),this.currentListNameText=v.name,this.poperSelectList&&this.poperSelectList.length>=20&&(this.isCanSearch=!0),this.currentList=(0,U.Z)(this.poperSelectList)}}},{key:"mounted",value:function mounted(){var l=this;if(this.poperPos){var u=document.querySelector("#ho_caret");this.poppernIstance=(0,Ar.fi)(u,this.poperSelectedModal,{placement:"auto-end",strategy:"fixed",modifiers:[{name:"preventOverflow",options:{padding:8}}]}),setTimeout((function(){l.poppernIstance&&l.poppernIstance.update()}),0)}}},{key:"arrowKeysController",value:function arrowKeysController(l){}},{key:"getCurrentPoperNode",value:function getCurrentPoperNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorId),v=null===(l=_.vueController.findNodebyPath(this.endPath))||void 0===l?void 0:l.node;if(v instanceof $t.j||v instanceof Bt.re){var C=v.parentNode;u=C instanceof Bt.re?C:v}else if(v instanceof Gt.R){var k=v.parentNode;k instanceof Bt.re&&(u=k)}else(v instanceof Rt.Z||v instanceof Ft.yF)&&(u=v);return u}},{key:"getTime",value:function getTime(l){this.date=l.value,"dblclick"==l.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId),_=this.getCurrentPoperNode(),v=this.dateFormat(new Date,_.controlStyle),C={id:_.id,name:_.name,text:v,title:_.title,tipText:_.tipText,isAllowDelete:_.isAllowDelete,isReadOnly:_.isReadOnly,controlStyle:_.controlStyle};u.vueController.updateDateTime(JSON.stringify(C)),this.$nextTick((function(){return l.handleClose()}))}},{key:"sureDate",value:function sureDate(){var l="";if(this.date){if(l=this.date,this.time){var u=this.time.replace(/年|月|-/g,"/").replace(/时|分/g,":").replace(/秒/g,"");u.includes("/")?l+=" "+u.split(" ")[1]:l+=" "+u}}else l="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);var _=this.getCurrentPoperNode();l=this.dateFormat(l,_.controlStyle);var v={id:_.id,name:_.name,text:l,title:_.title,tipText:_.tipText,isAllowDelete:_.isAllowDelete,isReadOnly:_.isReadOnly,controlStyle:_.controlStyle},C=rt.b.instance().getFactory(this.hoEditorId);C.vueController.updateDateTime(JSON.stringify(v)),this.handleClose()}},{key:"searchList",value:function searchList(l){console.time("搜索时间");var u=[];l?this.poperSelectList.forEach((function(_){-1!==_.text.indexOf(l)&&u.push(_)})):u=(0,U.Z)(this.poperSelectList),this.currentList=(0,U.Z)(u),console.timeEnd("搜索时间")}},{key:"deleteItems",value:function deleteItems(l,u){var _=0;this.poperSelectList.forEach((function(u,v){u.id==l.id&&(_=v)})),l.selected=!1,this.poperSelectList.splice(_,1,l),this.currentList=this.currentList.filter((function(u){return u.id!==l.id})),this.selectedIds=this.selectedIds.filter((function(u){return u!==l.id})),this.selectedList=this.selectedList.filter((function(u){return u.id!==l.id})),this.isCanSearch&&this.searchList(this.input)}},{key:"mutexSelectItemsChange",value:function mutexSelectItemsChange(l){var u=this;l.length>0?(this.poperSelectList.forEach((function(_){l.includes(_.id)?(_.selected=!0,u.mutexType=String(_.type)):_.selected=!1})),this.currentList=(0,U.Z)(this.poperSelectList)):0===l.length&&(this.poperSelectList.forEach((function(l){l.selected=!1,u.mutexType=""})),this.currentList=(0,U.Z)(this.poperSelectList))}},{key:"selectItemsChange",value:function selectItemsChange(l){var u=this;if(this.isAllowMultiSelect)this.poperSelectList.forEach((function(_){l.includes(_.id)?(_.selected=!0,u.isCanSearch&&0==u.selectedList.filter((function(l){return l.id==_.id})).length&&u.selectedList.push(_)):(_.selected=!1,u.isCanSearch&&(u.selectedList=u.selectedList.filter((function(l){return l.id!=_.id}))))})),this.currentList=(0,U.Z)(this.poperSelectList),this.isCanSearch&&this.searchList(this.input);else{var _={},v=0;this.poperSelectList.forEach((function(u,C){u.selected=!1,u.id==l.id&&(_=u,v=C)})),_.selected=!_.selected,this.poperSelectList.splice(v,1,_),this.currentList=(0,U.Z)(this.poperSelectList),this.sureSelect()}}},{key:"selectItems",value:function selectItems(l,u){var _=this;this.isAllowMultiSelect?(this.poperSelectList.forEach((function(u){u.id==l.id&&(u.selected=!u.selected),u.selected?_.isCanSearch&&0==_.selectedList.filter((function(l){return l.id==u.id})).length&&_.selectedList.push(u):_.isCanSearch&&(_.selectedList=_.selectedList.filter((function(l){return l.id!=u.id})))})),this.currentList=(0,U.Z)(this.poperSelectList),this.isCanSearch&&this.searchList(this.input)):(this.poperSelectList.forEach((function(l){l.selected=!1})),l.selected=!l.selected,this.poperSelectList.splice(u,1,l),this.currentList=(0,U.Z)(this.poperSelectList),this.sureSelect())}},{key:"allSelect",value:function allSelect(){var l=this;this.selectedList=[],this.poperSelectList.forEach((function(u){u.selected=!0,l.selectedList.push(u),l.selectedIds.push(u.id)})),this.currentList=(0,U.Z)(this.poperSelectList)}},{key:"cancelSelect",value:function cancelSelect(){this.poperSelectList.forEach((function(l){l.selected=!1})),this.currentList=(0,U.Z)(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 l=this,u="",_="",v=this.getCurrentPoperNode(),C=this.isAllowMultiSelect&&this.isCanSearch?this.selectedList:this.poperSelectList.filter((function(l){return l.selected})),k=C.length;0===k?(v instanceof Ft.yF||v instanceof Bt.re)&&(u=v.name?v.name:" "):C.forEach((function(l,k){k<C.length-1?(v.customProperty&&v.customProperty.hasThirdData&&l.value?u+=l.value+",":u+=l.text+",",_+=l.id+","):(v.customProperty&&v.customProperty.hasThirdData&&l.value?u+=l.value:u+=l.text,_+=l.id)}));var N=rt.b.instance().getFactory(this.hoEditorId);if(v instanceof Ft.yF){var B=this.getCurrentPoperNode(),U={id:B.id,name:B.name,text:u,keyValue:_,title:"下拉选择框",tipText:B.tipText,isAllowDelete:B.isAllowDelete,isReadOnly:B.isReadOnly,allowMultiSelect:B.allowMultiSelect,innerIdentifier:B.innerIdentifier,dataMetaIdentifier:B.dataMetaIdentifier,identifierFormat:B.identifierFormat,readType:B.readType,mutexSelect:B.mutexSelect};N.vueController.updateDownList(JSON.stringify(U),this.poperSelectList)}else v instanceof Bt.re&&(u=u.replace(/,/g,v.downListProperty.splitCharacter),v.text=u,v.keyValue=_,Object.keys(this.textParam).map((function(u){l.textParam[u]=v[u]})),this.textParam.downListProperty.allowMultiSelected?N.vueController.updateTextInputField(this.textParam):N.elementController.updateTextInputFieldValue(v,u,void 0,_));1===C.length&&-1!==C[0].text.indexOf("<元素>")?setTimeout((function(){l.handleClose()}),200):this.handleClose()}},{key:"shuffle",value:function shuffle(){}},{key:"dragstart",value:function dragstart(l){this.dragIndex=l}},{key:"dragenter",value:function dragenter(l,u){if(l.preventDefault(),this.dragIndex!==u){var _=this.selectedList[this.dragIndex];this.selectedList.splice(Number(this.dragIndex),1),this.selectedList.splice(u,0,_),this.dragIndex=u}}},{key:"dragover",value:function dragover(l){l.preventDefault()}},{key:"listenScroller",value:function listenScroller(l){document.querySelector(".editor");this.poppernIstance&&this.poppernIstance.update()}},{key:"handleClose",value:function handleClose(){var l=this;this.$nextTick((function(){return l.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.removeEventListener("scroll",this.listenScroller,!0),window.removeEventListener("keydown",this.arrowKeysController)}}]),PoperSelectModal}(mixins(jt));__decorate([Prop({default:""})],Rr.prototype,"poperType",void 0),__decorate([Prop()],Rr.prototype,"poperPos",void 0),__decorate([Prop()],Rr.prototype,"poperSelectList",void 0),__decorate([Prop()],Rr.prototype,"hoEditorId",void 0),__decorate([Ref()],Rr.prototype,"poperSelectedModal",void 0),__decorate([Ref()],Rr.prototype,"selectPoperList",void 0),__decorate([Watch("selectedList")],Rr.prototype,"selectedListChange",null),Rr=__decorate([ae({name:"PoperSelectModal",components:{DatePanel:Kt,RecycleScroller:mr}})],Rr);var Fr=Rr,jr=Fr,Br=normalizeComponent(jr,PoperSelectvue_type_template_id_f3c168f0_scoped_true_render,At,!1,null,"f3c168f0",null),Ur=Br.exports,PoperMarkvue_type_template_id_12c8c810_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"poper-mark"})},Hr=[],Wr=function(l){(0,Y.Z)(PoperMark,l);var u=(0,ee.Z)(PoperMark);function PoperMark(){return(0,q.Z)(this,PoperMark),u.apply(this,arguments)}return(0,$.Z)(PoperMark)}(k());Wr=__decorate([ae({name:"PoperMark"})],Wr);var qr=Wr,zr=qr,Vr=normalizeComponent(zr,PoperMarkvue_type_template_id_12c8c810_render,Hr,!1,null,null,null),Kr=Vr.exports,TableCellPopervue_type_template_id_745f7c9e_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"cell-poper-selected-modal animation-in",style:l.posStyle},[_("div",{staticStyle:{height:"0",overflow:"hidden"}},[_("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("defs",[_("g",{attrs:{id:"selected"}},[_("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"}})])])])]),l.isCanSearch?_("el-input",{attrs:{placeholder:"可搜索",size:"mini"},on:{input:l.searchList},model:{value:l.input,callback:function(u){l.input=u},expression:"input"}}):l._e(),1===l.editorProperty?_("div",{staticClass:"select-poper"},[_("ul",{staticClass:"list"},[l._l(l.currentList,(function(u,v){return _("li",{key:u.id,class:u.default?"selected":"",on:{click:function(_){return l.selectItems(u,v)}}},[_("span",[l._v(l._s(u.text.split("<元素>")[0]))]),_("svg",{attrs:{viewBox:"0 0 1303 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("use",{attrs:{"xlink:href":"#selected"}})])])})),0===l.currentList.length?_("li",{staticStyle:{"text-align":"center"}},[l._v("无选项")]):l._e()],2),l.isAllowMultiSelect?_("footer",{style:{bottom:l.isAllowMultiSelect?"-34px":"0px"}},[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureSelect}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(u){l.selected=[]}}},[l._v("清空")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1):l._e(),0===l.currentList.length?_("footer",{staticStyle:{bottom:"-43px",padding:"10px","text-align":"center"}},[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("关闭")])],1):l._e()]):l._e(),2===l.editorProperty?_("div",{staticClass:"date-poper"},[l.inputStyle.includes("dd")?_("DatePanel",{attrs:{value:l.date},on:{getValue:l.getTime}}):l._e(),l.inputStyle.includes("MM")&&!l.inputStyle.includes("dd")?_("DatePanel",{attrs:{dateType:"month",value:l.date},on:{getValue:l.getTime}}):l._e(),l.inputStyle.includes("yyyy")&&!l.inputStyle.includes("MM")?_("DatePanel",{attrs:{dateType:"year",value:l.date},on:{getValue:l.getTime}}):l._e(),l.inputStyle.includes("HH")?_("div",{staticClass:"timepicker",staticStyle:{padding:"8px 0"}},[_("el-time-picker",{staticStyle:{width:"200px"},attrs:{type:"time",format:l.timeStyle,"value-format":l.timeStyle,size:"mini"},model:{value:l.time,callback:function(u){l.time=u},expression:"time"}})],1):l._e(),_("footer",[_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.sureDate}},[l._v("确定")]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:l.currentDateTime}},[l._v(l._s(-1!==l.inputStyle.indexOf("HH")?"此刻":"今天"))]),_("el-button",{staticStyle:{padding:"5px 13px"},attrs:{size:"mini"},on:{click:function(u){return l.handleClose("cancel")}}},[l._v("取消")])],1)],1):l._e()],1)},$r=[],Gr=function(l){(0,Y.Z)(getCellNodeMixins,l);var u=(0,ee.Z)(getCellNodeMixins);function getCellNodeMixins(){return(0,q.Z)(this,getCellNodeMixins),u.apply(this,arguments)}return(0,$.Z)(getCellNodeMixins,[{key:"getCellNode",value:function getCellNode(l){var u=null,_=function isFn(l){null!==(null===l||void 0===l?void 0:l.parentNode)&&null!==l&&void 0!==l&&l.parentNode&&(l.parentNode instanceof et.D?u=l.parentNode:isFn(l.parentNode))};return l instanceof et.D?l:(_(l),u)}}]),getCellNodeMixins}(k());Gr=__decorate([ae],Gr);var Zr=function(l){(0,Y.Z)(TableCellPoper,l);var u=(0,ee.Z)(TableCellPoper);function TableCellPoper(){var l;return(0,q.Z)(this,TableCellPoper),l=u.apply(this,arguments),l.isCanSearch=!1,l.input="",l.poperList=[],l.currentList=[],l.posStyle={left:"",right:"",top:"",bottom:""},l.dateFormat=Lt.vc,l.computedPoperPosition=Lt.Nv,l.endPath="",l}return(0,$.Z)(TableCellPoper,[{key:"colProperty",get:function get(){var l=this.getcellNodes();return null===l?null:l.table.colInfos[l.row.indexOf(l)].colProperty}},{key:"cellProperty",get:function get(){var l=this.getcellNodes();return null===l||null!==this.colProperty&&0!==this.colProperty.editorProperty?null:l.cellProperty}},{key:"isAllowMultiSelect",get:function get(){return null===this.colProperty?null!==this.cellProperty&&!(this.cellProperty.editorProperty!==tt.YS.DownList||!this.cellProperty.downListProperty.allowMultiSelected):!(this.colProperty.editorProperty!==tt.YS.DownList||!this.colProperty.downListProperty.allowMultiSelected)||0===this.colProperty.editorProperty&&(null!==this.cellProperty&&!(this.cellProperty.editorProperty!==tt.YS.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 l,u=this.getActiveDocId(),_=rt.b.instance().getFactory(u);this.endPath=_.docTree.curDomRange.normalize().endPath,null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.addEventListener("scroll",this.handleClose,!0),null===this.colProperty||this.colProperty.editorProperty!==tt.YS.DateTime&&this.colProperty.editorProperty!==tt.YS.DownList?null!==this.cellProperty&&this.cellProperty.editorProperty!==tt.YS.None&&this.initTalbePoper(this.cellProperty):this.initTalbePoper(this.colProperty)}},{key:"getcellNodes",value:function getcellNodes(){var l,u=this.getActiveDocId(),_=rt.b.instance().getFactory(u),v=null===(l=_.vueController.findNodebyPath(this.endPath))||void 0===l?void 0:l.node;return this.getCellNode(v)}},{key:"initTalbePoper",value:function initTalbePoper(l){var u=this;if(l.editorProperty===tt.YS.DateTime){var _,v;this.inputStyle=null===(_=l.dateTimeProperty.inputStyle)||void 0===_?void 0:_.replace(/\hh/g,"HH");var C="";C=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)),C=C.replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,""),C&&this.dateStyle&&!this.dateStyle.includes("yyyy")&&(C=(0,Lt.vc)(new Date,"yyyy")+"/"+C),C&&":"===C[C.length-1]&&(C=C.substr(0,C.length-1)),C&&((0,Lt.J_)(C)||(0,Lt.J_)("2021/10/08 "+C))?(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))?(this.date=C.split(" ")[0],this.time=C):((this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.date=C),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd ")+C)):(this.date=(0,Lt.vc)(new Date,"yyyy/MM/dd"),this.timeStyle&&(this.time=(0,Lt.vc)(new Date,"yyyy/MM/dd "+this.timeStyle))),this.date=null===(v=this.date)||void 0===v?void 0:v.replace(/[^\d]/g,"/");var k=0;(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(k=300),(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(k=90),(this.inputStyle.includes("yyyy")||this.inputStyle.includes("MM"))&&(this.inputStyle.includes("HH")||this.inputStyle.includes("mm"))&&(k=350),this.posStyle=this.computedPoperPosition(k,this.poperPos)}else if(l.editorProperty===tt.YS.DownList){var N,B=[];if(this.poperNode){var W=",";[",","、","/","-"].forEach((function(l){u.poperNode.includes(l)&&(W=l)})),B=this.poperNode.split(W)}this.poperList=l.downListProperty.listItems?(0,U.Z)(JSON.parse(l.downListProperty.listItems)):[],null===(N=this.poperList)||void 0===N||N.forEach((function(l){l.default=!1,1===B.filter((function(u){return l.text.split("<元素>")[0]==u})).length&&(l.default=!0)})),this.currentList=(0,U.Z)(this.poperList),this.poperList.length>20&&(this.isCanSearch=!0);var q=36*this.poperList.length+36;if(this.isAllowMultiSelect&&(q+=36),this.isCanSearch&&(q+=28),q<360){var $=this.computedPoperPosition(q,this.poperPos);delete $["height"],this.posStyle=$}else{var Y=this.computedPoperPosition(360,this.poperPos);delete Y["height"],this.posStyle=Y}}}},{key:"getTime",value:function getTime(l){this.date=l.value,"dblclick"==l.type&&this.sureDate()}},{key:"currentDateTime",value:function currentDateTime(){var l=this.dateFormat(new Date,this.inputStyle),u=this.getcellNodes();null===u||void 0===u||u.setCellText(l),this.handleClose()}},{key:"sureDate",value:function sureDate(){var l="";if(this.date){if(l=this.date,this.time){var u=this.time.replace(/年|月|-/g,"/").replace(/时|分/g,":").replace(/秒/g,"");u.includes("/")?l+=" "+u.split(" ")[1]:l+=" "+u}}else l="2021/10/08 "+this.time.replace(/[^\d]/g,":").substr(0,8);l=this.dateFormat(l,this.inputStyle);var _=this.getcellNodes();null===_||void 0===_||_.setCellText(l),this.handleClose()}},{key:"searchList",value:function searchList(l){var u=[];l?this.poperList.map((function(_){-1!==_.value.indexOf(l)&&u.push(_)})):u=(0,U.Z)(this.poperList),this.currentList=(0,U.Z)(u)}},{key:"selectItems",value:function selectItems(l,u){this.isAllowMultiSelect?(this.poperList.forEach((function(u){u.id===l.id&&(u.default=!u.default)})),this.currentList=(0,U.Z)(this.poperList),this.searchList(this.input)):(this.poperList.forEach((function(l){l.default=!1})),l.default=!l.default,this.poperList.splice(u,1,l),this.currentList=(0,U.Z)(this.poperList),this.sureSelect())}},{key:"sureSelect",value:function sureSelect(){var l=this,u="",_=this.poperList.filter((function(l){return l.default})),v=_.length;v>0&&(_.map((function(v,C){var k,N;C<_.length-1?(N=null!==l.colProperty&&0!==l.colProperty.editorProperty?l.colProperty:l.cellProperty,u+=v.text+(null===(k=N)||void 0===k?void 0:k.downListProperty.splitCharacter)):u+=v.text;return v})),""===u.replace(/\s*/g,"")&&(u=" "));var C=this.getcellNodes();null===C||void 0===C||C.setCellText(u),this.handleClose()}},{key:"handleClose",value:function handleClose(){var l=this;this.$nextTick((function(){return l.$emit("poperClose")}))}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=document.querySelector(".ho-editor-list"))||void 0===l||l.removeEventListener("scroll",this.handleClose,!0)}}]),TableCellPoper}(mixins(jt,Gr));__decorate([Prop()],Zr.prototype,"poperNode",void 0),__decorate([Prop()],Zr.prototype,"poperPos",void 0),__decorate([Inject("getActiveDocId")],Zr.prototype,"getActiveDocId",void 0),Zr=__decorate([ae({name:"TableCellPoper",components:{DatePanel:Kt}})],Zr);var Jr=Zr,Xr=Jr,Yr=normalizeComponent(Xr,TableCellPopervue_type_template_id_745f7c9e_scoped_true_render,$r,!1,null,"745f7c9e",null),Qr=Yr.exports;const en="function"===typeof window.WeakMap&&"function"===typeof window.Map,tn=function(){if(en)return window.WeakMap;function getIndex(l,u){let _=-1;return l.some(((l,v)=>{let C=l[0]===u;return C&&(_=v),C})),_}return class{constructor(){this.__entries__=[]}get(l){let u=getIndex(this.__entries__,l);return this.__entries__[u][1]}set(l,u){let _=getIndex(this.__entries__,l);~_?this.__entries__[_][1]=u:this.__entries__.push([l,u])}delete(l){let u=this.__entries__,_=getIndex(u,l);~_&&u.splice(_,1)}has(l){return!!~getIndex(this.__entries__,l)}}}(),rn=function(){return en?window.Map:class extends tn{get size(){return this.__entries__.length}clear(){this.__entries__.splice(0,this.__entries__.length)}entries(){return this.__entries__.slice()}keys(){return this.__entries__.map((l=>l[0]))}values(){return this.__entries__.map((l=>l[1]))}forEach(l,u=null){for(const _ of this.__entries__)l.call(u,_[1],_[0])}}}();var nn=function(){return window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now()}();const an="function"===typeof window.MutationObserver,sn=function(){return window.requestAnimationFrame?window.requestAnimationFrame:l=>setTimeout((()=>l(nn())),1e3/60)}();function debounce(l,u=0){let _=!1;return function(...v){!1!==_&&clearTimeout(_),_=setTimeout((()=>{_=!1,l.apply(this,v)}),u)}}class IntersectionObserverController{constructor(l=50,u=!1){this._idleTimeout=l,this._trackHovers=u,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(l){this._idleTimeout=l}connect(l){this.isConnected(l)||this._observers.push(l),this._isListening||this._initListeners()}disconnect(l){let u=this._observers,_=u.indexOf(l);~_&&u.splice(_,1),!u.length&&this._isListening&&this._removeListeners()}isConnected(l){return!!~this._observers.indexOf(l)}_updateObservers(){let l=!1;for(const u of this._observers)u.updateObservations()&&(l=!0),u.hasEntries()&&u.notifySubscriber();return l}startUpdateCycle(){this._cycleStartTime=nn(),this.scheduleUpdate()}scheduleUpdate(l){let u="number"===typeof l;if(u){const l=this._updateObservers();if(this._isUpdateScheduled=!1,!this._wasCycleStarted())return;l?this.startUpdateCycle():this._hasIdleTimeEnded()?this._onCycleEnded():this.scheduleUpdate()}else this._isUpdateScheduled||(sn(this.scheduleUpdate),this._isUpdateScheduled=!0)}_hasIdleTimeEnded(){return nn()-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(),an?(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(),an?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(l){const u=l.every((l=>"attributes"!==l.type));u?this.scheduleUpdate():this.startUpdateCycle()}}function mapToClientRect(l){const u={};for(const _ of Object.keys(l))u[_]={value:l[_]};return Object.defineProperties({},u)}function createRectangle(l=0,u=0,_=0,v=0){return{left:l,top:u,width:_,height:v,bottom:u+v,right:l+_}}function getRectangle(l){return l===document.documentElement?createRectangle(0,0,l.clientWidth,l.clientHeight):l.getBoundingClientRect()}function getArea(l){return l.width*l.height}function isEmpty(l){return 0===l.height&&0===l.width}function isEqual(l,u){return l.top===u.top&&l.left===u.left&&l.right===u.right&&l.bottom===u.bottom}class IntersectionObserverEntry{constructor(l,u,_,v,C,k){Object.defineProperties(this,{boundingClientRect:{value:u},intersectionRatio:{value:v},intersectionRect:{value:mapToClientRect(_)},rootBounds:{value:mapToClientRect(C)},target:{value:l},time:{value:k}})}}const cn=createRectangle();function isDetached(l,u){const _=document.documentElement;return l!==_&&!_.contains(l)||!l.contains(u)}function computeIntersection(l,u){const _=Math.max(u.left,l.left),v=Math.min(u.right,l.right),C=Math.max(u.top,l.top),k=Math.min(u.bottom,l.bottom),N=v-_,B=k-C;return createRectangle(_,C,N,B)}function getIntersection(l,u,_,v){let C=v,k=u.parentNode,N=!1;while(!N){let u=null;k===l||1!==k.nodeType?(N=!0,u=_):"visible"!==window.getComputedStyle(k).overflow&&(u=getRectangle(k)),u&&(C=computeIntersection(C,u)),k=k.parentNode}return C}class IntersectionObservation{constructor(l,u){this.target=l,this.observer=u,this.prevTargetRect=cn,this.prevThreshold=0,this.prevRatio=0}updateIntersection(l,u){let _,v=getRectangle(this.target),C=this.getIntersectionData(l,u,v),k=+C.exists,N=C.ratio!==this.prevRatio,B=!isEqual(v,this.prevTargetRect);if(C.exists&&!isEmpty(v)&&(k=this.observer.getThresholdGreaterThan(C.ratio)),_=k!==this.prevThreshold,this.prevTargetRect=v,this.prevThreshold=k,this.prevRatio=C.ratio,C.exists||(C.ratio=0,C.rect=cn),_){const l=new IntersectionObserverEntry(this.target,v,C.rect,C.ratio,u,nn());this.observer.queueEntry(l)}return{ratioChanged:N,thresholdChanged:_,targetRectChanged:B}}getIntersectionData(l,u,_){const v=this.target;_||(_=getRectangle(this.target)),u||(u=getRectangle(l));let C=isDetached(l,v),k=C?cn:getIntersection(l,v,u,_),N=!C&&k.width>=0&&k.height>=0,B=getArea(k)/getArea(_)||0;return{rect:k,ratio:B,exists:N}}}function parseThresholds(l=0){let u=l;return Array.isArray(l)?l.length||(u=[0]):u=[l],u.map((l=>{if(l=Number(l),!window.isFinite(l))throw new TypeError("The provided double value is non-finite.");if(l<0||l>1)throw new RangeError("Threshold values must be between 0 and 1.");return l})).sort()}function parseMargins(l="0px"){if(l=(l+"").split(/\s+/),l.length>4)throw new Error("Extra text found at the end of rootMargin.");l[0]=l[0]||"0px",l[1]=l[1]||l[0],l[2]=l[2]||l[0],l[3]=l[3]||l[1];const u=l.join(" "),_=l.map((l=>{let[,u,_]=/^(-?\d*\.?\d+)(px|%)$/.exec(l)||[];const v="px"===_;if(u=parseFloat(u),!window.isFinite(u))throw new Error("rootMargin must be specified in pixels or percent.");return v||(u/=100),{value:u,pixels:v}}));return{rawData:u,parsedData:_}}function applyMargins(l,u){u=u.map(((u,_)=>{let v=u.value;return u.pixels||(v*=_%2?l.width:l.height),v}));const _={top:l.top-u[0],right:l.right+u[1],bottom:l.bottom+u[2],left:l.left-u[3]};return _.width=_.right-_.left,_.height=_.bottom-_.top,_}class _IntersectionObserver_IntersectionObserver{constructor(l,u={},_,v){if("function"!==typeof l)throw new TypeError("The callback provided as parameter 1 is not a function.");if("object"!==typeof u)throw new TypeError("parameter 2 is not an object.");if("root"in u&&!(u.root instanceof Element))throw new TypeError("member root is not of type Element.");const C=parseThresholds(u.threshold),k=parseMargins(u.rootMargin);this.root=u.root||null,this.rootMargin=k.rawData,this.thresholds=Object.freeze(C),this._root=u.root||document.documentElement,this._callback=l,this._rootMargin=k.parsedData,this._targets=new rn,this._quedEntries=[],this._publicObserver=v||this,this.controller=_}observe(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(l instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let u=this._targets;u.has(l)||(u.set(l,new IntersectionObservation(l,this)),this.controller.isConnected(this)||this.controller.connect(this),this.controller.startUpdateCycle())}unobserve(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(l instanceof Element))throw new TypeError('parameter 1 is not of type "Element".');let u=this._targets;u.has(l)&&u.delete(l),u.size||this.disconnect()}disconnect(){this._targets.clear(),this.controller.disconnect(this)}takeRecords(){return this._quedEntries.splice(0)}notifySubscriber(){const l=this.takeRecords(),u=this._publicObserver;l.length&&this._callback.call(u,l,u)}queueEntry(l){this._quedEntries.push(l)}hasEntries(){return!!this._quedEntries.length}updateObservations(){let l=this._root,u=this.getRootRect(),_=!1;return this._targets.forEach((v=>{const C=v.updateIntersection(l,u);(C.ratioChanged||C.targetRectChanged)&&(_=!0)})),_}getThresholdGreaterThan(l){let u=this.thresholds,_=u.length,v=0;while(v<_&&u[v]<=l)++v;return v}getRootRect(){let l=getRectangle(this._root);return applyMargins(l,this._rootMargin)}}const un=new IntersectionObserverController,dn=new tn;class IntersectionObserver_IntersectionObserver{constructor(l,u){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");const _=new _IntersectionObserver_IntersectionObserver(l,u,un,this);Object.defineProperties(this,{root:{value:_.root},thresholds:{value:_.thresholds},rootMargin:{value:_.rootMargin}}),dn.set(this,_)}static get idleTimeout(){return un.idleTimeout}static set idleTimeout(l){if("number"!==typeof l)throw new TypeError('type of "idleTimeout" value must be a number.');if(typeof l<0)throw new TypeError('"idleTimeout" value must be greater than 0.');un.idleTimeout=l}static get trackHovers(){return un.isHoverEnabled()}static set trackHovers(l){if("boolean"!==typeof l)throw new TypeError('type of "trackHovers" value must be a boolean.');l?un.enableHover():un.disableHover()}}["observe","unobserve","disconnect","takeRecords"].forEach((l=>{IntersectionObserver_IntersectionObserver.prototype[l]=function(){return dn.get(this)[l](...arguments)}}));var hn=IntersectionObserver_IntersectionObserver;let _n;_n="function"===typeof window.IntersectionObserver?window.IntersectionObserver:hn;var pn=_n,gn=__webpack_require__(70611),mn=__webpack_require__(68204),vn="2.0.76",PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"show",rawName:"v-show",value:l.isShow,expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:l.handleClose,expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:l.posStyle,on:{mouseenter:l.mouseEnter,mouseleave:l.mouseLeave}},l._l(l.poperText,(function(u){return _("div",{key:u+Math.random(0,1),staticClass:"poper-text"},[l._v(" "+l._s(u)+" ")])})),0)},yn=[],bn=(__webpack_require__(91038),function(l){(0,Y.Z)(PoperTipText,l);var u=(0,ee.Z)(PoperTipText);function PoperTipText(){var l;return(0,q.Z)(this,PoperTipText),l=u.apply(this,arguments),l.posStyle={left:"",right:"",top:"",bottom:""},l.poperDirection="top",l.isShow=!1,l.isEnter=!1,l.poperTimer=null,l.poppernIstance=null,l.generateGetBoundingClientRect=function(l,u){var _=Array.from(document.querySelectorAll(".edit-area"))[l.docIndex],v=Array.from(_.querySelectorAll(".selectcanvas"))[l.pageIndex],C=v.getBoundingClientRect(),k=C.left+l.x,N=C.top+l.y;return function(){return{width:l.width,height:l.height,top:N-l.height,right:k,bottom:N+l.height,left:k}}},l}return(0,$.Z)(PoperTipText,[{key:"isPoperTextChange",value:function isPoperTextChange(){var l=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.isPoperText?this.poperTimer=setTimeout((function(){l.isShow=l.isPoperText}),600):this.isEnter||(this.poperTimer=setTimeout((function(){l.isShow=l.isPoperText}),300))}},{key:"positionChange",value:function positionChange(l){"[]"!==JSON.stringify(this.poperText)&&this.init()}},{key:"init",value:function init(){if(void 0!=this.poperPos.docIndex){var l={getBoundingClientRect:this.generateGetBoundingClientRect(this.poperPos)};this.poppernIstance=(0,Ar.fi)(l,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 l=this;null!=this.poperTimer&&clearTimeout(this.poperTimer),this.poperTimer=setTimeout((function(){l.isEnter=!1,l.isShow=!1,l.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(jt)));__decorate([Prop()],bn.prototype,"poperPos",void 0),__decorate([Prop()],bn.prototype,"poperText",void 0),__decorate([Prop()],bn.prototype,"isPoperText",void 0),__decorate([Ref()],bn.prototype,"poperTextNode",void 0),__decorate([Watch("isPoperText")],bn.prototype,"isPoperTextChange",null),__decorate([Watch("poperPos",{deep:!0})],bn.prototype,"positionChange",null),bn=__decorate([ae({name:"PoperTipText"})],bn);var wn=bn,xn=wn,Pn=normalizeComponent(xn,PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render,yn,!1,null,"3fa4e4d3",null),Cn=Pn.exports,En=Cn,Sn=__webpack_require__(13613),Tn=function(l){(0,Y.Z)(HoDoc,l);var u=(0,ee.Z)(HoDoc);function HoDoc(){var l;return(0,q.Z)(this,HoDoc),l=u.apply(this,arguments),l.dateFormat=Lt.vc,l.canvasParams={width:Math.floor(793*nt.f.instance().scaleXY)%2===1?Math.floor(793*nt.f.instance().scaleXY)+1:Math.floor(793*nt.f.instance().scaleXY),height:Math.floor(1122*nt.f.instance().scaleXY)%2===1?Math.floor(1122*nt.f.instance().scaleXY)+1:Math.floor(1122*nt.f.instance().scaleXY)},l.canvasHeadFootPos={headerY:48,footerY:48},l.poperTipPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},l.drawing=!1,l.nodeValue="",l.poperType="",l.poperTextPos={x:0,y:0,width:0,height:0,pageIndex:0,moveType:1},l.aiInfo={x:0,y:0,height:0,pageIndex:0,aiText:"",lastPosition:[0,0,0]},l.drawPageCount={count:-1},l.poperSelectList=[],l.activePageIndex={index:-1},l.viewableAreaObserver=null,l.inViewPages=[0],l.paginationCount=200,l.drawPageLength=0,l.isCreateRightMenuModal=!1,l.version=vn,l.isHideComments=!1,l.showCommentsBtn=!1,l.domRange={startPath:"",endPath:""},l.poperText=[],l.isPoperText=!1,l.poperId=[],l}return(0,$.Z)(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(l){if(l){var u=rt.b.instance().getFactory(this.hoEditorId);if(5===u.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({},l),{},{docIndex:this.docIndex})):this.isPoperText=!1}}},{key:"isUseTipTextChange",value:function isUseTipTextChange(){var l=rt.b.instance().getFactory(this.hoEditorId);l.nodeMouseMove.isUseTipText=this.isUseTipText}},{key:"created",value:function created(){var l=rt.b.instance().getFactory(this.hoEditorId);l.hoEditorFactoryIndex=this.docIndex,l.subDocManger.initBlankDoc(),l.docTree.initBlankDoc(),this.mouseMoveNodes=l.nodeMouseMove,window.addEventListener("keydown",(function(u){l.docTree.updateCtlKey(u)})),window.addEventListener("keyup",(function(u){l.docTree.updateCtlKey(u)}))}},{key:"mounted",value:function mounted(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId);u.pageProperty.canvasParams=this.canvasParams,u.nodeMouseMove.poperTipPos=this.poperTipPos,u.nodeMouseMove.isUseTipText=this.isUseTipText,u.pageProperty.canvasHeadFootPos=this.canvasHeadFootPos,u.drawPageTree.initDoc(),u.drawTree.drawPageCount=this.drawPageCount,u.drawTree.activePageIndex=this.activePageIndex,this.drawing=!1;var _=this.hoEditorFactoryIdList.length;0===this.docIndex&&u.drawTree.buildDrawTree(u.subDocManger.headerDocTree[0].subDocNodes,u.drawTree.headerDNodes[0]),this.docIndex===_-1&&u.drawTree.buildDrawTree(u.subDocManger.footerDocTree[0].subDocNodes,u.drawTree.footerDNodes[0]),u.drawTree.buildDrawTree(u.docTree.mainNodes,u.drawTree.mainDNodes),u.drawTree.addPage(),u.drawTree.drawPageCount.count=u.drawTree.drawPages.length,u.docTree.addEventListener(Ne.x.eventName,(function(u){return l.mouseClickEvent(u)})),u.drawPageTree.changeInViewPage(),u.drawTree.caret.aiInfo=this.aiInfo}},{key:"beforeDestroy",value:function beforeDestroy(){var l,u=this,_=rt.b.instance().getFactory(this.hoEditorId);null===(l=this.viewableAreaObserver)||void 0===l||l.disconnect(),_.docTree.removeEventListener(Ne.x.eventName,(function(l){return u.mouseClickEvent(l)}))}},{key:"pageIntersectionObserver",value:function pageIntersectionObserver(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId);this.viewableAreaObserver=new pn((function(_){if(_){var v=(0,U.Z)(u.drawTree.inViewPages);_.forEach((function(l){var _=Number(l.target.dataset.id),C=u.drawTree.drawPages[_],k=u.drawTree.drawPages.length;C&&C.needUpdateStage&&C.drawDomLevel&&(u.drawPageTree.updateDrawPage(C.pageIndex),C.needUpdateStage=!1),0===l.intersectionRatio?v=v.filter((function(l){return C&&l!==C.pageIndex})):!v.includes(C.pageIndex)&&v.push(C.pageIndex),v=v.filter((function(l){return l<k})).sort()})),l.inViewPages=(0,U.Z)(v),u.drawTree.inViewPages=(0,U.Z)(v),u.drawPageTree.changeInViewPage()}}),{root:null,rootMargin:"0px",threshold:[0,1]})}},{key:"setActiveDocIndex",value:function setActiveDocIndex(l){l!==this.activeDocId&&this.$emit("setActiveDocIndex",this.hoEditorId)}},{key:"poperClose",value:function poperClose(){this.poperType="",this.nodeValue=""}},{key:"mouseClickEvent",value:function mouseClickEvent(l){var u=this,_=rt.b.instance().getFactory(this.hoEditorId);if(!l.clickType||"move"===l.clickType)return!1;var v,C=document.querySelector("#ho_paragrapgh_tip");C&&(null===(v=C.parentNode)||void 0===v||v.removeChild(C));var k=l.node;if(this.poperClose(),k&&null!==k){var N=l.pageIndex;if("dblclick"===l.clickType)k instanceof Fe.Hd&&setTimeout((function(){u.dblclickModal(k,"dblclick",N)}),150);else if("leftclick"===l.clickType&&k instanceof Fe.Hd){if(5===_.drawTree.paintStatus)return!1;this.$emit("setFontStyles")}else"rightClick"===l.clickType&&k instanceof gn.N&&3==k.type&&_.drawTree.paintStatus}return!0}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var l,u,_=rt.b.instance().getFactory(this.activeDocId),v=null===(l=_.vueController.findNodebyPath(this.domRange.endPath))||void 0===l?void 0:l.node;if(v)return v.parentNode instanceof Bt.re?u=v.parentNode:(v instanceof gn.N||v instanceof Ft.yF)&&(u=v),u}},{key:"dblclickModal",value:function dblclickModal(l,u,_){var v=this;if(this.poperType)return!1;if("dblclick"!==u)return!1;var C=rt.b.instance().getFactory(this.activeDocId);if(5===C.drawTree.paintStatus)return!1;if(this.domRange={startPath:C.docTree.curDomRange.normalize().startPath,endPath:C.docTree.curDomRange.normalize().endPath},l instanceof gn.N)return 3===l.type||(this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"sign"}),this.poperType=""),!1;if(4===C.drawTree.paintStatus)return!1;if(l instanceof Rt.Z){if(l.isReadOnly&&""!==l.text.replace(/\s*/g,""))return!1;this.computedPoperPosition(l,_),this.poperType="datePoper"}else if(l instanceof Ft.yF){if(l.isReadOnly&&""!==l.text.replace(/\s*/g,""))return!1;var k=function callback(u){v.computedPoperPosition(l,_),Array.isArray(u)&&u.length>0?v.poperSelectList=u:v.poperSelectList=l.downListContent?l.downListContent:[],v.poperType="selectPoper"};l.customProperty&&1==l.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"downlist",callback:k}):k(void 0)}else if((l instanceof Gt.R||l instanceof $t.j)&&l.parentNode instanceof Bt.re){var N=l.parentNode;if(0===Number(N.inputFieldType))return N.canModifyContent?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"text"}):this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"modify_node"}),this.setUpdateNodeValue(this.getCurrentSelectNode()),!1;if(0===N.readOnlyStatus&&""!==N.text.replace(/\s*/g,""))return!1;if(2===Number(N.inputFieldType))this.poperType="datePoper";else if(1===Number(N.inputFieldType)){var B=function _callback(u){v.computedPoperPosition(l,_),Array.isArray(u)&&u.length>0?v.poperSelectList=u:v.poperSelectList=JSON.parse(N.downListProperty.listItems),v.poperType="selectPoper"};N.customProperty&&1==N.customProperty.hasThirdData?this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"textlist",callback:B}):B(void 0)}}else l.parentNode instanceof et.D&&l.nodeType!==Fe.Jq.ntMedicalExpression&&l.nodeType!==Fe.Jq.ntImage?this.handleCellNode(l,l.parentNode,_):l instanceof Sn.H?(this.poperType="",this.$emit("dblNodeClick",{node:this.getCurrentSelectNode,type:"edit-image"})):this.setDblclickNodeValue(l,"dblclick")}},{key:"handleCellNode",value:function handleCellNode(l,u,_){var v,C=u.table.colInfos[u.row.indexOf(u)].colProperty,k=u.cellProperty,N=!0;if(null!==C&&0===C.editorProperty&&null!==k&&0!==k.editorProperty)if(1===k.editorProperty&&1===JSON.parse(null===(v=k.downListProperty)||void 0===v?void 0:v.listItems).length){var B,U=JSON.parse(null===(B=k.downListProperty)||void 0===B?void 0:B.listItems);u.setCellText(U[0].text),N=!1}else if(2===k.editorProperty&&k.dateTimeProperty.isAutoInputCurDate){var W=this.dateFormat(new Date,k.dateTimeProperty.inputStyle);u.setCellText(W),N=!1}N&&(l instanceof Gt.R?this.nodeValue=l.text:l instanceof mn.C&&(this.nodeValue=""),this.poperType="table-cell-poper",this.computedPoperPosition(l,_))}},{key:"computedPoperPosition",value:function computedPoperPosition(l,u){var _=rt.b.instance().getFactory(this.hoEditorId),v=l.drawNodes[0],C=_.drawTree.getDrawLineByDNode(v),k=C.localToGlobal(v.x,0===v.y?C.dHeight:v.y);this.poperPos={x:k.x/nt.f.instance().scaleXY,y:k.y/nt.f.instance().scaleXY+5,width:v.dWidth?v.dWidth:0,height:C.dHeight,pageIndex:u,docIndex:this.docIndex?this.docIndex:0}}},{key:"mouseRightClickEvent",value:function mouseRightClickEvent(l){var u,_=rt.b.instance().getFactory(this.hoEditorId),v={clientX:l.clientX||l.pageX,clientY:l.clientY||l.pageY};if(_.drawTree.paintStatus!==Ee.Dh.psDesign&&_.drawTree.paintStatus!==Ee.Dh.psEdit){var C=rt.b.instance().getFactory(this.hoEditorId);return this.isCreateRightMenuModal=!0,C.drawTree.paintStatus!==Ee.Dh.psReview&&(this.isHideComments=C.isHideComments,this.showCommentsBtn=!0),void(0,Lt.GN)(v.clientX,v.clientY,this.rightMenuModal)}var k=_.drawTree.selectRange.spStart,N=_.vueController.getCaretPosition(),B=null===(u=_.vueController.findNodebyPath(N))||void 0===u?void 0:u.node;if(k){var U,W=null===(U=_.docTree.findNodePositionByPath(k.path))||void 0===U?void 0:U.node;W instanceof gn.N&&3==W.type&&(B=W)}B&&null!==B&&B instanceof Fe.Hd&&this.setRightClickNodeValue(B),_.drawTree.selectRange.beginRangeSelect=!1,this.$emit("rightClickEvent",v)}},{key:"hideComments",value:function hideComments(){this.isCreateRightMenuModal=!1;var l=rt.b.instance().getFactory(this.hoEditorId);l.vueController.hideComments(!l.isHideComments)}},{key:"poperTextClose",value:function poperTextClose(){this.isPoperText=!1}},{key:"pageReady",value:function pageReady(l){try{null===this.viewableAreaObserver&&this.pageIntersectionObserver();var u=rt.b.instance().getFactory(this.hoEditorId);this.drawing=!0,u.drawTree.paintHeader(l.pageIndex),u.drawTree.paintFooter(l.pageIndex),l.reFreshBounds(),u.drawPageTree.changeInViewPage(),l.drawDomLevel&&u.drawPageTree.updateDrawPage(l.pageIndex)}finally{this.drawing=!1}}}]),HoDoc}(k());__decorate([Prop()],Tn.prototype,"docIndex",void 0),__decorate([Prop()],Tn.prototype,"hoEditorId",void 0),__decorate([Prop()],Tn.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],Tn.prototype,"activeDocId",void 0),__decorate([Prop()],Tn.prototype,"editJson",void 0),__decorate([Ref()],Tn.prototype,"editorArea",void 0),__decorate([Ref()],Tn.prototype,"rightMenuModal",void 0),__decorate([Prop()],Tn.prototype,"textStyle",void 0),__decorate([Prop()],Tn.prototype,"isUseTipText",void 0),__decorate([Watch("drawPageCount",{deep:!0})],Tn.prototype,"drawPagesLengthChange",null),__decorate([Inject("setRightClickNodeValue")],Tn.prototype,"setRightClickNodeValue",void 0),__decorate([Inject("setDblclickNodeValue")],Tn.prototype,"setDblclickNodeValue",void 0),__decorate([Inject("setUpdateNodeValue")],Tn.prototype,"setUpdateNodeValue",void 0),__decorate([Watch("activePageIndex",{deep:!0})],Tn.prototype,"activePageIndexChange",null),__decorate([Watch("poperTipPos",{deep:!0})],Tn.prototype,"poperTipPosChange",null),__decorate([Watch("isUseTipText")],Tn.prototype,"isUseTipTextChange",null),Tn=__decorate([ae({name:"HoDoc",components:{HoPage:Tt,HoToPage:Ot,PoperMark:Kr,PoperTipText:En,PoperSelectModal:Ur,TableCellPoper:Qr}})],Tn);var Dn,kn=Tn,In=kn,Mn=normalizeComponent(In,HoDocvue_type_template_id_0d9b6522_render,he,!1,null,null,null),Nn=Mn.exports,On=__webpack_require__(3877),Ln=__webpack_require__(21635),An=(__webpack_require__(21703),__webpack_require__(8247)),Rn=__webpack_require__(73060),Fn=__webpack_require__(61152),jn=__webpack_require__(94047),Bn=__webpack_require__(32633),Un=__webpack_require__(93935),Hn=function(){function DrawPageTree(l){(0,q.Z)(this,DrawPageTree),this._oldPageCount=0,this._hoEditorFactoryID=l,this._drawFooters=[],this._drawHeaders=[],this._drawMainDocs=[],this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}return(0,$.Z)(DrawPageTree,[{key:"drawHeaders",get:function get(){return this._drawHeaders},set:function set(l){this._drawHeaders=l}},{key:"drawFooters",get:function get(){return this._drawFooters},set:function set(l){this._drawFooters=l}},{key:"drawMainDocs",get:function get(){return this._drawMainDocs},set:function set(l){this._drawMainDocs=l}},{key:"initDoc",value:function initDoc(){var l=new it.g(this._hoEditorFactoryID,"header/0",0),u=rt.b.instance().getFactory(this._hoEditorFactoryID);l.x=u.pageProperty.leftMarginPixes,this._drawHeaders.push(l);var _=new ot.d(this._hoEditorFactoryID,"footer/0",0);_.x=u.pageProperty.leftMarginPixes,this._drawFooters.push(_);var v=new An.$(this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(v),this.calcMainDocPosition(0),u.drawTree.inViewPages=[0]}},{key:"getMainDoc",value:function getMainDoc(l){if(l<this._drawMainDocs.length)return this._drawMainDocs[l];if(l===this._drawMainDocs.length){var u=new An.$(this._hoEditorFactoryID,"main",0,0);return this.calcMainDocPosition(l),u}throw new Error("需要按顺序创建mainDoc")}},{key:"getPrevDrawArea",value:function getPrevDrawArea(l){var u=l;if(l instanceof An.$){var _=this._drawMainDocs.indexOf(l);if(_<this._drawMainDocs.length-1)u=this._drawMainDocs[_+1];else{var v=new An.$(this._hoEditorFactoryID,"main",0,0);this._drawMainDocs.push(v),this.calcMainDocPosition(_+1),u=v}}return u}},{key:"getNextDrawArea",value:function getNextDrawArea(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=l;if(l instanceof An.$){var C=this._drawMainDocs.indexOf(l);if(C<this._drawMainDocs.length-1)v=this._drawMainDocs[C+1];else{var k=new An.$(this._hoEditorFactoryID,"main",C+1,0);this._drawMainDocs.push(k),this.calcMainDocPosition(C+1,u);while(_.drawTree.drawPages.length<this._drawMainDocs.length)_.drawTree.addPage(),_.drawTree.drawPageCount.count=_.drawTree.drawPages.length;v=k}}return v}},{key:"paint",value:function paint(l,u,_,v){var C=this,k=(new Array,rt.b.instance().getFactory(this._hoEditorFactoryID));if(l instanceof Fn.k)this.paintDrawPageCell(l,u,_,v);else{var N=v,B=l;this._oldPageCount=k.drawTree.drawPages.length;var U=1/0,W=u[_],q=0;if(W instanceof Bn.t){if(W.drawPageTables.length>0)W.drawPageTables[W.drawPageTables.length-1];else if(null,_>0){var $,Y=u[_-1];$=Y instanceof Bn.t?Y.drawPageTables[Y.drawPageTables.length-1]:Y;var ee=this.getMainRootArea($);ee===B&&(q=$.y+$.dHeight+$.paragraphNode.combineParagraph.lineSpace,$ instanceof jn.ox&&$.endRow==$.table.rowCount-1&&$.isEndRowFinished()&&(q-=$.paragraphNode.combineParagraph.lineSpace))}}else W,q=W.y;if(B.allowAcrossPage&&(U=B.maxHeight-q),B){var re=this.getMainRootArea(B);if(re){var ne=_,ie=new Map;try{this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1;while(ne<=v){var oe=u[ne];oe.paragraphNode.printAsSinglePage&&oe.paragraphNode.drawlines[0]===oe&&q>0&&B instanceof An.$&&(this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),k.subDocManger.updateSubDocPageIndexByPath(B.pageIndex+1,oe.paragraphNode.docId),ie.set(B.index,!0),B=this.getNextDrawArea(B,!0),q=0,B.allowAcrossPage&&(U=B.maxHeight-q)),(oe instanceof Bn.t&&U<k.defaultLineHeight||oe instanceof Rn.a&&U<oe.dHeight)&&(oe instanceof Rn.a&&U>=k.defaultLineHeight&&B.contains(oe)&&B.removeChild(oe),B instanceof An.$&&(this.afterAreaFinishPaint(B),this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),ie.set(B.index,!0),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q)));var ae=u[ne],le=ae.paragraphNode.combineParagraph;if(ae instanceof Bn.t){var ce=ae.drawPageTables.length>0&&ae.isFinishedPaint();if(ce)ne<N&&(N=ne>0?ne-1:0);else{while(!ce){var de=0;if(ae.drawPageTables.length>0){var he=ae.drawPageTables[ae.drawPageTables.length-1];de=he.isEndRowFinished()?he.endRow+1:he.endRow,q=0}B.allowAcrossPage&&(U=B.maxHeight-q),U<Un.dT&&B instanceof An.$&&(B.endDline=ne-1,this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),ie.set(B.index,!0),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q));var _e=ae.paintTable(B,q,U,de);if(_e&&(q=_e.y+_e.dHeight,B.allowAcrossPage?U=B.maxHeight-q:re.docHeight=q),ce=ae.isFinishedPaint(),!ce){if(!(B instanceof An.$))break;this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q,ie.set(B.index,!0))}}q+=le.lineSpace}}else ae.dHeight>U&&q>0&&B instanceof An.$&&(B.endDline=ne-1,this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),ie.set(B.index,!0),B=this.getNextDrawArea(B),q=0,B.allowAcrossPage&&(U=B.maxHeight-q)),(ne>_||ne===_&&!B.contains(ae))&&(B.addChild(ae),ae.y=q),q=ae.y+ae.dHeight+ae.paragraphNode.combineParagraph.lineSpace,re.docHeight=q,B.allowAcrossPage&&(U=B.maxHeight-q);if(ne>=v)break;ne+=1}var pe=Math.min(ne,v,N);if(B instanceof An.$&&pe===u.length-1){B.endDline=pe;var fe=this._drawMainDocs.indexOf(B);return this._drawMainDocs.splice(fe+1,this._drawMainDocs.length),k.drawTree.drawPages.splice(fe+1,this._drawMainDocs.length),k.drawTree.drawPageCount.count=k.drawTree.drawPages.length,this.afterAreaFinishPaint(B),this._startNeedUpdatePage=Math.min(B.pageIndex,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.pageIndex,this._endNeedUpdatePage),void(k.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,k.drawTree.updatePageCountNodes()))}if(B===re&&ne===this.drawMainDocs.length-1&&N===ne)return this.afterAreaFinishPaint(B),this._startNeedUpdatePage=Math.min(B.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(B.index,this._endNeedUpdatePage),void(k.drawTree.drawPages.length!==this._oldPageCount&&(this._oldPageCount=0,k.drawTree.updatePageCountNodes()));var me,be=u[pe],Ee=k.drawTree.getDlineDrawRootLists(be)[0],ke=Ee.drawRoots;pe=Ee.index,B instanceof An.$&&(re=B);var Ie=ie.get(re.index);if(Ie){var Ne=this._drawMainDocs.indexOf(re);re=Ne===this._drawMainDocs.length-1?this.getNextDrawArea(re):this._drawMainDocs[Ne+1]}if(be=ke[pe],be instanceof Bn.t){var Fe=be.getDrawTableByPageIndex(re.index);me=Fe||be.drawPageTables[0]}else me=be;this.update(re,ke,me,pe,pe)}finally{k.drawTree.inViewPages.forEach((function(l){C.updateDrawPage(l)})),this._startNeedUpdatePage=-1,this._endNeedUpdatePage=-1}}}}}},{key:"paintDrawPageCell",value:function paintDrawPageCell(l,u,_,v){var C=v,k=l,N=rt.b.instance().getFactory(this._hoEditorFactoryID),B=N.drawTree.drawPages.length;try{var U=u[_],W=0;if(U instanceof Bn.t){if(U.drawPageTables.length>0)U.drawPageTables[U.drawPageTables.length-1];else if(null,_>0){var q=u[_-1];if(q instanceof Bn.t){var $=q.drawPageTables[q.drawPageTables.length-1];W=$.y+$.dHeight}else W=q.y+q.dHeight+q.paragraphNode.combineParagraph.lineSpace}}else U,W=U.y;if(!k)return;var Y=this.getMainRootArea(k);if(!Y)return;var ee=Y.dHeight-k.localToLocal(0,0,Y).y;k.maxHeight=ee;var re=1/0;k.allowAcrossPage&&Y.allowAcrossPage&&(re=k.maxHeight-W);var ne=_,ie=!1;while(ne<=v){var oe=u[ne];(oe instanceof Bn.t&&re<N.defaultLineHeight||oe instanceof Rn.a&&re<oe.dHeight)&&(oe instanceof Rn.a&&re>=N.defaultLineHeight&&k.contains(oe)&&k.removeChild(oe),ie=!0);var ae=u[ne];ae.paragraphNode.combineParagraph;if(ae instanceof Bn.t){var le=ae.drawPageTables.length>0&&ae.isFinishedPaint();if(le)ne<C&&(C=ne>0?ne-1:0);else{while(!le){var ce=0;if(ae.drawPageTables.length>0){var de=ae.drawPageTables[ae.drawPageTables.length-1];ce=de.isEndRowFinished()?de.endRow+1:de.endRow}var he=ae.paintTable(k,W,re,ce);he&&(W=he.y+he.dHeight,k.allowAcrossPage&&Y.allowAcrossPage&&(re=k.maxHeight-W)),le=ae.isFinishedPaint()}W+=ae.paragraphNode.combineParagraph.lineSpace}}else{if(ae.dHeight>re&&W>0){var _e=N.drawTree.getParentDrawArea(k);if(!_e)throw new Error("无法绘制表格,找不到当前表格的父区域");var pe=k.drawPageTable,fe=pe.table.drawTable.drawPageTables.indexOf(pe),me=null;fe>0&&(me=pe.table.drawTable.drawPageTables[fe-1]);var be=pe.getMainRestHeight();k.drawPageTable.table.drawTable.drawUpdate(_e,me,pe.y,be);break}(ne>_||ne===_&&!k.contains(ae))&&(k.addChild(ae),ae.y=W),W=ae.y+ae.dHeight+ae.paragraphNode.combineParagraph.lineSpace,k.allowAcrossPage&&Y.allowAcrossPage&&(re=k.maxHeight-W)}if(ne>=v)break;ne+=1}var Ee,ke=Math.min(ne,v,C),Ie=u[ke],Ne=N.drawTree.getDlineDrawRootLists(Ie)[0],Fe=Ne.drawRoots;if(ke=Ne.index,ie){var He=this._drawMainDocs.indexOf(Y);He===this._drawMainDocs.length-1?Y=this.getNextDrawArea(Y):(this.updateDrawPage(k.index),Y=this._drawMainDocs[He+1])}if(Ie=Fe[ke],Ie instanceof Bn.t){var qe=Ie.getDrawTableByPageIndex(Y.index);Ee=qe||Ie.drawPageTables[0]}else Ee=Ie;this.update(Y,Fe,Ee,ke,ke)}finally{N.drawTree.drawPages.length!==B&&N.drawTree.updatePageCountNodes()}}},{key:"update",value:function update(l,u,_,v,C){var k=this,N=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l){-1===this._startNeedUpdatePage&&this._endNeedUpdatePage;try{0===this._oldPageCount&&(this._oldPageCount=N.drawTree.drawPages.length);var B=v,U=!1,W=0;if(B===C&&u[B]instanceof Bn.t&&(U=!0,B<u.length-1)){var q,$=u[B+1];q=$ instanceof Bn.t?$.drawPageTables[0]:$,W=q.y}var Y=u.length-1,ee=_.y;_ instanceof jn.ox&&!l.contains(_)&&(ee=0);var re=1/0;l.allowAcrossPage&&(re=l.maxHeight-ee);var ne=null;if(l instanceof An.$){var ie=this._drawMainDocs.indexOf(l);ie>0&&(ne=this._drawMainDocs[ie-1])}do{if(!l)return;if(l.update(ne,u,B,ee,re),this.afterAreaFinishPaint(l),this._startNeedUpdatePage=Math.min(l.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(l.index,this._endNeedUpdatePage),B=l.endDline,U&&B>C+1){var oe=u[C+1],ae=void 0;if(ae=oe instanceof Bn.t?oe.drawPageTables[0]:oe,ae.y===W)return}if(l.isEndLineFinished()&&(B+=1),l instanceof An.$&&(B<=Y&&(ne=l,l=this.getNextDrawArea(l),ee=0,l.allowAcrossPage&&(re=l.maxHeight)),B===u.length-1)){var le=this._drawMainDocs.indexOf(l);this._drawMainDocs.splice(le+1,this._drawMainDocs.length),N.drawTree.drawPages.splice(le+1,this._drawMainDocs.length),N.drawTree.drawPageCount.count=N.drawTree.drawPages.length}}while(B<=Y);if(l instanceof An.$&&Y===u.length-1){var ce=this._drawMainDocs.indexOf(l);this._drawMainDocs.splice(ce+1,this._drawMainDocs.length),N.drawTree.drawPages.splice(ce+1,this._drawMainDocs.length)}N.drawTree.drawPageCount.count=N.drawTree.drawPages.length,this.afterAreaFinishPaint(l),this._startNeedUpdatePage=Math.min(l.index,-1===this._startNeedUpdatePage?99999:this._startNeedUpdatePage),this._endNeedUpdatePage=Math.max(l.index,this._endNeedUpdatePage)}finally{this._oldPageCount!==N.drawTree.drawPages.length&&N.drawTree.updatePageCountNodes(),N.drawTree.inViewPages.forEach((function(l){k.updateDrawPage(l)}))}}}},{key:"calcMainDocPosition",value:function calcMainDocPosition(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.subDocManger.getSubDocIndex(l,lt.pi.hftHead),C=(0,B.Z)(v,2),k=(C[0],C[1]),N=_.subDocManger.getSubDocIndex(l,lt.pi.hftFoot),U=(0,B.Z)(N,2),W=(U[0],U[1]),q=_.subDocManger.getHeaderIndexByRoots(k),$=_.subDocManger.getFooterIndexByRoots(W),Y=this._drawHeaders[q],ee=Y?Y.actualHeight+_.pageProperty.headerYPixes:0,re=this._drawFooters[$],ne=re?re.actualHeight+_.pageProperty.footerYPixes:0,ie=this._drawMainDocs[l];if(ie){var oe=Math.max(_.pageProperty.topMarginPixes,ee),ae=Math.max(_.pageProperty.bottomMarginPixes,ne);ie.x=_.pageProperty.leftMarginPixes,ie.y=oe,ie.maxHeight=_.pageProperty.heightPixes-oe-ae,ie.dHeight=_.pageProperty.heightPixes-oe-ae}}},{key:"getMainRootArea",value:function getMainRootArea(l){var u=l;while(u){if(u instanceof An.$||u instanceof it.g||u instanceof ot.d)return u;u=u.parent}return null}},{key:"getDrawPageBySelectContainer",value:function getDrawPageBySelectContainer(l){return l&&l.id>=0&&l.id<this.drawMainDocs.length?rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[l.id]:null}},{key:"getFirstDrawArea",value:function getFirstDrawArea(l){if(l.startsWith("main"))return this._drawMainDocs[0];var u=l.split("/"),_=0;if(u.length>1&&!isNaN(parseInt(u[1]))&&(_=parseInt(u[1])),l.startsWith("header"))return this._drawHeaders[_];if(l.startsWith("footer"))return this._drawFooters[_];throw new Error("错误码的绘制路径".concat(l))}},{key:"clearAreas",value:function clearAreas(l){for(var u=0;u<l.length;u++)l[u]&&l[u].clear();l.length=0}},{key:"clear",value:function clear(){this.clearAreas(this._drawFooters),this.clearAreas(this._drawHeaders),this.clearAreas(this._drawMainDocs)}},{key:"dispalyComments",value:function dispalyComments(l,u){var _=u.areaComments;if(_.size>0){var v=function changeComment(l,_){for(var v=u.children,C=0;C<v.length;C++){var k=v[C];k.name===_.id&&(l?k instanceof createjs.Container?k.alpha=1:k.alpha=.5:k.alpha=.01)}};_.forEach((function(u){v(l,u)}))}}},{key:"afterAreaFinishPaint",value:function afterAreaFinishPaint(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.drawTree.paintStatus!==Ee.Dh.psReview&&(u.drawTree.paintStatus!==Ee.Dh.psEdit&&u.drawTree.paintStatus!==Ee.Dh.psReadOnly||u.isHideComments)||l.drawComments();var _=!1;u.drawTree.paintStatus!==Ee.Dh.psReview&&(u.drawTree.paintStatus!==Ee.Dh.psEdit&&u.drawTree.paintStatus!==Ee.Dh.psReadOnly||u.isHideComments)||(_=!0),this.dispalyComments(_,l);var v=l.rootPath;if(v.startsWith("main"))u.drawTree.repaintPageMarkNodes(u.drawTree.drawPages[l.index],l.rootPath);else{var C=u.subDocManger.getHeaderFooterType(l.rootPath);u.subDocManger.repaintPageMarkNodes(l,C)}}},{key:"updateDrawPage",value:function updateDrawPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[l];_&&(_.needUpdateStage=!0,_.drawDomLevel&&_.drawDomLevel.stage&&u.drawTree.inViewPages.indexOf(_.pageIndex)>=0&&(_.drawDomLevel.stage.update(),_.needUpdateStage=!1),_.drawSelectLevel&&_.drawSelectLevel.stage&&u.drawTree.inViewPages.indexOf(_.pageIndex)>=0&&(_.drawSelectLevel.stage.update(),_.needUpdateStage=!1))}},{key:"stopPageEvent",value:function stopPageEvent(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.drawPages.length-1;u>=0;u--){var _=l.drawTree.drawPages[u];_.drawDomLevel&&_.drawDomLevel.stage&&(_.drawDomLevel.stage.enableMouseOver(0),_.drawDomLevel.stage.removeAllEventListeners()),_.drawSelectLevel&&_.drawSelectLevel.stage&&(_.drawSelectLevel.stage.enableMouseOver(0),_.drawSelectLevel.stage.removeAllEventListeners())}}},{key:"getSubDocDrawarea",value:function getSubDocDrawarea(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return u===lt.pi.hftHead?_.drawPageTree.drawHeaders[l]:_.drawPageTree.drawFooters[l]}},{key:"updatePageWidthHeight",value:function updatePageWidthHeight(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.pageProperty.widthPixes,_=u-l.pageProperty.leftMarginPixes-l.pageProperty.rightMarginPixes,v=0;v<this._drawHeaders.length;v++){var C=this._drawHeaders[v];C&&(C.docWidth=_)}for(var k=0;k<this.drawFooters.length;k++){var N=this.drawFooters[k];N&&(N.docWidth=_)}for(var B=0;B<l.drawTree.drawPages.length;B++){var U=l.drawTree.drawPages[B];U.storeDrawFooter.docWidth=_,U.storeDrawHeader.docWidth=_}for(var W=0;W<this._drawMainDocs.length;W++){var q=this._drawMainDocs[W];q&&(q.docWidth=_)}}},{key:"changeInViewPage",value:function changeInViewPage(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=0;u<l.drawTree.drawPages.length;u++){var _=l.drawTree.drawPages[u];l.drawTree.inViewPages.indexOf(_.pageIndex)<0&&(_.drawSelectLevel&&_.drawSelectLevel.stage&&(_.drawSelectLevel.stage._nextStage=null,_.drawSelectLevel.clearStage()),_.drawDomLevel&&_.drawDomLevel.stage&&_.drawDomLevel.clearStage())}for(var v=0;v<l.drawTree.inViewPages.length;v++){var C=l.drawTree.drawPages[l.drawTree.inViewPages[v]];C.drawDomLevel&&!C.drawDomLevel.stage&&(C.drawDomLevel.bindStage(),this.updateDrawPage(C.pageIndex)),C.drawSelectLevel&&!C.drawSelectLevel.stage&&C.drawSelectLevel.bindStage()}}},{key:"getDrawPageByDNode",value:function getDrawPageByDNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=this.getMainRootArea(l);return _?u.drawTree.drawPages[_.index]:null}},{key:"getDrawPageBySelectShape",value:function getDrawPageBySelectShape(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=this.getMainRootArea(l);return _?u.drawTree.drawPages[_.index]:null}}]),DrawPageTree}(),Wn=(__webpack_require__(47042),__webpack_require__(10838));(function(l){l[l["detOver"]=0]="detOver",l[l["detOut"]=1]="detOut",l[l["detClick"]=2]="detClick",l[l["detDblclick"]=3]="detDblclick"})(Dn||(Dn={}));var qn=function(){function NodeMouseMoveEvent(l){(0,q.Z)(this,NodeMouseMoveEvent),this._pageIndex=0,this._moveType=Dn.detOut,this._hoEditorFactoryID=l,this._tipText=[],this._id=[]}return(0,$.Z)(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(l){this._poperTipPos!==l&&(this._poperTipPos=l)}},{key:"isUseTipText",get:function get(){return this._isUseTipText},set:function set(l){this._isUseTipText!==l&&(this._isUseTipText=l)}},{key:"setNode",value:function setNode(l,u){this._creatorIndex=-1,this._deleterIndex=-1,this._tipText=[],this._id=[];var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l instanceof Gt.R){if(rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus===Ee.Dh.psReview){if(this._creatorIndex=_.docTree.styles[l.styleIndex].creatorIndex,this._deleterIndex=_.docTree.styles[l.styleIndex].deleterIndex,void 0!==this._creatorIndex&&this._creatorIndex>=0){var v=_.docTree.userHistories[this._creatorIndex];this._moveType=u,this._tipText.push("".concat(v.editDate," ").concat(v.name,"创建")),this._id.push(v.id),this.computedPosition(l.drawNodes[0])}if(void 0!==this._deleterIndex&&this._deleterIndex>=0){var C=_.docTree.userHistories[this._deleterIndex];this._moveType=u,this._tipText.push("".concat(C.editDate," ").concat(C.name,"删除")),this._id.push(C.id),this.computedPosition(l.drawNodes[0])}}else if(this._isUseTipText&&0!==this._deleterIndex&&l.parentNode&&l.parentNode instanceof Bt.re&&(0===_.drawTree.paintStatus||1===_.drawTree.paintStatus||4===_.drawTree.paintStatus)){if(this._moveType=u,l.parentNode.tipText){var k=JSON.stringify(l.parentNode.tipText);k=k.slice(1,k.length-1);var N=k.split("\\n").filter((function(l){return l}));this._tipText=N}else this._tipText.push("");this._id.push(l.parentNode.id),this.computedPosition(l.drawNodes[0])}}else if(l instanceof $t.j){if(this._isUseTipText&&0!==this._deleterIndex&&l.parentNode&&l.parentNode instanceof Bt.re&&(0===_.drawTree.paintStatus||1===_.drawTree.paintStatus||4===_.drawTree.paintStatus)){if(this._moveType=u,l.parentNode.tipText){var B=JSON.stringify(l.parentNode.tipText);B=B.slice(1,B.length-1);var U=B.split("\\n").filter((function(l){return l}));this._tipText=U}else this._tipText.push("");this._id.push(l.parentNode.id),this.computedPosition(l.drawNodes[0])}}else if(this._isUseTipText&&(0===_.drawTree.paintStatus||1===_.drawTree.paintStatus||4===_.drawTree.paintStatus)&&l instanceof Bt.re){if(this._moveType=u,l.tipText){var W=JSON.stringify(l.tipText);W=W.slice(1,W.length-1);var q=W.split("\\n").filter((function(l){return l}));this._tipText=q}else this._tipText.push("");this._id.push(l.id),this.computedPosition(l.drawNodes[0])}}},{key:"NodeClick",value:function NodeClick(l,u){var _=this,v=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l instanceof He.Yh&&u===Dn.detClick){var C=v.drawTree.getDrawLineByDNode(l.drawNodes[0]),k=new Wn.W(l,"click");v.docTree.nodeClick(k),l.drawNodes[0].parent=C}if(v.drawTree.paintStatus===Ee.Dh.psDesign){var N=v.drawTree.getDrawLineByDNode(l.drawNodes[0]).paragraphNode;if(N&&N.customProperty){var B=N.customProperty,U=["男","女"].includes(B.sex)||B.age&&"隐藏"==B.age.select,W=[];U&&(["男","女"].includes(B.sex)&&W.push('患者为<span style="color:#f00"> '.concat(B.sex," </span>性时,隐藏当前段落")),B.age&&"隐藏"==B.age.select&&W.push('患者年龄在<span style="color:#f00"> '.concat(B.age.minAge,' </span>岁到<span style="color:#f00"> ').concat(B.age.maxAge," </span>之间时,隐藏当前段落")),W.length>0&&setTimeout((function(){_.createParagraphTipHTML(v.drawTree.caret,W)}),0))}}}},{key:"createParagraphTipHTML",value:function createParagraphTipHTML(l,u){var _,v=document.createElement("div");v.id="ho_paragrapgh_tip",v.style.left=l.X+"px",v.style.top=l.Y+l.height+"px",v.innerHTML=u.join("<br />"),null===(_=l.cursor.parentNode)||void 0===_||_.appendChild(v)}},{key:"computedPosition",value:function computedPosition(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.getDrawLineByDNode(l);if(_){var v=_.localToGlobal(l.x,0===l.y?_.dHeight:l.y);this._pageIndex=rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex,this._poperTipPos.width=l.dWidth?l.dWidth:0,this._poperTipPos.height=_.dHeight,this._poperTipPos.pageIndex=this._pageIndex,this._poperTipPos.moveType=this._moveType,this._poperTipPos.y=v.y/nt.f.instance().scaleXY+5,this._poperTipPos.x=v.x/nt.f.instance().scaleXY}}}]),NodeMouseMoveEvent}();qn.eventName="nodeMouseMove";var zn=__webpack_require__(88198),Vn=function(){function Option(l){(0,q.Z)(this,Option),this._reviewLev1Color="#F19191",this._reviewLev2Color="#8198F7",this._reviewLev3Color="#7FD27F",this._fieldColor="#DFFFFF",this._dateTimeColor="#FBFAD0",this._downListColor="#D2ECB1",this._downListColor2="#D2ACB1",this._signColor="transparent",this._hoEditorFactoryID=l}return(0,$.Z)(Option,[{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID},set:function set(l){this._hoEditorFactoryID=l}},{key:"reviewLev1Color",get:function get(){return this._reviewLev1Color},set:function set(l){this._reviewLev1Color=l}},{key:"reviewLev2Color",get:function get(){return this._reviewLev2Color},set:function set(l){this._reviewLev2Color=l}},{key:"reviewLev3Color",get:function get(){return this._reviewLev3Color},set:function set(l){this._reviewLev3Color=l}},{key:"fieldColor",get:function get(){return this._fieldColor},set:function set(l){this._fieldColor=l}},{key:"dateTimeColor",get:function get(){return this._dateTimeColor},set:function set(l){this._dateTimeColor=l}},{key:"downListColor",get:function get(){return this._downListColor},set:function set(l){this._downListColor=l}},{key:"downListColor2",get:function get(){return this._downListColor2},set:function set(l){this._downListColor2=l}},{key:"signColor",get:function get(){return this._signColor},set:function set(l){this._signColor=l}},{key:"setReviewLevelColor",value:function setReviewLevelColor(l,u,_,v,C,k,N,B){l&&(this._reviewLev1Color=l),u&&(this._reviewLev2Color=u),_&&(this._reviewLev3Color=_),v&&(this._fieldColor=v),C&&(this._dateTimeColor=C),k&&(this._downListColor=k),N&&(this._downListColor2=N),B&&(this._signColor=B)}},{key:"getColorByLevel",value:function getColorByLevel(l){return 10===l?this._fieldColor:11===l?this._dateTimeColor:12===l?this._downListColor2:120===l?this._downListColor:1===l?this._reviewLev1Color:2===l?this._reviewLev2Color:3===l?this._reviewLev3Color:13===l?this._signColor:"transparent"}}]),Option}(),Kn=function(){function TimeStamp(l){(0,q.Z)(this,TimeStamp),this._hoEditorFactoryID=l,this._last=(new Date).valueOf()}return(0,$.Z)(TimeStamp,[{key:"update",value:function update(){this._last=(new Date).valueOf()}},{key:"timeOut",value:function timeOut(l){return(new Date).valueOf()-this._last>(l||1e3)}}]),TimeStamp}(),$n=__webpack_require__(85014),Gn=(__webpack_require__(39714),function(){function GenerateCode(l){(0,q.Z)(this,GenerateCode),this._hoEditorFactoryID=l}return(0,$.Z)(GenerateCode,[{key:"generateID",value:function generateID(l){void 0===l&&(l="");var u=new Date,_=u.getFullYear().toString(),v=(u.getMonth()+1).toString(),C=u.getDate().toString(),k=u.getHours().toString(),N=u.getMinutes().toString(),B=u.getSeconds().toString();1===v.length&&(v="0"+v),1===C.length&&(C="0"+C),1===k.length&&(k="0"+k),1===N.length&&(N="0"+N),1===B.length&&(B="0"+B);var U=Math.floor(1e6*Math.random()).toString(),W=l+_+v+C+k+N+B+U;return W}},{key:"generateTime",value:function generateTime(){var l=new Date,u=l.getFullYear().toString(),_=(l.getMonth()+1).toString(),v=l.getDate().toString(),C=l.getHours().toString(),k=l.getMinutes().toString(),N=l.getSeconds().toString();1===_.length&&(_="0"+_),1===v.length&&(v="0"+v),1===C.length&&(C="0"+C),1===k.length&&(k="0"+k),1===N.length&&(N="0"+N);var B=u+"-"+_+"-"+v+" "+C+":"+k+":"+N;return B}}]),GenerateCode}()),Zn=__webpack_require__(86769),Jn=__webpack_require__.n(Zn),Xn=(__webpack_require__(27852),__webpack_require__(56977),__webpack_require__(73210),__webpack_require__(19755)),Yn=__webpack_require__.n(Xn),Qn=__webpack_require__(39171),ei=__webpack_require__(64134),ti=function(){function HTMLconverter2(l){var u=this;(0,q.Z)(this,HTMLconverter2),this._hoEditorFactoryID=l,this.convert=new Map,0===this.convert.size&&(this.convert=new Map,this.convert.set("div",(function(l,_){return u.TransHTML(l,_)})),this.convert.set("p",(function(l,_){return u.TransHTMLP(l,_)})),this.convert.set("br",(function(l,_){return u.TransHTMLP(l,_)})),this.convert.set("span",(function(l,_){return u.TransHTMLSPAN(l,_)})),this.convert.set("font",(function(l,_){return u.TransHTMLSPAN(l,_)})),this.convert.set("table",(function(l,_){return u.TransHTMLTABLE(l,_)})),this.convert.set("#text",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("b",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("strong",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("em",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("i",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("sup",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("sub",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("u",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("s",(function(l,_){return u.TransHTMLText(l,_)})),this.convert.set("img",(function(l,_){return u.TransHTMLIMG(l,_)})))}return(0,$.Z)(HTMLconverter2,[{key:"Exec",value:function Exec(l,u){var _=new Array;return _.push.apply(_,(0,U.Z)(this.TransHTML(l,u))),_}},{key:"TransHTML",value:function TransHTML(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=this.mergestyle(Yn()(l).attr("style")||"",u),C=new Array;if(0==l.childNodes.length){var k=this.HTMLStyleToCombineStyle(v),N=_.docTree.styleCompare(k),B=new Gt.R(this._hoEditorFactoryID,_.docTree.activeNodes,null,Fe.Jq.ntText,Yn()(l).text(),N);return C.push(B),C}if(6===l.childNodes.length&&"TABLE"==l.childNodes[2].nodeName){var W=this.mergestyle(Yn()(l.childNodes[2]).attr("style")||"",u),q=this.generateTextNode(l.childNodes[2].textContent,W);return q&&C.push(q),C}for(var $=0;$<l.childNodes.length;$++){if("img"==l.childNodes[$].nodeName.toLowerCase()){var Y=l.childNodes[$].src;if(Y&&".svg"===Y.toString().substring(Y.length-4,Y.length))continue}var ee=this.convert.get(l.childNodes[$].nodeName.toLowerCase());if(ee&&C.push.apply(C,(0,U.Z)(ee(l.childNodes[$],JSON.stringify(v)))),"p"===l.childNodes[$].nodeName.toLowerCase()&&l.childNodes[$+1]&&"p"!==l.childNodes[$+1].nodeName.toLowerCase()){var re=Object(l.childNodes[$]);re.className&&"MsoNormal"===re.className&&C[C.length-1]instanceof mn.C&&C.splice(C.length-1,1)}if("p"===l.childNodes[$].nodeName.toLowerCase()&&l.childNodes[$-1]&&"p"!==l.childNodes[$-1].nodeName.toLowerCase()){var ne=Object(l.childNodes[$]);ne.className&&"MsoNormal"===ne.className&&C[0]instanceof mn.C&&C.splice(0,1)}}for(var ie=0;ie<C.length;ie++){var oe=C[ie];if(oe instanceof Un.Fh&&oe.parentNode instanceof Bt.re)return Jn().alert("不能在文本域中插入表格"),[];if(oe instanceof Un.Fh&&oe.parentNode instanceof et.D)return Jn().alert("不能在表格中插入表格"),[]}return C}},{key:"StyleToJSON",value:function StyleToJSON(l){if(""==l)return{};if(l.startsWith("{"))return JSON.parse(l);var u=l;u.endsWith(";")&&(u=u.substr(0,u.length-1)),u=u.split("\n").join(""),u=u.split('"').join(""),u=u.split(";").join('",\n"'),u=u.split(":").join('":"'),u=u.split("-").join("_"),u='{"'.concat(u,'"}');var _=JSON.parse(u);return _}},{key:"colorRGB2Hex",value:function colorRGB2Hex(l){var u=l.split(","),_=parseInt(u[0].split("(")[1]),v=parseInt(u[1]),C=parseInt(u[2].split(")")[0]),k="#"+((1<<24)+(_<<16)+(v<<8)+C).toString(16).slice(1);return k}},{key:"HTMLStyleToCombineStyle",value:function HTMLStyleToCombineStyle(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.styles[0].clone();if(l["font_size"]){_.size=Number(l["font_size"])||_.size;var v=l["font_size"],C=v.match(/^(.*)(px|pt)$/);if(C){var k=parseFloat(C[1]);"px"==C[2]&&(k=k/96*72),_.size=k}}if(l["font_family"]&&""!==(0,Xn.trim)(l["font_family"].toString())?_.font=l["font_family"]:_.font=_.combineStyle.font,l["font_weight"]&&(_.bold=!0),l["font_style"]&&"normal"!==(0,Xn.trim)(l["font_style"].toString())&&(_.italic=!0),l["text_decoration"]){var N=l["text_decoration"];_.underline=-1!=N.indexOf("underline"),_.strikeout=-1!=N.indexOf("line_through")}if(l["vertical_align"]){var B=l["vertical_align"];"super"==B?_.script=Qn.n$.sstsup:"sub"==B&&(_.script=Qn.n$.sstsub)}if(l["background_color"]){_.backColor=l["background_color"];var U=l["background_color"];U.indexOf("rgb")>=0&&(_.backColor=this.colorRGB2Hex(U))}if(l["background"]){_.backColor=l["background"];var W=l["background"];W.indexOf("rgb")>=0&&(_.backColor=this.colorRGB2Hex(W))}if(l["color"]){_.color=l["color"];var q=l["color"];q.indexOf("rgb")>=0&&(_.color=this.colorRGB2Hex(q))}return _}},{key:"parseHtmlString",value:function parseHtmlString(l){return this.Exec(Yn()(l)[0],"")}},{key:"HTMLStyleToParsStyle",value:function HTMLStyleToParsStyle(l){var u=new ei.nv(this._hoEditorFactoryID);if(l["text_align"]){var _=l["text_align"];u.align="center"==_?ei.xM.alcenter:"left"==_?ei.xM.alleft:"right"==_?ei.xM.alright:"justify"==_?ei.xM.alSpaceEqually:u.align}if(l["line_height"]){var v=l["line_height"];u.lineSpace=Number(v.substr(0,v.indexOf("%")))/100}if(l["mso_para_margin_left"]){var C=l["mso_para_margin_left"],k=C.match(/^(.*)gd$/);k&&k[1]&&(u.leftMargin=Number(k[1]))}if(l["text_indent"]){var N=l["text_indent"],B=N.match(/^(.*)gd$/);B&&B[1]&&(u.leftMargin=Number(B[1]))}return u}},{key:"mergestyle",value:function mergestyle(l,u){var _={},v={};return""!=l&&(_=this.StyleToJSON(l)),""!=u&&(v=this.StyleToJSON(u)),Object.assign(v,_)}},{key:"TransHTMLIMG",value:function TransHTMLIMG(l,u){var _=this.mergestyle(Yn()(l).attr("style")||"",u),v=(Yn()(l).attr("src"),_.width?_.width.replace("px",""):20),C=_.height?_.height.replace("px",""):20,k=new Sn.H(this._hoEditorFactoryID,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,null,Fe.Jq.ntImage,rt.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"),Yn()(l).attr("src")||"",Number(v),Number(C));return[k]}},{key:"generateTableProperty",value:function generateTableProperty(l){Yn()(l).attr;var u=new tt.vE("");return u.tightLineSpace=u["tightLineSpace"]||!1,u.layoutFullLine=u["layoutFullLine"]||!1,u.continuePrintBorders=u["continuePrintBorders"]||!1,u.canDeleteTable=u["canDeleteTable"]||!1,u.canDeleteRow=u["canDeleteRow"]||!1,u.canAddRow=u["canAddRow"]||!1,u.canAdjustRowWidth=u["canAdjustRowWidth"]||!1,u.canAdjustRowHeight=u["canAdjustRowHeight"]||!1,u.fixedOnePage=u["fixedOnePage"]||!1,u.isAutoChangeLine=u["isAutoChangeLine"]||!1,u.autoLineHeight=u["autoLineHeight"]||.53,u}},{key:"SetTableProperty",value:function SetTableProperty(l,u){for(var _,v=Yn()(l).children(),C=new Array,k=new Array,N=0,B=0;B<v.length;B++){for(var U=Yn()(v[B]).children(),W=0;W<U.length;W++){var q=new tt.Nr(""),$=new Un.ii(u,q),Y=Yn()(U[B]).css("height");if(Y&&"0px"!=Y){var ee=0;Y.indexOf("pt")>0&&(ee=parseFloat(Y.substring(0,Y.indexOf("pt")))),Y.indexOf("px")>0&&(ee=parseFloat(Y.substring(0,Y.indexOf("px")))),ee=parseFloat((96*ee/72).toFixed(2)),$.rowHeight=ee}C.push($);var re=Yn()(U[W]).children();re.length>N&&(N=re.length,_=U[W])}if(!_)throw new Error("表格中没有发现列");for(var ne=Yn()(_).children(),ie=0;ie<ne.length;ie++){var oe=Yn()(ne[ie]).css("width"),ae=0;oe.indexOf("pt")>0&&(ae=parseFloat(oe.substring(0,oe.indexOf("pt")))),oe.indexOf("px")>0&&(ae=parseFloat(oe.substring(0,oe.indexOf("px")))),ae=parseFloat((96*ae/72).toFixed(2));var le=new tt.Ti(""),ce=new Un.ZE(u,ae,le);k.push(ce)}u.rowInfos=C,u.colInfos=k}}},{key:"TransHTMLTABLE",value:function TransHTMLTABLE(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath);if(_ instanceof Un.Fh||_ instanceof et.D)return Jn().alert("不能在表格中插入表格"),[];if(_ instanceof Bt.re)return Jn().alert("不能在文本域中插入表格"),[];this.mergestyle(Yn()(l).attr("style")||"",u);for(var v=Yn()(l).children(),C=new Array,k=0,N=0,B=0;B<v.length;B++){var W=Yn()(v[B]).children();k+=W.length;for(var q=0;q<W.length;q++){var $=new Array,Y=Yn()(W[q]).children();N=Math.max(Y.length,N),$.push.apply($,(0,U.Z)(Y)),C.push($)}}var ee=new Un.Fh(this._hoEditorFactoryID,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes,_,k,N,this.generateTableProperty(l));if(this.SetTableProperty(l,ee),0==C.length)return[];for(var re=0;re<k;re++)for(var ne=0;ne<N;ne++){var ie=C[re][ne];if(ie){var oe=parseInt(Yn()(ie).attr("rowSpan")||"1"),ae=parseInt(Yn()(ie).attr("colSpan")||"1");if(ae>1){var le,ce=new Array(ae-1);if((le=C[re]).splice.apply(le,[ne+1,0].concat(ce)),oe>1)for(var de=re+1;de<re+oe;de++){var he,_e=new Array(ae);(he=C[de]).splice.apply(he,[ne,0].concat(_e))}}else if(oe>1)for(var pe=re+1;pe<re+oe;pe++){var fe,me=new Array(ae);(fe=C[pe]).splice.apply(fe,[ne,0].concat(me))}}}for(var be=function getitem(l,u){return l<C.length&&u<C[l].length?C[l][u]:void 0},Ee=0;Ee<k;Ee++)for(var ke=0;ke<N;ke++){var Ie=be(Ee,ke);Ie?this.copyCellNode(Ie,ee,Ee,ke):ee.rows[Ee][ke]=void 0}return ee.node2DrawNode(),[ee]}},{key:"TransHTMLSPAN",value:function TransHTMLSPAN(l,u){var _=this.mergestyle(Yn()(l).attr("style")||"",u);if(0==l.childNodes.length){var v=this.generateTextNode(Yn()(l).text(),_);return v?[v]:[]}for(var C=new Array,k=0;k<l.childNodes.length;k++){var N=this.convert.get(l.childNodes[k].nodeName.toLowerCase());N&&C.push.apply(C,(0,U.Z)(N(l.childNodes[k],JSON.stringify(_))))}return C}},{key:"TransHTMLP",value:function TransHTMLP(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=this.mergestyle(Yn()(l).attr("style")||"",u),C=new Array,k=this.HTMLStyleToParsStyle(v);0===k.lineSpace&&(k.lineSpace=void 0);var N=_.docTree.styleCompare(k),B=new mn.C(this._hoEditorFactoryID,_.docTree.activeNodes,_.docTree.getParentNode(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),N);if(C.push(B),0==l.childNodes.length){if("br"===l.nodeName.toLowerCase())return C;var W=this.generateTextNode(Yn()(l).text(),v);return W?[W]:[]}for(var q=0;q<l.childNodes.length;q++){var $=this.convert.get(l.childNodes[q].nodeName.toLowerCase());$&&C.push.apply(C,(0,U.Z)($(l.childNodes[q],JSON.stringify(v))))}return C}},{key:"TransHTMLText",value:function TransHTMLText(l,u){var _=this.mergestyle(Yn()(l).attr("style")||"",u),v=l.nodeName.toLowerCase();if("b"==v||"strong"==v)_["font_weight"]="bold";else if("em"==v||"i"==v)_["font_style"]="italic";else if("sup"==v){var C=_["vertical_align"]||"";-1==C.indexOf("sub")&&(_["vertical_align"]=(""==C||void 0==C?"":C+" ")+"super")}else if("sub"==v){var k=_["vertical_align"]||"";-1==k.indexOf("sub")&&(_["vertical_align"]=(""==k||void 0==k?"":k+" ")+"sub")}else if("u"==v){var N=_["text_decoration"]||"";-1==N.indexOf("underline")&&(_["text_decoration"]=(""==N?"":N+" ")+"underline")}else if("s"==v){var B=_["text_decoration"]||"";-1==B.indexOf("line_through")&&(_["text_decoration"]=(""==B?"":B+" ")+"line_through")}if(0==l.childNodes.length){var W=this.generateTextNode(Yn()(l).text(),_);return W?[W]:[]}for(var q=new Array,$=0;$<l.childNodes.length;$++){var Y=this.convert.get(l.childNodes[$].nodeName.toLowerCase());Y&&q.push.apply(q,(0,U.Z)(Y(l.childNodes[$],JSON.stringify(_))))}return q}},{key:"generateTextNode",value:function generateTextNode(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(""==l.split("\n").join(""))return null;if(""==l.trim())return null;var v=this.HTMLStyleToCombineStyle(u),C=_.docTree.styleCompare(v),k=new Gt.R(this._hoEditorFactoryID,_.docTree.activeNodes,_.docTree.getParentNode(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath),Fe.Jq.ntText,l,C);return k}},{key:"copyCellNode",value:function copyCellNode(l,u,_,v){var C=u.rows[_][v];if(C){var k;C.rowSpan=parseInt(Yn()(l).attr("rowSpan")||"1")||1,C.colSpan=parseInt(Yn()(l).attr("colSpan")||"1")||1;var N=this.mergestyle(Yn()(l).attr("style")||"","");N["mso_diagonal_down"]&&"none"!=N["mso_diagonal_down"]&&(C.crossLineType=et.v.ct02),N["mso_diagonal_up"]&&"none"!=N["mso_diagonal_up"]&&(C.crossLineType=et.v.ct13),"top"==Yn()(l).attr("valign")?C.cellProperty.align=tt.TR.vatop:"bottom"==Yn()(l).attr("valign")?C.cellProperty.align=tt.TR.vabottom:C.cellProperty.align=tt.TR.vacenter;for(var B=Array(),W=0;W<l.childNodes.length;W++){var q=this.convert.get(l.childNodes[W].nodeName.toLowerCase());q&&B.push.apply(B,(0,U.Z)(q(l.childNodes[W],"")))}C.childNodes.splice(0,C.childNodes.length),B.forEach((function(l){l.parentNode=C,l instanceof mn.C&&l.drawlines.forEach((function(l){l.dWidth=u.colInfos[v].colWidth}))})),(k=C.childNodes).push.apply(k,B),C.cell2DrawNode(_,v)}}}]),HTMLconverter2}(),ri=__webpack_require__(15890),ni=(__webpack_require__(69826),__webpack_require__(68757),__webpack_require__(24603),__webpack_require__(28450),__webpack_require__(88386),__webpack_require__(88674),__webpack_require__(27098)),oi=__webpack_require__.n(ni),ai=__webpack_require__(52192),si=__webpack_require__(6264),li=__webpack_require__(96562),ci=__webpack_require__(2307),ui=__webpack_require__(40599),di=__webpack_require__(72353),hi=__webpack_require__(73075),_i=__webpack_require__(71245),pi=__webpack_require__(93948),fi=__webpack_require__(38333),gi=__webpack_require__(93792),mi=__webpack_require__(58372),vi=__webpack_require__(25812),yi=__webpack_require__(70804),bi=__webpack_require__(92551),wi=__webpack_require__(70477),xi=__webpack_require__(9327),Pi=__webpack_require__(32843);__webpack_require__(64765);function xmlBeauty(l){for(var u=l.replace(/</g,"~::~<").replace(/xmlns:/g,"~::~xmlns:").replace(/xmlns=/g,"~::~xmlns=").split("~::~"),_=u.length,v=!1,C=0,k="",N=["\n"],B=" ",U=0;U<100;U++)N.push(N[U]+B);for(var W=null,q=0;q<_;q++)u[q].search(/<!/)>-1?(k+=N[C]+u[q],v=!0,(u[q].search(/-->/)>-1||u[q].search(/\]>/)>-1||u[q].search(/!DOCTYPE/)>-1)&&(v=!1)):u[q].search(/-->/)>-1||u[q].search(/\]>/)>-1?(k+=u[q],v=!1):/^<\w/.exec(u[q-1])&&/^<\/\w/.exec(u[q])&&/^<[\w:\-.,]+/.exec(u[q-1])==(W=/^<\/[\w:\-.,]+/.exec(u[q]),null==W?W:W[0].replace("/",""))?(k+=u[q],v||C--):u[q].search(/<\w/)>-1&&-1==u[q].search(/<\//)&&-1==u[q].search(/\/>/)?k=k+=v?u[q]:N[C++]+u[q]:u[q].search(/<\w/)>-1&&u[q].search(/<\//)>-1?k=k+=v?u[q]:N[C]+u[q]:u[q].search(/<\//)>-1?k=k+=v?u[q]:N[--C]+u[q]:u[q].search(/\/>/)>-1?k=k+=v?u[q]:N[C]+u[q]:u[q].search(/<\?/)>-1||u[q].search(/xmlns:/)>-1||u[q].search(/xmlns=/)>-1?k+=N[C]+u[q]:k+=u[q];return"\n"==k[0]?k.slice(1):k}var Ci,Ei=__webpack_require__(86726),Si=__webpack_require__(77647),Ti=__webpack_require__(85983),Di=function(){function StructureConvert(l){(0,q.Z)(this,StructureConvert),this._comments=[],this._markNodes=[],this._superiorSign=[],this._hoEditorFactoryID=l,this._comments=[],this._markNodes=[],this._superiorSign=[]}return(0,$.Z)(StructureConvert,[{key:"nodes2Html",value:function nodes2Html(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.structureNode.Copy(l,null),u.structureNode.htmldata}},{key:"nodes2Text",value:function nodes2Text(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.structureNode.Copy(l,null),u.structureNode.textdata}},{key:"nodes2Json",value:function nodes2Json(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.structureNode.Copy(l,null),u.structureNode.jsondata}},{key:"htmlToNode",value:function htmlToNode(l){var u,_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=/<body[^>]*>([\s\S]+?)<\/body>/i,C=v.exec(l);if(!C)return[];u="<div>"+C[1]+"</div>";var k=[];if(u)for(var N=Yn()(u).children(),B=0;B<N.length;B++){var U=N[B],W=Yn()(U).prop("tagName").toLowerCase();if("p"==W){var q=this.dealP(U),$=new mn.C(this._hoEditorFactoryID,_.docTree.mainNodes,null,0),Y=$.combineParagraph,ee=this.dealStyle(q.style,"text-align");ee&&(Y.align="center"==ee?ei.xM.alcenter:"left"==ee?ei.xM.alleft:"right"==ee?ei.xM.alright:"justify"==ee?ei.xM.alSpaceEqually:Y.align);var re=this.dealStyle(q.style,"line-height");re&&re.indexOf("%")>0&&(Y.lineSpace=Number(re.substr(0,re.indexOf("%")))/100);var ne=this.dealStyle(q.style,"mso-para-margin-left");if(ne){var ie=ne.match(/^(.*)gd$/);ie&&ie[1]&&(Y.leftMarginMm=Number(ie[1]))}k.push($);for(var oe=0;oe<q.children.length;oe++){var ae=q.children[oe];if(ae.text){var le=ae.style;le=le.replace(/\r\n/g,""),le=le.replace(/\n/g,"");var ce=new Qn.pn(this._hoEditorFactoryID),de=this.dealStyle(le,"font-size");if(de){var he=de.match(/^(.*)(px|pt)$/);if(he){var _e=parseFloat(he[1]);"pt"==he[2]&&(_e=parseFloat((96*_e/72).toFixed(2))),ce.size=_e}}var pe=this.dealStyle(le,"font-family");pe&&(ce.font=pe);var fe=this.dealStyle(le,"font-weight");fe&&fe.indexOf("bold")>=0&&(ce.bold=!0);var me=this.dealStyle(le,"font-style");me&&me.indexOf("italic")>=0&&(ce.italic=!0);var be=this.dealStyle(le,"text-decoration");be&&be.indexOf("underline")>=0&&(ce.underline=!0),be&&be.indexOf("line-through")>=0&&(ce.strikeout=!0);var Ee=this.dealStyle(le,"vertical-align");Ee&&Ee.indexOf("super")>=0&&(ce.script=2),Ee&&Ee.indexOf("sub")>=0&&(ce.script=1);var ke=this.dealStyle(le,"background");ke&&(ke.indexOf("rgb")>=0&&(ke=this.colorRGB2Hex(ke)),ce.backColor=ke);var Ie=this.dealStyle(le,"color");Ie&&(Ie.indexOf("rgb")>=0&&(Ie=this.colorRGB2Hex(Ie)),ce.color=Ie);var Ne=_.docTree.styleCompare(ce),He=new Gt.R(this._hoEditorFactoryID,_.docTree.mainNodes,null,Fe.Jq.ntText,ae.text,Ne);k.push(He)}}if(B==N.length-1&&Yn()(U).html().indexOf("<o:p></o:p>")>0){var qe=new mn.C(this._hoEditorFactoryID,_.docTree.mainNodes,null,0);k.push(qe)}}else if("table"==W){var Ke=new mn.C(this._hoEditorFactoryID,_.docTree.mainNodes,null,_.docTree.curParaNo);k.push(Ke),k.push(this.dealTable(U))}}return k}},{key:"dealTable",value:function dealTable(l){for(var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=Yn()(l).find("tbody tr"),v=0,C=new Array,k=new Array,N=new Array,B=0,U=new Map,W=0;W<_.length;W++){var q=Yn()(_[W]).children().length;q>v&&(v=q,B=W)}new mn.C(this._hoEditorFactoryID,u.docTree.mainNodes,null,u.docTree.curParaNo);for(var $=new tt.vE(""),Y=new Un.Fh(this._hoEditorFactoryID,u.docTree.mainNodes,null,_.length,v,$),ee=0;ee<_.length;ee++){var re=new tt.Nr(""),ne=new Un.ii(Y,re),ie=Yn()(_[ee]).css("height");if(ie&&"0px"!=ie){var oe=parseFloat(ie.substring(0,ie.indexOf("pt")));oe=parseFloat((96*oe/72).toFixed(2)),ne.rowHeight=oe}C.push(ne);for(var ae=Yn()(_[ee]).children(),le=0,ce=0;ce<ae.length;ce++){if(B==ee){var de=Yn()(ae[ce]).css("width"),he=parseFloat(de.substring(0,de.indexOf("pt")));he=parseFloat((96*he/72).toFixed(2));var _e=new tt.Ti(""),pe=new Un.ZE(Y,he,_e);k.push(pe)}var fe=Yn()(ae[ce]).attr("colspan"),me=Yn()(ae[ce]).attr("rowspan");if(fe||me){var be=0;if(fe&&(be=parseInt(fe)),me){for(var Ee=parseInt(me),ke=0;ke<Ee;ke++){for(var Ie=0;Ie<be;Ie++)this.arrayPush(ee+ke,le+Ie,v,ee+"-"+ce,N);0==be&&this.arrayPush(ee+ke,le,v,ee+"-"+ce,N)}le+=0==be?1:be}else for(var Ne=0;Ne<be;Ne++)this.arrayPush(ee,le,v,ee+"-"+ce,N),le++}else this.arrayPush(ee,le,v,ee+"-"+ce,N),le++;U.set(ee+"-"+ce,ae[ce])}}Y.colInfos=k,Y.rowInfos=C;for(var Fe=new Map,He=0;He<N.length;He++)for(var qe=N[He],Ke=0;Ke<qe.length;Ke++){var Ge=N[He][Ke];if(Fe.get(Ge))Y.rows[He][Ke]=void 0;else{var et=U.get(Ge),nt=Yn()(et).css("border-left"),it=Yn()(et).css("border-right"),ot=Yn()(et).css("border-top"),st=Yn()(et).css("border-bottom"),lt=Yn()(et).attr("colspan"),ct=Yn()(et).attr("rowspan"),ut=Y.rows[He][Ke],dt=ct?parseInt(ct):1,ht=lt?parseInt(lt):1;ut.rowSpan=dt,ut.colSpan=ht,ut.borderVisible=["none"!=nt,"none"!=it,"none"!=ot,"none"!=st];for(var _t=Yn()(et).children(),pt=new Array,ft=0;ft<_t.length;ft++){var gt=_t[ft],mt=this.htmlToNode("<body>"+gt.outerHTML+"</body>");pt=pt.concat(mt)}for(var vt=0;vt<pt.length;vt++)null===ut||void 0===ut||ut.addChild(pt[vt]);ut.cell2DrawNode(He,Ke),Fe.set(Ge,Ge)}}return Y.node2DrawNode(),Y}},{key:"arrayPush",value:function arrayPush(l,u,_,v,C){for(C[l]||C.push(new Array);u<_;u++)if(!C[l][u]){C[l][u]=v;break}}},{key:"colorRGB2Hex",value:function colorRGB2Hex(l){var u=l.split(","),_=parseInt(u[0].split("(")[1]),v=parseInt(u[1]),C=parseInt(u[2].split(")")[0]),k="#"+((1<<24)+(_<<16)+(v<<8)+C).toString(16).slice(1);return k}},{key:"dealStyle",value:function dealStyle(l,u){if(!l)return"";for(var _=l.split(";"),v=0;v<_.length;v++){var C=_[v],k=C.split(":");if(u==k[0])return k[1]}return""}},{key:"dealP",value:function dealP(l){var u=Yn()(l).children(),_=Yn()(l).attr("style")||"",v=this.dealTagName(u,"");return{style:_,children:v}}},{key:"dealTagName",value:function dealTagName(l,u){for(var _=[],v=0;v<l.length;v++){var C=l[v],k=Yn()(C).prop("tagName").toLowerCase();"b"==k||"strong"==k?_=_.concat(this.dealBaseTag(C,u+"font-weight:bold;")):"em"==k||"i"==k?_=_.concat(this.dealBaseTag(C,u+"font-style:italic;")):"u"==k?_=_.concat(this.dealBaseTag(C,u+"text-decoration: underline;")):"s"==k?_=_.concat(this.dealBaseTag(C,u+"text-decoration: line-through;")):"sup"==k?_=_.concat(this.dealBaseTag(C,u+"vertical-align:super;")):"sub"==k?_=_.concat(this.dealBaseTag(C,u+"vertical-align:sub;")):"span"==k&&(_=_.concat(this.dealSpan(C,u)))}return _}},{key:"dealBaseTag",value:function dealBaseTag(l,u){var _=Yn()(l).children();return 0==_.length?[{style:u,text:Yn()(l).text()}]:this.dealTagName(_,u)}},{key:"dealSpan",value:function dealSpan(l,u){var _=(Yn()(l).attr("style")||"")+u;_.endsWith(";")||(_+=";");var v=Yn()(l).children();if(0==v.length)return[{style:_,text:Yn()(l).text()}];for(var C=Yn()(l).html(),k=[],N=0;N<v.length;N++){var B=v[N],U=B.outerHTML,W=C.indexOf(U);W>0&&(k.push({style:_,text:C.substr(0,W)}),C=C.substr(W));var q=Yn()(B).prop("tagName").toLowerCase(),$=_;if("b"==q||"strong"==q)$+="font-weight:bold;";else if("em"==q||"i"==q)$+="font-style:italic;";else if("u"==q)$+="text-decoration: underline;";else if("s"==q)$+="text-decoration: line-through;";else if("sup"==q)$+="vertical-align:super;";else if("sub"==q)$+="vertical-align:sub;";else if("span"==q)$+=Yn()(B).attr("style");else if("o:p"==q){C="";continue}var Y=Yn()(U).children();Y&&Y.length>0?k.push(this.dealTagName(Y,$)[0]):k.push({style:$,text:Yn()(B).text()}),C=C.substr(U.length)}return C&&k.push({style:_,text:C}),k}},{key:"doc2Text",value:function doc2Text(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.getHeaderPageNodes(),_="",v=0;v<u.length;v++){var C=u[v];C.length>1&&(_+=this.nodes2Text(C))}for(var k=l.docTree.mainNodes,N=this.nodes2Text(k),B=l.subDocManger.getFooterPageNodes(),U="",W=0;W<B.length;W++){var q=B[W];q.length>1&&(U+=this.nodes2Text(q))}var $="";return $=_.length>0?_+"\n"+N+"\n"+U:N+"\n"+U,$}},{key:"doc2Html",value:function doc2Html(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u="",_=l.subDocManger.getHeaderPageNodes(),v=0;v<_.length;v++){var C=_[v];u+=this.nodes2Html(C)}var k=l.docTree.mainNodes;u+=this.nodes2Html(k);for(var N=l.subDocManger.getFooterPageNodes(),B=0;B<N.length;B++){var U=N[B];u+=this.nodes2Html(U)}return u}},{key:"doc2Xml",value:function doc2Xml(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(_&&(this.getValidStyles(0),this.getValidStyles(1)),"json"===l){var k=JSON.parse("{}"),N=this.doc2Json("docProperty");k.docProperty=N;var B=this.doc2Json("pageSettings");k.pageSettings=B;var U=this.doc2Json("styles");k.styles=U;var W=this.doc2Json("comments");k.comments=W;var q=this.doc2Json("userHistories");k.userHistories=q;var $=this.doc2Json("header","json");k.headers=$;var Y=this.doc2Json("main","json");k.main=Y;var ee=this.doc2Json("footer","json");return k.footer=ee,k}var re='<?xml version="1.0" encoding="utf-8"?>';re+="<root xml:space='preserve'>";var ne=new(oi())({stripWhitespaces:!1,arrayAccessForm:"property"});re+="<docProperty>";var ie=this.doc2Json("docProperty");re+=ne.js2xml(ie),re+="</docProperty>",re+="<pageSettings>";var oe=this.doc2Json("pageSettings");re+=ne.js2xml(oe),re+="</pageSettings>",re+="<styles>";var ae=this.doc2Json("styles");re+=ne.js2xml(ae),re+="</styles>",re+="<comments>";var le=this.doc2Json("comments");re+=ne.js2xml(le),re+="</comments>",re+="<userHistories>";var ce=this.doc2Json("userHistories");return re+=ne.js2xml(ce),re+="</userHistories>",re+="<headers>",re=this.doc2Json("header","xml",re),re+="</headers>",re+="<main>",re=this.doc2Json("main","xml",re,v),re+="</main>",re+="<footers>",re=this.doc2Json("footer","xml",re),re+="</footers>",re+="<docText>",re+=C.vueController.getMainDocText(),re+="</docText>",re+="</root>",re=C.unitConvert.replaceAll(re,"<TempNode>",""),re=C.unitConvert.replaceAll(re,"</TempNode>",""),C.isThrowError=!0,u?re:xmlBeauty(re)}},{key:"xml2Doc",value:function xml2Doc(l,u){var _=this.xml2Object(l);if(_)return this.json2Doc(_,u)}},{key:"xml2Object",value:function xml2Object(l){l=this.replaceNodesName(l);var u=new(oi())({stripWhitespaces:!1}),_=u.xml2js(l),v=JSON.parse(JSON.stringify(_));if(!v.root&&!v.rvxml)return null;if(v.root){var C=v.root,k=C.headers.header;void 0===k.length&&(k=Array(C.headers.header));for(var N=new Array,B=0;B<k.length;B++){var U=parseInt(k[B].index),W=k[B].node;void 0===W.length&&(W=Array(k[B].node));for(var q=0;q<W.length;q++){var $=W[q];N[U]||(N[U]=new Array),N[U][q]=$}}var Y=C.footers.footer;void 0===Y.length&&(Y=Array(C.footers.footer));for(var ee=new Array,re=0;re<Y.length;re++){var ne=parseInt(Y[re].index),ie=Y[re].node;void 0===ie.length&&(ie=Array(Y[re].node));for(var oe=0;oe<ie.length;oe++){var ae=ie[oe];ee[ne]||(ee[ne]=new Array),ee[ne][oe]=ae}}for(var le=new Array,ce=new Array,de=0;de<N.length;de++)if(N[de]){var he=new lt.UJ(de,"");he.subDocNodes=N[de],le.push(he)}for(var _e=0;_e<ee.length;_e++)if(ee[_e]){var pe=new lt.UJ(_e,"");pe.subDocNodes=ee[_e],ce.push(pe)}new Array;return{docProperty:C.docProperty,pageSettings:C.pageSettings,comments:C.comments,userHistories:C.userHistories,styles:C.styles,main:C.main.node,header:le,footer:ce}}return null}},{key:"replaceNodesName",value:function replaceNodesName(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode/g);return l=l.replace(_,"node"),l=u.unitConvert.replaceAll(l,"<TableFormula>","<node>"),l=u.unitConvert.replaceAll(l,"</TableFormula>","</node>"),l=u.unitConvert.replaceAll(l,"<End>","<node>"),l=u.unitConvert.replaceAll(l,"</End>","</node>"),l=u.unitConvert.replaceAll(l,"<PupilMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</PupilMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<LightLocationMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</LightLocationMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<MenstrualHistoryNode>","<node>"),l=u.unitConvert.replaceAll(l,"</MenstrualHistoryNode>","</node>"),l=u.unitConvert.replaceAll(l,"<FetalHeartMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</FetalHeartMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<PermanentTeethMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</PermanentTeethMapNode>","</node>"),l=u.unitConvert.replaceAll(l,"<PrimaryTeethMapNode>","<node>"),l=u.unitConvert.replaceAll(l,"</PrimaryTeethMapNode>","</node>"),l}},{key:"getValidStyles",value:function getValidStyles(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=[];0===l&&(_=u.docTree.styles),1===l&&(_=u.docTree.paragraphs);for(var v=u.docTree.mainNodes,C=u.subDocManger.headerDocTree,k=u.subDocManger.footerDocTree,N=function forEachAllNodes(u,_,N,B){var U=function updateNodesStyle(u){for(var v=0;v<u.length;v++){var C=u[v];if(0===l){if(C instanceof Gt.R||C instanceof wi.w||C instanceof $t.j||C instanceof mn.C)if(0===_){if(Number(C.styleIndex)===N){B=!0;break}}else Number(C.styleIndex)>N&&(C.styleIndex=Number(C.styleIndex)-1)}else if(C instanceof mn.C)if(0===_){if(Number(C.paraNo)===N){B=!0;break}}else Number(C.paraNo)>N&&(C.paraNo=Number(C.paraNo)-1);C instanceof gi.V&&updateNodesStyle(C.childNodes)}};if("all"===u||"head"===u)for(var W=0;W<C.length;W++){var q=C[W].subDocNodes;Array.isArray(q)&&q.length>0&&U(q)}if("all"!==u&&"main"!==u||U(v),"all"===u||"foot"===u)for(var $=0;$<k.length;$++){var Y=k[$].subDocNodes;Array.isArray(Y)&&Y.length>0&&U(Y)}if(0===_)return B},B=_.length-1;B>0;B--){var U=!1;U=N("foot",0,B,U),U||(U=N("main",0,B,U)),U||(U=N("head",0,B,U)),U||(_.splice(B,1),N("all",1,B))}return _}},{key:"doc2Json",value:function doc2Json(l,u,_,v){var C=this,k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=new(oi())({stripWhitespaces:!1,arrayAccessForm:"property"});if("docProperty"===l){var B=k.docTree.docProperty,U=JSON.parse(JSON.stringify(B,be.p0.whiteList()));return U}if("pageSettings"===l){var W=k.pageProperty,q=JSON.parse(JSON.stringify(W,Ln.fK.whiteList()));return q}if("styles"===l){for(var $=[],Y=k.docTree.styles,ee=Y[0].combineStyle,re=JSON.parse(JSON.stringify(ee,Qn.xc.whiteList())),ne=1;ne<Y.length;ne++){var ie=Y[ne],oe=ie.combineStyle,ae=JSON.parse(JSON.stringify(oe,Qn.xc.whiteList()));void 0!==ie.size&&ie.size!==ee.size||delete ae["size"],void 0!==ie.font&&ie.font!==ee.font||delete ae["font"],void 0!==ie.color&&ie.color!==ee.color||delete ae["color"],void 0!==ie.backColor&&ie.backColor!==ee.backColor||delete ae["backColor"],void 0!==ie.bold&&ie.bold!==ee.bold||delete ae["bold"],void 0!==ie.italic&&ie.italic!==ee.italic||delete ae["italic"],void 0!==ie.underline&&ie.underline!==ee.underline||delete ae["underline"],void 0!==ie.strikeout&&ie.strikeout!==ee.strikeout||delete ae["strikeout"],void 0!==ie.script&&ie.script!==ee.script||delete ae["script"],-1!==ie.deleterIndex&&void 0!==ie.deleterIndex&&ie.deleterIndex!==ee.deleterIndex||delete ae["deleterIndex"],-1!==ie.creatorIndex&&void 0!==ie.creatorIndex&&ie.creatorIndex!==ee.creatorIndex||delete ae["creatorIndex"],"0"!==ie.commentID&&void 0!==ie.commentID&&ie.commentID!==ee.commentID||delete ae["commentID"],$.push(ae)}for(var le=[],ce=k.docTree.paragraphs,de=ce[0].combineStyle,he=JSON.parse(JSON.stringify(de,ei.kh.whiteList())),_e=1;_e<ce.length;_e++){var pe=ce[_e],fe=pe.combineStyle,me=JSON.parse(JSON.stringify(fe,ei.kh.whiteList()));void 0!==pe.charSpace&&pe.charSpace!==de.charSpace||delete me["charSpace"],void 0!==pe.lineSpace&&pe.lineSpace!==de.lineSpace||delete me["lineSpace"],void 0!==pe.leftMargin&&pe.leftMargin!==de.leftMarginMm||delete me["leftMarginMm"],void 0!==pe.rightMargin&&pe.rightMargin!==de.rightMarginMm||delete me["rightMarginMm"],void 0!==pe.topMargin&&pe.topMargin!==de.topMarginMm||delete me["topMarginMm"],void 0!==pe.bottomMargin&&pe.bottomMargin!==de.bottomMarginMm||delete me["bottomMarginMm"],void 0!==pe.align&&pe.align!==de.align||delete me["align"],le.push(me)}return{defaultFont:re,fontStyle:$,defaultPara:he,paraStyle:le}}if("comments"===l){var Ee=[],ke=k.drawTree.commentsMap;return ke.forEach((function(l){var u=JSON.parse(JSON.stringify(l,mi.s.whiteList()));u.customProperty=l.customProperty,Ee.push(u)})),{comment:Ee}}if("userHistories"===l){for(var Ie=[],Ne=k.docTree.userHistories,Fe=0;Fe<Ne.length;Fe++){var He=Ne[Fe],qe=JSON.parse(JSON.stringify(He,vi.R.whiteList()));Ie.push(qe)}return{userHistory:Ie}}var Ke=function doc2XmlJson(l,k){for(var B=[],U=0;U<l.length;U++){var W=l[U],q=void 0;"json"===k&&(W instanceof Un.Fh||W instanceof Bt.re)?q=C.delStyle(W.node2Json(void 0,void 0,"json")):"json"===k?q=C.delStyle(W.node2Json()):W instanceof Un.Fh||W instanceof Bt.re?q=C.delStyle(W.node2Json(void 0,void 0,void 0,v)):W instanceof gn.N&&v?W.isTemplate&&(q=C.delStyle(W.node2Json(void 0,void 0,void 0,v))):q=C.delStyle(W.node2Json()),"xml"===k?_+=N.js2xml(q):B.push(q)}if("json"===u)return B};if("header"===l){for(var Ge=k.subDocManger.getHeaderPageNodes(),et=[],tt=0;tt<Ge.length;tt++){var nt=Ge[tt];if(nt&&nt.length>0)if("xml"===u)_+="<header>",_+=N.js2xml({index:tt}),Ke(nt,u),_+="</header>";else{var it={header:Ke(nt,"json")};et.push(it)}}if("xml"===u)return _;if("json"===u)return et}if("footer"===l){for(var ot=k.subDocManger.getFooterPageNodes(),st=[],lt=0;lt<ot.length;lt++){var ct=ot[lt];if(ct&&ct.length>0)if("xml"===u)_+="<footer>",_+=N.js2xml({index:lt}),Ke(ct,u),_+="</footer>";else{var ut={footer:Ke(ct,"json")};st.push(ut)}}if("xml"===u)return _;if("json"===u)return st}if("main"===l){var dt=k.docTree.mainNodes;if("xml"===u)return Ke(dt,u),_;var ht=Ke(dt,"json");return ht}}},{key:"json2Doc",value:function json2Doc(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=l.docProperty;if(v){var C=_.docTree.docProperty;C&&(C.type=Number(v["type"]?v["type"]:be.Fr.etCaseHistory),C.title=v["title"],C.docID=v["docID"],C.patientID=v["patientID"],C.patientName=v["patientName"],C.lastEditTime=v["lastEditTime"],C.lastEditorID=v["lastEditorID"],C.lastEditorName=v["lastEditorName"])}var k=l.pageSettings;if(k){var N=_.pageProperty;N.printDirection=Number(k.printDirection),N.borderColor=k.borderColor,N.isPaintBorder="true"==k.isPaintBorder,N.paintRowLine=Number(k.paintRowLine),N.pageSize=k.pageSize,N.widthMm=Number(k.widthMm),N.heightMm=Number(k.heightMm),N.source=k.source,N.topMarginMm=Number(k.topMarginMm),N.bottomMarginMm=Number(k.bottomMarginMm),N.leftMarginMm=Number(k.leftMarginMm),N.rightMarginMm=Number(k.rightMarginMm),N.headerYMm=Number(k.headerYMm)>=3?Number(k.headerYMm):3,N.footerYMm=Number(k.footerYMm)>=3?Number(k.footerYMm):3,N.showFirstPageFoot="true"===k.showFirstPageFoot,N.showFirstPageHead="true"===k.showFirstPageHead,N.pageNumber=Number(k.pageNumber),N.isHaveBgImage="true"===k.isHaveBgImage,N.fontFormat=k.fontFormat?k.fontFormat:"宋体",N.fontSize=k.fontSize?Number(k.fontSize):14,N.fontColor=k.fontColor?k.fontColor:"#000000",N.backColor=k.backColor?k.backColor:"transparent",N.paraAlign=k.paraAlign?Number(k.paraAlign):0,N.charSpace=k.charSpace?Number(k.charSpace):1,N.lineHeight=k.lineHeight?Number(k.lineHeight):1.25}for(var B=0;B<_.drawTree.drawPages.length;B++)_.drawTree.drawPages[B].reFreshBounds();this._comments=[];var U=l.comments;this._comments=U.comment,_.docTree.userHistories=[];var W=l.userHistories,q=W.userHistory;void 0==q.length&&(q=Array(q));for(var $=0;$<q.length;$++){var Y=q[$],ee=new vi.R(this._hoEditorFactoryID,vi.N.hetCreate);Object.assign(ee,Y),ee.permissionLevel=Number(Y.permissionLevel),_.docTree.userHistories.push(ee)}var re=l.styles;_.docTree.styles=[];var ne=new Qn.pn(this._hoEditorFactoryID);ne.combineStyle.size!=Number(re.defaultFont["size"])&&(ne.size=Number(re.defaultFont["size"])),_.docTree.styles.push(ne);var ie=re.font?re.font:re.fontStyle,oe=re.para?re.para:re.paraStyle;if(ie&&void 0===ie.length&&(ie=Array(ie)),oe&&void 0===oe.length&&(oe=Array(oe)),Array.isArray(ie)&&ie.forEach((function(l){l&&"string"===typeof l.font&&""===l.font.replace(/^\s+|\s+$/g,"")&&(l.font="宋体")})),ie){var ae=this.getDocStyles("font",ie);_.docTree.styles=_.docTree.styles.concat(ae)}_.docTree.paragraphs=[];var le=new ei.nv(this._hoEditorFactoryID);if(_.docTree.paragraphs.push(le),oe){var ce=this.getDocStyles("para",oe);_.docTree.paragraphs=_.docTree.paragraphs.concat(ce)}var de=l.header,he=new Array;if(de)for(var _e=0;_e<de.length;_e++){var pe=de[_e],fe=_.subDocManger.headerDocTree[_e];fe||(fe=new lt.UJ(pe.pageIndex,pe.beginPath),_.subDocManger.headerDocTree.push(fe));var me=new lt.UJ(pe.pageIndex,pe.beginPath);if(he.push(me),pe)for(var Ee=0;Ee<pe.subDocNodes.length;Ee++){var ke=pe.subDocNodes[Ee];if(ke){var Ie=_.structureConvert.convertNode(ke,fe.subDocNodes,null,me.subDocNodes,void 0,u);if(Ie&&(Ie.rootPath="header/"+_e.toString(),me.subDocNodes.push(Ie),_e>0&&0===Ee&&Ie instanceof mn.C)){var Ne=new Array;Ne.push(Ie),fe.subDocNodes=Ne;var Fe=new it.g(this._hoEditorFactoryID,Ie.rootPath,_e);_.drawPageTree.drawHeaders[_e]=Fe,_.drawTree.headerDNodes[_e]=new Array,_.drawTree.initAreaFirstNode(Ne,_.drawTree.headerDNodes[_e])}}}}var He=l.footer,qe=new Array;if(He)for(var Ke=0;Ke<He.length;Ke++){var Ge=_.subDocManger.footerDocTree[Ke];Ge||(Ge=new lt.UJ(He[Ke].pageIndex,He[Ke].beginPath),_.subDocManger.footerDocTree.push(Ge));var et=He[Ke],tt=new lt.UJ(He[Ke].pageIndex,He[Ke].beginPath);if(qe.push(tt),et)for(var nt=0;nt<et.subDocNodes.length;nt++){var st=et.subDocNodes[nt];if(st){var ct=_.structureConvert.convertNode(st,Ge.subDocNodes,null,tt.subDocNodes,void 0,u);if(ct&&(ct.rootPath="footer/"+Ke.toString(),tt.subDocNodes.push(ct),Ke>0&&0===nt&&ct instanceof mn.C)){var ut=new Array;ut.push(ct),Ge.subDocNodes=ut;var dt=new ot.d(this._hoEditorFactoryID,ct.rootPath,Ke);_.drawPageTree.drawFooters[Ke]=dt,_.drawTree.footerDNodes[Ke]=new Array,_.drawTree.initAreaFirstNode(ut,_.drawTree.footerDNodes[Ke])}}}}for(var ht=l.main,_t=new Array,pt=0;pt<ht.length;pt++){var ft=ht[pt];if(ft){var gt=_.structureConvert.convertNode(ft,_.docTree.mainNodes,null,_t,void 0,u);gt&&_t.push(gt)}}var mt=new Map;return mt.set("header",he),mt.set("footer",qe),mt.set("main",_t),mt}},{key:"getDocStyles",value:function getDocStyles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if("font"===l){for(var v=[],C=_.docTree.styles[0].combineStyle,k=0;k<u.length;k++){var N=u[k],B=new Qn.pn(this._hoEditorFactoryID);"undefined"!==typeof N["size"]&&N["size"]!==C.size.toString()&&(B.size=Number(N["size"])),"undefined"!==typeof N["font"]&&N["font"]!==C.font&&(B.font=N["font"]),"undefined"!==typeof N["color"]&&N["color"]!==C.color&&(B.color=N["color"]),"undefined"!==typeof N["backColor"]&&N["backColor"]!==C.backColor&&(B.backColor=N["backColor"]),"undefined"!==typeof N["bold"]&&N["bold"]!==C.bold.toString()&&(B.bold="true"===N["bold"]),"undefined"!==typeof N["italic"]&&N["italic"]!==C.italic.toString()&&(B.italic="true"===N["italic"]),"undefined"!==typeof N["underline"]&&N["underline"]!==C.underline.toString()&&(B.underline="true"===N["underline"]),"undefined"!==typeof N["strikeout"]&&N["strikeout"]!==C.strikeout.toString()&&(B.strikeout="true"===N["strikeout"]),"undefined"!==typeof N["script"]&&N["script"]!==C.script.toString()&&(B.script=Number(N["script"])),"undefined"!==typeof N["creatorIndex"]&&N["creatorIndex"]!==C.creatorIndex.toString()&&(B.creatorIndex=Number(N["creatorIndex"])),"undefined"!==typeof N["deleterIndex"]&&N["deleterIndex"]!==C.deleterIndex.toString()&&(B.deleterIndex=Number(N["deleterIndex"])),"undefined"!==typeof N["commentID"]&&N["commentID"]!==C.commentID.toString()&&(B.commentID=N["commentID"]),v.push(B)}return v}for(var U=_.docTree.paragraphs[0].combineStyle,W=[],q=0;q<u.length;q++){var $=u[q],Y=new ei.nv(this._hoEditorFactoryID);"undefined"!==typeof $["leftMarginMm"]&&$["leftMarginMm"]!==U.leftMarginMm.toString()&&(Y.leftMargin=Number($["leftMarginMm"])),"undefined"!==typeof $["rightMarginMm"]&&$["rightMarginMm"]!==U.rightMarginMm.toString()&&(Y.rightMargin=Number($["rightMarginMm"])),"undefined"!==typeof $["topMarginMm"]&&$["topMarginMm"]!==U.topMarginMm.toString()&&(Y.topMargin=Number($["topMarginMm"])),"undefined"!==typeof $["bottomMarginMm"]&&$["bottomMarginMm"]!==U.bottomMarginMm.toString()&&(Y.bottomMargin=Number($["bottomMarginMm"])),"undefined"!==typeof $["align"]&&$["align"]!==U.align.toString()&&(Y.align=Number($["align"])),"undefined"!==typeof $["charSpace"]&&$["charSpace"]!==U.charSpace.toString()&&(Y.charSpace=Number($["charSpace"])),"undefined"!==typeof $["lineSpace"]&&$["lineSpace"]!==U.lineSpace.toString()&&(Y.lineSpace=Number($["lineSpace"])),W.push(Y)}return W}},{key:"convertNode",value:function convertNode(l,u,_,v,C,k){if(""!==l){if(l.nodeType=Fe.Jq[l.nodeType],l.nodeType==Fe.Jq.ntTable){if(C&&_ instanceof Bt.re)return void Jn().alert("不允许将表格粘贴到文本域");if(C&&_ instanceof et.D)return void Jn().alert("不允许将表格粘贴到表格");var N=Un.Fh.json2Node(this._hoEditorFactoryID,l,u,_,C,k);return N}if(l.nodeType==Fe.Jq.ntParagraph)return mn.C.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntText)return Gt.R.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntMedicalExpression){if("PupilMap"==l.expressType)return ai.v.json2Node(this._hoEditorFactoryID,l,u,_);if("LightLocationMap"==l.expressType)return si.D.json2Node(this._hoEditorFactoryID,l,u,_);if("MenstrualHistory"==l.expressType)return li.n.json2Node(this._hoEditorFactoryID,l,u,_);if("FetalHeartMap"==l.expressType)return ci.t.json2Node(this._hoEditorFactoryID,l,u,_);if("PermanentTeethMap"==l.expressType)return ui.f.json2Node(this._hoEditorFactoryID,l,u,_);if("PrimaryTeethMap"==l.expressType)return di.x.json2Node(this._hoEditorFactoryID,l,u,_)}else if(l.nodeType==Fe.Jq.ntImage){if("Image"==l.imageType)return Sn.H.json2Node(this._hoEditorFactoryID,l,u,_);if("Barcode"==l.imageType)return hi.T.json2Node(this._hoEditorFactoryID,l,u,_);if("Qrcode"==l.imageType)return _i.d.json2Node(this._hoEditorFactoryID,l,u,_)}else if(l.nodeType==Fe.Jq.ntControl){if("ctDateTime"==l.type)return Rt.Z.json2Node(this._hoEditorFactoryID,l,u,_,C);if("ctDownList"==l.type)return Ft.yF.json2Node(this._hoEditorFactoryID,l,u,_,C);if("ctRadioAndCheckBox"==l.type)return He.Yh.json2Node(this._hoEditorFactoryID,l,u,_,C)}else{if(l.nodeType==Fe.Jq.ntField)return Bt.re.json2Node(this._hoEditorFactoryID,l,u,_,C,k);if(l.nodeType==Fe.Jq.ntSpecialChar)return fi.y.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntMark)return $t.j.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntPageCount)return yi.y.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntPageNum)return bi.h.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntTableFormula)return Pi.N.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntSeparateChar)return Ei.O.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntLabel)return Si.P.json2Node(this._hoEditorFactoryID,l,u,_);if(l.nodeType==Fe.Jq.ntSign)return gn.N.json2Node(this._hoEditorFactoryID,l,u,_,k);if(l.nodeType==Fe.Jq.ntGestation)return Ti.G.json2Node(this._hoEditorFactoryID,l,u,_)}}}},{key:"delStyle",value:function delStyle(l){var u=this;return l["style"]&&delete l["style"],Object.keys(l).forEach((function(_){"object"==(0,ri.Z)(l[_])&&null!=l[_]&&(l[_]=u.delStyle(l[_]))})),l}},{key:"mergeJson",value:function mergeJson(l){var u=JSON.parse(JSON.stringify(l).replace(/}{/,",").replace(/{,/,"{"));return this.delStyle(u)}},{key:"openFile",value:function openFile(l,u,_){var v=this;this._superiorSign=[];var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=new FileReader;k.readAsText(l,"UTF-8"),k.onload=function(_){var k,N=_.target.result,B="";N&&(B=N.toString()),k="text/xml"==l.type?C.structureConvert.xml2Doc(B):C.structureConvert.json2Doc(JSON.parse(B)),Promise.resolve().then((function(){C.drawTree.updateDrawTreeFirstLine(),v.openJson2Doc(k,u)}))}}},{key:"loadFiles",value:function loadFiles(l){var u=new Array;return l.forEach((function(l){var _=new FileReader;_.readAsText(l,"UTF-8"),_.onload=function(l){var _=l.target.result,v="";_&&(v=_.toString(),u.push(v))}})),u}},{key:"openXml",value:function openXml(l,u,_,v){var C=this,k=rt.b.instance().getFactory(this._hoEditorFactoryID);this._superiorSign=[],k.isThrowError=!1;var N=k.structureConvert.xml2Doc(l,v);Promise.resolve().then((function(){k.drawTree.updateDrawTreeFirstLine(),C.openJson2Doc(N,u,_)}))}},{key:"openJson2Doc",value:function openJson2Doc(l,u,_){var v=this,C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u&&u({text:C.vueController.getDocTitle(),count:0}),l){var k=function insertNode(l,u){var _=l[0];_ instanceof mn.C&&u instanceof mn.C&&(0!==_.paraNo&&(u.paraNo=_.paraNo),_.customProperty&&(u.customProperty=_.customProperty));for(var k=1;k<l.length;k++){var N=l[k];if(!(N instanceof Gt.R&&0===N.text.length)){var B="";if(N.parentNode){if(B=C.docTree.getNodeLastPath(N.parentNode),N.parentNode instanceof Bt.re){var U=C.docTree.findNodePositionByPath(B);if(U&&U.node){var W=U.node.previousLeaf();W&&(B=C.docTree.getNodeLastPath(W))}}C.docTree.insertNodeAfterPath(B,N)}else if(N instanceof Un.Fh){var q=l[k+1];B=C.docTree.getNodeLastPath(u),C.docTree.insertNodeAfterPath(B,q),C.docTree.insertNodeAfterPath(B,N),k+=1,u=q}else B=C.docTree.getNodeLastPath(u),C.docTree.insertNodeAfterPath(B,N),u=N;N instanceof $t.j&&v._markNodes.push(N),N instanceof gn.N&&C.superiorSigns.length>0&&C.superiorSigns.includes(N.customProperty.bce01)&&(v._superiorSign[0]=N)}}},N=l.get("header");if(N)for(var B=0;B<N.length;B++){var U=N[B];if(!C.subDocManger.headerDocTree[B]){var W=new lt.UJ(U.pageIndex,U.beginPath);C.subDocManger.headerDocTree[B]=W}var q=C.subDocManger.headerDocTree[B],$=q.subDocNodes[0];k(U.subDocNodes,$);var Y=q.subDocNodes.length-1,ee=C.docTree.getNodeLastPath(q.subDocNodes[Y]),re=new pi.G(this._hoEditorFactoryID,be.gk.daInsert,"header/"+B.toString()+"/0",ee);re.repaintImmediate=!0,C.docTree.change(re),B<=C.drawTree.drawPages.length-1&&C.subDocManger.updateAllSameSubDoc(B,lt.pi.hftHead,!0,!0)}var ne=l.get("footer");if(ne)for(var ie=0;ie<ne.length;ie++){var oe=ne[ie];if(!C.subDocManger.footerDocTree[ie]){var ae=new lt.UJ(oe.pageIndex,oe.beginPath);C.subDocManger.footerDocTree[ie]=ae}var le=C.subDocManger.footerDocTree[ie],ce=le.subDocNodes[0];k(oe.subDocNodes,ce);var de=le.subDocNodes.length-1,he=C.docTree.getNodeLastPath(le.subDocNodes[de]),_e=new pi.G(this._hoEditorFactoryID,be.gk.daInsert,"footer/"+ie.toString()+"/0",he);_e.repaintImmediate=!0,C.docTree.change(_e),ie<=C.drawTree.drawPages.length-1&&C.subDocManger.updateAllSameSubDoc(ie,lt.pi.hftFoot,!0,!0)}var pe=l.get("main"),fe=C.docTree.mainNodes[0];_&&pe.length>1&&pe[pe.length-1]instanceof mn.C&&!(pe[pe.length-2]instanceof Un.Fh)&&pe.splice(pe.length-1,1),k(pe,fe);var me=C.docTree.mainNodes.length-1,Ne=C.docTree.getNodeLastPath(C.docTree.mainNodes[me]),Fe=new pi.G(this._hoEditorFactoryID,be.gk.daInsert,"main/0",Ne);C.docTree.change(Fe);var He,qe=[];if(qe=void 0===this._comments.length?Array(this._comments):this._comments,this._markNodes.length>0)for(var Ke=function _loop(l){var u=qe[l],_=v._markNodes[0],k=u["id"];v._markNodes.forEach((function(l){l.text===k&&(_=l)}));var N=new mi.s(v._hoEditorFactoryID,k,u["text"],_);N.date=u["date"],N.lineHeight=Number(u["lineHeight"]),N.userID=u["userID"],N.userName=u["userName"],N.customProperty=u["customProperty"],C.drawTree.commentsMap.set(N.id,N);var B=C.drawPageTree.getMainRootArea(_.drawNodes[0]);null===B||void 0===B||B.areaComments.set(N.id,N)},Ge=0;Ge<qe.length;Ge++)Ke(Ge);He=C.docTree.mainNodes.length>1?C.docTree.mainNodes[1]:C.docTree.mainNodes[0];var et=C.docTree.getNodeFirstPath(He),tt=new Ie.a(this._hoEditorFactoryID,et,et);C.docTree.curDomRange=tt;var nt=new ke.r(tt,tt);C.docTree.selectChange(nt),this._superiorSign.length>0&&(C.drawTree.paintStatus===Ee.Dh.psEdit||C.drawTree.paintStatus===Ee.Dh.psReview?C.vueController.hiddenMask(!1):C.vueController.hiddenMask(!0));var it=C.drawTree.formularNodes;it.forEach((function(l,u){if(l.formularType===Pi.a.ftSum||l.formularType===Pi.a.ftFormular||l.formularType===Pi.a.ftBMI||l.formularType===Pi.a.ftLaborProcess||l.formularType===Pi.a.ftExpectedBirthDate||l.formularType===Pi.a.ftPregnantWeeks||l.formularType===Pi.a.ftScoreMapping){l.updateResult(),l.getParentCell().drawCell.needUpdate=!0;var _=l.previousLeaf();if(!_)throw new Error("错误的绘制位置");var k=C.docTree.getNodeLastPath(_),N=new pi.G(v._hoEditorFactoryID,be.gk.daModifyStyle,k,k);N.oldEndPath=k,N.oldDrawLines=new xi.E(v._hoEditorFactoryID).getRangeDrawLines(k,k,!1),C.docTree.change(N)}})),u&&u({text:C.vueController.getDocTitle(),count:0}),C.isThrowError=!0}}},{key:"loadDataSet",value:function loadDataSet(l){void 0===l.length&&(l=Array(l));for(var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.mainNodes,v=null,C=0;C<_.length;C++){var k=_[C];if(k instanceof Un.Fh){v=k;break}}if(v){for(var N=0,B=0;B<v.rowInfos.length;B++){var U=v.rowInfos[B],W=U.rowProperty;W.repeatAsTitleAtPageTop||N++}l.length-N>0&&v.insertRows(v.rowCount,l.length-N,v.rowCount-1);for(var q=-1,$=0;$<l.length;$++){var Y=v.rowInfos[$],ee=Y.rowProperty;if(!ee.repeatAsTitleAtPageTop){q++;var re=l[q];Y.id=re[Object.keys(re)[0]],Y.isAllowEdit=re[Object.keys(re)[1]];for(var ne=0;ne<v.colInfos.length;ne++){if("operType"===Object.keys(re)[ne+2])break;var ie=v.rows[$][ne];if(ie){var oe=v.childNodes.indexOf(ie);ie.childNodes.splice(1,ie.childNodes.length-1);var ae=new Gt.R(this._hoEditorFactoryID,_,ie,Fe.Jq.ntText,re[Object.keys(re)[ne+2]].toString(),0);ie.drawCell.needUpdate=!0,ae&&ie.childNodes.push(ae),v.rows[$][ne]=ie,v.childNodes[oe]=ie}}}}v.update()}}},{key:"getRowsJsonData",value:function getRowsJsonData(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=JSON.parse(JSON.stringify(l));void 0===_.length&&(_=Array(_));for(var v=u.docTree.mainNodes,C=null,k=0;k<v.length;k++){var N=v[k];if(N instanceof Un.Fh){C=N;break}}if(C){for(var B=Object.keys(_[0]),U=0;U<_.length;U++){for(var W=_[U]["id"],q=-1,$=0;$<C.rowInfos.length;$++)if(W===C.rowInfos[$].id){q=0;for(var Y=0;Y<C.rows[$].length;Y++){var ee=C.rows[$][Y];if(ee){var re=ee.getCellText(),ne=_[U][B[Y+2]];re!==ne.toString()&&(_[U][B[Y+2]]=re,_[U]["operType"]="edit")}}}-1===q&&(_[U]["operType"]="del")}for(var ie=0;ie<C.rowInfos.length;ie++){var oe=C.rowInfos[ie];if(!oe.rowProperty.repeatAsTitleAtPageTop&&"0"===oe.id){var ae=JSON.parse(JSON.stringify(_[0]));ae["id"]="0",ae["isAllowEdit"]=!0;for(var le=0;le<C.rows[ie].length;le++){var ce=C.rows[ie][le];ce&&(ae[B[le+2]]=ce.getCellText())}ae["operType"]="add",_[_.length]=ae}}}for(var de="",he=0;he<_.length;he++)de+=JSON.stringify(_[he]);return de}}]),StructureConvert}(),ki=(__webpack_require__(83753),__webpack_require__(22872)),Ii=__webpack_require__(11471);(function(l){l["ctText"]="text/plain",l["ctHTML"]="text/html",l["ctJSON"]="application/json"})(Ci||(Ci={}));var Mi=function(){function NodeConvert(l){(0,q.Z)(this,NodeConvert),this._hoEditorFactoryID=l}return(0,$.Z)(NodeConvert,[{key:"FromJSON",value:function FromJSON(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=new Array,k=new Array;"main"===u&&(k=v.docTree.mainNodes);for(var N=JSON.parse(l),B=v.docTree.curDomRange.normalize().startPath,U=v.docTree.getParentNode(B),W=u?k:v.docTree.curDomRange.normalize().npStart.roots,q=0;q<N.length;q++){var $=N[q];if($){var Y=v.structureConvert.convertNode($,W,u?null:U,void 0,!_);if(!Y)return[];if(Y){if(Y instanceof Gt.R&&0===Y.text.length)continue;u&&(Y.rootPath=u),C.push(Y),u&&u.split("/").length>1&&k.push(Y)}}}return C}},{key:"FromHTML",value:function FromHTML(l){var u,_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=/<body[^>]*>([\s\S]+?)<\/body>/i,C=v.exec(l);if(!C)return[];u="<div>"+C[1]+"</div>";var k=_.htmlConverter.Exec(Yn()(u)[0],"");return k}},{key:"FromText",value:function FromText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=new Array,v=l;if(v)for(var C=v.split(/[\n\r|\r\n|\r|\n]+/),k=0;k<C.length;k++)if(C[k]){if(k>0){var N=new mn.C(this._hoEditorFactoryID,u.docTree.mainNodes,null,u.docTree.curParaNo);_.push(N)}var B=new Gt.R(this._hoEditorFactoryID,u.docTree.mainNodes,null,Fe.Jq.ntText,C[k],0);_.push(B)}return _}},{key:"toJSON",value:function toJSON(l,u,_){var v=this,C=new Array;return l[0].node instanceof mn.C&&0===l[0].node.paraNo&&l.splice(0,1),l.forEach((function(k,N){if(u&&(k.node instanceof Bt.re&&(k.node.text="",k.node.childNodes.splice(1,k.node.childNodes.length-2)),k.node instanceof Rt.Z&&(k.node.text=""),k.node instanceof Ft.yF&&(k.node.text="")),k.node instanceof Bt.re||k.node instanceof He.Yh||k.node instanceof Ft.yF||k.node instanceof Rt.Z)C.push(k.node.node2Json(k.range,!0,_));else if(k.node instanceof $t.j&&k.node.parentNode instanceof Bt.re){var B=rt.b.instance().getFactory(v._hoEditorFactoryID),U=B.docTree.curDomRange.normalize();if(k.node.MarkNodeType===$t.q.mtStart){var W=k.node.parentNode.childNodes[k.node.parentNode.childNodes.length-1].isTotalSelected(U,!0);W&&C.push(k.node.node2Json(k.range,!0))}if(k.node.MarkNodeType===$t.q.mtEnd){var q=k.node.parentNode.childNodes[0].isTotalSelected(U,!0);q?C.push(k.node.node2Json(k.range,!0)):N===l.length-1&&(B.docTree.curDomRange.endPath=B.docTree.getNodeLastPath(k.node.previousLeaf()))}}else C.push(k.node.node2Json(k.range,!0))})),this._jsondata=JSON.stringify(C),JSON.stringify(C)}},{key:"toTHML",value:function toTHML(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);l&&this.toJSON(l);var _=JSON.parse(this._jsondata);return _?u.toHtmlConverter.Exec(this._hoEditorFactoryID,_):""}},{key:"toText",value:function toText(l){l&&this.toJSON(l);var u=JSON.parse(this._jsondata);if(!u)return"";var _="",v=function json2text(l){for(var u=0;u<l.length;u++){var v=l[u];v["nodeType"]&&(v.nodeType==Fe.Jq[Fe.Jq.ntText]?_+=v.text:v.nodeType==Fe.Jq[Fe.Jq.ntParagraph]?0!=u&&(_+="\n"):v.nodeType==Fe.Jq[Fe.Jq.ntControl]?_+=v.text:v.nodeType==Fe.Jq[Fe.Jq.ntField]?json2text(v.childNodes.item):v.nodeType==Fe.Jq[Fe.Jq.ntTable]?Array.isArray(v.childNodes.item)&&json2text(v.childNodes.item):"ntRow"==v.nodeType?(0!=u&&(_+="\n"),json2text(v.childNodes.item)):v.nodeType==Fe.Jq[Fe.Jq.ntCell]&&(0!=u&&(_+="\t"),json2text(v.childNodes.item)))}};return v(u),_}}]),NodeConvert}(),Ni=function(){function StructureRecord(l,u,_,v){(0,q.Z)(this,StructureRecord),this._hoEditorFactoryID=l,this._node=_,this._path=u,this._range=v}return(0,$.Z)(StructureRecord,[{key:"node",get:function get(){return this._node}},{key:"range",get:function get(){return this._range}}]),StructureRecord}(),Oi=function(){function StructureNode(l){(0,q.Z)(this,StructureNode),this._hoEditorFactoryID=l,this._Convertor=new Mi(this._hoEditorFactoryID)}return(0,$.Z)(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(l){var u=l.range();return u.from}},{key:"Copy",value:function Copy(l,u,_,v){var C,k=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l instanceof Ie.a)C=l.normalize();else{var N=l[0].range();C=new Ie.a(this._hoEditorFactoryID,N.from,k.docTree.getNodeLastPath(l[l.length-1]))}var B=this.getAncestorsChild(C.startPath,C.endPath),U=C.startPath.split("/").slice(0,B.level+1).join("/"),W=C.endPath.split("/").slice(0,B.level+1).join("/"),q=k.docTree.findNodePositionByPath(U).node,$=k.docTree.findNodePositionByPath(W).node;if(this._structoredNode||(this._structoredNode=new Array),this._structoredNode=[],q==$)this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(q),q,{from:C.startPath,to:C.endPath}));else if(q instanceof et.D&&$ instanceof et.D&&q.table==$.table)this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(q.table),q.table,{from:q.range().from,to:$.range().to}));else{var Y=k.docTree.getNodeLastPath(q);Y===C.startPath&&(Y!==C.startPath||"header/0/0"!=Y&&"footer/0/0"!=Y&&"main/0"!=Y)||this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(q),q,{from:q instanceof Un.Fh?q.range().from:C.startPath}));for(var ee=q.nextSibling();;){if(!ee)break;if(ee==$){this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath($),$,{to:$ instanceof Un.Fh?$.range().to:C.endPath}));break}this._structoredNode.push(new Ni(this._hoEditorFactoryID,this.getPrevLastPath(ee),ee)),ee=ee.nextSibling()}}if(this._json=this._Convertor.toJSON(this._structoredNode,_,v),this._html=this._Convertor.toTHML(),this._text=this._Convertor.toText(),!u)return this._json;u.setData(Ci.ctJSON,this._json),u.setData(Ci.ctHTML,this._html),u.setData(Ci.ctText,this._text)}},{key:"Parse",value:function Parse(l,u,_,v){return l==Ci.ctJSON?this._Convertor.FromJSON(u,_,v):l==Ci.ctHTML?this._Convertor.FromHTML(u):this._Convertor.FromText(u)}},{key:"getAncestorsChild",value:function getAncestorsChild(l,u){var _,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=l.split("/"),k=u.split("/");if(!Ii.F.pathCanCompare(l,u))throw ki.P.PathNotAtSameRoot();var N=0;while(C[N]==k[N])if(N+=1,N>C.length||N>k.length)break;if(1===N||2===N&&"main"!==C[0]){var B=v.docTree.findNodePositionByPath(C.slice(0,N+1).join("/")).node;if(!B)throw ki.P.NodeNotFound();_=B.parentNode?B.parentNode.childNodes:B.rootNodes}else{var U=C.slice(0,N).join("/"),W=v.docTree.findNodePositionByPath(U).node;if(!W)throw ki.P.NodeNotFound();_=W.childNodes}return{level:N,child:_}}}]),StructureNode}(),Li=function(){function TestDataSet(l){(0,q.Z)(this,TestDataSet),this._hoEditorFactoryID=l}return(0,$.Z)(TestDataSet,[{key:"getTestJsonData",value:function getTestJsonData(){var l=[{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 l}}]),TestDataSet}(),Ai=function(){function TOHTMLConverter(l){var u=this;(0,q.Z)(this,TOHTMLConverter),this._valign=["top","center","bottom"],this._hoEditorFactoryID=l,this.convert=new Map,this.convert.set(Fe.Jq[Fe.Jq.ntText],(function(l){return u.TransText(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntControl],(function(l){return u.TransText(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntField],(function(l){return u.TransField(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntImage],(function(l){return u.TransImg(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntParagraph],(function(l){return u.TransPara(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntTable],(function(l){return u.TransTable(l)})),this.convert.set("ntRow",(function(l){return u.TaransRow(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntCell],(function(l){return u.TransCell(l)})),this.convert.set(Fe.Jq[Fe.Jq.ntSpecialChar],(function(l){return u.TransText(l)}))}return(0,$.Z)(TOHTMLConverter,[{key:"nextnode",value:(0,fe.Z)().mark((function nextnode(l){var u,_;return(0,fe.Z)().wrap((function nextnode$(v){while(1)switch(v.prev=v.next){case 0:_=0;case 1:if(!(_<l.length)){v.next=17;break}case 2:return v.next=4,l[_];case 4:if(u=v.sent,-1!=u){v.next=9;break}return v.abrupt("continue",10);case 9:return v.abrupt("break",12);case 10:v.next=2;break;case 12:if(!l[_]["childNodes"]){v.next=14;break}return v.delegateYield(this.nextnode(l[_]["childNodes"]["item"]),"t0",14);case 14:_++,v.next=1;break;case 17:case"end":return v.stop()}}),nextnode,this)}))},{key:"Exec",value:function Exec(l,u){var _="";for(this.nodes=u,this.iterator=this.nextnode(u);;){var v=this.iterator.next();if(v.done)break;_+=this.Link(v.value)}return"<html><body>\x3c!--StartFragment--\x3e".concat(_,"\x3c!--EndFragment--\x3e</body></html>")}},{key:"Link",value:function Link(l){if(l){var u=this.convert.get(l.nodeType);return u&&l?u(l):""}return""}},{key:"TransBody",value:function TransBody(l){return""}},{key:"TransControl",value:function TransControl(l){var u=this.getNodesStyle(l),_="";return"ctDateTime"==l.type?(_+=l.text,'<span style="'.concat(u,'">').concat(_,"</span>")):("ctDownList"==l.type||l.type,"")}},{key:"TransText",value:function TransText(l){var u=this.getNodesStyle(l),_="";return l.nodeType==Fe.Jq[Fe.Jq.ntText]&&(_+=l.text),l.nodeType==Fe.Jq[Fe.Jq.ntControl]&&(_+=l.text),l.nodeType==Fe.Jq[Fe.Jq.ntSpecialChar]&&(_+=l.text),'<span style="'.concat(u,'">').concat(_,"</span>")}},{key:"TransField",value:function TransField(l){var u=this.iterator.next();return this.Link(u.value)}},{key:"TransImg",value:function TransImg(l){var u=this.ToHTMLStyle(l),_=l.imageDataBase64String;return'<img id="'.concat(l.id,'" style="').concat(u,'" src="').concat(_,'"/>')}},{key:"TransPara",value:function TransPara(l){for(var u=this.ToHTMLStyle(l),_="",v="";;){var C=this.iterator.next();if(C.done)break;if(C.value.nodeType==Fe.Jq[Fe.Jq.ntParagraph])return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if(C.value.nodeType==Fe.Jq[Fe.Jq.ntTable])return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if(C.value.nodeType==Fe.Jq[Fe.Jq.ntCell])return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if("ntRow"==C.value.nodeType)return v='<p style="'.concat(u,'">').concat(_,"</p>"),v+=this.Link(C.value),v;if("ntEnd"==C.value.nodeType)return _=""==_?"<span>&nbsp;</span>":_,v='<p style="'.concat(u,'">').concat(_,"</p>"),v;_+=this.Link(C.value)}return v+='<p style="'.concat(u,'">').concat(_,"</p>"),v}},{key:"TransTable",value:function TransTable(l){for(var u=this.ToHTMLStyle(l),_="",v=0;v<l.childNodes.item.length;v++){var C=this.iterator.next();if(C.done)break;C.value["style"]=l.rowInfos.item[v],C.value["colInfos"]=l.colInfos,_+=this.Link(C.value)}return'<table style="'.concat(u,'" border="1" cellspacing="0" cellpadding="0">').concat(_,"</table>")}},{key:"TaransRow",value:function TaransRow(l){for(var u=this.ToHTMLStyle(l),_="",v=0;v<l.childNodes.item.length;v++){var C=this.iterator.next();if(C.done)break;C.value["style"]=l.colInfos.item[v],_+=this.Link(C.value)}return'<tr style="'.concat(u,'">').concat(_,"</tr>")}},{key:"TransCell",value:function TransCell(l){l.crossLineType!=et.v[et.v.ctNone]&&(l["style"]["crossLineType"]=l.crossLineType);var u='valign="'.concat(this._valign[Number(tt.TR[l.cellProperty.align])],'"'),_='rowSpan="'.concat(l.rowSpan,'" colSpan="').concat(l.colSpan,'"'),v=this.ToHTMLStyle(l),C="",k=this.iterator.next();return C=this.Link(k.value),"<td ".concat(_," ").concat(u,' style="').concat(v,'">').concat(C,"</td>")}},{key:"ToHTMLStyle",value:function ToHTMLStyle(l){var u="";if(l["style"]){var _=l.style;if("ntRow"==l["nodeType"]){u+="margin: 0;";var v=_["rowHeight"]?"height:".concat(_.rowHeight,"px;"):"";_["rowProperty"]&&(v=_.rowProperty["rowHeight"]&&0!=_.rowProperty["rowHeight"]?"height:".concat(_.rowProperty.rowHeight,"cm;"):v),u+=v}else if(l["nodeType"]==Fe.Jq[Fe.Jq.ntCell]){if(u+="margin: 0;",u+=_["colWidth"]?"width:".concat(_.colWidth,"px;"):"",_["crossLineType"])switch(_.crossLineType){case et.v[et.v.ct02]:u+="mso-diagonal-down: 0.5pt solid windowtext;";break;case et.v[et.v.ct13]:u+="mso-diagonal-up: 0.5pt solid windowtext;";break}}else{var C=l.style,k=C._align;u+=ei.xM.alleft==k?"text-align:left;":"",u+=ei.xM.alright==k?"text-align:right;":"",u+=ei.xM.alcenter==k?"text-align:center;":"",u+="line-height:".concat(C._lineSpace||1,";"),u+="letter-spacing:".concat(C._charSpace||2,"px;"),u+="margin-left:".concat(C._leftMarginPixes||0,"px;"),u+="margin-right:".concat(C._rightMarginPixes||0,"px; "),u+="margin-top:".concat(C._topMarginPixes||0,"px;"),u+="margin-bottom:".concat(C._bottomMarginPixes||0,"px;")}l["width"]&&(u+="width:".concat(l.width,"px;")),l["height"]&&(u+="height:".concat(l.height,"px;"))}else l["width"]&&(u+="width:".concat(l.width,"px;")),l["height"]&&(u+="height:".concat(l.height,"px;")),l["nodeType"]==Fe.Jq[Fe.Jq.ntTable]&&(u+="border-collapse: collapse;");return u}},{key:"CombineStyleToHTMLStyle",value:function CombineStyleToHTMLStyle(l){var u="";u+="font-size:"+l.size+"px;",u+="font-family:"+l.font+";",u+=l.bold?"font-weight:bold;":"",u+=l.italic?"font-style:italic;":"";var _="";return l.underline&&(_="text-decoration:underline"),l.strikeout&&(_?_+=" line-through":_="text-decoration:line-through"),u+=_?_+";":"",l.script&&(l.script==Qn.n$.sstsup?u+="vertical-align:super;":l.script==Qn.n$.sstsub&&(u+="vertical-align:sub;")),u+="background-color:"+l.backColor+";",u+="color:"+l.color,u}},{key:"getNodesStyle",value:function getNodesStyle(l){var u,_="",v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=v.docTree.styles[l.styleIndex];return u=C?C.combineStyle:v.docTree.styles[0].combineStyle,_+=this.CombineStyleToHTMLStyle(u),_}}]),TOHTMLConverter}(),Ri=__webpack_require__(36648),Fi=__webpack_require__(80775),ji=(__webpack_require__(60285),__webpack_require__(41637),__webpack_require__(33714)),Bi=__webpack_require__(60765),Ui=__webpack_require__(70899),Hi=__webpack_require__(25049),Wi=__webpack_require__(64913),qi=__webpack_require__(94598),zi=__webpack_require__(28602),Vi=__webpack_require__(82686),Ki=function(){function VueController(l){(0,q.Z)(this,VueController),this._hoEditorFactoryID=l}return(0,$.Z)(VueController,[{key:"combineStyle",get:function get(){return this._combineStyle},set:function set(l){l!==this._combineStyle&&(this._combineStyle=l)}},{key:"hoEditorFactoryID",get:function get(){return this._hoEditorFactoryID}},{key:"getCurTextStyle",value:function getCurTextStyle(){var l=this,u=new Qn.pn(this._hoEditorFactoryID),_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=v.normalize(),k=C.npStart.node,N=C.npEnd.node;if(!k||!N)throw new Error("错误的选择范围".concat(C.startPath," ").concat(C.endPath));if(k===N&&N instanceof zi.H){var B=function getCurStyle(v){if(v instanceof Gt.R||v instanceof wi.w||v instanceof $t.j||v instanceof mn.C||v instanceof gn.N){var C=_.docTree.styles[v.styleIndex];l._combineStyle=C.combineStyle,u.setTextStyle(C.combineStyle),_.docTree.curStyleIndex=_.docTree.styleCompare(u)}else{var k=v.previousLeaf();getCurStyle(k)}};B(N)}else{var U=k,W=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.styles,q=0;if(U&&N){do{if(U){if(U instanceof Gt.R||U instanceof wi.w||U instanceof $t.j||U instanceof mn.C||U instanceof gn.N){q=U.styleIndex;break}U=U.nextLeaf()}}while(U&&U!==N.nextLeaf());u.copyProperty(W[q],u);var $=W[0].combineStyle;W[q]&&($=W[q].combineStyle);do{if(U){if((U instanceof Gt.R||U instanceof wi.w||U instanceof $t.j||U instanceof mn.C||U instanceof gn.N)&&U.styleIndex!==q){var Y=void 0;Y=W[U.styleIndex]?W[U.styleIndex].combineStyle:W[0].combineStyle,Y.font!==$.font&&""!==u.font&&(u.font=""),Y.size!==$.size&&0!==u.size&&(u.size=0),Y.script!==$.script&&u.script!==Qn.n$.sstnormal&&(u.script=Qn.n$.sstnormal),Y.bold!==$.bold&&!1!==u.bold&&(u.bold=!1),Y.italic!==$.italic&&!1!==u.italic&&(u.italic=!1),Y.underline!==$.underline&&!1!==u.underline&&(u.underline=!1),Y.strikeout!==$.strikeout&&!1!==u.strikeout&&(u.strikeout=!1),Y.color!==$.color&&""!==u.color&&(u.color=""),Y.backColor!==$.backColor&&""!==u.backColor&&(u.backColor=""),Y.creatorIndex!==$.creatorIndex&&-1!==u.creatorIndex&&(u.creatorIndex=-1),Y.deleterIndex!==$.deleterIndex&&-1!==u.deleterIndex&&(u.deleterIndex=-1),Y.commentID!==$.commentID&&"0"!==u.commentID&&(u.commentID="0")}U=U.nextLeaf()}}while(U&&U!==N.nextLeaf()&&N.nextLeaf());this._combineStyle=u.combineStyle,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.styleCompare(u)}}}},{key:"unDoOperate",value:function unDoOperate(){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.undoOperate()}},{key:"reDoOperate",value:function reDoOperate(){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.redoOperate()}},{key:"fontFormat",value:function fontFormat(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontFormat);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontFormat",u,l)}},{key:"clearFormat",value:function clearFormat(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;rt.b.instance().getFactory(this._hoEditorFactoryID).docController.formatClearOrPainter(l,0)}},{key:"formatPainter",value:function formatPainter(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.formatPainter.startFormatPainter(l,u.docTree.curStyleIndex,u.docTree.curParaNo,!1);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange}},{key:"fontSize",value:function fontSize(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontSize);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontSize",u,l.toString())}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daModifyStyle,u,_,ji.y.fontSizeEnlarge);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeEnlarge",l)}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daModifyStyle,u,_,ji.y.fontSizeDecrease);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange("fontSizeDecrease",l)}},{key:"fontSuperScript",value:function fontSuperScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontSuperScript);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSuperScript",u,l)}},{key:"fontSubScript",value:function fontSubScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontSubScript);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontSubScript",u,l)}},{key:"fontBold",value:function fontBold(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontBold);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontBold",u,l)}},{key:"fontItalic",value:function fontItalic(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontItalic);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontItalic",u,l)}},{key:"fontUnderline",value:function fontUnderline(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontUnderline);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontUnderline",u,l)}},{key:"fontStrikeout",value:function fontStrikeout(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontStrikeout);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool("fontStrikeout",u,l)}},{key:"fontColor",value:function fontColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontColor);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontColor",u,l)}},{key:"fontBackColor",value:function fontBackColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daModifyStyle,_,v,ji.y.fontBackColor);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr("fontBackColor",u,l)}},{key:"alignedLeft",value:function alignedLeft(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedLeft);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedLeft",l)}},{key:"alignedCenter",value:function alignedCenter(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedCenter);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedCenter",l)}},{key:"alignedRight",value:function alignedRight(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedRight);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedRight",l)}},{key:"alignedBothEnds",value:function alignedBothEnds(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.alignedBothEnds);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("alignedBothEnds",l)}},{key:"addIndent",value:function addIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.addIndent);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("addIndent",l)}},{key:"decreaseIndent",value:function decreaseIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daParaStyleChange,u,_,ji.y.decreaseIndent);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("decreaseIndent",l)}},{key:"setLineHeight",value:function setLineHeight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daParaStyleChange,_,v,ji.y.setLineHeight);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange("lineHeight",u,l)}},{key:"insertTable",value:function insertTable(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertTable);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTable(_,l,u)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertRowAbove);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowAbove(u,l)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertRowBelow);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableRowBelow(u,l)}},{key:"insertTableColLeft",value:function insertTableColLeft(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertColLeft);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableColLeft(u,l)}},{key:"insertTableColRight",value:function insertTableColRight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.insertColRight);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableColRight(u,l)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableDeleteRows);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteRows(l)}},{key:"tableDeleteCols",value:function tableDeleteCols(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableDeleteCols);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableDeleteCols(l)}},{key:"tableMergerCells",value:function tableMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableMergerCells);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableMergerCells(l)}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize(),u=l.normalize().startPath,_=l.normalize().endPath,v=new ji.Q(be.gk.daInsert,u,_,ji.y.tableUnMergerCells);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(v)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.tableUnMergerCells(l)}},{key:"tableProperty",value:function tableProperty(l,u){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setTableProperty(l,u)}},{key:"rowProperty",value:function rowProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setRowProperty(_,l,u)}},{key:"colProperty",value:function colProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize();rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setColProperty(_,l,u)}},{key:"cellProperty",value:function cellProperty(l,u){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setCellProperty(l,u)}},{key:"insertMenstrualHistory",value:function insertMenstrualHistory(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);if(N.editController.canIsEdit(N)){var B=N.docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daInsert,U,W,ji.y.insertMedicalExpression);N.docTree.changing(q)&&N.docController.insertMenstrualHistory("add",B,u,_,v,C,k)}}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(U)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory("update",k,l,u,_,v,C)}},{key:"insertPupilMap",value:function insertPupilMap(l,u,_,v,C,k,N,B){var U=rt.b.instance().getFactory(this._hoEditorFactoryID);if(U.editController.canIsEdit(U)){var W=U.docTree.curDomRange,q=W.normalize().startPath,$=W.normalize().endPath,Y=new ji.Q(be.gk.daInsert,q,$,ji.y.insertMedicalExpression);U.docTree.changing(Y)&&U.docController.insertPupilMap("add",W,u,_,v,C,k,N,B)}}},{key:"updatePupilMap",value:function updatePupilMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daInsert,U,W,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(q)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap("update",B,l,u,_,v,C,k,N)}},{key:"insertLightLocation",value:function insertLightLocation(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);if(q.editController.canIsEdit(q)){var $=q.docTree.curDomRange,Y=$.normalize().startPath,ee=$.normalize().endPath,re=new ji.Q(be.gk.daInsert,Y,ee,ji.y.insertMedicalExpression);q.docTree.changing(re)&&q.docController.insertLightLocation("add",$,u,_,v,C,k,N,B,U,W)}}},{key:"updateLightLocation",value:function updateLightLocation(l,u,_,v,C,k,N,B,U){var W=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,q=W.normalize().startPath,$=W.normalize().endPath,Y=new ji.Q(be.gk.daInsert,q,$,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(Y)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation("update",W,l,u,_,v,C,k,N,B,U)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);if(B.editController.canIsEdit(B)){var U=B.docTree.curDomRange,W=U.normalize().startPath,q=U.normalize().endPath,$=new ji.Q(be.gk.daInsert,W,q,ji.y.insertMedicalExpression);B.docTree.changing($)&&B.docController.insertFetalHeartMap("add",U,u,_,v,C,k,N)}}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.updateMedicalExpression);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(W)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap("update",N,l,u,_,v,C,k)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);if(k.editController.canIsEdit(k)){var N=k.docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.insertMedicalExpression);k.docTree.changing(W)&&k.docController.insertPermanentTeethMap("add",N,u,_,v,C)}}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=C.docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.updateMedicalExpression);C.docTree.changing(U)&&C.docController.insertPermanentTeethMap("update",k,l,u,_,v)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);if(k.editController.canIsEdit(k)){var N=k.docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.insertMedicalExpression);k.docTree.changing(W)&&k.docController.insertPrimaryTeethMap("add",N,u,_,v,C)}}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=C.docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.updateMedicalExpression);C.docTree.changing(U)&&C.docController.insertPrimaryTeethMap("update",k,l,u,_,v)}},{key:"insertTextInputField",value:function insertTextInputField(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertTextInputField);if(rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)){var N=rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("add",_,u);return N}return v}},{key:"updateTextInputField",value:function updateTextInputField(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.updateTextInputField);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField("update",u,l)}},{key:"insertImage",value:function insertImage(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(C.editController.canIsEdit(C)){var k=C.docTree.curDomRange,N=k.normalize().startPath,B=k.normalize().endPath,U=new ji.Q(be.gk.daInsert,N,B,ji.y.insertImage);C.docTree.changing(U)&&C.docController.insertImage(k,l,u,_,v)}}},{key:"insertBarcode",value:function insertBarcode(l,u,_,v,C,k,N,B){var U=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,W=U.normalize().startPath,q=U.normalize().endPath,$=new ji.Q(be.gk.daInsert,W,q,ji.y.insertBarcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing($)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("add",U,u,_,v,C,k,N,B)}},{key:"updateBarcode",value:function updateBarcode(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daInsert,U,W,ji.y.updateBarcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(q)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode("update",B,l,u,_,v,C,k,N)}},{key:"insertQrcode",value:function insertQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y,ee){var re=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,ne=re.normalize().startPath,ie=re.normalize().endPath,oe=new ji.Q(be.gk.daInsert,ne,ie,ji.y.insertQrcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(oe)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("add",re,u,_,v,C,k,N,B,U,W,q,$,Y,ee)}},{key:"updateQrcode",value:function updateQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y){var ee=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,re=ee.normalize().startPath,ne=ee.normalize().endPath,ie=new ji.Q(be.gk.daInsert,re,ne,ji.y.updateQrcode);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(ie)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode("update",ee,l,u,_,v,C,k,N,B,U,W,q,$,Y)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertRadioAndCheckBox);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("add",_,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.updateRadioAndCheckBox);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox("update",u,l,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"find",value:function find(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=rt.b.instance().getFactory(this._hoEditorFactoryID).docController.find(v,l,u,_);return C}},{key:"replace",value:function replace(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange;rt.b.instance().getFactory(this._hoEditorFactoryID).docController.replace(N,l,u,_,v,C,k)}},{key:"insertDateTime",value:function insertDateTime(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertDateTime);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("add",_,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDateTime",value:function updateDateTime(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daInsert,_,v,ji.y.updateDateTime);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime("update",u,l,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertDownList",value:function insertDownList(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.insertDownList);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(N)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("add",v,u,_,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"updateDownList",value:function updateDownList(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.updateDownList);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList("update",_,l,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}},{key:"insertSpecialChars",value:function insertSpecialChars(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.editController.canIsEdit(_);if(v){var C=_.docTree.curDomRange,k=C.normalize().startPath,N=C.normalize().endPath,B=new ji.Q(be.gk.daInsert,k,N,ji.y.insertSpecialChars);_.docTree.changing(B)&&_.docController.insertSpecialChars(l,C,u,rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex)}}},{key:"openLocalFiles",value:function openLocalFiles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.isThrowError=!1;var v=_.docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.openLocalFiles);_.docTree.changing(N)&&(_.docController.initBlankDoc(),_.drawTree.inViewPages=[0],_.openXmled=!0,_.structureConvert.openFile(l,u)),_.undoService.stack=[]}},{key:"openLocalFilesTest",value:function openLocalFilesTest(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.initBlankDoc(),_.structureConvert.openFile(l,u,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=JSON.parse(JSON.stringify(l));rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(u)}},{key:"saveAsFile",value:function saveAsFile(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(_.isThrowError=!1,!u){_.contentIsModify.isModify=!1;var v=_.undoService.stack;if(v.length>0){var C=v[v.length-1],k=C.undoUnits,N=k[k.length-1];_.lastSaveTime=N.opTime}else _.lastSaveTime=new Date(Date.now())}var B=_.docTree.curDomRange,U=B.normalize().startPath,W=B.normalize().endPath,q=new ji.Q(be.gk.daUnkown,U,W,ji.y.saveAsFile);if(this.setDocCommentIsHandle(),_.docTree.changing(q)){var $="";return"xml"===l&&($=_.structureConvert.doc2Xml("xml",void 0,!0)),"plain"===l&&($=_.structureConvert.doc2Text()),"html"===l&&this.saveAsPDF("","html"),"json"===l&&($=_.structureConvert.doc2Xml("json",void 0,!0),$=Bi.pd.json($)),$}return""}},{key:"getDocTitle",value:function getDocTitle(){return rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.docProperty.title}},{key:"getDocProperty",value:function getDocProperty(){return rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.docProperty}},{key:"getDocXml",value:function getDocXml(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml("xml",l,u,_);return v}},{key:"getDocJson",value:function getDocJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(l);return u}},{key:"setPageProperty",value:function setPageProperty(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.setPageProperty(l);for(var _=0;_<u.drawTree.drawPages.length;_++)u.drawTree.drawPages[_].reFreshBounds();u.drawTree.drawPages.length>1||u.drawTree.mainDNodes.length>1||u.drawTree.mainDNodes[0]instanceof Bn.t||u.drawTree.mainDNodes[0]instanceof Rn.a&&u.drawTree.mainDNodes[0].drawItems.length>0||u.drawTree.headerDNodes.length>=1&&u.drawTree.headerDNodes[0].length>1||u.drawTree.footerDNodes.length>=1&&u.drawTree.footerDNodes[0].length>1?this.rebuildAll(!0):u.drawTree.updateDrawTreeFirstLine()}},{key:"insertComment",value:function insertComment(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.insertComment);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertComment(l,_,u)}},{key:"deleteComment",value:function deleteComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,_=u.normalize().startPath,v=u.normalize().endPath,C=new ji.Q(be.gk.daDelete,_,v,ji.y.deleteComment);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(C)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.deleteComment(l)}},{key:"insertPageNum",value:function insertPageNum(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,k=C.normalize().startPath,N=C.normalize().endPath,B=new ji.Q(be.gk.daInsert,k,N,ji.y.insertPageNum);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(B)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPageNum(l,C,u,_,v)}},{key:"newFile",value:function newFile(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);"caseHistory"===l&&(u.docTree.docProperty.type=be.Fr.etCaseHistory),"form"===l&&(u.docTree.docProperty.type=be.Fr.etForm);var _=u.docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daUnkown,v,C,ji.y.newFile);u.docTree.changing(k)&&u.docController.initBlankDoc()}},{key:"editComment",value:function editComment(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,v=_.normalize().startPath,C=_.normalize().endPath,k=new ji.Q(be.gk.daUpdate,v,C,ji.y.editComment);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(k)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.editComment(l,u)}},{key:"insertTableFormula",value:function insertTableFormula(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.insertTableFormula);rt.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(N)&&rt.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTableFormula(v,l,u,_)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=new Vn(this.hoEditorFactoryID);_.setReviewLevelColor(l.reviewLev1Color,l.reviewLev2Color,l.reviewLev3Color,l.fieldColor,l.dateTimeColor,l.downListColor,l.downListColor2,l.signColor),u.option=_}},{key:"setUserLoginInfo",value:function setUserLoginInfo(l,u,_,v){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.setUserLoginInfo(l,u,_,v)}},{key:"setEditorStatus",value:function setEditorStatus(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.isHideComments=!0,_.drawTree.paintStatus=l,_.printStatus.printRange=2,2==l&&void 0!=u?_.printStatus.printRange=u:(_.printStatus.drawPrintRecord.clear(),_.printStatus.clearArea());var v=0;4===l&&(v=50,_.isHideComments=!1),v!==_.pageProperty.commentWidthMm&&_.vueController.setPageProperty(JSON.stringify({commentWidthMm:v})),_.structureConvert._superiorSign.length>0&&(1===l||4===l?this.hiddenMask(!1):this.hiddenMask(!0))}},{key:"hiddenMask",value:function hiddenMask(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l)for(var _=0;_<u.drawTree.drawPages.length;_++){for(var v=u.drawTree.drawPages[_],C=0;C<v.selectContainer.children.length;C++)v.selectContainer.children[C].name&&v.selectContainer.children[C].name.indexOf("mask")>=0&&v.selectContainer.children.splice(C,1);u.drawPageTree.updateDrawPage(_)}else{var k=u.structureConvert._superiorSign,N=k[0],B=u.drawPageTree.getMainRootArea(N.drawNodes[0]);if(B&&B instanceof An.$){var U=u.pageProperty.widthPixes+1,W=u.pageProperty.heightPixes,q=u.drawPageTree.drawMainDocs.indexOf(B),$=function paintMask(l,_){for(var v=u.drawTree.drawPages[l],C=v.selectContainer,k=0;k<C.children.length;k++)C.children[k].name&&C.children[k].name.indexOf("mask")>=0&&C.children.splice(k,1);var N=new createjs.Shape;N.graphics.clear(),N.graphics.beginFill("#000000").drawRect(0,0,U,_).closePath(),N.x=0,N.y=0,N.alpha=.1,N.name=_<W?"mask0":"mask"+(l+1).toString(),C.addChild(N),u.drawPageTree.updateDrawPage(l)};if(q>0)for(var Y=0;Y<q;Y++)$(Y,W);var ee=N.drawNodes[0],re=u.drawTree.getDrawLineByDNode(ee),ne=u.drawPageTree.drawHeaders[0].actualHeight;k[1]=q;var ie=re.localToGlobal(ee.x,ee.y),oe=B.globalToLocal(ie.x,ie.y);k[2]=oe.y,$(q,oe.y+ne+ee.y)}}}},{key:"pageProperty",value:function pageProperty(){return rt.b.instance().getFactory(this._hoEditorFactoryID).pageProperty}},{key:"generateID",value:function generateID(l){return rt.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID(l)}},{key:"printToPDF",value:function printToPDF(l){qe.Kh.printToPDF(this._hoEditorFactoryID)}},{key:"printPromisePDF",value:function printPromisePDF(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.printController.printPromisePDF(l,u)}},{key:"saveAsPDF",value:function saveAsPDF(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.printController.saveAsPDF(l,u,_)}},{key:"rebuildAll",value:function rebuildAll(l){rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(l)}},{key:"moveCaretToPath",value:function moveCaretToPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.drawTree.moveCaretToPath(l),u.docTree.curDomRange.setSamePath(l)}},{key:"getCaretPosition",value:function getCaretPosition(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange;return u.endPath}},{key:"findNodebyPath",value:function findNodebyPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.findNodePositionByPath(l);if(_)return _;Jn().alert("根据路径"+l+"未找到文档节点")}},{key:"getDomRange",value:function getDomRange(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();return u}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"setDomRange",value:function setDomRange(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.curDomRange,C=new Ie.a(_.hoEditorFactoryId,l,u),k=C.npStart.node,N=C.npEnd.node;if(!k||!N)throw new Error("错误的选择范围".concat(l," ").concat(u));_.docTree.curDomRange=C;var B=new ke.r(v,C);_.docTree.selectChange(B)}},{key:"insertText",value:function insertText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.editController.canIsEdit(u);_&&u.docController.keyBoardInput(l)}},{key:"deleteText",value:function deleteText(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.docController.keyBoardDelete("Backspace")}},{key:"getTextStyles",value:function getTextStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.styles;return u}},{key:"getParaStyles",value:function getParaStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.paragraphs;return u}},{key:"clearUndos",value:function clearUndos(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.undoService.clear()}},{key:"iteratesDocTree",value:function iteratesDocTree(l){for(var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=function iteratesNodes(u){for(var _=0;_<u.length;_++){var v=u[_];v instanceof gi.V?iteratesNodes(v.childNodes):l(v)}},v=u.subDocManger.headerDocTree,C=u.docTree.mainNodes,k=u.subDocManger.footerDocTree,N=0;N<v.length;N++)_(v[N].subDocNodes);_(C);for(var B=0;B<k.length;B++)_(k[B].subDocNodes)}},{key:"hasComment",value:function hasComment(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.commentsMap;return u.size>0}},{key:"hideComments",value:function hideComments(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=0;l||(_=50),this.setPageProperty(JSON.stringify({commentWidthMm:_}));var v=u.drawTree.commentsMap;if(u.isHideComments=l,v.size>0){var C=function changeComments(l,_){var v=u.drawPageTree.getMainRootArea(_.eNode.drawNodes[0]);if(v){for(var C=v.children,k=C.length-1;k>=0;k--){var N=C[k];N.name===_.id&&(l?N.alpha=.01:N instanceof createjs.Container?N.alpha=1:N.alpha=.5)}u.drawPageTree.updateDrawPage(v.index)}};v.forEach((function(u){C(l,u)}))}}},{key:"getNodeByID",value:function getNodeByID(l,u){var _=null,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function iteratesNodes(l){for(var v=0;v<l.length;v++){var C=l[v];if((C instanceof hi.T||C instanceof _i.d||C instanceof Sn.H||C instanceof wi.w||C instanceof Bt.re)&&C.id===u){_=C;break}C instanceof gi.V&&iteratesNodes(C.childNodes)}};if("header"===l)for(var k=v.subDocManger.headerDocTree,N=0;N<k.length;N++)if(k[N]&&(C(k[N].subDocNodes),_))break;if("main"===l){var B=v.docTree.mainNodes;C(B)}if("footer"===l)for(var U=v.subDocManger.footerDocTree,W=0;W<U.length;W++)if(U[W]&&(C(U[W].subDocNodes),_))break;if("all"===l){for(var q=v.subDocManger.headerDocTree,$=0;$<q.length;$++)if(q[$]&&(C(q[$].subDocNodes),_))break;if(!_){var Y=v.docTree.mainNodes;C(Y)}if(!_)for(var ee=v.subDocManger.footerDocTree,re=0;re<ee.length;re++)if(ee[re]&&(C(ee[re].subDocNodes),_))break}return _}},{key:"getNodeByDataID",value:function getNodeByDataID(l,u){var _=null,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function iteratesNodes(l){for(var v=0;v<l.length;v++){var C=l[v];if((C instanceof wi.w||C instanceof Bt.re)&&C.dataId===u){_=C;break}C instanceof gi.V&&iteratesNodes(C.childNodes)}};if("header"===l)for(var k=v.subDocManger.headerDocTree,N=0;N<k.length;N++)if(k[N]&&(C(k[N].subDocNodes),_))break;if("main"===l){var B=v.docTree.mainNodes;C(B)}if("footer"===l)for(var U=v.subDocManger.footerDocTree,W=0;W<U.length;W++)if(U[W]&&(C(U[W].subDocNodes),_))break;if("all"===l){for(var q=v.subDocManger.headerDocTree,$=0;$<q.length;$++)if(q[$]&&(C(q[$].subDocNodes),_))break;if(!_){var Y=v.docTree.mainNodes;C(Y)}if(!_)for(var ee=v.subDocManger.footerDocTree,re=0;re<ee.length;re++)if(ee[re]&&(C(ee[re].subDocNodes),_))break}return _}},{key:"getNodesByName",value:function getNodesByName(l,u,_){var v=[],C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=function iteratesNodes(l){for(var C=0;C<l.length;C++){var k=l[C];if((k instanceof wi.w||k instanceof Bt.re)&&k.name===_&&(v.push(k),!u))break;k instanceof gi.V&&iteratesNodes(k.childNodes)}};if("header"===l)for(var N=C.subDocManger.headerDocTree,B=0;B<N.length;B++)if(k(N[B].subDocNodes),!u&&v.length>0)break;if("main"===l){var U=C.docTree.mainNodes;k(U)}if("footer"===l)for(var W=C.subDocManger.footerDocTree,q=0;q<W.length;q++)if(k(W[q].subDocNodes),!u&&v.length>0)break;if("all"===l){for(var $=C.subDocManger.headerDocTree,Y=0;Y<$.length;Y++)if(k($[Y].subDocNodes),!u&&v.length>0)break;if(u||!u&&0===v.length){var ee=C.docTree.mainNodes;k(ee)}if(u||!u&&0===v.length)for(var re=C.subDocManger.footerDocTree,ne=0;ne<re.length;ne++)if(k(re[ne].subDocNodes),!u&&v.length>0)break}return v}},{key:"getNodesById",value:function getNodesById(l,u,_){var v=[],C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=function iteratesNodes(l){for(var C=0;C<l.length;C++){var k=l[C];if((k instanceof wi.w||k instanceof Bt.re)&&k.id===_&&(v.push(k),!u))break;k instanceof gi.V&&iteratesNodes(k.childNodes)}};if("header"===l)for(var N=C.subDocManger.headerDocTree,B=0;B<N.length;B++)if(k(N[B].subDocNodes),!u&&v.length>0)break;if("main"===l){var U=C.docTree.mainNodes;k(U)}if("footer"===l)for(var W=C.subDocManger.footerDocTree,q=0;q<W.length;q++)if(k(W[q].subDocNodes),!u&&v.length>0)break;if("all"===l){for(var $=C.subDocManger.headerDocTree,Y=0;Y<$.length;Y++)if(k($[Y].subDocNodes),!u&&v.length>0)break;if(u||!u&&0===v.length){var ee=C.docTree.mainNodes;k(ee)}if(u||!u&&0===v.length)for(var re=C.subDocManger.footerDocTree,ne=0;ne<re.length;ne++)if(k(re[ne].subDocNodes),!u&&v.length>0)break}return v}},{key:"insertHtmlText",value:function insertHtmlText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.editController.canIsEdit(u);if(_){for(var v=u.htmlConverter.parseHtmlString(l),C=0;C<v.length;C++){var k=v[C];if(k instanceof Gt.R||k instanceof mn.C){var N=u.docTree.styles[k.styleIndex].clone(),B=u.docTree.styles[u.docTree.curStyleIndex];N.size=B.combineStyle.size;var U=u.docTree.styleCompare(N);k.styleIndex=U}}u.docController.parseNodeData(v)}}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.modifyRedraw(l,u)}},{key:"deleteRedraw",value:function deleteRedraw(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.deleteRedraw(l)}},{key:"insertRedraw",value:function insertRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.insertRedraw(l,u)}},{key:"fullRedraw",value:function fullRedraw(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.drawTree.rebuildAllDrawLine(!1)}},{key:"updateStyles",value:function updateStyles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);u=_.structureConvert.replaceNodesName(u);var v=new(oi())({stripWhitespaces:!1}),C=v.xml2js(u),k=JSON.parse(JSON.stringify(C));if(k.root){var N=k.root.docProperty.docId,B=k.root.styles,U=Array(B.defaultFont),W=_.structureConvert.getDocStyles("font",U),q=B.font?B.font:B.fontStyle;if(q){void 0===q.length&&(q=Array(q));for(var $=0;$<q.length;$++){var Y=q[$];0===Y.length&&(q[$]=B.defaultFont)}var ee=_.structureConvert.getDocStyles("font",q);W=W.concat(ee)}var re=Array(B.defaultPara),ne=_.structureConvert.getDocStyles("para",re),ie=B.para?B.para:B.paraStyle;if(ie){void 0===ie.length&&(ie=Array(ie));var oe=_.structureConvert.getDocStyles("para",ie);ne=ne.concat(oe)}var ae=function iteratesNode(l){for(var u=0;u<l.length;u++){var v=l[u];if("ntField"!==v.nodeType&&"ntCell"!==v.nodeType||v.childNodes&&v.childNodes.node&&v.childNodes.node.length>0&&iteratesNode(v.childNodes.node),"ntTable"===v.nodeType&&v.childNodes&&v.childNodes.item){var C=v.childNodes.item;void 0===C.length&&(C=Array(v.childNodes.item));for(var k=0;k<C.length;k++){var N=C[k];if(N.childNodes&&N.childNodes.node){var B=N.childNodes.node;void 0===B.length&&(B=Array(N.childNodes.node)),iteratesNode(B)}}}if(v.styleIndex){var U=Number(v.styleIndex);if("ntParagraph"===v.nodeType){var q=ne[U];v.styleIndex=_.docTree.styleCompare(q);var $=Number(v.textStyleNo||0),Y=W[$];v.textStyleNo=_.docTree.styleCompare(Y)}else{var ee=W[U];v.styleIndex=_.docTree.styleCompare(ee)}}}return l};if("header"===l){var le=k.root.headers.header;void 0===le.length&&(le=Array(k.root.headers.header));var ce=le[0],de=ce.node;return void 0===de.length&&(de=Array(le[0].node)),ae(de),[de,N]}if("footer"===l){var he=k.root.footers.footer;void 0===he.length&&(he=Array(k.root.footers.footer));var _e=he[0],pe=_e.node;return void 0===pe.length&&(pe=Array(he[0].node)),ae(pe),[pe,N]}var fe=k.root.main.node;return void 0===fe.length&&(fe=Array(k.root.main.node)),ae(fe),[fe,N]}}},{key:"showCellAdress",value:function showCellAdress(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docTree.mainNodes.forEach((function(_){if(_ instanceof Un.Fh){for(var v=0;v<_.rowCount;v++)for(var C=0;C<_.colCount;C++){var k=_.rows[v][C];if(k)for(var N=0,B=k.drawCell.drawPageCells.length;N<B;N++)k.drawCell.drawPageCells[N].paintCellAdress(l)}for(var U=0,W=_.drawTable.drawPageTables.length;U<W;U++){var q=u.drawPageTree.getDrawPageByDNode(_.drawTable.drawPageTables[U]);q&&(q.needUpdateStage=!0,u.drawPageTree.updateDrawPage(q.pageIndex))}}}))}},{key:"insertXml",value:function insertXml(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=this.updateStyles(u,l),B=JSON.stringify(N[0]),U=N[1],W=k.drawTree.drawPages.length,q="main";"header"===u&&(q="header/"+k.subDocManger.headerDocTree.length.toString()),"footer"===u&&(q="footer/"+k.subDocManger.footerDocTree.length.toString());var $=k.structureNode.Parse(Ci.ctJSON,B,q,C);if(v&&"main"===u&&$.length>1&&$[$.length-1]instanceof mn.C&&!($[$.length-2]instanceof Un.Fh)&&$.splice($.length-1,1),"main"!==u){var Y=new Array;if("header"===u){var ee=k.subDocManger.headerDocTree.length,re="header/"+ee.toString(),ne=new it.g(this._hoEditorFactoryID,re,W);k.drawPageTree.drawHeaders.push(ne),k.drawTree.headerDNodes.push(new Array);var ie=new mn.C(this._hoEditorFactoryID,Y,null,0);Y.push(ie),ie.rootPath=re;var oe=new lt.UJ(W,"");oe.subDocNodes=Y,k.subDocManger.headerDocTree.push(oe),k.drawTree.initAreaFirstNode(Y,k.drawTree.headerDNodes[ee]),k.docTree.curDomRange.setSamePath(re+"/0"),$[0]instanceof mn.C&&(oe.subDocNodes[0].paraNo=$[0].paraNo,oe.subDocNodes[0].styleIndex=$[0].styleIndex,$.splice(0,1)),k.docController.parseNodeData($)}else if("footer"===u){var ae=k.subDocManger.footerDocTree.length,le="footer/"+ae.toString(),ce=new ot.d(this._hoEditorFactoryID,le,W);k.drawPageTree.drawFooters.push(ce),k.drawTree.footerDNodes.push(new Array);var de=new mn.C(this._hoEditorFactoryID,Y,null,0);Y.push(de),de.rootPath=le;var he=new lt.UJ(W,"");he.subDocNodes=Y,k.subDocManger.footerDocTree.push(he),k.drawTree.initAreaFirstNode(Y,k.drawTree.footerDNodes[ae]),k.docTree.curDomRange.setSamePath(q+"/0"),$[0]instanceof mn.C&&(he.subDocNodes[0].paraNo=$[0].paraNo,he.subDocNodes[0].styleIndex=$[0].styleIndex,$.splice(0,1)),k.docController.parseNodeData($)}}else{var _e=k.docTree.mainNodes,pe=k.docTree.getNodeLastPath(_e[_e.length-1]);_||1!==k.docTree.mainNodes.length||(k.docTree.mainNodes[0].docId=U&&""!==U?U:k.gernerateCode.generateID("DocId"),$[0]instanceof mn.C&&(k.docTree.mainNodes[0].paraNo=$[0].paraNo,k.docTree.mainNodes[0].styleIndex=$[0].styleIndex,$.splice(0,1))),_&&($[0].printAsSinglePage=_,$[0].docId=U&&""!==U?U:k.gernerateCode.generateID("DocId")),k.docTree.curDomRange.setSamePath(pe),k.docController.parseNodeData($)}}},{key:"mergeDocs",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(l,u,_,v){return(0,fe.Z)().wrap((function _callee$(C){while(1)switch(C.prev=C.next){case 0:return u?(this.insertXml(l,"header"),this.insertXml(l,"footer"),this.insertXml(l,"main",u,v)):this.insertXml(l,"main",void 0,v),_&&_(),C.abrupt("return",!0);case 3:case"end":return C.stop()}}),_callee,this)})));function mergeDocs(u,_,v,C){return l.apply(this,arguments)}return mergeDocs}()},{key:"openDocsForPrint",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee2(l){var u,_,v,C,k,N,B,W,q,$,Y,ee,re,ne,ie,oe,ae,le,ce,de;return(0,fe.Z)().wrap((function _callee2$(he){while(1)switch(he.prev=he.next){case 0:if(0!=l.length){he.next=2;break}return he.abrupt("return");case 2:if(u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.docTree.curDomRange.normalize(),v=_.startPath,C=_.endPath,k=new ji.Q(be.gk.daInsert,v,C,ji.y.openXml),u.openXmled=!0,!u.docTree.changing(k)){he.next=12;break}return he.next=11,u.docController.initBlankDoc();case 11:u.drawTree.inViewPages=[0];case 12:for(N=new Array,B=new Array,W=function getDetailStyle(l,u){var _=JSON.stringify(u),v=JSON.parse(_);return"undefined"!==typeof l["size"]&&l["size"]!==u.size.toString()&&(v["size"]=l["size"]),"undefined"!==typeof l["creatorIndex"]&&l["creatorIndex"]!==u.creatorIndex.toString()&&(v["creatorIndex"]=l["creatorIndex"]),"undefined"!==typeof l["deleterIndex"]&&l["deleterIndex"]!==u.deleterIndex.toString()&&(v["deleterIndex"]=l["deleterIndex"]),"undefined"!==typeof l["bold"]&&l["bold"]!==u.bold.toString()&&(v["bold"]=l["bold"]),"undefined"!==typeof l["italic"]&&l["italic"]!==u.italic.toString()&&(v["italic"]=l["italic"]),"undefined"!==typeof l["script"]&&l["script"]!==u.script.toString()&&(v["script"]=l["script"]),"undefined"!==typeof l["strikeout"]&&l["strikeout"]!==u.strikeout.toString()&&(v["strikeout"]=l["strikeout"]),"undefined"!==typeof l["underline"]&&l["underline"]!==u.underline.toString()&&(v["underline"]=l["underline"]),"undefined"!==typeof l["color"]&&l["color"]!==u.color&&(v["color"]=l["color"]),"undefined"!==typeof l["font"]&&l["font"]!==u.font&&(v["font"]=l["font"]),"undefined"!==typeof l["backColor"]&&l["backColor"]!==u.backColor&&(v["backColor"]=l["backColor"]),"undefined"!==typeof l["commentID"]&&l["commentID"]!==u.commentID&&(v["commentID"]=l["commentID"]),v},q=u.structureConvert.xml2Object(l[0][1]),N.push(JSON.stringify(q.styles.defaultFont)),B.push(JSON.stringify(q.styles.defaultPara)),$=JSON.parse(N[0]),$["size"]=$["size"].toString(),$["creatorIndex"]=$["creatorIndex"].toString(),$["deleterIndex"]=$["deleterIndex"].toString(),$["bold"]=$["bold"].toString(),$["italic"]=$["italic"].toString(),$["script"]=$["script"].toString(),$["strikeout"]=$["strikeout"].toString(),$["underline"]=$["underline"].toString(),N[0]=JSON.stringify($),Y=JSON.parse(B[0]),Y["charSpace"]=Y["charSpace"].toString(),Y["lineSpace"]=Y["lineSpace"].toString(),Y["leftMarginMm"]=Y["leftMarginMm"].toString(),Y["topMarginMm"]=Y["topMarginMm"].toString(),Y["bottomMarginMm"]=Y["bottomMarginMm"].toString(),Y["rightMarginMm"]=Y["rightMarginMm"].toString(),Y["align"]=Y["align"].toString(),B[0]=JSON.stringify(Y),""==q.styles.fontStyle?q.styles.fontStyle=[]:Array.isArray(q.styles.fontStyle)||(q.styles.fontStyle=[q.styles.fontStyle]),""==q.styles.paraStyle?q.styles.paraStyle=[]:Array.isArray(q.styles.paraStyle)||(q.styles.paraStyle=[q.styles.paraStyle]),ee=0;ee<q.styles.fontStyle.length;ee++)re=JSON.stringify(q.styles.fontStyle[ee]),'""'==re?(N.push(JSON.stringify($)),q.styles.fontStyle[ee]=$):(ne=W(q.styles.fontStyle[ee],$),N.push(JSON.stringify(ne)),q.styles.fontStyle[ee]=ne);for(ie=0;ie<q.styles.paraStyle.length;ie++)oe=JSON.stringify(q.styles.paraStyle[ie]),'""'==oe?B.push(JSON.stringify(Y)):B.push(JSON.stringify(q.styles.paraStyle[ie]));if(q){he.next=43;break}return he.abrupt("return");case 43:for(ae=function updateNodesStyle(l,u,_){for(var v=0;v<l.length;v++){var C=l[v];if(C.styleIndex)if("ntParagraph"==C.nodeType){var k=parseInt(C.styleIndex),U=_.get(k);if(void 0==U||'""'==B[U]?C.styleIndex=_.get(0):C.styleIndex=U,C.textStyleNo){var W=parseInt(C.textStyleNo),q=u.get(W);void 0==q||'""'==N[q]?C.textStyleNo=u.get(0):C.textStyleNo=q}}else{var $=parseInt(C.styleIndex),Y=u.get($);void 0==Y||'""'==N[Y]?C.styleIndex=u.get(0):C.styleIndex=Y}if("ntField"!==C.nodeType&&"ntCell"!==C.nodeType||C.childNodes&&C.childNodes.node&&C.childNodes.node.length>0&&updateNodesStyle(C.childNodes.node,u,_),"ntTable"===C.nodeType&&C.childNodes&&C.childNodes.item){var ee=C.childNodes.item;void 0===ee.length&&(ee=Array(C.childNodes.item));for(var re=0;re<ee.length;re++){var ne=ee[re];if(ne.childNodes&&ne.childNodes.node){var ie=ne.childNodes.node;void 0===ie.length&&(ie=Array(ne.childNodes.node)),updateNodesStyle(ie,u,_)}}}}},le=function _loop(_){var v=new Map,C=new Map,k=u.structureConvert.xml2Object(l[_][1]),$=k.styles.fontStyle,Y=k.styles.defaultFont,ee=JSON.stringify(Y),re=N.indexOf(ee);re>=0?v.set(0,re):(q.styles.fontStyle.push(Y),N.push(ee),v.set(0,N.length-1));var ne=[];if(""!=$){ne=Array.isArray($)?$:[$];for(var ie=0;ie<ne.length;ie++){var oe=W(ne[ie],Y),le=JSON.stringify(oe),ce=N.lastIndexOf(le);ce>=0?v.set(ie+1,ce):'""'==le?v.set(ie+1,v.get(0)):(q.styles.fontStyle.push(oe),N.push(le),v.set(ie+1,N.length-1))}}var de=k.styles.paraStyle,he=k.styles.defaultPara,_e=JSON.stringify(he),pe=B.indexOf(_e);pe>=0?C.set(0,pe):(q.styles.paraStyle.push(he),B.push(_e),C.set(0,B.length-1));var fe=function getParaDetailStyle(l){var u=JSON.stringify(he),_=JSON.parse(u);return"undefined"!==typeof l["charSpace"]&&l["charSpace"]!==he.charSpace.toString()&&(_["charSpace"]=l["charSpace"]),"undefined"!==typeof l["lineSpace"]&&l["lineSpace"]!==he.lineSpace.toString()&&(_["lineSpace"]=l["lineSpace"]),"undefined"!==typeof l["align"]&&l["align"]!==he.align.toString()&&(_["align"]=l["align"]),_},me=[];""!=de&&(me=de&&!Array.isArray(de)?[de]:de);for(var be=0;be<me.length;be++){var Ee=fe(me[be]),ke=JSON.stringify(Ee),Ie=B.indexOf(ke);Ie>=0?C.set(be+1,Ie):'""'==ke?C.set(be+1,C.get(0)):(q.styles.paraStyle.push(Ee),B.push(ke),C.set(be+1,B.length-1))}ae(k.main,v,C);var Ne;q.main.length;if(q.pageSettingsTree=[],l[_][0]){ae(k.header[0].subDocNodes,v,C);var Fe=u.gernerateCode.generateID("cb");k.header[0].beginPath=Fe,k.header[0].pageIndex=-1,q.header.push(k.header[0]),ae(k.footer[0].subDocNodes,v,C),k.footer[0].beginPath=Fe,k.footer[0].pageIndex=-1,q.footer.push(k.footer[0]),k.main[0].printAsSinglePage="true",k.main[0].docId=Fe,q.pageSettingsTree.push(k.pageSettings),u.printStatus.pageSettingMap.set(Fe,{widthMm:Number(k.pageSettings.widthMm),heightMm:Number(k.pageSettings.heightMm),pageSize:k.pageSettings.pageSize,printDirection:Number(k.pageSettings.printDirection)})}Array.isArray(k.main)?(Ne=q.main).push.apply(Ne,(0,U.Z)(k.main)):q.main.push(k.main)},ce=1;ce<l.length;ce++)le(ce);return he.next=48,u.structureConvert.json2Doc(q);case 48:return de=he.sent,he.next=51,u.drawTree.updateDrawTreeFirstLine();case 51:return he.next=53,u.structureConvert.openJson2Doc(de);case 53:return he.abrupt("return");case 54:case"end":return he.stop()}}),_callee2,this)})));function openDocsForPrint(u){return l.apply(this,arguments)}return openDocsForPrint}()},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.getHeaderPageNodes()[0],_=l.docTree.getNodeLastPath(u[u.length-1]),v=new Ie.a(this._hoEditorFactoryID,"header/0/0",_),C=l.structureNode.Copy(v,null),k=this.getSubDocImg(l.drawTree.activePageIndex.index,lt.pi.hftHead);return[C,k]}},{key:"insertHeaderJson",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee3(l){var u,_,v,C,k,N,B,U,W,q,$,Y,ee;return(0,fe.Z)().wrap((function _callee3$(re){while(1)switch(re.prev=re.next){case 0:return u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=0,v=u.subDocManger.headerDocTree[_].subDocNodes,C=u.docTree.getNodeLastPath(v[v.length-1]),k="header/"+_.toString()+"/0",N=new Ie.a(this._hoEditorFactoryID,k,C),re.next=8,u.docController.deleteRange(N,!0);case 8:for(u.docTree.curDomRange.setSamePath(k),B=u.structureNode.Parse(Ci.ctJSON,l),B[0]instanceof mn.C&&(v[0].paraNo=B[0].paraNo,B.splice(0,1)),u.docController.parseNodeData(B),U=0;U<u.subDocManger.headerDocTree.length;U++)W=u.subDocManger.headerDocTree[U].subDocNodes,W.length>0&&(u.drawTree.headerDNodes.length>0&&(q=u.drawTree.headerDNodes[0],q instanceof Rn.a&&(q.dWidth=q.paragraphNode.getParagraphLeftWidth()[1]-q.paragraphNode.combineParagraph.leftMarginPixes-q.paragraphNode.combineParagraph.rightMarginPixes)),$=W[0].getNodePath(),Y=u.docTree.getNodeLastPath(W[W.length-1]),ee=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,$,Y),ee.oldEndPath=Y,ee.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines($,Y,!0),u.docTree.change(ee),u.subDocManger.updateAllSameSubDoc(U,lt.pi.hftHead,!1,!1));case 13:case"end":return re.stop()}}),_callee3,this)})));function insertHeaderJson(u){return l.apply(this,arguments)}return insertHeaderJson}()},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.getFooterPageNodes()[0],_=l.docTree.getNodeLastPath(u[u.length-1]),v=new Ie.a(this._hoEditorFactoryID,"footer/0/0",_),C=l.structureNode.Copy(v,null),k=this.getSubDocImg(l.drawTree.activePageIndex.index,lt.pi.hftFoot);return[C,k]}},{key:"insertFooterJson",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee4(l){var u,_,v,C,k,N,B,U,W,q,$,Y;return(0,fe.Z)().wrap((function _callee4$(ee){while(1)switch(ee.prev=ee.next){case 0:return u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.subDocManger.getFooterPageNodes(),v=_[0],C=u.docTree.getNodeLastPath(v[v.length-1]),k=new Ie.a(this._hoEditorFactoryID,"footer/0/0",C),ee.next=7,u.docController.deleteRange(k,!0);case 7:for(u.docTree.curDomRange.setSamePath("footer/0/0"),N=u.structureNode.Parse(Ci.ctJSON,l),N[0]instanceof mn.C&&(v[0].paraNo=N[0].paraNo,N.splice(0,1)),u.docController.parseNodeData(N),B=0;B<_.length;B++)U=_[B],U.length>0&&(u.drawTree.footerDNodes.length>0&&(W=u.drawTree.footerDNodes[0],W instanceof Rn.a&&(W.dWidth=W.paragraphNode.getParagraphLeftWidth()[1]-W.paragraphNode.combineParagraph.leftMarginPixes-W.paragraphNode.combineParagraph.rightMarginPixes)),q=U[0].getNodePath(),$=u.docTree.getNodeLastPath(U[U.length-1]),Y=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,q,$),Y.oldEndPath=$,Y.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(q,$,!0),u.docTree.change(Y),u.subDocManger.updateAllSameSubDoc(B,lt.pi.hftFoot,!1,!1));case 12:case"end":return ee.stop()}}),_callee4,this)})));function insertFooterJson(u){return l.apply(this,arguments)}return insertFooterJson}()},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.docTree.curDomRange.isEmpty)return"";var _=u.structureNode.Copy(u.docTree.curDomRange,null,l);return _}},{key:"insertSelectedJson",value:function insertSelectedJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.editController.canIsEdit(u);if(_)if("object"===(0,ri.Z)(JSON.parse(l))){var v=u.structureNode.Parse(Ci.ctJSON,l);u.docController.parseNodeData(v)}else u.docController.keyBoardInput(l)}},{key:"openXml",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee5(l,u,_,v,C){var k,N,B,U,W;return(0,fe.Z)().wrap((function _callee5$(q){while(1)switch(q.prev=q.next){case 0:if(!1!==v){q.next=2;break}return q.abrupt("return");case 2:if(k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=k.docTree.curDomRange,B=N.normalize().startPath,U=N.normalize().endPath,W=new ji.Q(be.gk.daInsert,B,U,ji.y.openXml),k.openXmled=!0,!k.docTree.changing(W)){q.next=15;break}return q.next=11,k.docController.initBlankDoc();case 11:if(k.drawTree.inViewPages=[0],!(l>"")){q.next=15;break}return q.next=15,k.structureConvert.openXml(l,u,_,C);case 15:case"end":return q.stop()}}),_callee5,this)})));function openXml(u,_,v,C,k){return l.apply(this,arguments)}return openXml}()},{key:"getSubDocImg",value:function getSubDocImg(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.subDocManger.getSubDocCopyDrawArea(l,u);if(v&&!v.stage&&(v=u===lt.pi.hftHead?_.drawTree.drawPages[l].drawHeader:_.drawTree.drawPages[l].drawFooter),v&&v.stage&&v.stage.canvas){var C=Math.max(Math.min(v.docHeight,v.maxHeight),v.dHeight)*nt.f.instance().scaleXY,k=v.stage.canvas.getContext("2d");if(k){var N=k.getImageData(0,v.y*nt.f.instance().scaleXY,_.pageProperty.widthPixes*nt.f.instance().scaleXY,C),B=document.createElement("canvas");B.width=_.pageProperty.widthPixes*nt.f.instance().scaleXY,B.height=C;var U=B.getContext("2d");if(U)return U.putImageData(N,0,0),B.toDataURL()}}return""}},{key:"getRangeText",value:function getRangeText(l){l=l.normalize();var u="",_=[],v=l.npStart.childIndex,C=l.npEnd.childIndex,k=function getNodeText(l){var u="";return l instanceof wi.w&&(u=l.text),l instanceof Bt.re?u=l.getFieldText():l instanceof et.D?u=l.getCellText():l instanceof mn.C&&(u="\n"),u};if(l.npStart.node===l.npEnd.node)return u=l.npStart.node instanceof Gt.R?l.npStart.node.text.substring(v+1,C+1):k(l.npStart.node),u;_=Ie.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID,l.startPath,l.endPath);for(var N=0;N<_.length;N++){var B=_[N];B instanceof Gt.R?N===_.length-1&&B instanceof Gt.R?u+=B.text.substring(0,C+1):u+=B.text:u+=k(B)}return u}},{key:"deleteNode",value:function deleteNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l){if(l.parentNode&&l.parentNode instanceof et.D){var _=l.parentNode.delCellNodeText();if(!_)return}if(l instanceof et.D){var v=l.delCellNodeText();if(!v)return}var C=l.previousLeaf(),k=u.docTree.getNodeLastPath(C),N=u.docTree.getNodeLastPath(l);if(u.drawTree.paintStatus===Ee.Dh.psReview&&l instanceof gn.N){var B=l.customProperty.bce01;if(u.userInfo.id!=B)return void Jn().alert("不是本人签名,不允许删除!")}if(u.drawTree.paintStatus!==Ee.Dh.psDesign&&l instanceof gn.N&&l.isTemplate&&0===l.number)Jn().alert("该签名元素不允许删除!","系统提示");else{if(l instanceof gn.N){var U=l.nextLeaf();if((""!==l.imgSrc||""!==l.fingerPrintSrc)&&l.isTemplate&&!(C instanceof gn.N)&&!(U instanceof gn.N)){var W=new gn.N(this._hoEditorFactoryID,l.rootNodes,l.parentNode,Fe.Jq.ntSign,0,0,""===l.name?"签名":l.name,l.signType,l.signFormat,"","",l.signTimeFormat,"",0,0,{},!0,l.styleIndex,l.connectMode,l.isFront,l.allowEditSignTime,"",void 0,l.attribute);return u.undoService.begin(),u.undoService.add(new Hi.w(this._hoEditorFactoryID,l,N)),u.undoService.add(new qi.R(this._hoEditorFactoryID,k,W)),void u.undoService.commit()}if(C instanceof gn.N){if(u.drawTree.paintStatus!==Ee.Dh.psDesign&&l.isTemplate&&0===l.number)return void Jn().alert("该签名元素不允许删除!","系统提示");var q="";q=2===l.number||1===l.number&&l.isTemplate?u.docTree.getNodeLastPath(C.previousLeaf()):u.docTree.getNodeLastPath(C);u.docTree.getNodeLastPath(l);var $=new gn.N(this._hoEditorFactoryID,C.rootNodes,C.parentNode,Fe.Jq.ntSign,1,C.type,""===C.name?"签名":C.name,C.signType,C.signFormat,C.signor,C.signTime,C.signTimeFormat,C.imgSrc,C.imgWidth,C.imgHeight,C.customProperty,C.isTemplate?C.isTemplate:l.isTemplate,l.styleIndex,C.connectMode,C.isFront,C.allowEditSignTime);return u.undoService.begin(),u.undoService.add(new Wi.F(this._hoEditorFactoryID,q,N)),(2===l.number||1===l.number&&l.isTemplate)&&u.undoService.add(new qi.R(this._hoEditorFactoryID,q,$)),void u.undoService.commit()}}u.undoService.begin(),u.undoService.add(new Hi.w(this._hoEditorFactoryID,l)),u.undoService.commit(),u.drawTree.moveCaretToPath(k);var Y=l.parentNode;Y&&Y instanceof Bt.re&&2===Y.childNodes.length&&u.docController.resetEmptyInputFieldNode(u,Y)}}}},{key:"insertSeparateChar",value:function insertSeparateChar(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);if(_.editController.canIsEdit(_)){var v=_.docTree.curDomRange,C=v.normalize().startPath,k=v.normalize().endPath,N=new ji.Q(be.gk.daInsert,C,k,ji.y.insertSeparateChar);_.docTree.changing(N)&&_.docController.insertSeparateChar(v,l,u)}}},{key:"insertGestation",value:function insertGestation(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);if(v.editController.canIsEdit(v)){var C=v.docTree.curDomRange,k=C.normalize().startPath,N=C.normalize().endPath,B=new ji.Q(be.gk.daInsert,k,N,ji.y.insertGestation);v.docTree.changing(B)&&v.docController.insertGestation(C,l,u,_)}}},{key:"textToLabel",value:function textToLabel(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();u.isEmpty||u.npStart&&u.npEnd&&u.npStart.node&&u.npEnd.node&&l.docController.textToLabel(u)}},{key:"labelToText",value:function labelToText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.labelToText(l)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=[],_="",v=l.subDocManger.headerDocTree,C=l.subDocManger.footerDocTree,k=l.docTree.mainNodes,N=function loopFieldNodes(l){for(var v=0;v<l.length;v++){var C=l[v],k=C.dataVerifyFormat;k.mustInputValue&&""===C.text?(_="必须输入,不能为空",u.push([C,_])):k.dataFormat===Bt.ZX.text?(k.minLength>0&&C.text.length<k.minLength&&(_="内容不能少于"+k.minLength.toString()+"个字符",u.push([C,_])),k.maxLength>0&&C.text.length>k.maxLength&&(_="内容不能多于"+k.maxLength.toString()+"个字符",u.push([C,_]))):(0,Ui.hj)(C.text)?k.onlyInputInt?Number(C.text)%1!==0?(_="数值必须为整数",u.push([C,_])):(0!==k.maxValue&&Number(C.text)>k.maxValue&&(_="数值不能大于"+k.maxValue.toString(),u.push([C,_])),0!==k.minValue&&Number(C.text)<k.minValue&&(_="数值不能小于"+k.minValue.toString(),u.push([C,_]))):0!==k.maxSmallBits&&C.text.split(".")[1].length>k.maxSmallBits&&(_="小数位数不能多于"+k.maxSmallBits.toString()+"位",u.push([C,_])):(_="内容必须为数值",u.push([C,_]))}},B=0;B<v.length;B++){var U=v[B].subDocNodes,W=U[0].getNodePath(),q=l.docTree.getNodeLastPath(U[U.length-1]),$=Ie.a.getRangeTextInputField(this._hoEditorFactoryID,W,q,!1);N($)}var Y=k[0].getNodePath(),ee=l.docTree.getNodeLastPath(k[k.length-1]),re=Ie.a.getRangeTextInputField(this._hoEditorFactoryID,Y,ee,!1);N(re);for(var ne=0;ne<C.length;ne++){var ie=C[ne].subDocNodes,oe=ie[0].getNodePath(),ae=l.docTree.getNodeLastPath(ie[ie.length-1]),le=Ie.a.getRangeTextInputField(this._hoEditorFactoryID,oe,ae,!1);N(le)}return u}},{key:"insertEmptySignNode",value:function insertEmptySignNode(l,u,_,v,C,k,N,B){var U=rt.b.instance().getFactory(this._hoEditorFactoryID),W=U.docTree.curDomRange.normalize(),q=W.normalize().startPath,$=W.normalize().endPath,Y=new ji.Q(be.gk.daInsert,q,$,ji.y.insertSign);U.docTree.changing(Y)&&U.docController.insertEmptySignNode(W,l,u,_,v,C,k,N,B)}},{key:"insertSignNode",value:function insertSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID),$=q.docTree.curDomRange.normalize(),Y=$.normalize().startPath,ee=$.normalize().endPath,re=new ji.Q(be.gk.daInsert,Y,ee,ji.y.insertSign);q.docTree.changing(re)&&q.docController.insertSignNode($,l,u,_,v,C,k,N,B,U,W)}},{key:"updateSignNode",value:function updateSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);q.docController.updateSignNode(l,u,_,v,C,k,N,B,U,W)}},{key:"updateSignTime",value:function updateSignTime(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.updateSignTime(l,u)}},{key:"updateSignType",value:function updateSignType(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);k.docController.updateSignType(l,u,_,v,C)}},{key:"forceDelete",value:function forceDelete(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=u.startPath,v=u.endPath;_!=v?(l.undoService.begin(),l.undoService.add(new Wi.F(this._hoEditorFactoryID,_,v,!0)),l.undoService.commit()):Jn().alert("请选中需要删除的内容进行删除")}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(l,u){if(l&&l instanceof He.Yh&&l.isEditText&&0!==u.trim().length){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.getNodeLastPath(l.previousLeaf()),C=_.docTree.getNodeLastPath(l),k=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,v,C);k.oldEndPath=C,k.afterChangePath=C,k.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(v,C,!0),l.appendText=u,_.docTree.change(k),_.drawTree.moveCaretToPath(C),_.docTree.curDomRange.setSamePath(C)}}},{key:"delCurPage",value:function delCurPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages[l],v=u.drawPageTree.drawMainDocs[l];_&&v||Jn().alert("删除页的索引传入有误:"+l.toString());var C,k="",N="";if(0!==l){var B=u.drawTree.drawPages[l-1],U=u.drawPageTree.drawMainDocs[l-1],W=U.localToGlobal(u.pageProperty.widthPixes,u.pageProperty.heightPixes);C=u.drawTree.getStagePosition(B,U,W.x,W.y)}else C=u.drawTree.getStagePosition(_,v,0,0);if(C){var q=C.dline;k=q instanceof Rn.a?q.parent instanceof Fn.k?q.parent._drawPageTable.table.getNodePath():C.path:q.table.paragraphNode.getNodePath()}var $=v.localToGlobal(u.pageProperty.widthPixes,u.pageProperty.heightPixes),Y=u.drawTree.getStagePosition(_,v,$.x,$.y);if(Y){var ee=Y.dline;N=ee instanceof Rn.a?Y.path:ee.table.getNodePath()}u.undoService.begin(),u.undoService.add(new Wi.F(this._hoEditorFactoryID,k,N,!0)),u.undoService.commit()}},{key:"getMainDocText",value:function getMainDocText(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.headerDocTree[0].subDocNodes,_=l.docTree.mainNodes,v=l.subDocManger.footerDocTree[0].subDocNodes,C="",k=function loopChildNodes(l){l.forEach((function(l){l instanceof Gt.R?C+=l.text:!(l instanceof wi.w)||l instanceof bi.h||l instanceof yi.y?l instanceof gi.V?loopChildNodes(l.childNodes):l instanceof mn.C&&(C+="\n"):C+=l.text}))};return k(u),k(_),k(v),C=C.replace(/&/g,"&amp;"),C=C.replace(/</g,"&lt;"),C=C.replace(/>/g,"&gt;"),C=C.replace(/\'/g,"&#39;"),C=C.replace(/\"/g,"&quot;"),C}},{key:"cancelDel",value:function cancelDel(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=u.startPath,v=u.endPath,C=Ie.a.getSelectDomNodes(this._hoEditorFactoryID,_,v,!0),k=(0,B.Z)(C,3),N=k[0],U=(k[1],k[2],N.length-1);U>=0;U--){var W=N[U];if(W instanceof Gt.R){var q=l.docTree.styles[W.styleIndex];q=q||l.docTree.styles[0],void 0!==q.deleterIndex&&-1!==q.deleterIndex&&(q.deleterIndex=-1,q.strikeout=!1,W.styleIndex=l.docTree.styleCompare(q))}}var $=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(_,v,!0),Y=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,_,v);Y.oldEndPath=v,Y.oldDrawLines=$,l.docTree.change(Y)}},{key:"isModifyDoc",value:function isModifyDoc(){var l=!0,u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.lastSaveTime,v=u.undoService.stack;if(v.length>0){var C=v[v.length-1],k=C.undoUnits,N=k[k.length-1];l=N.opTime!==_}else l=!1;return l}},{key:"getAllElements",value:function getAllElements(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=[],v=function getAllNodes(l){for(var u=0;u<l.length;u++){var v=l[u];(v instanceof Bt.re||v instanceof Ft.yF||v instanceof Rt.Z)&&_.push({id:v.id,name:v.name,text:v.text,dataVerify:void 0,innerIdentifier:v.innerIdentifier,identifierFormat:v.identifierFormat,customProperty:v.customProperty}),v instanceof gi.V&&getAllNodes(v.childNodes)}};if(void 0==l||"header"==l)for(var C=u.subDocManger.headerDocTree,k=0;k<C.length;k++)C[k]&&v(C[k].subDocNodes);if(void 0==l||"main"==l){var N=u.docTree.mainNodes;v(N)}if(void 0==l||"footer"==l)for(var B=u.subDocManger.footerDocTree,U=0;U<B.length;U++)B[U]&&v(B[U].subDocNodes);return _}},{key:"getSysElements",value:function getSysElements(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=[],_=function getAllNodes(l,u){for(var _=function _loop2(_){var v=l[_];if((v instanceof Ft.yF&&v.isReadOnly||v instanceof Rt.Z&&v.isReadOnly||v instanceof Bt.re&&0==v.inputFieldType&&0===v.childNodes.filter((function(l){return l instanceof Bt.re})).length)&&0==u.filter((function(l){return l.name==v.name})).length){var C={id:"",name:"",text:"",json:"",innerIdentifier:"",controlStyle:"",customProperty:{}};C.id=v.id,C.name=v.name,C.text=v.text,C.innerIdentifier=v.innerIdentifier,C.customProperty=v.customProperty,v instanceof Rt.Z&&(C.controlStyle=v.controlStyle),u.push(C)}v instanceof gi.V&&getAllNodes(v.childNodes,u)},v=0;v<l.length;v++)_(v)},v=l.subDocManger.headerDocTree,C=0;C<v.length;C++)v[C]&&_(v[C].subDocNodes,u);var k=l.docTree.mainNodes;_(k,u);for(var N=l.subDocManger.footerDocTree,B=0;B<N.length;B++)N[B]&&_(N[B].subDocNodes,u);return u}},{key:"getCaSignSatatu",value:function getCaSignSatatu(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=!1,_=function getAllNodes(l){for(var _=0;_<l.length;_++){var v=l[_];v instanceof gn.N&&v.customProperty&&"2"==v.customProperty.isCaSign&&(u=!0)}},v=l.docTree.mainNodes;return _(v),u}},{key:"updateElementById",value:function updateElementById(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=this.getNodeByID("all",l);if(!v)throw new Error("根据元素id:"+l+"未找到对应的元素");if(!(v instanceof Bt.re||v instanceof Rt.Z||v instanceof Ft.yF))throw new Error("根据元素id:"+l+"定位到的元素非可回填元素");var C=_.docTree.getNodeLastPath(v.previousLeaf()),k=v;v instanceof Bt.re&&(k=Bt.re.json2Node(this._hoEditorFactoryID,u,v.rootNodes,v.parentNode)),v instanceof Rt.Z&&(k=Rt.Z.json2Node(this._hoEditorFactoryID,u,v.rootNodes,v.parentNode)),v instanceof Ft.yF&&(k=Ft.yF.json2Node(this._hoEditorFactoryID,u,v.rootNodes,v.parentNode)),v.isAllowDelete=!0,_.undoService.begin(),_.undoService.add(new Hi.w(this._hoEditorFactoryID,v,C,"update")),_.undoService.add(new qi.R(this._hoEditorFactoryID,C,k)),_.undoService.commit();var N=_.docTree.getNodeLastPath(k);_.drawTree.moveCaretToPath(N)}},{key:"updateElementText",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee6(l,u,_){var v,C,k;return(0,fe.Z)().wrap((function _callee6$(N){while(1)switch(N.prev=N.next){case 0:if(""!==u&&"请输入"!==u&&"请选择"!==u){N.next=2;break}return N.abrupt("return");case 2:if(v=this.getNodesByName(l,!0,u),!(v.length>0)){N.next=29;break}C=v.length-1;case 5:if(!(C>=0)){N.next=27;break}if(k=v[C],!k){N.next=23;break}if(!(k instanceof Rt.Z||k instanceof Ft.yF||k instanceof Bt.re)){N.next=20;break}if(!(k instanceof Bt.re)){N.next=12;break}return N.next=12,k.setFieldText(_);case 12:if(!(k instanceof Rt.Z)){N.next=15;break}return N.next=15,k.setDateTimeText(_);case 15:if(!(k instanceof Ft.yF)){N.next=18;break}return N.next=18,k.setDownListText(_);case 18:N.next=21;break;case 20:throw new Error("根据元素name:"+u+"定位到的元素非可回填元素");case 21:N.next=24;break;case 23:throw new Error("根据元素name:"+u+"未找到对应的元素");case 24:C--,N.next=5;break;case 27:N.next=30;break;case 29:throw new Error("根据元素name:"+u+"未找到对应的元素");case 30:case"end":return N.stop()}}),_callee6,this)})));function updateElementText(u,_,v){return l.apply(this,arguments)}return updateElementText}()},{key:"updateFirstPageHeader",value:function updateFirstPageHeader(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawPageTree.drawHeaders[0];l.subDocManger.updateAllSameSubDoc(u.index,lt.pi.hftHead,!1,!1)}},{key:"rebuildArea",value:function rebuildArea(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.drawTree.rebuildArea(l,u,_)}},{key:"getUserInfoes",value:function getUserInfoes(){return rt.b.instance().getFactory(this._hoEditorFactoryID).userInfo}},{key:"hoLocalStorage",value:function hoLocalStorage(){return rt.b.instance().getFactory(this._hoEditorFactoryID).hoLocalStorage}},{key:"redrawPage",value:function redrawPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);l>=0&&l<u.drawTree.drawPages.length&&u.drawPageTree.updateDrawPage(l)}},{key:"createPNG",value:function createPNG(l,u){var _=this,v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function createElementNodes(){var C=v.drawTree.drawPages,k=document.createElement("div");k.id="hoImageFileBox";var N=l||.8,B=u||"image/jpeg";C.forEach((function(l,u){var _;0==u&&(l.paintBackGround(),l.needUpdateStage=!0),l.drawDomLevel&&!l.drawDomLevel.stage&&(l.drawDomLevel.bindStage(),l.needUpdateStage=!0),l.needUpdateStage&&l.drawDomLevel&&l.drawDomLevel.stage&&(l.drawDomLevel.stage.update(),l.needUpdateStage=!1);var v=document.createElement("img"),C=null===(_=l.drawDomLevel)||void 0===_?void 0:_.domCanvas;v.src=C.toDataURL(B,N),k.appendChild(v)})),k.id="hoImageFileBox";var U=document.createElement("button");U.id="hoDownLoadImageBtn",U.style.position="fixed",U.style.left="20px",U.style.top="200px",U.style.padding="10px 20px",U.style.background="#f2f4f7",U.style.border="none",U.style.outline="none",document.body.appendChild(U),document.body.appendChild(k),document.querySelector("#hoDownLoadImageBtn").onclick=function(){_.downLoadPNGHTML()}};v.loadImageCount<=0?C():v.loadImageCallback=C}},{key:"createImgList",value:function createImgList(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.drawTree.drawPages,v=[];return _.forEach((function(u){var _;u.drawDomLevel&&!u.drawDomLevel.stage&&(u.drawDomLevel.bindStage(),u.needUpdateStage=!0),u.needUpdateStage&&u.drawDomLevel&&u.drawDomLevel.stage&&(u.drawDomLevel.stage.update(),u.needUpdateStage=!1);var C=null===(_=u.drawDomLevel)||void 0===_?void 0:_.domCanvas,k=l||.8;v.push(C.toDataURL("image/jpeg",k))})),v}},{key:"createPDF",value:function createPDF(){var l=this,u=document.createElement("button");u.id="hoDownLoadPDFBtn",u.style.position="fixed",u.style.left="20px",u.style.top="300px",u.style.padding="10px 20px",u.style.background="transparent",u.style.border="none",u.style.outline="none",document.body.appendChild(u),document.querySelector("#hoDownLoadPDFBtn").onclick=function(){l.saveAsPDF()}}},{key:"downLoadPNGHTML",value:function downLoadPNGHTML(){var l=document.querySelector("#hoImageFileBox"),u=this.getDocTitle()?this.getDocTitle():"电子病历文档",_='\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===l||void 0===l?void 0:l.innerHTML,"</body>\n </html>\n "),v=window.URL.createObjectURL(new Blob([_],{type:"text/html"})),C=document.createElement("a");C.style.display="none",C.href=v,C.setAttribute("download",u+".html"),document.body.appendChild(C),C.click(),setTimeout((function(){C.remove(),document.body.removeChild(l),document.body.removeChild(document.querySelector("#hoDownLoadImageBtn"))}),300)}},{key:"moveCaretToElement",value:function moveCaretToElement(l,u){var _=this.getNodeByID(l,u);if(_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=v.docTree.curDomRange,k=v.docTree.getNodeLastPath(_.previousLeaf()),N=v.docTree.getNodeLastPath(_),B=N;_ instanceof Bt.re&&(k=v.docTree.getNodeLastPath(_.childNodes[0]),N=v.docTree.getNodeLastPath(_.childNodes[_.childNodes.length-1].previousLeaf()),B=_.childNodes[1]instanceof $t.j?k:N),v.drawTree.moveCaretToPath(B);var U=new Ie.a(this.hoEditorFactoryID,k,N);v.docTree.curDomRange=U;var W=new ke.r(C,U);v.docTree.selectChange(W)}}},{key:"getPosition",value:function getPosition(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.drawTree.caret,_=.75*(l.pageProperty.heightPixes-u.stageY);return[u.pageIndex+1,.75*u.stageX,_]}},{key:"getBase64",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee7(l){var u,_,v,C,k,N,B,U,W,q,$,Y;return(0,fe.Z)().wrap((function _callee7$(ee){while(1)switch(ee.prev=ee.next){case 0:if("html"!==l){ee.next=14;break}if(_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.curDomRange.normalize(),C=v.normalize().endPath,k=null===(u=_.vueController.findNodebyPath(C))||void 0===u?void 0:u.node,!(k instanceof gn.N)||k.isTemplate||1!=k.attribute){ee.next=8;break}return ee.next=8,this.deleteNode(k);case 8:return ee.next=10,_.printController.createHtml();case 10:return N=ee.sent,ee.abrupt("return",N);case 14:if(U=rt.b.instance().getFactory(this._hoEditorFactoryID),W=U.docTree.curDomRange.normalize(),q=W.normalize().endPath,$=null===(B=U.vueController.findNodebyPath(q))||void 0===B?void 0:B.node,!($ instanceof gn.N)||$.isTemplate||1!=$.attribute){ee.next=21;break}return ee.next=21,this.deleteNode($);case 21:return ee.next=23,U.printController.createBase64();case 23:return Y=ee.sent,ee.abrupt("return",Y);case 25:case"end":return ee.stop()}}),_callee7,this)})));function getBase64(u){return l.apply(this,arguments)}return getBase64}()},{key:"insertWriteSign",value:function insertWriteSign(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID),k=C.docTree.curDomRange.normalize(),N=k.normalize().startPath,B=k.normalize().endPath,U=k.npEnd.node;if(U instanceof gn.N)U.isTemplate?""!==U.imgSrc||""!==U.fingerPrintSrc?(this.deleteNode(U),setTimeout((function(){var k=C.docTree.curDomRange.normalize(),N=k.npEnd.node;N instanceof gn.N&&Promise.all([C.docController.updateSignNode(N,3,"患者签名","","",l,0,0,{},u,_)]).then((function(){setTimeout((function(){v&&v()}),0)}))}),0)):Promise.all([C.docController.updateSignNode(U,3,"患者签名","","",l,0,0,{},u,_)]).then((function(){setTimeout((function(){v&&v()}),0)})):(this.deleteNode(U),setTimeout((function(){var k=C.docTree.curDomRange.normalize(),N=k.normalize().startPath,B=k.normalize().endPath,W=new ji.Q(be.gk.daInsert,N,B,ji.y.insertSign);C.docTree.changing(W)&&Promise.all([C.docController.insertSignNode(k,1,"患者签名",U.signor,U.signTime,U.signTimeFormat,l,U.imgWidth,U.imgHeight,U.customProperty,u,_)]).then((function(){setTimeout((function(){v&&v()}),0)}))}),0));else{var W=new ji.Q(be.gk.daInsert,N,B,ji.y.insertSign);C.docTree.changing(W)&&Promise.all([C.docController.insertSignNode(k,3,"患者签名","","","",l,0,0,{},u,_)]).then((function(){setTimeout((function(){v&&v()}),0)}))}}},{key:"setCanvasScale",value:function setCanvasScale(l){var u=l||1;nt.f.instance().scaleXY=u}},{key:"setBackgroundByName",value:function setBackgroundByName(l){for(var u=this,_=[],v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=function iteratesNodes(v){for(var C=0;C<v.length;C++){var k=v[C];if(k instanceof wi.w||k instanceof Bt.re)for(var N=0,B=l.length-1;N<=B;N++){var U=l[N];if(""!==U.text&&U.name===k.name&&-1!==k.text.indexOf(U.text)){var W=u.search(k,U.text);W.length>0&&(_=_.concat(W))}else if(""===U.text&&U.name===k.name){var q=u.search(k,k.text);q.length>0&&(_=_.concat(q))}}}},k=v.subDocManger.headerDocTree,N=0;N<k.length;N++)C(k[N].subDocNodes);var B=v.docTree.mainNodes;C(B);for(var U=v.subDocManger.footerDocTree,W=0;W<U.length;W++)C(U[W].subDocNodes);_.length>0?v.drawTree.drawMultiCustomRange(_,!0,!0):console.warn("未搜索到符合条件的元素")}},{key:"search",value:function search(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=[],C=[],k=new Map;if(l instanceof Bt.re){var N=[];N.push(l.childNodes[0]);var B=function loopChildNodes(l){for(var u=1;u<l.length-1;u++){var _=l[u];_ instanceof mn.C&&N.push(_),_ instanceof Bt.re&&loopChildNodes(_.childNodes)}};B(l.childNodes),N.forEach((function(u,v){var N=u.nextLeaf(),B="",U=0,W=1;do{if(N){if(N instanceof Gt.R){-1===U&&B.length>0&&(C.push((v+1).toString()+"|"+W.toString()+"|"+B),W++,B="",U=0);var q=_.docTree.getNodeFirstPath(N);k.set((v+1).toString()+"|"+W.toString()+"|"+B.length,q),B+=N.text}else if(N instanceof wi.w){B.length>0&&(C.push((v+1).toString()+"|"+W.toString()+"|"+B),W++,B=""),C.push((v+1).toString()+"|"+W.toString()+"|"+N.text);var $=N.getNodePath();k.set((v+1).toString()+"|"+W.toString()+"|0",$),W++}else{if(N instanceof mn.C)break;U=-1}N=N.nextLeaf()}}while(N!==l.EndMarkNode);B.length>0&&C.push((v+1).toString()+"|"+W.toString()+"|"+B)}))}else{var U=l.getNodePath();k.set("1|1|0",U),C.push("1|1|"+l.text)}return v=this.getSelectRanges(C,u,k),v}},{key:"getSelectRanges",value:function getSelectRanges(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=[],k=new Map,N=0;l.forEach((function(l,_){var v=l.split("|")[0],C=l.split("|")[1];l=l.split("|")[2];var B=l.indexOf(u);if(-1!==B)do{N++,k.set(N,v+"|"+C+"|"+B.toString()),B=l.indexOf(u,B+1)}while(-1!==B)}));var U=[],W=[];k.forEach((function(l,u){var C,k="",N=l.split("|")[0],q=l.split("|")[1],$=parseInt(l.split("|")[2]),Y=(0,Fi.Z)(_);try{for(Y.s();!(C=Y.n()).done;){var ee=(0,B.Z)(C.value,2),re=ee[0],ne=ee[1],ie=parseInt(re.split("|")[2]);if(re.split("|")[0]===N&&re.split("|")[1]===q&&$>=ie){var oe=v.docTree.findNodePositionByPath(ne);if(oe&&oe.node){if(oe.node instanceof Gt.R&&$<ie+oe.node.text.length){var ae=$-ie-1;if(ae>=0){var le=ne.split("/");le[le.length-1]=ae.toString(),k=le.join("/")}else{var ce=oe.node.previousLeaf();ce&&(k=v.docTree.getNodeLastPath(ce))}U.push(k)}if(oe.node instanceof wi.w){var de=v.docTree.getNodeLastPath(oe.node.previousLeaf());W.push([de,ne])}}}}}catch(he){Y.e(he)}finally{Y.f()}}));for(var q=0;q<U.length;q++){for(var $=U[q],Y=$,ee=$,re=0;re<u.length;re++){var ne=v.docTree.findNodePositionByPath(Y);if(ne&&ne.node&&(ee=v.docTree.getNodeLastPath(ne.node)),Y===ee){var ie,oe;Y=v.docTree.getNodeFirstPath(null===(ie=ne.node)||void 0===ie?void 0:ie.nextLeaf()),ee=v.docTree.getNodeLastPath(null===(oe=ne.node)||void 0===oe?void 0:oe.nextLeaf())}else{var ae=Y.split("/"),le=parseInt(ae[ae.length-1]);ae[ae.length-1]=(le+1).toString(),Y=ae.join("/")}}var ce=new xi.E(this.hoEditorFactoryID),de=Vi.M.getStagePosByPath(this._hoEditorFactoryID,$),he=Vi.M.getStagePosByPath(this._hoEditorFactoryID,Y);ce.spStart=de,ce.spEnd=he,C.push(ce)}for(var _e=0;_e<W.length;_e++){var pe=Vi.M.getStagePosByPath(this._hoEditorFactoryID,W[_e][0]),fe=Vi.M.getStagePosByPath(this._hoEditorFactoryID,W[_e][1]),me=new xi.E(this.hoEditorFactoryID);me.spStart=pe,me.spEnd=fe,C.push(me)}return C}},{key:"findAndLightElementsByNames",value:function findAndLightElementsByNames(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(0!=l.length){for(var _=[],v=[],C=0;C<l.length;C++)if(""!==l[C]){var k=this.getNodesByName("all",!0,l[C]);_=_.concat(k)}for(var N=0;N<_.length;N++){var B=_[N],U=u.docTree.getNodeLastPath(B.previousLeaf()),W=u.docTree.getNodeLastPath(B),q=Vi.M.getStagePosByPath(this._hoEditorFactoryID,U),$=Vi.M.getStagePosByPath(this._hoEditorFactoryID,W),Y=new xi.E(this.hoEditorFactoryID);Y.spStart=q,Y.spEnd=$,v.push(Y)}v.length>0&&u.drawTree.drawMultiCustomRange(v,!0,!0)}else u.drawTree.selectRange.clearAllCustomSelectShape()}},{key:"initAiFunc",value:function initAiFunc(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.aiTextFunc=l}},{key:"getCaretPreviousText",value:function getCaretPreviousText(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);if(l.aiTextFunc){var u=l.docTree.curDomRange.normalize(),_=u.npEnd.node,v="";_ instanceof Gt.R&&(v+=_.text);var C=function getText(){var l=null===_||void 0===_?void 0:_.previousLeaf();l instanceof Gt.R&&(v+=l.text,v.length<20&&getText())},k=function callback(u){var _=l.drawTree.caret.aiInfo;l.drawTree.caret.aiInfo.lastPosition=[_.pageIndex,_.x,_.y],l.drawTree.caret.aiInfo.aiText=u};v.length<20&&C(),v.length>=20?(v=v.slice(v.length-20,v.length),l.aiTextFunc(v,k)):v.length>0&&l.aiTextFunc(v,k)}}},{key:"clearSelectedRangeParas",value:function clearSelectedRangeParas(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();if(!u.isEmpty){for(var _=Ie.a.getSelectDomNodes(this._hoEditorFactoryID,u.startPath,u.endPath,!0),v=_[0],C=!1,k=0;k<v.length;k++)if(v[k]instanceof mn.C){C=!0;break}if(C){for(var N=0;N<v.length;N++){var B=v[N];if(B instanceof mn.C){var U=B.getNodePath();l.undoService.begin(),l.undoService.add(new Hi.w(this._hoEditorFactoryID,B,U)),l.undoService.commit()}}var W=l.docTree.getNodeLastPath(v[v.length-1]);if(_[2]>0){var q=W.split("/");q[q.length-1]=_[2].toString(),W=q.join("/")}var $=u,Y=new Ie.a(this._hoEditorFactoryID,u.startPath,W),ee=new ke.r($,Y);l.docTree.selectChange(ee),l.docTree.curDomRange=Y,l.drawTree.moveCaretToPath(u.startPath)}else Jn().alert("选区内没有换行符,无需清除.")}}},{key:"getCaretPreviousTextNode",value:function getCaretPreviousTextNode(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=u.npEnd.node,v="",C=function getText(l){return l instanceof Gt.R||l instanceof Si.P||l instanceof Ft.yF?l.text:(null===l||void 0===l?void 0:l.parentNode)instanceof Bt.re&&(null===l||void 0===l?void 0:l.parentNode.inputFieldType)===Bt.Zi.dropDownList?null===l||void 0===l?void 0:l.parentNode.text:void 0};return _ instanceof Gt.R&&!(_ instanceof Bt.re)?v=_.text?_.text:C(_.previousLeaf()):(null===_||void 0===_?void 0:_.parentNode)instanceof Bt.re?(v=C(_.parentNode.previousLeaf()),v||(v=C(_.previousLeaf()))):_ instanceof gn.N&&3!==_.type&&(v=C(_.previousLeaf())),v}},{key:"initBlankDoc",value:function initBlankDoc(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.docController.initBlankDoc()}},{key:"destoryEditor",value:function destoryEditor(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.clear(),l=null}},{key:"clearSignNodes",value:function clearSignNodes(){var l=this.getDocXml(!0,!0,!0);return l}},{key:"getDocComment",value:function getDocComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap,_=!1;return u.forEach((function(u){"1"===l?u.customProperty&&"1"===u.customProperty.ishandle&&(_=!0):"0"===l?(!u.customProperty||u.customProperty&&"0"===u.customProperty.ishandle)&&(_=!0):void 0===l&&(_=!0)})),_}},{key:"getDocCommentValue",value:function getDocCommentValue(){return rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap}},{key:"setDocCommentIsHandle",value:function setDocCommentIsHandle(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree,_=u.commentsMap;_.forEach((function(u,v){u.customProperty||(u.customProperty={}),u.customProperty.ishandle=void 0==l?"1":l,_.set(v,u)})),u.commentsMap=_}},{key:"SyncElements",value:function SyncElements(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize(),_=Ie.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID,u.startPath,u.endPath),v=[],C=[],k=[];l.docTree.curDomRange=new Ie.a(this._hoEditorFactoryID,u.startPath,u.startPath);for(var N=0;N<_.length;N++){var B=_[N];if(B instanceof Bt.re&&-1===v.indexOf(B.name)){v.push(B.name);for(var U=this.getNodesByName("all",!0,B.name),W=0;W<U.length;W++){var q=U[W];_.indexOf(q)>=0||q instanceof Bt.re&&q.setFieldText(B.text)}}if(B instanceof Rt.Z&&-1===C.indexOf(B.name)){C.push(B.name);for(var $=this.getNodesByName("all",!0,B.name),Y=0;Y<$.length;Y++){var ee=$[Y];_.indexOf(ee)>=0||ee instanceof Rt.Z&&ee.setDateTimeText(B.text)}}if(B instanceof Ft.yF&&-1===k.indexOf(B.name)){k.push(B.name);for(var re=this.getNodesByName("all",!0,B.name),ne=0;ne<re.length;ne++){var ie=re[ne];_.indexOf(ie)>=0||ie instanceof Ft.yF&&ie.setDownListText(B.text)}}}}},{key:"showElementsEditRecord",value:function showElementsEditRecord(l){var u=[],_=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.setPageProperty(JSON.stringify({commentWidthMm:50}));for(var v=0;v<l.length;v++)for(var C=l[v],k=C.name,N=C.oldValue,B=this.getNodesByName("main",!0,k),U=0;U<B.length;U++){var W=B[U],q=_.gernerateCode.generateID("C"),$=void 0;W instanceof Bt.re&&($=new mi.s(this._hoEditorFactoryID,q,N,W.EndMarkNode),$.lineHeight=$.lineHeight-20,u.push($)),(W instanceof Rt.Z||W instanceof Ft.yF)&&($=new mi.s(this._hoEditorFactoryID,q,N,W),$.lineHeight=$.lineHeight-20,u.push($))}u.forEach((function(l,v){v++;var C=l.eNode.drawNodes[0],k=_.drawPageTree.getMainRootArea(C),N=_.drawTree.getDrawLineByDNode(C),B=N.localToGlobal(C.x,C.y),U=k.globalToLocal(B.x,B.y),W=N.parent instanceof Fn.k?U.x:C.x,q=U.y;k.removeComment(l,!0);var $=l.eNode.getNodePath();(l.eNode instanceof Rt.Z||l.eNode instanceof Ft.yF)&&(W+=l.eNode.drawNodes[0].dWidth),1===v&&k.drawEditRecords(l,W,q,q),v>=2&&k.repaintRecored(u,l,$,W,q)}))}},{key:"clearEditRecords",value:function clearEditRecords(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.setPageProperty(JSON.stringify({commentWidthMm:0}));for(var u=l.drawPageTree.drawMainDocs,_=u.length-1;_>=0;_--){for(var v=u[_].children,C=v.length-1;C>=0;C--){var k=v[C];k.name&&k.name.indexOf("recordC")>=0&&v.splice(C,1)}l.drawPageTree.updateDrawPage(_)}}},{key:"updateImageSrc",value:function updateImageSrc(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.docTree.getNodeLastPath(l.previousLeaf()),C=l.getNodePath(),k=new pi.G(this._hoEditorFactoryID,be.gk.daModifyStyle,v,C);k.oldEndPath=C,k.afterChangePath=C,k.oldDrawLines=new xi.E(this._hoEditorFactoryID).getRangeDrawLines(v,C,!0),l.imageDataBase64String=u,_.docTree.change(k)}},{key:"setParaCustomProperty",value:function setParaCustomProperty(l,u){l.setCustomProperty(u)}},{key:"getAllEmptySignNode",value:function getAllEmptySignNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=!1,v=0,C=!1,k=function getAllNodes(u){for(var k=0;k<u.length;k++){var N=u[k];if(N instanceof gn.N){if(1==l&&1===N.attribute&&v++,1==l&&1===N.attribute&&(""!==N.imgSrc||""!==N.fingerPrintSrc)){_=!0;break}if(1!=l&&1!=N.attribute&&""===N.imgSrc){C=!0;break}}N instanceof gi.V&&1===l&&_&&getAllNodes(N.childNodes),N instanceof gi.V&&1!=l&&!C&&getAllNodes(N.childNodes)}},N=u.docTree.mainNodes;return k(N),1==l?0==v||_:C}},{key:"getAllSignNode",value:function getAllSignNode(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=!1,_=function getAllNodes(l){for(var _=0;_<l.length;_++){var v=l[_];if(v instanceof gn.N&&3!==v.type&&v.imgSrc){u=!0;break}v instanceof gi.V&&!u&&getAllNodes(v.childNodes)}},v=l.docTree.mainNodes;return _(v),u}},{key:"setHoEditorFactoryParams",value:function setHoEditorFactoryParams(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);Object.keys(l).forEach((function(_){u[_]=l[_]}))}}]),VueController}(),$i=function(){function BaseController(l){(0,q.Z)(this,BaseController),this._hoEditorFactoryID=l}return(0,$.Z)(BaseController,[{key:"unDoOperate",value:function unDoOperate(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.unDoOperate()}},{key:"reDoOperate",value:function reDoOperate(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.reDoOperate()}},{key:"setUserLoginInfo",value:function setUserLoginInfo(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.setUserLoginInfo(l,u,_,v)}},{key:"setEditorStatus",value:function setEditorStatus(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.setEditorStatus(l,u)}},{key:"generateID",value:function generateID(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.vueController.generateID(l)}},{key:"rebuildAll",value:function rebuildAll(l){rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.rebuildAllDrawLine(l)}},{key:"getTextStyles",value:function getTextStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.docTree.styles}},{key:"getParaStyles",value:function getParaStyles(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.docTree.paragraphs}},{key:"getModiyRedrawObject",value:function getModiyRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daModifyStyle)}},{key:"getDeleteRedrawObject",value:function getDeleteRedrawObject(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.docController.getRedrawObject(l,u,be.gk.daDelete)}},{key:"modifyRedraw",value:function modifyRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.modifyRedraw(l,u)}},{key:"deleteRedraw",value:function deleteRedraw(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.deleteRedraw(l)}},{key:"insertRedraw",value:function insertRedraw(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.docController.insertRedraw(l,u)}},{key:"fullRedraw",value:function fullRedraw(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.drawTree.rebuildAllDrawLine(!1)}},{key:"copy",value:function copy(){}}]),BaseController}(),Gi=function(){function DomController(l){(0,q.Z)(this,DomController),this._hoEditorFactoryID=l}return(0,$.Z)(DomController,[{key:"newFile",value:function newFile(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.newFile(l)}},{key:"openLocalFiles",value:function openLocalFiles(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.openLocalFiles(l,u)}},{key:"saveAsFile",value:function saveAsFile(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.vueController.saveAsFile(l);return _}},{key:"setPageProperty",value:function setPageProperty(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.setPageProperty(l)}},{key:"getPageProperty",value:function getPageProperty(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.vueController.pageProperty()}},{key:"openLocalFilesTest",value:function openLocalFilesTest(l,u){rt.b.instance().getFactory(this._hoEditorFactoryID).docController.initBlankDoc(),rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.openFile(l,u,"test")}},{key:"uploadDataSet",value:function uploadDataSet(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=JSON.parse(JSON.stringify(l));rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.loadDataSet(u)}},{key:"getDocXml",value:function getDocXml(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.vueController.saveAsFile("xml");return u}},{key:"getDocJson",value:function getDocJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID).testDataSet.getTestJsonData(),u=rt.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.getRowsJsonData(l);return u}},{key:"iteratesDocTree",value:function iteratesDocTree(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.iteratesDocTree(l)}},{key:"insertText",value:function insertText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.keyBoardInput(l)}},{key:"deleteRange",value:function deleteRange(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.deleteRange(l,!1)}},{key:"insertXml",value:function insertXml(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertXml(l,"main")}},{key:"saveHeaderAsJson",value:function saveHeaderAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.vueController.saveHeaderAsJson();return u[0]}},{key:"insertHeaderJson",value:function insertHeaderJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertHeaderJson(l)}},{key:"saveFooterAsJson",value:function saveFooterAsJson(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.vueController.saveFooterAsJson();return u[0]}},{key:"insertFooterJson",value:function insertFooterJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertFooterJson(l)}},{key:"saveSelectedAsJson",value:function saveSelectedAsJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.vueController.saveSelectedAsJson(l);return _}},{key:"insertSelectedJson",value:function insertSelectedJson(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertSelectedJson(l)}},{key:"openXml",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(l,u){var _;return(0,fe.Z)().wrap((function _callee$(v){while(1)switch(v.prev=v.next){case 0:if(void 0!==u&&!0!==u){v.next=4;break}return _=rt.b.instance().getFactory(this._hoEditorFactoryID),v.next=4,_.vueController.openXml(l,void 0,void 0,u);case 4:case"end":return v.stop()}}),_callee,this)})));function openXml(u,_){return l.apply(this,arguments)}return openXml}()},{key:"mergeDocs",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee2(l,u){var _,v;return(0,fe.Z)().wrap((function _callee2$(C){while(1)switch(C.prev=C.next){case 0:return _=rt.b.instance().getFactory(this._hoEditorFactoryID),C.next=3,_.vueController.mergeDocs(l,u);case 3:return v=C.sent,C.abrupt("return",v);case 5:case"end":return C.stop()}}),_callee2,this)})));function mergeDocs(u,_){return l.apply(this,arguments)}return mergeDocs}()},{key:"loadFileList",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee3(l){var u,_;return(0,fe.Z)().wrap((function _callee3$(v){while(1)switch(v.prev=v.next){case 0:u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=0;case 2:if(!(_<l.length)){v.next=13;break}if(0!=_){v.next=8;break}return v.next=6,u.vueController.openXml(l[_].xml);case 6:v.next=10;break;case 8:return v.next=10,this.mergeDocs(l[_].xml,l[_].isMerge);case 10:_++,v.next=2;break;case 13:case"end":return v.stop()}}),_callee3,this)})));function loadFileList(u){return l.apply(this,arguments)}return loadFileList}()},{key:"getLogs",value:function getLogs(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.undoService.getModifyHistory()}},{key:"registOnNodeInsertByID",value:function registOnNodeInsertByID(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docController.onInsertNodeByID=l}},{key:"delCurPage",value:function delCurPage(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.delCurPage(l)}},{key:"isModifyDoc",value:function isModifyDoc(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.vueController.isModifyDoc()}}]),DomController}(),Zi=__webpack_require__(16473),Ji=__webpack_require__.n(Zi),Xi=function(){function EditController(l){(0,q.Z)(this,EditController),this._hoEditorFactoryID=l}return(0,$.Z)(EditController,[{key:"fontFormat",value:function fontFormat(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontFormat(l)}},{key:"fontSize",value:function fontSize(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontSize(l)}},{key:"fontSizeEnlarge",value:function fontSizeEnlarge(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.fontSizeEnlarge()}},{key:"fontSizeDecrease",value:function fontSizeDecrease(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.fontSizeDecrease()}},{key:"fontSuperScript",value:function fontSuperScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontSuperScript(l)}},{key:"fontSubScript",value:function fontSubScript(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontSubScript(l)}},{key:"fontBold",value:function fontBold(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontBold(l)}},{key:"fontItalic",value:function fontItalic(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontItalic(l)}},{key:"fontUnderline",value:function fontUnderline(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontUnderline(l)}},{key:"fontStrikeout",value:function fontStrikeout(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontStrikeout(l)}},{key:"fontColor",value:function fontColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontColor(l)}},{key:"fontBackColor",value:function fontBackColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.fontBackColor(l)}},{key:"alignedLeft",value:function alignedLeft(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedLeft()}},{key:"alignedCenter",value:function alignedCenter(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedCenter()}},{key:"alignedRight",value:function alignedRight(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedRight()}},{key:"alignedBothEnds",value:function alignedBothEnds(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.alignedBothEnds()}},{key:"addIndent",value:function addIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.addIndent()}},{key:"decreaseIndent",value:function decreaseIndent(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.decreaseIndent()}},{key:"setLineHeight",value:function setLineHeight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.setLineHeight(l)}},{key:"find",value:function find(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID),C=v.vueController.find(l,u,_);return C}},{key:"replace",value:function replace(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);N.vueController.replace(l,u,_,v,C,k)}},{key:"insertHtmlText",value:function insertHtmlText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertHtmlText(l)}},{key:"clearUndos",value:function clearUndos(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.undoService.clear()}},{key:"editKeyCopy",value:function editKeyCopy(l){if(l&&l.clipboardData){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.docTree.curDomRange.isEmpty||u.structureNode.Copy(u.docTree.curDomRange,l.clipboardData,void 0,"copy"),l.preventDefault()}}},{key:"editKeyPaste",value:function editKeyPaste(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);if(u.drawTree.paintStatus!==Ee.Dh.psReadOnly&&u.drawTree.paintStatus!==Ee.Dh.psPreview&&u.drawTree.paintStatus!==Ee.Dh.psPrint){var _=u.docTree.curDomRange.startPath,v=u.docTree.getParentNode(_);if(!(v instanceof Bt.re)||v.canModifyContent){var C,k="",N="",B="";if(l instanceof DataTransfer&&(k=l.getData("application/json"),N=l.getData("text/html"),B=l.getData("text/plain")),C=k&&u.drawTree.paintStatus===Ee.Dh.psDesign?u.structureNode.Parse(Ci.ctJSON,k):N?u.structureNode.Parse(Ci.ctHTML,N):u.structureNode.Parse(Ci.ctText,B),!u.pasteBase)for(var U=0;U<C.length;U++){var W=C[U];if(W instanceof mn.C||W instanceof Gt.R||W instanceof $t.j||W instanceof wi.w){var q=u.docTree.styles[W.styleIndex];if(0!=q.combineStyle.script){var $=q.clone();$.script=q.combineStyle.script;var Y=u.docTree.styleCompare($);W.styleIndex=Y}else W.styleIndex=u.docTree.curStyleIndex}W instanceof mn.C&&(W.paraNo=u.docTree.curParaNo)}u.docController.parseNodeData(C)}}}},{key:"canIsEdit",value:function canIsEdit(l){var u=!0;if(l.isUseForm){var _,v,C=l.docTree.curDomRange.normalize(),k=C.npStart.node,N=C.npEnd.node;!N||0!=N.nodeType||(null===N||void 0===N?void 0:N.parentNode)instanceof Bt.re||(u=!1),null!=(null===N||void 0===N?void 0:N.parentNode)&&null!=(null===k||void 0===k?void 0:k.parentNode)||(u=!1),N instanceof $t.j&&2==N.MarkNodeType&&(null==(null===(_=N.parentNode)||void 0===_?void 0:_.parentNode)||(null===(v=N.parentNode)||void 0===v?void 0:v.parentNode)instanceof et.D)&&(u=!1)}return u||(Ji().closeAll(),Ji().error("表单状态元素外不可编辑")),u}}]),EditController}(),Yi=function(){function ElementController(l){(0,q.Z)(this,ElementController),this._hoEditorFactoryID=l}return(0,$.Z)(ElementController,[{key:"findNodebyPath",value:function findNodebyPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);return u.vueController.findNodebyPath(l)}},{key:"getNodeByID",value:function getNodeByID(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);return _.vueController.getNodeByID(l,u)}},{key:"getNodesByName",value:function getNodesByName(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);return v.vueController.getNodesByName(l,u,_)}},{key:"getTextInputFieldValue",value:function getTextInputFieldValue(l){var u=l.getFieldText();return u}},{key:"getCellText",value:function getCellText(l){var u=l.getCellText();return u}},{key:"updateTextInputFieldValue",value:function updateTextInputFieldValue(l,u,_,v){var C=Promise.resolve();C=C.then((function(C){return new Promise(function(){var C=(0,me.Z)((0,fe.Z)().mark((function _callee(C){return(0,fe.Z)().wrap((function _callee$(k){while(1)switch(k.prev=k.next){case 0:return k.next=2,l.setFieldText(u,_,v);case 2:C();case 3:case"end":return k.stop()}}),_callee)})));return function(l){return C.apply(this,arguments)}}())}))}},{key:"updateCellText",value:function updateCellText(l,u){l.setCellText(u)}},{key:"updateDateTimeText",value:function updateDateTimeText(l,u){l.setDateTimeText(u)}},{key:"updateDownListText",value:function updateDownListText(l,u){l.setDownListText(u)}},{key:"deleteNode",value:function deleteNode(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.deleteNode(l)}},{key:"verifyTextFieldsDataFormat",value:function verifyTextFieldsDataFormat(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.vueController.verifyTextFieldsDataFormat()}},{key:"getAllElementNodes",value:function getAllElementNodes(){for(var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.subDocManger.headerDocTree,_=l.docTree.mainNodes,v=l.subDocManger.footerDocTree,C=new Array,k=0;k<u.length;k++){var N=u[k].subDocNodes,B=N[0].getNodePath(),U=l.docTree.getNodeLastPath(N[N.length-1]);C=C.concat(Ie.a.getElementNode(this._hoEditorFactoryID,B,U,!0))}var W=_[0].getNodePath(),q=l.docTree.getNodeLastPath(_[_.length-1]);C=C.concat(Ie.a.getElementNode(this._hoEditorFactoryID,W,q,!0));for(var $=0;$<v.length;$++){var Y=v[$].subDocNodes,ee=Y[0].getNodePath(),re=l.docTree.getNodeLastPath(Y[Y.length-1]);C=C.concat(Ie.a.getElementNode(this._hoEditorFactoryID,ee,re,!0))}return C}},{key:"insertSignNode",value:function insertSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);q.vueController.insertSignNode(l,u,_,v,C,k,N,B,U,W)}},{key:"updateSignNode",value:function updateSignNode(l,u,_,v,C,k,N,B,U,W){var q=rt.b.instance().getFactory(this._hoEditorFactoryID);q.vueController.updateSignNode(l,u,_,v,C,k,N,B,U,W)}},{key:"forceDelete",value:function forceDelete(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.forceDelete()}},{key:"editRadioCheckBoxText",value:function editRadioCheckBoxText(l,u){if(l&&l instanceof He.Yh&&l.isEditText&&0!==u.trim().length){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.editRadioCheckBoxText(l,u)}}},{key:"getAllElements",value:function getAllElements(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.getAllElements()}},{key:"updateElementById",value:function updateElementById(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.updateElementById(l,u)}},{key:"moveCaretToElement",value:function moveCaretToElement(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.moveCaretToElement(l,u)}}]),ElementController}(),Qi=function(){function NodeController(l){(0,q.Z)(this,NodeController),this._hoEditorFactoryID=l}return(0,$.Z)(NodeController,[{key:"insertMenstrualHistory",value:function insertMenstrualHistory(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);k.vueController.insertMenstrualHistory("add",l,u,_,v,C)}},{key:"updateMenstrualHistory",value:function updateMenstrualHistory(l,u,_,v,C){var k=rt.b.instance().getFactory(this._hoEditorFactoryID);k.vueController.updateMenstrualHistory(l,u,_,v,C)}},{key:"insertPupilMap",value:function insertPupilMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.insertPupilMap("add",l,u,_,v,C,k,N)}},{key:"updatePupilMap",value:function updatePupilMap(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.updatePupilMap(l,u,_,v,C,k,N)}},{key:"insertLightLocation",value:function insertLightLocation(l,u,_,v,C,k,N,B,U){var W=rt.b.instance().getFactory(this._hoEditorFactoryID);W.vueController.insertLightLocation("add",l,u,_,v,C,k,N,B,U)}},{key:"updateLightLocation",value:function updateLightLocation(l,u,_,v,C,k,N,B,U){var W=rt.b.instance().getFactory(this._hoEditorFactoryID);W.vueController.updateLightLocation(l,u,_,v,C,k,N,B,U)}},{key:"insertFetalHeartMap",value:function insertFetalHeartMap(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);N.vueController.insertFetalHeartMap("add",l,u,_,v,C,k)}},{key:"updateFetalHeartMap",value:function updateFetalHeartMap(l,u,_,v,C,k){var N=rt.b.instance().getFactory(this._hoEditorFactoryID);N.vueController.updateFetalHeartMap(l,u,_,v,C,k)}},{key:"insertPermanentTeethMap",value:function insertPermanentTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.insertPermanentTeethMap("add",l,u,_,v)}},{key:"updatePermanentTeethMap",value:function updatePermanentTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.updatePermanentTeethMap(l,u,_,v)}},{key:"insertPrimaryTeethMap",value:function insertPrimaryTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.insertPrimaryTeethMap("add",l,u,_,v)}},{key:"updatePrimaryTeethMap",value:function updatePrimaryTeethMap(l,u,_,v){var C=rt.b.instance().getFactory(this._hoEditorFactoryID);C.vueController.updatePrimaryTeethMap(l,u,_,v)}},{key:"insertTextInputField",value:function insertTextInputField(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID),_=u.vueController.insertTextInputField("add",l);return _}},{key:"updateTextInputField",value:function updateTextInputField(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.updateTextInputField(l)}},{key:"insertImage",value:function insertImage(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertImage(l,u,_)}},{key:"insertBarcode",value:function insertBarcode(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.insertBarcode("add",l,u,_,v,C,k,N)}},{key:"updateBarcode",value:function updateBarcode(l,u,_,v,C,k,N){var B=rt.b.instance().getFactory(this._hoEditorFactoryID);B.vueController.updateBarcode(l,u,_,v,C,k,N)}},{key:"insertQrcode",value:function insertQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y){var ee=rt.b.instance().getFactory(this._hoEditorFactoryID);ee.vueController.insertQrcode("add",l,u,_,v,C,k,N,B,U,W,q,$,Y)}},{key:"updateQrcode",value:function updateQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y){var ee=rt.b.instance().getFactory(this._hoEditorFactoryID);ee.vueController.updateQrcode(l,u,_,v,C,k,N,B,U,W,q,$,Y)}},{key:"insertRadioAndCheckBox",value:function insertRadioAndCheckBox(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertRadioAndCheckBox("add",l)}},{key:"updateRadioAndCheckBox",value:function updateRadioAndCheckBox(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.updateRadioAndCheckBox(l)}},{key:"insertDateTime",value:function insertDateTime(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertDateTime("add",l)}},{key:"updateDateTime",value:function updateDateTime(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.updateDateTime(l)}},{key:"insertDownList",value:function insertDownList(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.insertDownList("add",l,u)}},{key:"updateDownList",value:function updateDownList(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.updateDownList(l,u)}},{key:"insertSpecialChars",value:function insertSpecialChars(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertSpecialChars("add",l)}},{key:"insertPageNum",value:function insertPageNum(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertPageNum("add",l,u,_)}},{key:"insertSeparateChar",value:function insertSeparateChar(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.insertSeparateChar(l,u)}},{key:"insertGestation",value:function insertGestation(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertGestation(l,u,_)}}]),NodeController}(),eo=__webpack_require__(4466),ro=function(){function PrintController(l){(0,q.Z)(this,PrintController),this._viewXmlList=[],this._xmlIndex=0,this._isSetFont=!1,this._isFont=!1,this._waitPrint=!1,this._waitSavepdf=!1,this._a4Size={p:[793,1122],l:[1122,793]},this._hoEditorFactoryID=l}return(0,$.Z)(PrintController,[{key:"isSetFont",get:function get(){return this._isSetFont}},{key:"createHtml",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee(){var l,u,_,v,C,k,N=this;return(0,fe.Z)().wrap((function _callee$(B){while(1)switch(B.prev=B.next){case 0:return l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize().endPath,_=l.drawTree.paintStatus,v=l.vueController.getDocXml(!0),C={text:""},k=Promise.resolve(),k=k.then((function(){return new Promise((function(u){l.printStatus.printMode=0,l.drawTree.paintStatus=Ee.Dh.psPreview,l.drawTree.rebuildAllDrawLine(!1,u)}))})),k=k.then((function(){return new Promise((function(l){qe.Kh.createHTML(N._hoEditorFactoryID,l,C)}))})),B.next=10,k.then((function(u){l.drawTree.paintStatus=_,l.vueController.openXml(v)}));case 10:return setTimeout((function(){l.vueController.moveCaretToPath(u)}),0),B.abrupt("return",C.text);case 12:case"end":return B.stop()}}),_callee,this)})));function createHtml(){return l.apply(this,arguments)}return createHtml}()},{key:"createBase64",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee2(){var l,u,_,v,C,k,N,B,U,W,q=this;return(0,fe.Z)().wrap((function _callee2$($){while(1)switch($.prev=$.next){case 0:if(this._isSetFont){$.next=3;break}return this._waitSavepdf=!0,$.abrupt("return");case 3:return l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize().endPath,_=l.drawTree.paintStatus,v=l.vueController.getDocXml(!0),C=l.pageProperty.widthMm>l.pageProperty.heightMm?"l":"p",k=[l.pageProperty.widthPixes,l.pageProperty.heightPixes],N={orientation:C,unit:"px",format:k,hotfixes:["px_scaling"],compress:!0},B=new eo.ZP(N),U=Promise.resolve(),U=U.then((function(){return new Promise((function(u){l.printStatus.printMode=0,l.drawTree.paintStatus=Ee.Dh.psPreview,l.drawTree.rebuildAllDrawLine(!1,u)}))})),U=U.then((function(){return new Promise((function(l){qe.Kh.createPDFBase64(q._hoEditorFactoryID,l,B)}))})),$.next=16,U.then((function(u){return l.drawTree.paintStatus=_,l.vueController.openXml(v),B.deletePage(1),new Promise((function(l){l(B.output("datauristring"))}))}));case 16:if(W=$.sent,!W){$.next=20;break}return setTimeout((function(){l.vueController.moveCaretToPath(u)}),0),$.abrupt("return",W.replace(/^data:application\/pdf;filename=generated.pdf;base64,/,""));case 20:return $.abrupt("return",null);case 21:case"end":return $.stop()}}),_callee2,this)})));function createBase64(){return l.apply(this,arguments)}return createBase64}()},{key:"setjsPDFFonts",value:function setjsPDFFonts(l){eo.ZP.API.events.push(["addFonts",function(){this.addFileToVFS("SimSun-normal.ttf",l),this.addFont("SimSun-normal.ttf","SimSun","normal"),this.setFont("SimSun","normal")}]),this._isSetFont=!0,this._waitPrint&&(Jn().close(),this.printPromisePDF()),this._waitSavepdf&&this.saveAsPDF()}},{key:"saveAsPDF",value:function saveAsPDF(l,u,_){var v=this,C=rt.b.instance().getFactory(this._hoEditorFactoryID);if(this._isSetFont){var k=u||"pdf",N=l||(C.vueController.getDocTitle()?C.vueController.getDocTitle():"电子病历文档"),B=C.drawTree.paintStatus,U=C.vueController.getDocXml(!0),W=Promise.resolve();W=W.then((function(){return new Promise((function(l){C.printStatus.printMode=0,C.drawTree.paintStatus=Ee.Dh.psPreview,C.drawTree.rebuildAllDrawLine(!1,l)}))})),W=W.then((function(){return new Promise((function(l){var u=C.pageProperty.widthMm>C.pageProperty.heightMm?"l":"p",B=[C.pageProperty.widthPixes,C.pageProperty.heightPixes];"1"==C.isFixedPrintToA4&&_&&(B=v._a4Size[u]),"2"==C.isFixedPrintToA4&&"a5"==C.pageProperty.pageSize.toLocaleLowerCase()&&(B=[793,1122],u="p");var U={orientation:u,unit:"px",format:B},W=new eo.ZP(U);qe.Kh.printToPDF(v._hoEditorFactoryID,W,k,N,l,void 0,B)}))})),W.then((function(l){C.drawTree.paintStatus=B,C.vueController.openXml(U)}))}else this._waitSavepdf=!0}},{key:"printPromisePDF",value:function printPromisePDF(l,u,_,v){var C=this,k=rt.b.instance().getFactory(this._hoEditorFactoryID),N=k.drawTree.paintStatus,B="";if(2!==k.printStatus.printRange&&(B=k.vueController.getDocXml(!0,!0)),k.startPageNum=0,k.firstPageStartTop=0,!this._isSetFont)return this._waitPrint=!0,void Jn().alert("<p>打印所需文件正在加载中,请稍候</p><p>加载完成后会自动进行打印</p>","提示",{iconClass:"el-icon-loading",center:!0,showConfirmButton:!1,dangerouslyUseHTMLString:!0});if(k.isHideComments||k.vueController.hideComments(!0),l&&u){var U=u.replace(/\s*/g,"").replace(/[^\d]/g,",").split(","),W=k.drawTree.drawPages.length,q=U.filter((function(l){return l&&Number(l)>W}));if(q.length>0)return"指定页输入超出文档页范围"}var $=new Promise(function(){var _=(0,me.Z)((0,fe.Z)().mark((function _callee3(_,v){return(0,fe.Z)().wrap((function _callee3$(C){while(1)switch(C.prev=C.next){case 0:return C.prev=0,k.printStatus.printAppoint="",k.printStatus.printMode=l||0,3===l&&u&&(k.printStatus.printAppoint=u),k.drawTree.paintStatus=Ee.Dh.psPreview,C.next=7,k.drawTree.rebuildAllDrawLine(!1,_);case 7:C.next=12;break;case 9:C.prev=9,C.t0=C["catch"](0),v(!1);case 12:case"end":return C.stop()}}),_callee3,null,[[0,9]])})));return function(l,u){return _.apply(this,arguments)}}());$.then((function(l){if(l)return new Promise((function(l,u){var v=k.pageProperty.widthMm>k.pageProperty.heightMm?"l":"p",N=[k.pageProperty.widthPixes,k.pageProperty.heightPixes];"1"==k.isFixedPrintToA4&&(N=C._a4Size[v]),"2"==k.isFixedPrintToA4&&"a5"==k.pageProperty.pageSize.toLocaleLowerCase()&&(N=[793,1122],v="p");var B={orientation:v,unit:"px",format:N,hotfixes:["px_scaling"],compress:!0},U=new eo.ZP(B);qe.Kh.printToPDF(C._hoEditorFactoryID,U,_,void 0,l,void 0,N)}))})).then((function(l){"printend"===l&&(v&&v(k.printStatus.printRecord.last()),k.printStatus.printAppoint="",k.printStatus.drawPrintRecord.Position=[0,0],k.startPageNum=0,k.firstPageStartTop=0,2!==k.printStatus.printRange?(k.printStatus.printRange=2,k.drawTree.paintStatus=5,k.vueController.openXml(B)):(k.drawTree.paintStatus=N,k.drawTree.drawPages.forEach((function(l){var u;l.drawSelectLevel&&!l.drawSelectLevel.stage&&l.drawSelectLevel.bindStage(),l.selectContainer.children=[],null===(u=l.selectContainer.stage)||void 0===u||u.update()})),k.vueController.rebuildAll(!0)))}))}},{key:"printToPDF",value:function printToPDF(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return qe.Kh.printToPDF(this._hoEditorFactoryID),l.printStatus.printRecord.last()}},{key:"setDocStartInfo",value:function setDocStartInfo(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.startPageNum=l,_.firstPageStartTop=u,_.drawTree.rebuildAllDrawLine(!1)}},{key:"setEditorStatus",value:function setEditorStatus(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.printStatus.printRange=l}},{key:"mergeXmlToPrintPDFNew",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee5(l,u){var _,v,C,k,N,B,W,q=this;return(0,fe.Z)().wrap((function _callee5$(u){while(1)switch(u.prev=u.next){case 0:return console.time("连续打印总用时"),_=[],l.xmlList.forEach((function(l){_.push([l.isMerge,l.xml])})),v=l.positionY,C=rt.b.instance().getFactory(this._hoEditorFactoryID),void 0!==l.pageNum&&(C.startPageNum=l.pageNum),k=C.drawTree.paintStatus,N=C.vueController.getDocXml(!0),C.isHideComments||C.vueController.hideComments(!0),C.printStatus.printMode=0,C.drawTree.paintStatus=Ee.Dh.psPreview,B=Promise.resolve(),console.time("连续查看病历合并总用时"),B=B.then((function(l){return new Promise((function(l){Promise.all([C.vueController.openDocsForPrint(_)]).then((function(){0===C.loadImageCount?(l(),C.loadImageCallback=null):C.loadImageCallback=l}))}))})),B=B.then((function(){return console.timeEnd("连续查看病历合并总用时"),console.time("生成pdf用时"),new Promise(function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee4(l){var u,_,k,N;return(0,fe.Z)().wrap((function _callee4$(B){while(1)switch(B.prev=B.next){case 0:u=C.pageProperty.widthMm>C.pageProperty.heightMm?"l":"p",_=[C.pageProperty.widthPixes,C.pageProperty.heightPixes],"1"==C.isFixedPrintToA4&&(_=q._a4Size[u]),"2"==C.isFixedPrintToA4&&"a5"==C.pageProperty.pageSize.toLocaleLowerCase()&&(_=[793,1122],u="p"),k={orientation:u,unit:"px",format:_,hotfixes:["px_scaling"]},N=new eo.ZP(k),qe.Kh.printToPDF(q._hoEditorFactoryID,N,void 0,void 0,l,v,_);case 7:case"end":return B.stop()}}),_callee4)})));return function(u){return l.apply(this,arguments)}}())})),u.next=17,B.then((function(l){return l?(console.timeEnd("生成pdf用时"),new Promise((function(l){var u,_=C.printStatus.printRecord.last(),B=C.drawTree.drawPages[C.startPageNum],W=B.drawMainDoc.dHeight,q=B.drawHeader.dHeight,$=0;$=W+q-v<C.defaultLineHeight?C.startPageNum+1:C.startPageNum,_&&(u=[$].concat((0,U.Z)(_))),_&&C.startPageNum==_[0]&&v===_[1]&&(u=null),C.drawTree.paintStatus=k,C.printStatus.drawPrintRecord.Position=[0,0],C.startPageNum=0,C.firstPageStartTop=0,C.vueController.openXml(N),console.timeEnd("连续打印总用时"),l(u)}))):(C.drawTree.paintStatus=k,C.printStatus.drawPrintRecord.Position=[0,0],C.startPageNum=0,C.firstPageStartTop=0,C.vueController.openXml(N),console.timeEnd("连续打印总用时"),null)}));case 17:if(W=u.sent,!W){u.next=20;break}return u.abrupt("return",{startPageNum:W[0],pageNum:W[1],positionY:W[2]});case 20:return u.abrupt("return",null);case 21:case"end":return u.stop()}}),_callee5,this)})));function mergeXmlToPrintPDFNew(u,_){return l.apply(this,arguments)}return mergeXmlToPrintPDFNew}()},{key:"pintAllToPDF",value:function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee8(l,u){var _,v,C,k,N,B,U,W,q,$,Y,ee=this;return(0,fe.Z)().wrap((function _callee8$(re){while(1)switch(re.prev=re.next){case 0:_=rt.b.instance().getFactory(this._hoEditorFactoryID),v=_.drawTree.paintStatus,C=_.vueController.getDocXml(),_.isHideComments||_.vueController.hideComments(!0),_.printStatus.printMode=0,_.drawTree.paintStatus=Ee.Dh.psPreview,k=-1,N=[],U="",W={unit:"px",hotfixes:["px_scaling"],compress:!0},q=new eo.ZP(W),$=function(){var l=(0,me.Z)((0,fe.Z)().mark((function _callee6(){return(0,fe.Z)().wrap((function _callee6$(l){while(1)switch(l.prev=l.next){case 0:qe.Kh.printAllNew(ee._hoEditorFactoryID,Y,q,B);case 1:case"end":return l.stop()}}),_callee6)})));return function toPrint(){return l.apply(this,arguments)}}(),Y=function(){var W=(0,me.Z)((0,fe.Z)().mark((function _callee7(){var W;return(0,fe.Z)().wrap((function _callee7$(ee){while(1)switch(ee.prev=ee.next){case 0:k++,k<=l.length-1?l[k][2]?(void 0==B&&(B={}),B&&0!=Object.keys(B).length&&(u&&u(_objectSpread2(_objectSpread2({},B),{},{continuousid:U})),B={}),U&&l[k][2]!==U&&(N=[]),U=l[k][2],N.push([l[k][1],l[k][0]]),l[k][3]?Promise.all([_.vueController.openDocsForPrint(N)]).then((function(){0===_.loadImageCount?($(),_.loadImageCallback=null):_.loadImageCallback=$})):Y()):(N=[],U="",Promise.all([_.vueController.openXml(l[k][0])]).then((function(){0===_.loadImageCount?($(),_.loadImageCallback=null):_.loadImageCallback=$}))):k>l.length-1&&(u&&u(_objectSpread2(_objectSpread2({},B),{},{continuousid:U})),_.drawTree.paintStatus=v,_.vueController.openXml(C),null===q||void 0===q||q.deletePage(1),W=_.vueController.getDocTitle()?_.vueController.getDocTitle():"电子病历文档",qe.Kh.openDataUriInWindow(q,W,_.pageProperty.widthPixes));case 2:case"end":return ee.stop()}}),_callee7)})));return function createSvg(){return W.apply(this,arguments)}}(),Y();case 14:case"end":return re.stop()}}),_callee8,this)})));function pintAllToPDF(u,_){return l.apply(this,arguments)}return pintAllToPDF}()},{key:"mergeViewAll",value:function mergeViewAll(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=[];l.forEach((function(l){v.push([!1,l])})),_.vueController.openDocsForPrint(v)}}]),PrintController}(),no=function(){function ReviewController(l){(0,q.Z)(this,ReviewController),this._hoEditorFactoryID=l}return(0,$.Z)(ReviewController,[{key:"insertComment",value:function insertComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertComment(l)}},{key:"deleteComment",value:function deleteComment(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.deleteComment(l)}},{key:"editComment",value:function editComment(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.editComment(l,u)}},{key:"getOnSelectedComment",value:function getOnSelectedComment(){return rt.b.instance().getFactory(this._hoEditorFactoryID).drawTree.curOnSelectedComment}},{key:"hideComments",value:function hideComments(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.hideComments(l)}},{key:"setReviewLevelColor",value:function setReviewLevelColor(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.setReviewLevelColor(l)}},{key:"cancelDel",value:function cancelDel(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.cancelDel()}}]),ReviewController}(),io=function(){function SelectController(l){(0,q.Z)(this,SelectController),this._hoEditorFactoryID=l}return(0,$.Z)(SelectController,[{key:"getDomRange",value:function getDomRange(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID),u=l.docTree.curDomRange.normalize();return u}},{key:"setDomRange",value:function setDomRange(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.setDomRange(l,u)}},{key:"moveCaretToPath",value:function moveCaretToPath(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.drawTree.moveCaretToPath(l)}},{key:"getCaretPosition",value:function getCaretPosition(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return l.docTree.curDomRange.endPath}},{key:"getRangeText",value:function getRangeText(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.getRangeText(l)}}]),SelectController}(),oo=function(){function TableController(l){(0,q.Z)(this,TableController),this._hoEditorFactoryID=l}return(0,$.Z)(TableController,[{key:"insertTable",value:function insertTable(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.insertTable(l,u)}},{key:"insertTableRowAbove",value:function insertTableRowAbove(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableRowAbove(l)}},{key:"insertTableRowBelow",value:function insertTableRowBelow(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableRowBelow(l)}},{key:"insertTableColLeft",value:function insertTableColLeft(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableColLeft(l)}},{key:"insertTableColRight",value:function insertTableColRight(l){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);u.vueController.insertTableColRight(l)}},{key:"tableDeleteRows",value:function tableDeleteRows(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableDeleteRows()}},{key:"tableDeleteCols",value:function tableDeleteCols(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableDeleteCols()}},{key:"tableMergerCells",value:function tableMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableMergerCells()}},{key:"tableUnMergerCells",value:function tableUnMergerCells(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);l.vueController.tableUnMergerCells()}},{key:"tableProperty",value:function tableProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.tableProperty(l,u)}},{key:"rowProperty",value:function rowProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.rowProperty(l,u)}},{key:"colProperty",value:function colProperty(l,u){var _=rt.b.instance().getFactory(this._hoEditorFactoryID);_.vueController.colProperty(l,u)}},{key:"cellProperty",value:function cellProperty(l,u){for(var _=rt.b.instance().getFactory(this._hoEditorFactoryID),v=0,C=u.length;v<C;v++){var k=u[v];_.vueController.cellProperty(l,k),k.drawCell.needUpdate=!0}u.length>0&&u[0].table.update()}},{key:"insertTableFormula",value:function insertTableFormula(l,u,_){var v=rt.b.instance().getFactory(this._hoEditorFactoryID);v.vueController.insertTableFormula(l,u,_)}}]),TableController}(),ao=__webpack_require__(90142),so=__webpack_require__(47398),lo=function(){function FormatPainterUndoUnit(l,u,_,v,C){(0,q.Z)(this,FormatPainterUndoUnit),this._hoEditorFactoryID=l,this._undo=new $n.O(this._hoEditorFactoryID),this._startPath=u,this._endPath=_,this._newStyle=v,this._newParaNo=C,this._undoNodes=new Array,this._opTime=new Date,this._affectText=""}return(0,$.Z)(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 l=new so.p("formatPainter",this._newParaNo);this._undo.add(new ao.d(this._hoEditorFactoryID,this._startPath,this._endPath,l)),this._undo.commit(),this._undo.begin();var u=new so.p("formatPainter",this._newStyle);this._undo.add(new so.o(this._hoEditorFactoryID,this._startPath,this._endPath,u)),this._undo.commit()}},{key:"merge",value:function merge(l){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}(),co=function(){function FormatPainter(l){(0,q.Z)(this,FormatPainter),this._hoeditorFactoryID=l,this._storeFontStyleNo=0,this._storeParaStyleNo=0,this._continuePainter=!1,this._inuse=!1}return(0,$.Z)(FormatPainter,[{key:"inuse",get:function get(){return this._inuse}},{key:"startFormatPainter",value:function startFormatPainter(l,u,_,v){this._storeFontStyleNo=u,this._storeParaStyleNo=_,this._continuePainter=v,this._inuse=!0,this._formatNode=l,this._formatNode.className="sub-bar-item ho-format-paint selected",document.body.className="format-cursor"}},{key:"useFormatPainter",value:function useFormatPainter(){var l=rt.b.instance().getFactory(this._hoeditorFactoryID),u=l.docTree.curDomRange.normalize();l.undoService.begin(),l.undoService.add(new lo(this._hoeditorFactoryID,u.startPath,u.endPath,this._storeFontStyleNo,this._storeParaStyleNo)),l.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}(),uo=__webpack_require__(69483),ho=__webpack_require__.n(uo),_o=function(){function HoLocalStorage(l){(0,q.Z)(this,HoLocalStorage),this._intervalsTime=3e4,this._expirationTime=108e5,this._storeName="web_list",this._hoEditorFactoryID=l}return(0,$.Z)(HoLocalStorage,[{key:"initHoWebSql",value:function initHoWebSql(){this._ho_web=ho().createInstance({name:"_ho_web",storeName:this._storeName}),this._print_font=ho().createInstance({name:"_ho_web",storeName:"_print_font"}),this._cache_clear_time=ho().createInstance({name:"_ho_web",storeName:"_cache_clear_time"})}},{key:"getLocalStorage",value:function getLocalStorage(){var l=rt.b.instance().getFactory(this._hoEditorFactoryID);return this._key=l.userInfo.id+l.docTree.docProperty.patientID+l.docTree.docProperty.title,this._ho_web.getItem(this._key)}},{key:"removeLocalStorage",value:function removeLocalStorage(l){var u=this;this._ho_web.keys().then((function(l){l.forEach((function(l){u._ho_web.getItem(l).then((function(_){Array.isArray(_)?(new Date).getTime()-new Date(_[0].saveTime).getTime()&&u._ho_web.removeItem(l):(new Date).getTime()-new Date(_.saveTime).getTime()&&u._ho_web.removeItem(l)}))}))}))}},{key:"clearLocalStorage",value:function clearLocalStorage(){this._ho_web.clear().then((function(){}))}},{key:"autoSaveLocalStorage",value:function autoSaveLocalStorage(){var l=this;if(!(this._lastSaveTime&&(new Date).getTime()-this._lastSaveTime<=this._intervalsTime)){var u=rt.b.instance().getFactory(this._hoEditorFactoryID);this._key=u.userInfo.id+u.docTree.docProperty.patientID+u.docTree.docProperty.title,this._ho_web.getItem(this._key).then((function(_){var v=(0,Lt.vc)(new Date);if(_){if(Array.isArray(_)?l._lastSaveTime=new Date(_[0].saveTime).getTime():l._lastSaveTime=new Date(_.saveTime).getTime(),(new Date).getTime()-l._lastSaveTime<=l._intervalsTime)return}else l._lastSaveTime=new Date(v).getTime();var C=(0,U.Z)(u.domController.getLogs());if(_)if(Array.isArray(_))_.unshift({xml:u.structureConvert.doc2Xml("xml",!0),saveTime:v,logs:C}),3===_.length&&_.pop(),l._ho_web.setItem(l._key,_);else{var k=[];k.push({xml:u.structureConvert.doc2Xml("xml",!0),saveTime:v,logs:C}),k.push(_),l._ho_web.setItem(l._key,k)}else{var N=[];N.push({xml:u.structureConvert.doc2Xml("xml",!0),saveTime:v,logs:C}),l._ho_web.setItem(l._key,N)}l._cache_clear_time.getItem("_cache_clear_time").then((function(u){var _=u;u||(_=(new Date).getTime(),l._cache_clear_time.setItem("_cache_clear_time",_)),l._lastClearTime=_,(new Date).getTime()-u>=l._expirationTime&&(l.removeLocalStorage(u),setTimeout((function(){l._cache_clear_time.setItem("_cache_clear_time",(new Date).getTime())}),0))}))}))}}},{key:"saveFontString",value:function saveFontString(l){this._print_font.setItem("sunsim_font",l)}},{key:"loadFontString",value:function loadFontString(){return this._print_font.getItem("sunsim_font")}}]),HoLocalStorage}(),po=_o,fo=function(){function HOEditorFactory(l){(0,q.Z)(this,HOEditorFactory),this._isEnabledGlobalColor=!1,this._isSameColorWithEmptyVlaue=!1,this._isCanUseTableProperty=!1,this._loadImageCount=0,this._loadImageCallback=null,this._aiTextFunc=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=l}return(0,$.Z)(HOEditorFactory,[{key:"hoLocalStorage",get:function get(){return this._hoLocalStorage||(this._hoLocalStorage=new po(this._hoEditorFactoryId)),this._hoLocalStorage}},{key:"baseController",get:function get(){return this._baseController||(this._baseController=new $i(this._hoEditorFactoryId)),this._baseController}},{key:"domController",get:function get(){return this._domController||(this._domController=new Gi(this._hoEditorFactoryId)),this._domController}},{key:"editController",get:function get(){return this._editController||(this._editController=new Xi(this._hoEditorFactoryId)),this._editController}},{key:"elementController",get:function get(){return this._elementController||(this._elementController=new Yi(this._hoEditorFactoryId)),this._elementController}},{key:"nodeController",get:function get(){return this._nodeController||(this._nodeController=new Qi(this._hoEditorFactoryId)),this._nodeController}},{key:"printController",get:function get(){return this._printController||(this._printController=new ro(this._hoEditorFactoryId)),this._printController}},{key:"reviewController",get:function get(){return this._reviewController||(this._reviewController=new no(this._hoEditorFactoryId)),this._reviewController}},{key:"selectController",get:function get(){return this._selectController||(this._selectController=new io(this._hoEditorFactoryId)),this._selectController}},{key:"tableController",get:function get(){return this._tableController||(this._tableController=new oo(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(l){l!==this._defaultLineHeight&&(this._defaultLineHeight=l)}},{key:"userInfo",get:function get(){if(!this._userInfo){var l=this.gernerateCode.generateID("USER");this._userInfo=new zn.a(this._hoEditorFactoryId),this._userInfo.setUserInfo(l,"李医生",1,"")}return this._userInfo},set:function set(l){this._userInfo=l}},{key:"option",get:function get(){return this._option||(this._option=new Vn(this._hoEditorFactoryId)),this._option},set:function set(l){this._option=l}},{key:"hoEditorFactoryIndex",get:function get(){return this._hoEditorFactoryIndex},set:function set(l){this._hoEditorFactoryIndex=l}},{key:"docTree",get:function get(){return this._docTree||(this._docTree=new be.E_(this._hoEditorFactoryId)),this._docTree}},{key:"drawTree",get:function get(){return this._drawTree||(this._drawTree=new Ee.C6(this._hoEditorFactoryId),this._drawTree.init()),this._drawTree}},{key:"drawPageTree",get:function get(){return this._drawPageTree||(this._drawPageTree=new Hn(this._hoEditorFactoryId)),this._drawPageTree}},{key:"vueController",get:function get(){return this._vueController||(this._vueController=new Ki(this._hoEditorFactoryId)),this._vueController}},{key:"docController",get:function get(){return this._docController||(this._docController=new On.P(this._hoEditorFactoryId)),this._docController}},{key:"pageProperty",get:function get(){return this._pageProperty||(this._pageProperty=new Ln.fK(this._hoEditorFactoryId)),this._pageProperty},set:function set(l){l!==this._pageProperty&&(this._pageProperty=l)}},{key:"undoService",get:function get(){return this._undoService||(this._undoService=new $n.O(this._hoEditorFactoryId)),this._undoService}},{key:"subDocManger",get:function get(){return this._subDocManger||(this._subDocManger=new lt.Ft(this._hoEditorFactoryId)),this._subDocManger}},{key:"formatPainter",get:function get(){return this._formatPainter||(this._formatPainter=new co(this._hoEditorFactoryId)),this._formatPainter}},{key:"printStatus",get:function get(){return this._printStatus||(this._printStatus=new qe.Ic(this._hoEditorFactoryId)),this._printStatus}},{key:"timeStamp",get:function get(){return this._timeStamp||(this._timeStamp=new Kn(this._hoEditorFactoryId)),this._timeStamp}},{key:"gernerateCode",get:function get(){return this._gernerateCode||(this._gernerateCode=new Gn(this._hoEditorFactoryId)),this._gernerateCode}},{key:"htmlConverter",get:function get(){return this._htmlConverter||(this._htmlConverter=new ti(this._hoEditorFactoryId)),this._htmlConverter}},{key:"structureConvert",get:function get(){return this._structureConvert||(this._structureConvert=new Di(this._hoEditorFactoryId)),this._structureConvert}},{key:"structureNode",get:function get(){return this._structureNode||(this._structureNode=new Oi(this._hoEditorFactoryId)),this._structureNode}},{key:"toHtmlConverter",get:function get(){return this._toHtmlConverter||(this._toHtmlConverter=new Ai(this._hoEditorFactoryId)),this._toHtmlConverter}},{key:"unitConvert",get:function get(){return this._unitConvert||(this._unitConvert=new Ri.P),this._unitConvert}},{key:"nodeMouseMove",get:function get(){return this._nodeMouseMove||(this._nodeMouseMove=new qn(this._hoEditorFactoryId)),this._nodeMouseMove}},{key:"testDataSet",get:function get(){return this._testDataSet||(this._testDataSet=new Li(this._hoEditorFactoryId)),this._testDataSet}},{key:"hoEditorFactoryId",get:function get(){return this._hoEditorFactoryId}},{key:"startPageNum",get:function get(){return this._startPageNum},set:function set(l){this._startPageNum!=l&&(this._startPageNum=l)}},{key:"firstPageStartTop",get:function get(){return this._firstPageStartTop},set:function set(l){this._firstPageStartTop!=l&&(this._firstPageStartTop=l)}},{key:"signHeight",get:function get(){return this._signHeight},set:function set(l){this._signHeight!==l&&(this._signHeight=l)}},{key:"pasteBase",get:function get(){return this._pasteBase},set:function set(l){this._pasteBase!==l&&(this._pasteBase=l)}},{key:"isHideComments",get:function get(){return this._isHideComments},set:function set(l){this._isHideComments!==l&&(this._isHideComments=l)}},{key:"continuousView",get:function get(){return this._continuousView},set:function set(l){this._continuousView!==l&&(this._continuousView=l)}},{key:"openXmled",get:function get(){return this._openXmled},set:function set(l){this._openXmled!==l&&(this._openXmled=l)}},{key:"isThrowError",get:function get(){return this._isThrowError},set:function set(l){this._isThrowError!==l&&(this._isThrowError=l)}},{key:"loadImageCount",get:function get(){return this._loadImageCount},set:function set(l){this._loadImageCount!==l&&(this._loadImageCount=l),this._loadImageCount<=0&&this._loadImageCallback&&(this._loadImageCallback(),this._loadImageCallback=null)}},{key:"loadImageCallback",set:function set(l){this._loadImageCallback=l}},{key:"aiTextFunc",get:function get(){return this._aiTextFunc},set:function set(l){this._aiTextFunc!==l&&(this._aiTextFunc=l)}},{key:"lastSaveTime",get:function get(){return this._lastSaveTime},set:function set(l){this._lastSaveTime!==l&&(this._lastSaveTime=l)}},{key:"contentIsModify",get:function get(){return this._contentIsModify},set:function set(l){this._contentIsModify!==l&&(this._contentIsModify=l)}},{key:"isCanEditHeadFoot",get:function get(){return this._isCanEditHeadFoot},set:function set(l){this._isCanEditHeadFoot!==l&&(this._isCanEditHeadFoot=l)}},{key:"superiorSigns",get:function get(){return this._superiorSigns},set:function set(l){this._superiorSigns!==l&&(this._superiorSigns=l)}},{key:"isFixedPrintToA4",get:function get(){return this._isFixedPrintToA4},set:function set(l){this._isFixedPrintToA4!==l&&(this._isFixedPrintToA4=l)}},{key:"isRotate",get:function get(){return this._isRotate},set:function set(l){this._isRotate!==l&&(this._isRotate=l)}},{key:"isUseImagePrint",get:function get(){return this._isUseImagePrint},set:function set(l){this._isUseImagePrint!==l&&(this._isUseImagePrint=l)}},{key:"isUseForm",get:function get(){return this._isUseForm},set:function set(l){this._isUseForm!==l&&(this._isUseForm=l)}},{key:"printBlack",get:function get(){return this._printBlack},set:function set(l){this._printBlack!==l&&(this._printBlack=l)}},{key:"isEnabledGlobalColor",get:function get(){return this._isEnabledGlobalColor},set:function set(l){this._isEnabledGlobalColor!==l&&(this._isEnabledGlobalColor=l)}},{key:"isSameColorWithEmptyVlaue",get:function get(){return this._isSameColorWithEmptyVlaue},set:function set(l){this._isSameColorWithEmptyVlaue!==l&&(this._isSameColorWithEmptyVlaue=l)}},{key:"isCanUseTableProperty",get:function get(){return this._isCanUseTableProperty},set:function set(l){this._isCanUseTableProperty!==l&&(this._isCanUseTableProperty=l)}},{key:"clear",value:function clear(){this._docTree&&(this._docTree.clearDocTree(),this._docTree=null),this._subDocManger=null,this._drawPageTree=null,this._vueController=null,this._docController=null,this._pageProperty=null,this._undoService=null,this._printStatus=null,this._timeStamp=null,this._gernerateCode=null,this._htmlConverter=null,this._structureConvert=null,this._structureNode=null,this._toHtmlConverter=null,this._unitConvert=null,this._nodeMouseMove=null,this._testDataSet=null,this._userInfo=null,this._option=null,this._baseController=null,this._domController=null,this._editController=null,this._elementController=null,this._nodeController=null,this._printController=null,this._reviewController=null,this._selectController=null,this._tableController=null,this._formatPainter=null,this._hoLocalStorage=null,this._drawTree&&(this._drawTree.drawPages[0].destory(),this._drawTree.drawPageCount.count=0,this._drawTree.drawPages.splice(0,this._drawTree.drawPages.length),this._drawTree=null)}}]),HOEditorFactory}(),HoFootervue_type_template_id_5908306a_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"ho-footer"},[_("div",{staticClass:"footer-item"}),_("div",{staticClass:"footer-item"},[_("span",{staticClass:"text"},[l._v("第 "+l._s(l.currentActivePages+1===0?1:l.currentActivePages+1)+" 页 / 共 "+l._s(l.drawPages)+" 页")]),l.docName?_("span",{staticClass:"text"},[l._v("名称:"+l._s(l.docName))]):l._e(),l.userNames?_("span",{staticClass:"text"},[l._v("书写人:"+l._s(l.userNames))]):l._e(),l.historyTime?_("span",{staticClass:"text"},[l._v("书写时间:"+l._s(l.historyTime))]):l._e()]),_("p",{staticStyle:{flex:"1"}}),_("div",{staticClass:"footer-item"})])},go=[],Popervue_type_template_id_0f8bfa37_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.classSelected,style:l.poperStyle,on:{mouseenter:l.mouseenter,mouseleave:l.mouseleave}},[l._t("default",(function(){return[_("span",{class:l.classNames})]})),l.title&&l.show?_("Title",{attrs:{title:l.title,styles:l.styles}}):l._e()],2)},mo=[],Titlevue_type_template_id_3d9d462b_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("transition",{attrs:{name:"fade"}},[_("span",{staticClass:"poper-title",style:l.styles},[l._v(l._s(l.title))])])},vo=[],bo=function(l){(0,Y.Z)(Title,l);var u=(0,ee.Z)(Title);function Title(){return(0,q.Z)(this,Title),u.apply(this,arguments)}return(0,$.Z)(Title)}(mixins(jt));__decorate([Prop()],bo.prototype,"title",void 0),__decorate([Prop({default:"bottom"})],bo.prototype,"placement",void 0),__decorate([Prop()],bo.prototype,"styles",void 0),bo=__decorate([ae({name:"Title"})],bo);var wo=bo,xo=wo,Po=normalizeComponent(xo,Titlevue_type_template_id_3d9d462b_scoped_true_render,vo,!1,null,"3d9d462b",null),Co=Po.exports,Eo=function(l){(0,Y.Z)(Poper,l);var u=(0,ee.Z)(Poper);function Poper(){var l;return(0,q.Z)(this,Poper),l=u.apply(this,arguments),l.show=!1,l.styles={left:"0px",top:"0px"},l}return(0,$.Z)(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(l){if(l.currentTarget){var u=l.currentTarget.getBoundingClientRect();this.styles.left=u.x+"px","bottom"===this.placement?this.styles.top=u.y+u.height+13+"px":this.styles.top=u.y-u.height-3+"px",this.show=!0}}},{key:"mouseleave",value:function mouseleave(){this.show=!1,this.styles={left:"0px",top:"0px"}}}]),Poper}(k());__decorate([Prop()],Eo.prototype,"poperStyle",void 0),__decorate([Prop()],Eo.prototype,"selected",void 0),__decorate([Prop()],Eo.prototype,"title",void 0),__decorate([Prop()],Eo.prototype,"svg",void 0),__decorate([Prop({default:"bottom"})],Eo.prototype,"placement",void 0),__decorate([Prop({default:""})],Eo.prototype,"name",void 0),Eo=__decorate([ae({name:"Poper",components:{Title:Co}})],Eo);var So=Eo,To=So,ko=normalizeComponent(To,Popervue_type_template_id_0f8bfa37_render,mo,!1,null,null,null),Io=ko.exports,Mo=Io,No=function(l){(0,Y.Z)(HoFooter,l);var u=(0,ee.Z)(HoFooter);function HoFooter(){var l;return(0,q.Z)(this,HoFooter),l=u.apply(this,arguments),l.docType="",l.docName="",l.userNames="",l.historyTime="",l}return(0,$.Z)(HoFooter,[{key:"docPropertyChange",value:function docPropertyChange(l){this.setDocProperty(l)}},{key:"mounted",value:function mounted(){this.setDocProperty(this.docProperty)}},{key:"setDocProperty",value:function setDocProperty(l){this.docName=null===l||void 0===l?void 0:l.title,this.userNames=null===l||void 0===l?void 0:l.lastEditorName,this.historyTime=null===l||void 0===l?void 0:l.lastEditTime}}]),HoFooter}(k());__decorate([Prop()],No.prototype,"drawPages",void 0),__decorate([Prop()],No.prototype,"currentActivePages",void 0),__decorate([Prop()],No.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],No.prototype,"docProperty",void 0),__decorate([Watch("docProperty",{deep:!0})],No.prototype,"docPropertyChange",null),No=__decorate([ae({name:"HoFooter",components:{Poper:Mo}})],No);var Oo=No,Lo=Oo,Ao=normalizeComponent(Lo,HoFootervue_type_template_id_5908306a_scoped_true_render,go,!1,null,"5908306a",null),Ro=Ao.exports,ControlModalvue_type_template_id_1b898d58_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"toolModals",staticClass:"control-modal",on:{mousedown:l.toolModalDown}},["barcode"===l.controlType?_("Barcode",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose}}):l._e(),"qrcode"===l.controlType?_("QrCode",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose}}):l._e(),"express"===l.controlType?_("ExpressionForm",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController,controlStatus:l.controlStatus,controlProperty:l.controlProperty},on:{closed:l.handleClose}}):l._e(),"text"===l.controlType?_("TextDialog",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose},scopedSlots:l._u([{key:"hoTextFieldModal",fn:function(){return[l._t("hoTextModal")]},proxy:!0}],null,!0)}):l._e(),"date"===l.controlType?_("DateDialog",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose},scopedSlots:l._u([{key:"hoDateFieldModal",fn:function(){return[l._t("hoDateModal")]},proxy:!0},{key:"hoTextFieldModal",fn:function(){return[l._t("hoTextModal")]},proxy:!0}],null,!0)}):l._e(),"select"===l.controlType?_("SelectDialog",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"gestation"===l.controlType?_("Gestation",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"table"===l.controlType?_("TableProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"table-row"===l.controlType?_("TableRowProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"table-cell"===l.controlType?_("TableCellProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"table-col"===l.controlType?_("TableColProperty",{attrs:{hoEditorFactoryId:l.hoEditorFactoryId,vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),l.isCustoms?_("CustomAttributes",{attrs:{isTableProperty:l.isTableProperty},on:{closed:l.handleClose}}):l._e(),l.isDataSource?_("DataSourceDialog",{on:{closed:l.handleClose}}):l._e(),l.isListStyle?_("ListSource",{on:{closed:l.handleClose}}):l._e(),"RadioBox"===l.controlType||"CheckBox"===l.controlType?_("RadioCheckbox",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId,controlProperty:l.controlProperty},on:{closed:l.handleClose}}):l._e(),"waterset"===l.controlType?_("WaterSetDialog",{attrs:{vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"comment"===l.controlType?_("CommentDialog",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus},on:{insertComments:l.insertComments,closed:l.handleClose},scopedSlots:l._u([{key:"hoCommentModal",fn:function(){return[l._t("hoComment")]},proxy:!0}],null,!0)}):l._e(),"pageInfoes"===l.controlType?_("PageInfoes",{attrs:{vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"delimiter"===l.controlType?_("Delimiter",{attrs:{vueController:l.vueController},on:{closed:l.handleClose}}):l._e(),"sign"===l.controlType?_("Sign",{attrs:{vueController:l.vueController,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"upload-image"===l.controlType?_("UploadImageDialog",{attrs:{uploadImageParams:l.uploadImageParams,vueController:l.vueController,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"edit-image"===l.controlType?_("CanvasImageDialog",{attrs:{vueController:l.vueController,hoEditorFactoryId:l.hoEditorFactoryId,controlStatus:l.controlStatus},on:{closed:l.handleClose}}):l._e(),"paragraph"===l.controlType?_("ParagraphDialog",{attrs:{vueController:l.vueController,controlProperty:l.controlProperty,controlStatus:l.controlStatus,hoEditorFactoryId:l.hoEditorFactoryId},on:{closed:l.handleClose},scopedSlots:l._u([{key:"hoParagraph",fn:function(){return[l._t("hoParagraphModal")]},proxy:!0}],null,!0)}):l._e()],1)},Fo=[],SelectDialogvue_type_template_id_00c42d15_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("下拉框")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.innerIdentifier,callback:function(u){l.innerIdentifier=u},expression:"innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.dataMetaIdentifier,callback:function(u){l.dataMetaIdentifier=u},expression:"dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.identifierFormat,callback:function(u){l.identifierFormat=u},expression:"identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:l.name,callback:function(u){l.name=u},expression:"name"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:l.tipText,callback:function(u){l.tipText=u},expression:"tipText"}})],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{model:{value:l.isReadOnly,callback:function(u){l.isReadOnly=u},expression:"isReadOnly"}},[l._v("内容只读")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{model:{value:l.isAllowDelete,callback:function(u){l.isAllowDelete=u},expression:"isAllowDelete"}},[l._v("允许删除")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{on:{change:l.allowMultiSelectChange},model:{value:l.allowMultiSelect,callback:function(u){l.allowMultiSelect=u},expression:"allowMultiSelect"}},[l._v("允许多选")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{model:{value:l.readType,callback:function(u){l.readType=u},expression:"readType"}},[l._v("自动回填")])],1),_("div",{staticStyle:{width:"20%"}},[_("el-checkbox",{attrs:{disabled:!l.allowMultiSelect},model:{value:l.mutexSelect,callback:function(u){l.mutexSelect=u},expression:"mutexSelect"}},[l._v("选项互斥")])],1)]),_("li",{staticClass:"control-item"},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.downListContent,height:"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.type,callback:function(_){l.$set(u.row,"type",_)},expression:"scope.row.type"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return[u.row.default?_("span",{staticClass:"tags"},[l._v("默认")]):l._e(),u.row.default?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.cancelDefault(u.row.id)}}},[l._v("取消")]):l._e(),!u.row.default&&u.row.text?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.setDefault(u.row.id)}}},[l._v("设为默认")]):l._e(),u.$index!==l.downListContent.length-1&&l.focusIndexs===u.$index?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")]):l._e()]}}])})],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},jo=[],Bo=function(l){(0,Y.Z)(SelectDialog,l);var u=(0,ee.Z)(SelectDialog);function SelectDialog(){var l;return(0,q.Z)(this,SelectDialog),l=u.apply(this,arguments),l.focusIndexs=-1,l.id="",l.name="",l.text="",l.title="下拉选择框",l.tipText="",l.isAllowDelete=!1,l.isReadOnly=!1,l.mutexSelect=!1,l.allowMultiSelect=!1,l.innerIdentifier="",l.dataMetaIdentifier="",l.identifierFormat="",l.readType=!1,l.keyValue="",l.customProperty={},l.errorArr=[],l.errorIndex=[],l.animationClassNames="control-modal-contents select-modal animation-in",l.tableInfo=null,l}return(0,$.Z)(SelectDialog,[{key:"created",value:function created(){var l=this,u=this.getKeyId(0),_=[{value:"",text:"",type:0,id:u,default:!1}];if("update"===this.controlStatus){var v=this.getSelectNode();this.id=v.id,this.name=v.name,this.text=v.text,this.title=v.title,this.tipText=v.tipText,this.isAllowDelete=v.isAllowDelete,this.isReadOnly=v.isReadOnly,this.mutexSelect=v.mutexSelect,this.allowMultiSelect=v.allowMultiSelect;var C=[];v.downListContent&&(C=v.downListContent),this.readType=1==v.readType,this.downListContent=[].concat((0,U.Z)(C),_),this.downListContent=(0,U.Z)(this.downListContent.map((function(u,_){return void 0===u.id&&(u.id=l.getKeyId(_)),u}))),this.innerIdentifier=v.innerIdentifier,this.dataMetaIdentifier=v.dataMetaIdentifier,this.identifierFormat=v.identifierFormat,this.keyValue=v.keyValue,this.customProperty=v.customProperty}else this.id=this.vueController.generateID("DL"),this.downListContent=[].concat(_)}},{key:"mounted",value:function mounted(){this.tableInfo=document.querySelector(".el-table__body-wrapper")}},{key:"getSelectNode",value:function getSelectNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof Ft.yF&&(u=C),u}},{key:"allowMultiSelectChange",value:function allowMultiSelectChange(){this.allowMultiSelect||(this.mutexSelect=!1)}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.downListContent[l];if(""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.downListContent.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.downListContent.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0)this.errorIndex.includes(u.id)||this.errorIndex.push(u.id);else{this.errorIndex=[];var _=this.downListContent.filter((function(l){if(""===(null===l||void 0===l?void 0:l.value.replace(/\s*/g,""))&&""===(null===l||void 0===l?void 0:l.text.replace(/\s*/g,"")))return l}));0===_.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(l){var u=this,_=this.downListContent[l];this.errorArr=(0,U.Z)(this.downListContent.filter((function(l){if(l.text===(null===_||void 0===_?void 0:_.text)&&l.id!==(null===_||void 0===_?void 0:_.id))return l})));var v=(0,U.Z)(this.downListContent.filter((function(l){if(!l.text&&!l.value)return l})));this.errorArr.length>0?(this.errorIndex.includes(_.id)||this.errorIndex.push(_.id),v.forEach((function(l){u.deleteCurrentRow(l.id)}))):(this.errorIndex=[],0===v.length&&this.addCustoms())}},{key:"addCustoms",value:function addCustoms(){var l=this;this.downListContent.push({text:"",value:"",type:0,id:this.getKeyId(),default:!1}),setTimeout((function(){l.tableInfo&&l.tableInfo.scrollTo(0,1e4)}),0)}},{key:"setDefault",value:function setDefault(l){var u=this;this.downListContent=(0,U.Z)(this.downListContent.map((function(_){return _.id===l?""!==_.text.replace(/\s*/g,"")&&(_.default=!0):u.allowMultiSelect||(_.default=!1),_})))}},{key:"cancelDefault",value:function cancelDefault(l){this.downListContent=(0,U.Z)(this.downListContent.map((function(u){return u.id===l&&(u.default=!1),u})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.downListContent.filter((function(_,v){_.id===l&&(u=v)})),this.downListContent.splice(u,1)}},{key:"arrToObject",value:function arrToObject(){var l={};return this.downListContent.map((function(u){var _=u;l[_.text]=_.value})),l}},{key:"sure",value:function sure(){var l=this;if(0!==this.errorArr.length)return!1;var u=this.downListContent.filter((function(l){if(l.text||l.value)return l})),_=[],v="";this.downListContent.forEach((function(l,u){l.default&&(_.push(l.text),v+=l.id+",")})),this.text=_.join(","),""===this.text&&(this.name?this.text=this.name:this.text="请选择");var C={id:this.id,name:this.name,text:this.text,keyValue:v,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};C.readType?C.readType=1:C.readType=0,"add"===this.controlStatus?this.vueController.insertDownList("add",JSON.stringify(C),u):"update"===this.controlStatus&&this.vueController.updateDownList(JSON.stringify(C),u),this.$nextTick((function(){return l.handleClose()}))}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents select-modal animation-out",this.$emit("closed")}}]),SelectDialog}(k());__decorate([Prop()],Bo.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Bo.prototype,"controlStatus",void 0),__decorate([Prop()],Bo.prototype,"vueController",void 0),Bo=__decorate([ae({name:"SelectDialog"})],Bo);var Uo=Bo,Ho=Uo,Wo=normalizeComponent(Ho,SelectDialogvue_type_template_id_00c42d15_scoped_true_render,jo,!1,null,"00c42d15",null),qo=Wo.exports,zo=qo,DateDialogvue_type_template_id_f39033d6_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("日期时间")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("tabs",{attrs:{tabKey:l.textActiveName}},[_("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.innerIdentifier,callback:function(u){l.innerIdentifier=u},expression:"innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.dataMetaIdentifier,callback:function(u){l.dataMetaIdentifier=u},expression:"dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.identifierFormat,callback:function(u){l.identifierFormat=u},expression:"identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:l.name,callback:function(u){l.name=u},expression:"name"}})],1),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("输入样式")]),_("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:l.controlStyle,callback:function(u){l.controlStyle=u},expression:"controlStyle"}},l._l(l.dateFormatList,(function(l){return _("el-option",{key:l,attrs:{label:l,value:l}})})),1)],1)]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("日期时间")]),l.controlStyle.includes("MM")&&!l.controlStyle.includes("dd")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"month",placeholder:"选择月"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),l.controlStyle.includes("yyyy")&&!l.controlStyle.includes("MM")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"year",placeholder:"选择年"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),l.controlStyle.includes("dd")&&l.controlStyle.includes("mm")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"datetime",format:l.controlStyle,placeholder:"日期时间"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),!l.controlStyle.includes("dd")&&l.controlStyle.includes("mm")?_("el-time-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"time",format:l.controlStyle,placeholder:"时间"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e(),!l.controlStyle.includes("mm")&&l.controlStyle.includes("dd")?_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"date",format:l.controlStyle,placeholder:"日期"},model:{value:l.text,callback:function(u){l.text=u},expression:"text"}}):l._e()],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{size:"mini",placeholder:"提示文本"},model:{value:l.tipText,callback:function(u){l.tipText=u},expression:"tipText"}})],1),_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{model:{value:l.isReadOnly,callback:function(u){l.isReadOnly=u},expression:"isReadOnly"}},[l._v("内容只读")])],1),_("div",{staticStyle:{margin:"0 0 0 20px"}},[_("el-checkbox",{model:{value:l.isAllowDelete,callback:function(u){l.isAllowDelete=u},expression:"isAllowDelete"}},[l._v("允许删除")])],1),_("div",{staticClass:"control-item",staticStyle:{"margin-left":"20px"}},[_("el-checkbox",{model:{value:l.readType,callback:function(u){l.readType=u},expression:"readType"}},[l._v("自动回填")])],1)])])]),l._t("hoTextFieldModal")],2)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Vo=[],Tabvue_type_template_id_7c6c4d81_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"ho-toolbar"},[_("ul",{staticClass:"main-bar"},[l._l(l.navList,(function(u){return _("li",{key:u.name,class:{selected:u.name===l.currentValue},on:{click:function(_){return l.handleChange(l.currentValue,u.name)}}},[l._v(" "+l._s(u.label)+" ")])})),_("li",{staticClass:"tabs-active-bar",style:l.activeBarStyle})],2),_("div",{staticClass:"sub-bar-box"},[l._t("default")],2)])},Ko=[],$o={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(l){return"TabPane"===l.$options.name}))},updateNav:function updateNav(){var l=this;this.navList=[],this.getTabs().forEach((function(u,_){!1!==u.isShow&&(l.navList.push({label:u.label,name:u.name||_}),u.name||(u.name=_))})),this.currentValue||(this.currentValue=this.navList[0].name),this.updateStatus()},updateStatus:function updateStatus(){var l=this,u=this.getTabs();u.forEach((function(u){var _=u.name===l.currentValue;return u.show=_,u.show}))},handleChange:function handleChange(l,u){var _=this;this.currentValue=u,this.$emit("tabClick",l,u),this.$nextTick((function(){var l=0,u=0;if(event){var v=event.target.parentNode;if("main-bar"===v.className){var C=Array.from(v.childNodes);C.forEach((function(_){var v=_.className;"selected"!==v&&"tabs-active-bar"!==v&&0===l&&(u+=_.offsetWidth),"selected"===v&&(l=_.offsetWidth)})),_.activeBarStyle={left:u+"px",width:l+"px"}}}}))}},watch:{tabKey:function tabKey(l){this.currentValue=l},currentValue:function currentValue(l,u){var _=this;this.updateStatus(),setTimeout((function(){_.$emit("updateTabKey",_.currentValue)}),0)}}},Go=$o,Zo=normalizeComponent(Go,Tabvue_type_template_id_7c6c4d81_render,Ko,!1,null,null,null),Jo=Zo.exports,Xo={name:"DateDialog",components:{Tabs:Jo},data:function data(){return{dateFormat:Lt.vc,dateFormatList:Lt.eG,textActiveName:"first",customPropertys:{},customPropertyValue:new Object,id:"",name:"",text:"",title:"日期时间",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:"yyyy/MM/dd",innerIdentifier:"",dataMetaIdentifier:"",identifierFormat:"",readType:!1,animationClassNames:"control-modal-contents date-modal animation-in"}},props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0},vueController:{type:Object,required:!0}},inject:["getCustomProperty"],computed:{customProperty:function customProperty(){return this.getCustomProperty()}},created:function created(){var l=this;if("update"===this.controlStatus){var u=this.getDateNode();this.id=u.id,this.name=u.name,this.text=u.text&&u.text!==u.controlStyle&&u.text!==u.name?this.stringToDate(u.text,u.controlStyle):"",this.title=u.title,this.tipText=u.tipText,this.isAllowDelete=u.isAllowDelete,this.isReadOnly=u.isReadOnly,this.controlStyle=u.controlStyle,this.innerIdentifier=u.innerIdentifier,this.dataMetaIdentifier=u.dataMetaIdentifier,this.identifierFormat=u.identifierFormat,this.readType=1===u.readType,(0,Ui.Kn)(u.customProperty)?this.customPropertys=u.customProperty:this.customPropertys=new Object;var _=new Object;Object.keys(this.customPropertys).forEach((function(u){_[u]=l.customPropertys[u]})),this.customPropertyValue=_objectSpread2({},_)}else this.id=this.vueController.generateID("DT")},methods:{getDateNode:function getDateNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof Rt.Z&&(u=C),u},querySearch:function querySearch(l,u){u(Lt.dv)},stringToDate:function stringToDate(l,u){var _="",v="",C="";return u.includes("yyyy")&&u.includes("mm")?l&&(_=l.split(" ")[0],v=l.split(" ")[1]):(u.includes("yyyy")&&(_=l),u.includes("mm")&&(v=l)),_&&(_=_.replace(/[^\d]/g,"/").substr(0,10)),v&&(v=v.replace(/[^\d]/g,":").substr(0,8)),_?(C=_,v&&(C+=" "+v.replace(/[^\d]/g,":").substr(0,8))):C=v.replace(/[^\d]/g,":").substr(0,8),C},sure:function sure(){var l=this,u={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)};u.readType?u.readType=1:u.readType=0,"add"===this.controlStatus?this.vueController.insertDateTime(this.controlStatus,JSON.stringify(u)):"update"===this.controlStatus&&this.vueController.updateDateTime(JSON.stringify(u)),this.$nextTick((function(){return l.handleClose()}))},handleClose:function handleClose(){this.animationClassNames="control-modal-contents date-modal animation-out",this.$emit("closed")}}},Yo=Xo,Qo=normalizeComponent(Yo,DateDialogvue_type_template_id_f39033d6_render,Vo,!1,null,null,null),ta=Qo.exports,ia=ta,BarCodesvue_type_template_id_5569452d_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("条形码")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("条形码内容")]),_("el-input",{attrs:{size:"mini",placeholder:"条形码内容不能为空",maxlength:"20","show-word-limit":""},on:{input:l.codeChange},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("是否显示文本")]),_("el-checkbox",{on:{change:l.codeChange},model:{value:l.isDisplayText,callback:function(u){l.isDisplayText=u},expression:"isDisplayText"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1),_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{staticClass:"bar-code"},[_("img",{directives:[{name:"show",rawName:"v-show",value:l.textContent&&!l.textField,expression:"textContent && !textField"}],ref:"barcode",attrs:{id:"barcode"}}),_("span",{directives:[{name:"show",rawName:"v-show",value:l.textContent&&l.textField,expression:"textContent && textField"}]},[l._v(l._s(l.textField))])])])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},oa=[],_a=(__webpack_require__(77601),__webpack_require__(55961)),pa=__webpack_require__.n(_a),ya={name:"Barcode",props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0}},inject:["setIsDataSource","getDataSource","setDataSource"],data:function data(){return{id:"",textContent:"",barCodeStyle:"CODE39",textAlign:"center",isDisplayText:!1,stripWidth:2,textField:"",textEslint:/^[a-zA-Z0-9_]+$/,animationClassNames:"control-modal-contents barcode-modal animation-in",barcode:null,dataSource:null}},created:function created(){var l=this;if("update"===this.controlStatus){var u=this.getBarCodeNode();this.id=u.id,this.textContent=u.textContent,this.isDisplayText=u.isDisplayText,this.$nextTick((function(){return l.codeChange()}))}else this.id=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController.generateID("BC")},mounted:function mounted(){this.barcode=this.$refs.barcode},methods:{getBarCodeNode:function getBarCodeNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof hi.T&&(u=C),u},codeChange:function codeChange(){if(this.textField="",this.textEslint.test(this.textContent)){var l=38;this.isDisplayText&&(l=24),pa()("#barcode",this.textContent,{format:"",width:2,textAlign:"textAlign",text:this.textContent,fontSize:14,margin:0,height:l,textPosition:"bottom",textMargin:0,font:"宋体",displayValue:this.isDisplayText})}else this.textField=""},sure:function sure(){var l=[this.barcode.naturalWidth,this.barcode.naturalHeight],u=l[0],_=l[1],v=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController;this.dataSource=this.getDataSource(),"add"===this.controlStatus?v.insertBarcode(this.controlStatus,this.id,this.textContent,this.isDisplayText,this.barcode.src,u,_,JSON.stringify(this.dataSource)):"update"===this.controlStatus&&v.updateBarcode(this.id,this.textContent,this.isDisplayText,this.barcode.src,u,_,JSON.stringify(this.dataSource)),this.handleClose()},openDataSourceModal:function openDataSourceModal(){this.setIsDataSource(!0)},handleClose:function handleClose(){this.animationClassNames="control-modal-contents barcode-modal animation-out",this.$emit("closed")}}},ba=ya,Ca=normalizeComponent(ba,BarCodesvue_type_template_id_5569452d_render,oa,!1,null,null,null),Ea=Ca.exports,Da=Ea,QrCodevue_type_template_id_368e4a4c_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("二维码")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("文本内容")]),_("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:4,maxRows:8},clearable:"",placeholder:"文本内容",maxlength:"256","show-word-limit":""},on:{input:l.codeChange},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("宽(高)")]),_("el-input-number",{attrs:{controls:!1,size:"mini",autocomplete:"off"},on:{change:l.qrSizeChange},model:{value:l.size,callback:function(u){l.size=u},expression:"size"}}),_("span",{staticStyle:{padding:"0 20px 0 10px"}},[l._v("px")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("纠错能力")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.correctLevel,callback:function(u){l.correctLevel=u},expression:"correctLevel"}},[_("el-option",{attrs:{label:"L: 7%的字码可被修正",value:"L"}}),_("el-option",{attrs:{label:"M: 15%的字码可被修正",value:"M"}}),_("el-option",{attrs:{label:"Q: 25%的字码可被修正",value:"Q"}}),_("el-option",{attrs:{label:"H: 30%的字码可被修正",value:"H"}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)]),_("div",{staticClass:"section-right"},[_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{ref:"hoQrcode",style:l.qrCanvasBoxStyle,attrs:{id:"qrcode"}})])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},ka=[],Ma=__webpack_require__(56239),Na=function(l){(0,Y.Z)(QrCodeDialog,l);var u=(0,ee.Z)(QrCodeDialog);function QrCodeDialog(){var l;return(0,q.Z)(this,QrCodeDialog),l=u.apply(this,arguments),l.id="",l.textContent="",l.correctLevel="M",l.size=80,l.animationClassNames="control-modal-contents qrcode-modal animation-in",l.qrCanvasBoxStyle={width:"170px",height:"170px"},l}return(0,$.Z)(QrCodeDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"mounted",value:function mounted(){var l=this;if("update"===this.controlStatus){var u=this.getQrcodeNode();this.id=u.id,this.textContent=u.textContent,this.correctLevel=u.correctLevel,setTimeout((function(){return l.codeChange()}),100)}else this.id=this.vueController.generateID("QC")}},{key:"getQrcodeNode",value:function getQrcodeNode(){var l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof _i.d&&(u=C),u}},{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 l=(0,Ma.tZ)({data:this.textContent,size:this.size>400?400:this.size,correctLevel:this.correctLevel});this.hoQrcode.innerHTML="",this.hoQrcode.appendChild(l)}}},{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}(k());__decorate([Prop()],Na.prototype,"vueController",void 0),__decorate([Ref()],Na.prototype,"hoQrcode",void 0),__decorate([Inject("setIsDataSource")],Na.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Na.prototype,"getDataSource",void 0),__decorate([Prop()],Na.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Na.prototype,"controlStatus",void 0),Na=__decorate([ae({name:"QrCodeDialog"})],Na);var La=Na,ja=La,Ba=normalizeComponent(ja,QrCodevue_type_template_id_368e4a4c_render,ka,!1,null,null,null),Ua=Ba.exports,Wa=Ua,TextDialogvue_type_template_id_52be23a2_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("文本域")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("tabs",{attrs:{tabKey:l.textActiveName}},[_("tab-pane",{attrs:{label:"基本属性",notHover:!1,name:"first"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("类型")]),_("el-radio",{attrs:{disabled:"update"===l.controlStatus,size:"small",label:0},model:{value:l.textParam.inputFieldType,callback:function(u){l.$set(l.textParam,"inputFieldType",u)},expression:"textParam.inputFieldType"}},[l._v("直接输入文本数据")]),_("el-radio",{attrs:{disabled:"update"===l.controlStatus,size:"small",label:1},model:{value:l.textParam.inputFieldType,callback:function(u){l.$set(l.textParam,"inputFieldType",u)},expression:"textParam.inputFieldType"}},[l._v("下拉列表方式")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.textParam.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.textParam.innerIdentifier,callback:function(u){l.$set(l.textParam,"innerIdentifier",u)},expression:"textParam.innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.textParam.dataMetaIdentifier,callback:function(u){l.$set(l.textParam,"dataMetaIdentifier",u)},expression:"textParam.dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.textParam.identifierFormat,callback:function(u){l.$set(l.textParam,"identifierFormat",u)},expression:"textParam.identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{size:"mini",placeholder:"名称"},model:{value:l.textParam.name,callback:function(u){l.$set(l.textParam,"name",u)},expression:"textParam.name"}})],1),_("li",{staticClass:"line"}),0===l.textParam.inputFieldType?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("文本内容")]),_("el-input",{attrs:{disabled:"update"===l.controlStatus,size:"mini",placeholder:"文本内容"},model:{value:l.textParam.text,callback:function(u){l.$set(l.textParam,"text",u)},expression:"textParam.text"}})],1):l._e(),1===l.textParam.inputFieldType?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("下拉列表")]),_("el-input",{attrs:{size:"mini",disabled:!0,placeholder:"下拉列表项"},model:{value:l.textParam.downListProperty.source,callback:function(u){l.$set(l.textParam.downListProperty,"source",u)},expression:"textParam.downListProperty.source"}}),_("el-button",{attrs:{size:"mini"},on:{click:function(u){return u.stopPropagation(),l.openListArrModel.apply(null,arguments)}}},[l._v("浏览")])],1):l._e(),1===l.textParam.inputFieldType?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("是否多选")]),_("div",{staticStyle:{width:"40%"}},[_("el-checkbox",{on:{change:l.allowMultiSelectChange},model:{value:l.textParam.downListProperty.allowMultiSelected,callback:function(u){l.$set(l.textParam.downListProperty,"allowMultiSelected",u)},expression:"textParam.downListProperty.allowMultiSelected"}},[l._v("允许多选")]),_("el-checkbox",{model:{value:l.textParam.downListProperty.mutexSelect,callback:function(u){l.$set(l.textParam.downListProperty,"mutexSelect",u)},expression:"textParam.downListProperty.mutexSelect"}},[l._v("选项互斥")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"60px"}},[l._v("分隔符")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:l.textParam.downListProperty.splitCharacter,callback:function(u){l.$set(l.textParam.downListProperty,"splitCharacter",u)},expression:"textParam.downListProperty.splitCharacter"}},[_("el-option",{attrs:{label:",",value:","}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"-",value:"-"}}),_("el-option",{attrs:{label:"\\",value:"\\"}})],1)],1)]):l._e(),_("li",{staticClass:"line"}),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{type:"textarea",size:"mini",placeholder:"提示文本"},model:{value:l.textParam.tipText,callback:function(u){l.$set(l.textParam,"tipText",u)},expression:"textParam.tipText"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内容只读状态")]),_("el-select",{staticStyle:{"text-align":"left"},attrs:{placeholder:"请选择",size:"mini"},model:{value:l.textParam.readOnlyStatus,callback:function(u){l.$set(l.textParam,"readOnlyStatus",u)},expression:"textParam.readOnlyStatus"}},[_("el-option",{attrs:{label:"继承父元素",value:2}}),_("el-option",{attrs:{label:"是",value:0}}),_("el-option",{attrs:{label:"否",value:1}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("固定宽度")]),_("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:l.textParam.fixedWidth,callback:function(u){l.$set(l.textParam,"fixedWidth",u)},expression:"textParam.fixedWidth"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("厘米")])],1),_("li",{staticClass:"line"}),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.canModifyContent,callback:function(u){l.$set(l.textParam,"canModifyContent",u)},expression:"textParam.canModifyContent"}},[l._v("用户可以直接编辑修改内容")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.isAllowDelete,callback:function(u){l.$set(l.textParam,"isAllowDelete",u)},expression:"textParam.isAllowDelete"}},[l._v("允许被删除")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.enableGlobalColor,callback:function(u){l.$set(l.textParam,"enableGlobalColor",u)},expression:"textParam.enableGlobalColor"}},[l._v("启用全局文本颜色")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.textParam.alignWithBlocked,callback:function(u){l.$set(l.textParam,"alignWithBlocked",u)},expression:"textParam.alignWithBlocked"}},[l._v("文本域中的段落使用块对齐(诊断专用)")])],1),_("div",{staticClass:"control-item",staticStyle:{"margin-left":"38px"}},[_("el-checkbox",{model:{value:l.textParam.readType,callback:function(u){l.$set(l.textParam,"readType",u)},expression:"textParam.readType"}},[l._v("自动回填")])],1)])])]),_("tab-pane",{attrs:{label:"其他属性",notHover:!1,name:"third"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)])]),l._t("hoTextFieldModal")],2)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},za=[],Va=function(l){(0,Y.Z)(TextDialog,l);var u=(0,ee.Z)(TextDialog);function TextDialog(){var l;return(0,q.Z)(this,TextDialog),l=u.apply(this,arguments),l.textParam=Object.assign({},Ht),l.textActiveName="first",l.isMinLenth=!1,l.isMaxLenth=!1,l.isMin=!1,l.isMax=!1,l.animationClassNames="control-modal-contents text-modal animation-in",l.customPropertyValue=new Object,l.endPath="",l}return(0,$.Z)(TextDialog,[{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"customsValue",get:function get(){return this.getCustomsValue().filter((function(l){if(l.text||l.value)return l}))}},{key:"listArrSource",get:function get(){return this.getListArrSource()}},{key:"customProperty",get:function get(){return this.getCustomProperty()}},{key:"created",value:function created(){var l=this,u=rt.b.instance().getFactory(this.hoEditorFactoryId);if(this.endPath=u.docTree.curDomRange.normalize().endPath,"update"===this.controlStatus){var _=this.getTextNode();if(Object.keys(this.textParam).forEach((function(u){var v=u.replace(/_/g,"");if(Object.prototype.hasOwnProperty.call(l.textParam,v))if("readOnlyStatus"===v)l.textParam.readOnlyStatus=Number(_.readOnlyStatus);else if("customProperty"===v){(0,Ui.Kn)(_[v])?l.textParam.customProperty=_.customProperty:l.textParam.customProperty=new Object;var C=new Object;Object.keys(l.textParam.customProperty).forEach((function(u){C[u]=l.textParam.customProperty[u]})),l.customPropertyValue=_objectSpread2({},C)}else"readType"===v?l.textParam.readType=1==_.readType:l.textParam[v]=_[v]})),1===this.textParam.inputFieldType){var v=this.textParam.downListProperty.listItems,C=v?JSON.parse(v):[];this.setListStyle(C,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 l,u,_=null===(l=this.vueController.findNodebyPath(this.endPath))||void 0===l?void 0:l.node;if(_ instanceof $t.j||_ instanceof Bt.re){var v=_.parentNode;u=v instanceof Bt.re?v:_}else if(_ instanceof Gt.R){var C=_.parentNode;C instanceof Bt.re&&(u=C)}return u}},{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(l){}},{key:"maxLengthChange",value:function maxLengthChange(l){}},{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 l=[];this.getListStyle().forEach((function(u){u.default&&l.push(u.text)})),this.textParam.text=l.join(",");var u="";this.getListStyle().forEach((function(l,_){l.default&&(u+=l.id+",")})),this.textParam.keyValue=u}else this.textParam.downListProperty=new Bt.OL;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}(k());__decorate([Ref()],Va.prototype,"barcode",void 0),__decorate([Prop()],Va.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],Va.prototype,"controlStatus",void 0),__decorate([Prop()],Va.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],Va.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Va.prototype,"getDataSource",void 0),__decorate([Inject("setIsCustoms")],Va.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Va.prototype,"getCustomsValue",void 0),__decorate([Inject("setListAllowMultiSelected")],Va.prototype,"setListAllowMultiSelected",void 0),__decorate([Inject("setIsListStyle")],Va.prototype,"setIsListStyle",void 0),__decorate([Inject("getListStyle")],Va.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],Va.prototype,"getListArrSource",void 0),__decorate([Inject("setListStyle")],Va.prototype,"setListStyle",void 0),__decorate([Inject("getCustomProperty")],Va.prototype,"getCustomProperty",void 0),Va=__decorate([ae({name:"TextDialog",components:{Tabs:Jo}})],Va);var Ka=Va,Za=Ka,Ja=normalizeComponent(Za,TextDialogvue_type_template_id_52be23a2_render,za,!1,null,null,null),Ya=Ja.exports,es=Ya,ExpressionFormvue_type_template_id_cc393f74_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v(l._s(l.names[l.expressStyle]))]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.cancel}})]),_("section",{staticClass:"expression-form"},["style1"===l.expressStyle?[_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1),_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"line style1-line"}),_("div",{staticClass:"expression-item"},[_("span",[l._v("末次月经/绝经年龄")]),l.isUseDate?_("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:l.useDateFormat,"value-format":l.useDateFormat,placeholder:"日期"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}}):l._e(),l.isUseDate?l._e():_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}})],1)]),_("div",{staticClass:"expression-item"},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)]:l._e(),"style2"===l.expressStyle?[_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1)]),_("div",{staticClass:"line style21-line"}),_("div",{staticClass:"line style22-line"}),_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("末次月经/绝经年龄")]),l.isUseDate?_("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:l.useDateFormat,"value-format":l.useDateFormat,placeholder:"日期"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}}):l._e(),l.isUseDate?l._e():_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}})],1),_("div",{staticClass:"expression-item"},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)])]:l._e(),"style3"===l.expressStyle?[_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1),_("div",{staticClass:"expression-style1"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"line style31-line"}),_("div",{staticClass:"line style32-line"}),_("div",{staticClass:"expression-item",staticStyle:{"margin-left":"73px"}},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)]),_("div",{staticClass:"expression-item"},[_("span",[l._v("末次月经/绝经年龄")]),l.isUseDate?_("el-date-picker",{attrs:{"prefix-icon":"null",type:"date",size:"small",format:l.useDateFormat,"value-format":l.useDateFormat,placeholder:"日期"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}}):l._e(),l.isUseDate?l._e():_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menoPauseAge,callback:function(u){l.$set(l.menstrualHistory,"menoPauseAge",u)},expression:"menstrualHistory.menoPauseAge"}})],1)]:l._e(),"style4"===l.expressStyle?_("div",{staticClass:"style4"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("初潮年龄")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menarcheAge,callback:function(u){l.$set(l.menstrualHistory,"menarcheAge",u)},expression:"menstrualHistory.menarcheAge"}})],1),_("div",{staticClass:"line style41-line"}),_("div",{staticClass:"expression-style4"},[_("div",{staticClass:"expression-item"},[_("span",[l._v("经期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.menseDays,callback:function(u){l.$set(l.menstrualHistory,"menseDays",u)},expression:"menstrualHistory.menseDays"}})],1),_("div",{staticClass:"line style42-line"}),_("div",{staticClass:"expression-item"},[_("span",[l._v("周期(天)")]),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.menstrualHistory.cycleDays,callback:function(u){l.$set(l.menstrualHistory,"cycleDays",u)},expression:"menstrualHistory.cycleDays"}})],1)])]):l._e(),"style1"===l.expressStyle||"style2"===l.expressStyle||"style3"===l.expressStyle?[_("div",{staticClass:"express-date-items"},[_("el-checkbox",{on:{change:l.useDateChange},model:{value:l.isUseDate,callback:function(u){l.isUseDate=u},expression:"isUseDate"}},[l._v("使用日期")])],1),l.isUseDate?_("div",{staticClass:"express-date-items"},[_("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:l.dateFormatChange},model:{value:l.useDateFormat,callback:function(u){l.useDateFormat=u},expression:"useDateFormat"}},[_("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),_("el-option",{attrs:{label:"yyyy/MM/dd",value:"yyyy/MM/dd"}}),_("el-option",{attrs:{label:"yyyy年MM月dd日",value:"yyyy年MM月dd日"}})],1)],1):l._e()]:l._e(),"style5"===l.expressStyle?[_("div",{staticClass:"expression-style5"},[_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value1,callback:function(u){l.$set(l.style567,"value1",u)},expression:"style567.value1"}}),_("div",{staticStyle:{width:"100px"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value2,callback:function(u){l.$set(l.style567,"value2",u)},expression:"style567.value2"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value3,callback:function(u){l.$set(l.style567,"value3",u)},expression:"style567.value3"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value4,callback:function(u){l.$set(l.style567,"value4",u)},expression:"style567.value4"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value5,callback:function(u){l.$set(l.style567,"value5",u)},expression:"style567.value5"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value6,callback:function(u){l.$set(l.style567,"value6",u)},expression:"style567.value6"}}),_("div",{staticStyle:{width:"100px"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value7,callback:function(u){l.$set(l.style567,"value7",u)},expression:"style567.value7"}})],1)]:l._e(),"style6"===l.expressStyle?[_("div",{staticClass:"expression-style5"},[_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value1,callback:function(u){l.$set(l.style567,"value1",u)},expression:"style567.value1"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value2,callback:function(u){l.$set(l.style567,"value2",u)},expression:"style567.value2"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value3,callback:function(u){l.$set(l.style567,"value3",u)},expression:"style567.value3"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value4,callback:function(u){l.$set(l.style567,"value4",u)},expression:"style567.value4"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value5,callback:function(u){l.$set(l.style567,"value5",u)},expression:"style567.value5"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value6,callback:function(u){l.$set(l.style567,"value6",u)},expression:"style567.value6"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value7,callback:function(u){l.$set(l.style567,"value7",u)},expression:"style567.value7"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value8,callback:function(u){l.$set(l.style567,"value8",u)},expression:"style567.value8"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value9,callback:function(u){l.$set(l.style567,"value9",u)},expression:"style567.value9"}})],1)]:l._e(),"style7"===l.expressStyle?[_("div",{staticClass:"expression-style5 style7"},[_("div",{staticClass:"line style71-line"}),_("div",{staticClass:"line style72-line"}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value1,callback:function(u){l.$set(l.style567,"value1",u)},expression:"style567.value1"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value2,callback:function(u){l.$set(l.style567,"value2",u)},expression:"style567.value2"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value3,callback:function(u){l.$set(l.style567,"value3",u)},expression:"style567.value3"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value4,callback:function(u){l.$set(l.style567,"value4",u)},expression:"style567.value4"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value5,callback:function(u){l.$set(l.style567,"value5",u)},expression:"style567.value5"}}),_("el-input",{attrs:{type:"text",size:"small"},model:{value:l.style567.value6,callback:function(u){l.$set(l.style567,"value6",u)},expression:"style567.value6"}})],1)]:l._e(),"style8"===l.expressStyle?[_("div",{staticClass:"style89"},[_("span",{staticClass:"pos-top"},[l._v("上颌")]),_("span",{staticClass:"pos-bottom"},[l._v("下颌")]),_("span",{staticClass:"pos-left"},[l._v("左")]),_("span",{staticClass:"pos-right"},[l._v("右")]),l._m(0),_("ul",[l._l(["8","7","6","5","4","3","2","1"],(function(u){return _("li",{key:u+"a"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topLeft,callback:function(u){l.$set(l.style89,"topLeft",u)},expression:"style89.topLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["1","2","3","4","5","6","7","8"],(function(u){return _("li",{key:u+"b"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topRight,callback:function(u){l.$set(l.style89,"topRight",u)},expression:"style89.topRight"}},[_("el-checkbox-button",{attrs:{size:"mini",label:u}})],1)],1)}))],2),_("ul",[l._l(["8","7","6","5","4","3","2","1"],(function(u){return _("li",{key:u+"c"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomLeft,callback:function(u){l.$set(l.style89,"bottomLeft",u)},expression:"style89.bottomLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["1","2","3","4","5","6","7","8"],(function(u){return _("li",{key:u+"d"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomRight,callback:function(u){l.$set(l.style89,"bottomRight",u)},expression:"style89.bottomRight"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)}))],2)])]:l._e(),"style9"===l.expressStyle?[_("div",{staticClass:"style89 style9"},[_("span",{staticClass:"pos-top"},[l._v("上颌")]),_("span",{staticClass:"pos-bottom"},[l._v("下颌")]),_("span",{staticClass:"pos-left"},[l._v("左")]),_("span",{staticClass:"pos-right"},[l._v("右")]),l._m(1),_("ul",[l._l(["V","IV","III","II","I"],(function(u){return _("li",{key:u+"a"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topLeft,callback:function(u){l.$set(l.style89,"topLeft",u)},expression:"style89.topLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["I","II","III","IV","V"],(function(u){return _("li",{key:u+"b"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.topRight,callback:function(u){l.$set(l.style89,"topRight",u)},expression:"style89.topRight"}},[_("el-checkbox-button",{attrs:{size:"mini",label:u}})],1)],1)}))],2),_("ul",[l._l(["V","IV","III","II","I"],(function(u){return _("li",{key:u+"c"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomLeft,callback:function(u){l.$set(l.style89,"bottomLeft",u)},expression:"style89.bottomLeft"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)})),l._l(["I","II","III","IV","V"],(function(u){return _("li",{key:u+"d"},[_("el-checkbox-group",{attrs:{size:"mini"},model:{value:l.style89.bottomRight,callback:function(u){l.$set(l.style89,"bottomRight",u)},expression:"style89.bottomRight"}},[_("el-checkbox-button",{attrs:{label:u}})],1)],1)}))],2)])]:l._e()],2),_("footer",{staticClass:"dialog-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确 定")]),"style8"===l.expressStyle||"style9"===l.expressStyle?_("el-button",{attrs:{size:"small"},on:{click:l.reset}},[l._v("重 置")]):l._e(),"style8"===l.expressStyle||"style9"===l.expressStyle?_("el-button",{attrs:{size:"small"},on:{click:l.reverse}},[l._v("反 选")]):l._e(),"style8"===l.expressStyle||"style9"===l.expressStyle?_("el-button",{attrs:{size:"small"},on:{click:l.all}},[l._v("全 选")]):l._e(),_("el-button",{attrs:{size:"small"},on:{click:l.cancel}},[l._v("取 消")])],1)])},ts=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"titles"},[_("li",[l._v("第三磨牙")]),_("li",[l._v("第二磨牙")]),_("li",[l._v("第一磨牙")]),_("li",[l._v("第二前磨牙")]),_("li",[l._v("第一前磨牙")]),_("li",[l._v("尖牙")]),_("li",[l._v("侧切牙")]),_("li",[l._v("中切牙")]),_("li",[l._v("中切牙")]),_("li",[l._v("侧切牙")]),_("li",[l._v("尖牙")]),_("li",[l._v("第一前磨牙")]),_("li",[l._v("第二前磨牙")]),_("li",[l._v("第一磨牙")]),_("li",[l._v("第二磨牙")]),_("li",[l._v("第三磨牙")])])},function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"titles"},[_("li",[l._v("第二乳磨牙")]),_("li",[l._v("第一乳磨牙")]),_("li",[l._v("乳尖牙")]),_("li",[l._v("乳侧切牙")]),_("li",[l._v("乳中切牙")]),_("li",[l._v("乳中切牙")]),_("li",[l._v("乳侧切牙")]),_("li",[l._v("乳尖牙")]),_("li",[l._v("第一乳磨牙")]),_("li",[l._v("第二乳磨牙")])])}],rs={name:"ExpressionForm",data:function data(){return{animationClassNames:"control-modal-contents express-dialog animation-in",isUseDate:!1,useDateFormat:"yyyy-MM-dd",names:{style1:"经期史",style2:"经期史",style3:"经期史",style4:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"},menstrualHistory:{menseDays:"",cycleDays:"",menarcheAge:"14",menoPauseAge:"52"},style567:{value1:"1",value2:"2",value3:"3",value4:"4",value5:"5",value6:"6",value7:"7",value8:"8",value9:"9"},style89:{topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]},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"]},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"]},styleObjectArray:{style1:1,style2:1,style3:1,style4:1,style5:2,style6:2,style7:2,style8:3,style9:3}}},props:{controlProperty:{type:Object,required:!0},vueController:{type:Object,required:!0}},inject:["getUpdateNodeValue"],computed:{controlType:function controlType(){return this.controlProperty.controlType},controlStatus:function controlStatus(){return this.controlProperty.controlStatus},expressStyle:function expressStyle(){return this.controlProperty.expressStyle}},created:function created(){if("update"===this.controlStatus){var l=this.getUpdateNodeValue();if(1===this.styleObjectArray[this.expressStyle]){var u=l,_=/^[0-9]*$/,v=u[3];!_.test(v)&&v&&(this.isUseDate=!0,-1!==v.indexOf("-")?this.useDateFormat="yyyy-MM-dd":-1!==v.indexOf("/")?this.useDateFormat="yyyy/MM/dd":-1!==v.indexOf("年")&&(this.useDateFormat="yyyy年MM月dd日")),this.menstrualHistory={menseDays:u[0]?u[0].replace("天",""):"",cycleDays:u[1]?u[1].replace("天",""):"",menarcheAge:u[2]?u[2].replace("岁",""):"",menoPauseAge:v}}else if(2===this.styleObjectArray[this.expressStyle]){var C=l,k=(0,U.Z)(C);this.style567.value1=k[0],this.style567.value2=k[1],this.style567.value3=k[2],this.style567.value4=k[3],this.style567.value5=k[4],this.style567.value6=k[5],this.style567.value7=k[6],this.style567.value8=k[7],this.style567.value9=k[8]}else if(3===this.styleObjectArray[this.expressStyle]){var N=l,B=(0,U.Z)(N);this.style89.topLeft=B[0],this.style89.topRight=B[1],this.style89.bottomLeft=B[2],this.style89.bottomRight=B[3]}}},methods:{useDateChange:function useDateChange(){this.isUseDate?this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:""}):this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:"52"})},dateFormatChange:function dateFormatChange(){this.menstrualHistory.menoPauseAge&&(this.menstrualHistory=_objectSpread2(_objectSpread2({},this.menstrualHistory),{},{menoPauseAge:(0,Lt.vc)(this.menstrualHistory.menoPauseAge,this.useDateFormat)}))},reset:function reset(){this.style89={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]}},all:function all(){"style8"===this.expressStyle&&(this.style89=Object.assign({},this.style8)),"style9"===this.expressStyle&&(this.style89=Object.assign({},this.style9))},reverse:function reverse(){this.reverseOrSort("reverse")},sureSort:function sureSort(){this.reverseOrSort("sort")},reverseOrSort:function reverseOrSort(l){var u=this,_={topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]},v=[];"style8"===this.expressStyle?v=Object.assign({},this.style8):"style9"===this.expressStyle&&(v=Object.assign({},this.style9)),Object.keys(this.style89).map((function(C){v[C].map((function(v){return"reverse"===l?u.style89[C].includes(v)||_[C].push(v):"sort"===l&&(u.style89[C].includes(v)?_[C].push(v):_[C].push("")),v}))})),this.style89=Object.assign({},_)},objectToArray:function objectToArray(l){var u=[];return Object.keys(l).forEach((function(_){u.push(l[_])})),u},cancel:function cancel(){this.animationClassNames="control-modal-contents express-dialog animation-out",this.$emit("closed")},sure:function sure(){if(""===this.expressStyle||"style1"===this.expressStyle||"style2"===this.expressStyle||"style3"===this.expressStyle||"style4"===this.expressStyle){var l=/^[\u2E80-\u9FFF]+$/;l.test(this.menstrualHistory.menseDays)||(this.menstrualHistory.menseDays=this.menstrualHistory.menseDays+"天"),l.test(this.menstrualHistory.cycleDays)||(this.menstrualHistory.cycleDays=this.menstrualHistory.cycleDays+"天"),l.test(this.menstrualHistory.menarcheAge)||(this.menstrualHistory.menarcheAge=this.menstrualHistory.menarcheAge+"岁"),this.insertMenstrualHistory([this.controlStatus,this.expressStyle].concat((0,U.Z)(this.objectToArray(this.menstrualHistory))))}else"style5"===this.expressStyle?this.insertPupilMap([this.controlStatus].concat((0,U.Z)(this.objectToArray(this.style567)))):"style6"===this.expressStyle?this.insertLightLocation([this.controlStatus].concat((0,U.Z)(this.objectToArray(this.style567)))):"style7"===this.expressStyle?this.insertFetalHeartMap([this.controlStatus].concat((0,U.Z)(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()},insertMenstrualHistory:function insertMenstrualHistory(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5];"add"===_?this.vueController.insertMenstrualHistory(_,v,C,k,N,B):this.vueController.updateMenstrualHistory(v,C,k,N,B)},insertPupilMap:function insertPupilMap(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5],W=u[6],q=u[7];"add"===_?this.vueController.insertPupilMap(_,v,C,k,N,B,W,q):this.vueController.updatePupilMap(v,C,k,N,B,W,q)},insertLightLocation:function insertLightLocation(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5],W=u[6],q=u[7],$=u[8],Y=u[9];"add"===_?this.vueController.insertLightLocation(_,v,C,k,N,B,W,q,$,Y):this.vueController.updateLightLocation(v,C,k,N,B,W,q,$,Y)},insertFetalHeartMap:function insertFetalHeartMap(l){var u=(0,U.Z)(l),_=u[0],v=u[1],C=u[2],k=u[3],N=u[4],B=u[5],W=u[6];"add"===_?this.vueController.insertFetalHeartMap(_,v,C,k,N,B,W):this.vueController.updateFetalHeartMap(v,C,k,N,B,W)},insertPermanentTeethMap:function insertPermanentTeethMap(l,u){var _=(0,U.Z)(u),v=_[0],C=_[1],k=_[2],N=_[3];"add"===l?this.vueController.insertPermanentTeethMap(l,v,C,k,N):this.vueController.updatePermanentTeethMap(v,C,k,N)},insertPrimaryTeethMap:function insertPrimaryTeethMap(l,u){var _=(0,U.Z)(u),v=_[0],C=_[1],k=_[2],N=_[3];"add"===l?this.vueController.insertPrimaryTeethMap(l,v,C,k,N):this.vueController.updatePrimaryTeethMap(v,C,k,N)}}},ns=rs,os=normalizeComponent(ns,ExpressionFormvue_type_template_id_cc393f74_scoped_true_render,ts,!1,null,"cc393f74",null),as=os.exports,ls=as,RadioCheckboxvue_type_template_id_6f230d8e_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:"control-modal-contents radio-checkbox-modal "+l.animationClassName,style:{width:1===l.boxGroup?"1060px":"500px"}},[_("header",{staticClass:"modal-title"},[_("span",[l._v(l._s("RadioBox"===l.controlType?"单选框":"复选框")+l._s(1===l.boxGroup?"组":""))]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("类型")]),_("el-radio",{attrs:{disabled:"update"===l.controlStatus,size:"small",label:1},model:{value:l.boxGroup,callback:function(u){l.boxGroup=u},expression:"boxGroup"}},[l._v("多项")]),_("el-radio",{staticStyle:{"margin-left":"30px"},attrs:{disabled:"update"===l.controlStatus,size:"small",label:0},model:{value:l.boxGroup,callback:function(u){l.boxGroup=u},expression:"boxGroup"}},[l._v("单项")])],1),1===l.boxGroup?_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:l.groupName,callback:function(u){l.groupName=u},expression:"groupName"}})],1):l._e(),1===l.boxGroup?_("li",{staticClass:"control-item",staticStyle:{padding:"0"}},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.radioCheckBoxGroup,height:"300px"}},[_("el-table-column",{attrs:{label:"文本",width:"160"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},on:{input:l.addNewItem},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}],null,!1,3552177280)}),_("el-table-column",{attrs:{label:"提示文本",width:"100"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:u.row.tipText,callback:function(_){l.$set(u.row,"tipText",_)},expression:"scope.row.tipText"}})]}}],null,!1,2396764658)}),_("el-table-column",{attrs:{label:"数值",width:"80"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:u.row.numericValue,callback:function(_){l.$set(u.row,"numericValue",_)},expression:"scope.row.numericValue"}})]}}],null,!1,3789767535)}),_("el-table-column",{attrs:{label:"内部标识符",width:"120"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"内部标识符"},model:{value:u.row.innerIdentifier,callback:function(_){l.$set(u.row,"innerIdentifier",_)},expression:"scope.row.innerIdentifier"}})]}}],null,!1,1119088692)}),_("el-table-column",{attrs:{label:"数据元标识符",width:"120"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"数据元标识符"},model:{value:u.row.dataMetaIdentifier,callback:function(_){l.$set(u.row,"dataMetaIdentifier",_)},expression:"scope.row.dataMetaIdentifier"}})]}}],null,!1,479119831)}),_("el-table-column",{attrs:{label:"表示格式",width:"100"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{type:"text",size:"mini",placeholder:"表示格式"},model:{value:u.row.identifierFormat,callback:function(_){l.$set(u.row,"identifierFormat",_)},expression:"scope.row.identifierFormat"}})]}}],null,!1,241604674)}),_("el-table-column",{attrs:{label:"默认选中",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return["RadioBox"===l.controlType?_("el-radio",{staticClass:"table-radio",attrs:{label:u.row.id},model:{value:l.tableRadio,callback:function(u){l.tableRadio=u},expression:"tableRadio"}}):l._e(),"CheckBox"===l.controlType?_("el-checkbox",{model:{value:u.row.isSelected,callback:function(_){l.$set(u.row,"isSelected",_)},expression:"scope.row.isSelected"}}):l._e()]}}],null,!1,1265273066)}),_("el-table-column",{attrs:{label:"勾选框左对齐",width:"54"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.boxAlign,callback:function(_){l.$set(u.row,"boxAlign",_)},expression:"scope.row.boxAlign"}})]}}],null,!1,599012276)}),_("el-table-column",{attrs:{label:"内容转文本",width:"54"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.isTransToText,callback:function(_){l.$set(u.row,"isTransToText",_)},expression:"scope.row.isTransToText"}})]}}],null,!1,1354544746)}),_("el-table-column",{attrs:{label:"编辑文本",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.isEditText,callback:function(_){l.$set(u.row,"isEditText",_)},expression:"scope.row.isEditText"}})]}}],null,!1,3019799127)}),_("el-table-column",{attrs:{label:"可以删除",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.isAllowDelete,callback:function(_){l.$set(u.row,"isAllowDelete",_)},expression:"scope.row.isAllowDelete"}})]}}],null,!1,2012793206)}),_("el-table-column",{attrs:{label:"自动回填",width:"40"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-checkbox",{model:{value:u.row.readType,callback:function(_){l.$set(u.row,"readType",_)},expression:"scope.row.readType"}})]}}],null,!1,373021414)}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")])]}}],null,!1,1240557165)})],1)],1):l._e(),0===l.boxGroup?[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.radioCheckbox.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内部标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"内部标识符"},model:{value:l.radioCheckbox.innerIdentifier,callback:function(u){l.$set(l.radioCheckbox,"innerIdentifier",u)},expression:"radioCheckbox.innerIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据元标识符")]),_("el-input",{attrs:{size:"mini",placeholder:"数据元标识符"},model:{value:l.radioCheckbox.dataMetaIdentifier,callback:function(u){l.$set(l.radioCheckbox,"dataMetaIdentifier",u)},expression:"radioCheckbox.dataMetaIdentifier"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("表示格式")]),_("el-input",{attrs:{size:"mini",placeholder:"表示格式"},model:{value:l.radioCheckbox.identifierFormat,callback:function(u){l.$set(l.radioCheckbox,"identifierFormat",u)},expression:"radioCheckbox.identifierFormat"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("名称")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"名称"},model:{value:l.radioCheckbox.groupName,callback:function(u){l.$set(l.radioCheckbox,"groupName",u)},expression:"radioCheckbox.groupName"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("文本")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"文本"},model:{value:l.radioCheckbox.text,callback:function(u){l.$set(l.radioCheckbox,"text",u)},expression:"radioCheckbox.text"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("提示文本")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"提示文本"},model:{value:l.radioCheckbox.tipText,callback:function(u){l.$set(l.radioCheckbox,"tipText",u)},expression:"radioCheckbox.tipText"}})],1),_("li",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.radioCheckbox.isSelected,callback:function(u){l.$set(l.radioCheckbox,"isSelected",u)},expression:"radioCheckbox.isSelected"}},[l._v("处于选择状态")]),_("el-checkbox",{model:{value:l.radioCheckbox.isAllowDelete,callback:function(u){l.$set(l.radioCheckbox,"isAllowDelete",u)},expression:"radioCheckbox.isAllowDelete"}},[l._v("可以删除")]),_("el-checkbox",{model:{value:l.radioCheckbox.boxAlign,callback:function(u){l.$set(l.radioCheckbox,"boxAlign",u)},expression:"radioCheckbox.boxAlign"}},[l._v("勾选框左对齐")]),_("el-checkbox",{model:{value:l.radioCheckbox.readType,callback:function(u){l.$set(l.radioCheckbox,"readType",u)},expression:"radioCheckbox.readType"}},[l._v("自动回填")]),_("el-checkbox",{model:{value:l.radioCheckbox.isTransToText,callback:function(u){l.$set(l.radioCheckbox,"isTransToText",u)},expression:"radioCheckbox.isTransToText"}},[l._v("内容转文本")]),_("el-checkbox",{model:{value:l.radioCheckbox.isEditText,callback:function(u){l.$set(l.radioCheckbox,"isEditText",u)},expression:"radioCheckbox.isEditText"}},[l._v("编辑文本")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数值")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"数值"},model:{value:l.radioCheckbox.numericValue,callback:function(u){l.$set(l.radioCheckbox,"numericValue",u)},expression:"radioCheckbox.numericValue"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("附加数据")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"附加数据"},model:{value:l.radioCheckbox.additionalData,callback:function(u){l.$set(l.radioCheckbox,"additionalData",u)},expression:"radioCheckbox.additionalData"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("勾选级联对象")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"勾选级联对象"},model:{value:l.radioCheckbox.checkCascadeObject,callback:function(u){l.$set(l.radioCheckbox,"checkCascadeObject",u)},expression:"radioCheckbox.checkCascadeObject"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("不勾选级联对象")]),_("el-input",{attrs:{type:"text",size:"mini",placeholder:"不勾选级联对象"},model:{value:l.radioCheckbox.unCheckCascadeObject,callback:function(u){l.$set(l.radioCheckbox,"unCheckCascadeObject",u)},expression:"radioCheckbox.unCheckCascadeObject"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)]:l._e()],2)]),_("footer",{staticClass:"ho-modal-footer"},[1===l.boxGroup?_("el-button",{staticStyle:{transform:"translateX(-352px)"},attrs:{type:"primary",size:"small"},on:{click:l.addBox}},[l._v("增加"+l._s("RadioBox"===l.controlType?"单选项":"复选项"))]):l._e(),_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},cs=[],us={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},ds=function(l){(0,Y.Z)(RadioCheckbox,l);var u=(0,ee.Z)(RadioCheckbox);function RadioCheckbox(){var l;return(0,q.Z)(this,RadioCheckbox),l=u.apply(this,arguments),l.boxGroup=1,l.groupName="",l.tableRadio="",l.radioCheckBoxGroup=[],l.animationClassName="animation-in",l.radioCheckbox=JSON.parse(JSON.stringify(us)),l.dynamicTags=[],l.inputVisible=!1,l.inputValue="",l}return(0,$.Z)(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 l=this;if("update"===this.controlTypeStatus){var u=this.getRadioCheckNode();Object.keys(this.radioCheckbox).forEach((function(_){"readType"===_?l.radioCheckbox.readType=1==u.readType:l.radioCheckbox[_]=u[_]})),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 l,u,_=rt.b.instance().getFactory(this.hoEditorFactoryId),v=_.docTree.curDomRange.normalize().endPath,C=null===(l=_.vueController.findNodebyPath(v))||void 0===l?void 0:l.node;return C instanceof He.Yh&&(u=C),u}},{key:"addNewItem",value:function addNewItem(){0===this.radioCheckBoxGroup.filter((function(l){return""===l.text})).length&&(this.addBox(),setTimeout((function(){var l=document.querySelector(".el-table__body-wrapper");l&&l.scrollTo(0,1e4)}),0))}},{key:"addBox",value:function addBox(){var l=_objectSpread2({},us);l.id="RadioBox"===this.controlType?this.vueController.generateID("RB"):this.vueController.generateID("CB"),l.groupName=this.groupName,this.radioCheckBoxGroup.push(l)}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.radioCheckBoxGroup.filter((function(_,v){_.id===l&&(u=v)})),this.radioCheckBoxGroup.splice(u,1)}},{key:"sure",value:function sure(){var l=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(u){u.groupName=l.groupName,u.controlStyle=l.controlType,u.id===l.tableRadio&&(u.isSelected=!0),l.vueController.insertRadioAndCheckBox("add",JSON.stringify(u))})),this.handleClose()}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"handleClose",value:function handleClose(){this.animationClassName="animation-out",this.$emit("closed")}}]),RadioCheckbox}(k());__decorate([Ref()],ds.prototype,"saveTagInput",void 0),__decorate([Prop()],ds.prototype,"controlProperty",void 0),__decorate([Prop()],ds.prototype,"hoEditorFactoryId",void 0),__decorate([Prop()],ds.prototype,"controlStatus",void 0),__decorate([Prop()],ds.prototype,"vueController",void 0),__decorate([Inject("setIsDataSource")],ds.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],ds.prototype,"getDataSource",void 0),ds=__decorate([ae({name:"RadioCheckbox"})],ds);var hs=ds,_s=hs,ps=normalizeComponent(_s,RadioCheckboxvue_type_template_id_6f230d8e_scoped_true_render,cs,!1,null,"6f230d8e",null),fs=ps.exports,gs=fs,CommentDialogvue_type_template_id_27b7d6e2_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents comment-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("批注")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:function(u){return l.$emit("closed")}}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_("span",{staticClass:"label"},[l._v("批注内容")]),_("el-input",{attrs:{type:"textarea",size:"mini",autosize:{minRows:6,maxRows:6},clearable:"",placeholder:"批注内容",maxlength:"256","show-word-limit":""},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),l._t("hoCommentModal")],2)]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:function(u){return l.$emit("closed")}}},[l._v("取消")])],1)])},ms=[],vs={name:"CommentDialog",props:{controlStatus:{required:!0},vueController:{require:!0}},inject:["getCustomProperty"],data:function data(){return{textContent:"",commentValue:null}},created:function created(){this.commentValue=this.vueController.getOnSelectedComment(),"update"===this.controlStatus&&this.commentValue&&(this.textContent=this.commentValue.text)},mounted:function mounted(){},methods:{sure:function sure(){var l=this,u=function callback(){l.$emit("closed")};"update"===this.controlStatus?this.$emit("insertComments",{id:this.commentValue.id,content:this.textContent,customProperty:this.getCustomProperty(),type:"update",callback:u}):this.$emit("insertComments",{content:this.textContent,customProperty:this.getCustomProperty(),type:"add",callback:u})}}},ys=vs,bs=normalizeComponent(ys,CommentDialogvue_type_template_id_27b7d6e2_render,ms,!1,null,null,null),ws=bs.exports,xs=ws,CustomAttributesvue_type_template_id_889327aa_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"customsFormModal",staticClass:"control-modal-contents customs-modal",style:{width:l.isTableProperty?"1020px":"400px"},on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("自定义属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[l.isTableProperty?_("div",{staticClass:"table-property-json-edit"},[_("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[_("span",{staticStyle:{"font-size":"14px"}},[l._v('示例:[{"name":"name","value":"value","description":"描述"}]')]),_("el-button",{attrs:{type:"primary",size:"small"},on:{click:l.parseTablePropertyJson}},[l._v("格式化")])],1),_("el-input",{attrs:{rows:13,type:"textarea"},model:{value:l.tablePropertyJson,callback:function(u){l.tablePropertyJson=u},expression:"tablePropertyJson"}}),_("div",{staticStyle:{padding:"10px 0","text-align":"left",color:"#f00"}},[l._v(l._s(l.parseError))]),l._m(0)],1):l._e(),_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.customsValue,"max-height":"520px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"字段名",width:"110"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index,u.row)}},model:{value:u.row.name,callback:function(_){l.$set(u.row,"name",_)},expression:"scope.row.name"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"160"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index,u.row)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),l.isTableProperty?_("el-table-column",{attrs:{label:"描述",width:"160"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index,u.row)}},model:{value:u.row.description,callback:function(_){l.$set(u.row,"description",_)},expression:"scope.row.description"}})]}}],null,!1,2270640960)}):l._e()],1)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Ps=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticStyle:{"text-align":"left",color:"#000","font-size":"12px"}},[_("p",[l._v("提示:")]),_("p",[l._v("Unexpected end of JSON input :不能为空")]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(" ]")]),l._v(" in JSON at position xx :数组结尾字符 "),_("span",{staticStyle:{color:"#f00"}},[l._v("]")]),l._v(" 前不应该有 "),_("span",{staticStyle:{color:"#f00"}},[l._v(",")]),l._v(" 字符")]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(" }")]),l._v(" in JSON at position xx :数组最后一项结尾字符 "),_("span",{staticStyle:{color:"#f00"}},[l._v("}")]),l._v(" 前不应该有 "),_("span",{staticStyle:{color:"#f00"}},[l._v(",")]),l._v(" 字符")]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(" n")]),l._v(" in JSON at position xx :检查name, value, description 是否缺少"),_("span",{staticStyle:{color:"#f00"}},[l._v('""')])]),_("p",[l._v("Unexpected token"),_("span",{staticStyle:{color:"#f00"}},[l._v(",")]),l._v(" in JSON at position xx:一般是出现中文字符"),_("span",{staticStyle:{color:"#f00"}},[l._v(",‘ “ ")]),l._v(" 等")])])}],Cs={name:"CustomAttributes",props:{isTableProperty:{required:!0}},mixins:[jt],inject:["setIsCustoms","getCustomsValue","setCustomsValue"],data:function data(){return{focusIndexs:-1,parseError:"",tablePropertyJson:"",customsFormModal:null}},computed:{customsValue:function customsValue(){var l=this.getCustomsValue();return this.tablePropertyJson=JSON.stringify(l),l}},mounted:function mounted(){this.customsFormModal=this.$refs.customsFormModal},methods:{parseTablePropertyJson:function parseTablePropertyJson(){this.parseError="";try{var l=JSON.parse(this.tablePropertyJson);Array.isArray(l)?(l.push({name:"",value:"",description:""}),this.setCustomsValue((0,U.Z)(l))):this.parseError="JSON 内容无法解析为数组格式"}catch(u){this.parseError=u}},focusIndex:function focusIndex(l){this.focusIndexs=l},inputIndex:function inputIndex(l,u){""==u.name&&""==u.value&&l!==this.customsValue.length-1?this.customsValue.splice(l,1):l===this.customsValue.length-1&&this.customsValue.push({name:"",value:"",description:""})},addCustoms:function addCustoms(){this.customsValue.push({name:"",value:"",description:""})},arrToObject:function arrToObject(){var l={};return this.customsValue.map((function(u){l[u.name]=u.value})),l},sure:function sure(){this.setCustomsValue(this.customsValue),this.closeTimeout()},handleClose:function handleClose(l){var u=l.target,_=document.querySelector(".control-modal");_.contains(u)||this.closeTimeout()},closeTimeout:function closeTimeout(){var l=this;setTimeout((function(){l.setIsCustoms(!1)}),0)},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.customsFormModal,"modal-title")}}},Es=Cs,Ss=normalizeComponent(Es,CustomAttributesvue_type_template_id_889327aa_scoped_true_render,Ps,!1,null,"889327aa",null),Ts=Ss.exports,Ds=Ts,DataSourcevue_type_template_id_65150f69_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"dataSourceModal",staticClass:"control-modal-contents data-modal",on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("绑定数据源")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",staticStyle:{padding:"10px"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{model:{value:l.dataSource.dataSourceEnabled,callback:function(u){l.$set(l.dataSource,"dataSourceEnabled",u)},expression:"dataSource.dataSourceEnabled"}},[l._v("数据源绑定设置有效")])],1)]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-input",{attrs:{size:"mini",disabled:!l.dataSource.dataSourceEnabled,placeholder:"数据源"},model:{value:l.dataSource.dataSource,callback:function(u){l.$set(l.dataSource,"dataSource",u)},expression:"dataSource.dataSource"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("格式化")]),_("el-input",{attrs:{size:"mini",disabled:!l.dataSource.dataSourceEnabled,placeholder:"格式化"},model:{value:l.dataSource.format,callback:function(u){l.$set(l.dataSource,"format",u)},expression:"dataSource.format"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("访问路径")]),_("el-input",{attrs:{size:"mini",disabled:!l.dataSource.dataSourceEnabled,placeholder:"访问路径"},model:{value:l.dataSource.visitPath,callback:function(u){l.$set(l.dataSource,"visitPath",u)},expression:"dataSource.visitPath"}})],1),_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{attrs:{disabled:!l.dataSource.dataSourceEnabled},model:{value:l.dataSource.isReadOnly,callback:function(u){l.$set(l.dataSource,"isReadOnly",u)},expression:"dataSource.isReadOnly"}},[l._v("只读")])],1)]),_("li",{staticClass:"control-item"},[_("div",[_("el-checkbox",{attrs:{disabled:!l.dataSource.dataSourceEnabled},model:{value:l.dataSource.autoUpdate,callback:function(u){l.$set(l.dataSource,"autoUpdate",u)},expression:"dataSource.autoUpdate"}},[l._v("自动更新,当加载文档或者数据源发生改变时自动更新数值")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("执行状态")]),_("el-select",{staticStyle:{"text-align":"left"},attrs:{disabled:!l.dataSource.dataSourceEnabled,placeholder:"请选择",size:"mini"},model:{value:l.dataSource.executeStatus,callback:function(u){l.$set(l.dataSource,"executeStatus",u)},expression:"dataSource.executeStatus"}},[_("el-option",{attrs:{label:"总是执行",value:0}}),_("el-option",{attrs:{label:"只执行一次",value:1}}),_("el-option",{attrs:{label:"不执行",value:2}})],1)],1)])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},ks=[],Is={name:"DataSourceDialog",props:{},inject:["getDataSource","setIsDataSource","setDataSource"],data:function data(){return{dataSourceModal:null}},mixins:[jt],computed:{dataSource:function dataSource(){return this.getDataSource()}},mounted:function mounted(){this.dataSourceModal=this.$refs.dataSourceModal},methods:{sure:function sure(){this.setDataSource(this.dataSource),this.closeTimeout()},handleClose:function handleClose(l){var u=l.target,_=document.querySelector(".control-modal");_.contains(u)||this.closeTimeout()},closeTimeout:function closeTimeout(){var l=this;setTimeout((function(){l.setIsDataSource(!1)}),0)},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.dataSourceModal,"modal-title")}}},Ms=Is,Ns=normalizeComponent(Ms,DataSourcevue_type_template_id_65150f69_render,ks,!1,null,null,null),Os=Ns.exports,Ls=Os,ListSourcevue_type_template_id_08d9ce14_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:l.handleClose,expression:"handleClose"}],ref:"listSourceModal",staticClass:"control-modal-contents list-source-modal",on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("下拉列表")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item",staticStyle:{width:"100%"}},[_("span",{staticClass:"label",staticStyle:{width:"42px"}},[l._v("来源")]),_("el-input",{attrs:{size:"mini",placeholder:"来源"},model:{value:l.source,callback:function(u){l.source=u},expression:"source"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"42px"}},[l._v("列表")]),_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.listValue,height:"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{attrs:{label:"类型",width:"70"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"mini"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.type,callback:function(_){l.$set(u.row,"type",_)},expression:"scope.row.type"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return[u.row.default?_("span",{staticClass:"tags"},[l._v("默认")]):l._e(),u.row.default?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.cancelDefault(u.row.id)}}},[l._v("取消")]):l._e(),!u.row.default&&u.row.text?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.setDefault(u.row.id)}}},[l._v("设为默认")]):l._e(),u.$index!==l.listValue.length-1&&l.focusIndexs===u.$index?_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")]):l._e()]}}])})],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},As=[],Rs=function(l){(0,Y.Z)(ListSource,l);var u=(0,ee.Z)(ListSource);function ListSource(){var l;return(0,q.Z)(this,ListSource),l=u.apply(this,arguments),l.focusIndexs=-1,l.source="",l.tableInfo=null,l.errorArr=[],l.errorIndex=[],l.listValue=[],l.isAllowMultiSelected=!1,l}return(0,$.Z)(ListSource,[{key:"mounted",value:function mounted(){this.init()}},{key:"init",value:function init(){var l=[{text:"",value:"",type:0,id:this.getKeyId()}],u=[],_=this.getListStyle();_&&_.length>0&&(u=(0,U.Z)(this.getListStyle())),this.listValue=[].concat((0,U.Z)(u),l),this.source=this.getListArrSource(),this.isAllowMultiSelected=this.getListAllowMultiSelected(),this.tableInfo=document.querySelector(".el-table__body-wrapper")}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.listValue[l];if(""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.listValue.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.listValue.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0)this.errorIndex.includes(u.id)||this.errorIndex.push(u.id);else{this.errorIndex=[];var _=this.listValue.filter((function(l){if(""===(null===l||void 0===l?void 0:l.value.replace(/\s*/g,""))&&""===(null===l||void 0===l?void 0:l.text.replace(/\s*/g,"")))return l}));0===_.length&&this.addCustoms()}}},{key:"inputIndex",value:function inputIndex(l){var u=this,_=this.listValue[l];this.errorArr=(0,U.Z)(this.listValue.filter((function(l){if(l.text===(null===_||void 0===_?void 0:_.text)&&l.id!==(null===_||void 0===_?void 0:_.id))return l})));var v=(0,U.Z)(this.listValue.filter((function(l){if(!l.text&&!l.value)return l})));this.errorArr.length>0?(this.errorIndex.includes(_.id)||this.errorIndex.push(_.id),v.forEach((function(l){u.deleteCurrentRow(l.id)}))):(this.errorIndex=[],0===v.length&&this.addCustoms())}},{key:"addCustoms",value:function addCustoms(){var l=this;this.listValue.push({text:"",value:"",type:0,id:this.getKeyId(),default:!1}),setTimeout((function(){l.tableInfo&&l.tableInfo.scrollTo(0,1e4)}),0)}},{key:"setDefault",value:function setDefault(l){var u=this;this.listValue=(0,U.Z)(this.listValue.map((function(_){return _.id===l?""!==_.text.replace(/\s*/g,"")&&(_.default=!0):u.isAllowMultiSelected||(_.default=!1),_})))}},{key:"cancelDefault",value:function cancelDefault(l){this.listValue=(0,U.Z)(this.listValue.map((function(u){return u.id===l&&(u.default=!1),u})))}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.listValue.filter((function(_,v){_.id===l&&(u=v)})),this.listValue.splice(u,1)}},{key:"arrToObject",value:function arrToObject(){var l={};return this.listValue.map((function(u){var _=u;l[_.text]=_.value})),l}},{key:"sure",value:function sure(){if(0!==this.errorArr.length)return!1;var l=this.listValue.filter((function(l){if(l.text||l.value)return l}));this.setListStyle(l,this.source),this.closeTimeout()}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"handleClose",value:function handleClose(){this.closeTimeout()}},{key:"closeTimeout",value:function closeTimeout(){var l=this;setTimeout((function(){l.setIsListStyle(!1),l.listValue=[]}),0)}},{key:"toolModalDown",value:function toolModalDown(l){(0,Lt.tC)(l,this.listSourceModal,"modal-title")}}]),ListSource}(mixins(jt));__decorate([Ref()],Rs.prototype,"listSourceModal",void 0),__decorate([Inject("setIsListStyle")],Rs.prototype,"setIsListStyle",void 0),__decorate([Inject("setListStyle")],Rs.prototype,"setListStyle",void 0),__decorate([Inject("getListAllowMultiSelected")],Rs.prototype,"getListAllowMultiSelected",void 0),__decorate([Inject("getListStyle")],Rs.prototype,"getListStyle",void 0),__decorate([Inject("getListArrSource")],Rs.prototype,"getListArrSource",void 0),Rs=__decorate([ae({name:"ListSource"})],Rs);var Fs=Rs,js=Fs,Bs=normalizeComponent(js,ListSourcevue_type_template_id_08d9ce14_scoped_true_render,As,!1,null,"08d9ce14",null),Us=Bs.exports,Hs=Us,PageInfoesvue_type_template_id_0c37255e_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:"control-modal-contents pageinfoes-modal "+l.animationClassName},[_("header",{staticClass:"modal-title"},[_("span",[l._v("页码页数信息")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("内容")]),_("el-radio",{attrs:{size:"small",label:0},model:{value:l.content,callback:function(u){l.content=u},expression:"content"}},[l._v("页码")]),_("el-radio",{attrs:{size:"small",label:1},model:{value:l.content,callback:function(u){l.content=u},expression:"content"}},[l._v("总页数")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数字显示格式")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"数字显示格式",size:"mini"},model:{value:l.format,callback:function(u){l.format=u},expression:"format"}},[_("el-option",{attrs:{label:"1. 2. 3. 4. ···",value:0}}),_("el-option",{attrs:{label:"一. 二. 三. 四. ···",value:1}})],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Ws=[],qs=function(l){(0,Y.Z)(PageInfoes,l);var u=(0,ee.Z)(PageInfoes);function PageInfoes(){var l;return(0,q.Z)(this,PageInfoes),l=u.apply(this,arguments),l.content=0,l.format=0,l.animationClassName="animation-in",l}return(0,$.Z)(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}(k());__decorate([Prop()],qs.prototype,"vueController",void 0),qs=__decorate([ae({name:"PageInfoes"})],qs);var zs=qs,Vs=zs,Ks=normalizeComponent(Vs,PageInfoesvue_type_template_id_0c37255e_scoped_true_render,Ws,!1,null,"0c37255e",null),$s=Ks.exports,Gs=$s,Delimitervue_type_template_id_228db06f_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("分割符")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",staticStyle:{padding:"20px"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("宽度")]),_("el-input-number",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini",precision:2,min:0,controls:!1},model:{value:l.width,callback:function(u){l.width=u},expression:"width"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("px")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("颜色")]),_("ho-color-picker",{model:{value:l.color,callback:function(u){l.color=u},expression:"color"}})],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.insertDelimiter}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Zs=[],HoColorPickervue_type_template_id_6f7e38c3_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:l.closed,expression:"closed"}],ref:"colorPicker",staticClass:"ho-color-picker"},[_("div",{staticClass:"color-btn",class:{disabled:l.disabled},style:{"background-color":l.showColor,"border-color":"#ffffff"===l.showColor.toLowerCase()?"#333":"transparent"},on:{click:l.openPanel}}),_("div",{staticClass:"box",class:{open:l.openStatus}},[_("div",{staticClass:"hd"},[_("div",{staticClass:"color-view",style:"background-color: "+l.showPanelColor}),_("div",{staticClass:"default-color",on:{click:l.handleDefaultColor,mouseover:function(u){l.hoveColor=l.defaultColor},mouseout:function(u){l.hoveColor=null}}},[l._v("默认颜色")])]),_("div",{staticClass:"bd"},[_("h3",[l._v("主题颜色")]),_("ul",{staticClass:"t-color"},l._l(l.tColor,(function(u,v){return _("li",{key:v,style:{backgroundColor:u},on:{mouseover:function(_){l.hoveColor=u},mouseout:function(u){l.hoveColor=null},click:function(_){return l.updataValue(u)}}})})),0),_("h3",[l._v("标准颜色")]),_("ul",{staticClass:"t-color"},l._l(l.bColor,(function(u,v){return _("li",{key:v,style:{backgroundColor:u},on:{mouseover:function(_){l.hoveColor=u},mouseout:function(u){l.hoveColor=null},click:function(_){return l.updataValue(u)}}})})),0)])])])},Js=[],Xs={name:"HoColorPicker",props:{value:{required:!0},defaultColor:{default:"#000000"},disabled:{default:!1}},data:function data(){return{openStatus:!1,hoveColor:null,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"],colorConfig:[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],bColor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],html5Color:this.value}},computed:{showPanelColor:function showPanelColor(){return this.hoveColor?this.hoveColor:this.showColor},showColor:function showColor(){return this.value?this.value:this.defaultColor}},methods:{openPanel:function openPanel(){this.openStatus=!this.disabled},updataValue:function updataValue(l){this.$emit("input",l),this.$emit("change",l),this.openStatus=!1},closed:function closed(){this.openStatus=!1},handleDefaultColor:function handleDefaultColor(){this.updataValue(this.defaultColor)},parseColor:function parseColor(l){if(4!==l.length)return l;l="#"+l[1]+l[1]+l[2]+l[2]+l[3]+l[3]},rgbToHex:function rgbToHex(l,u,_){var v=(l<<16|u<<8|_).toString(16);return"#"+new Array(Math.abs(v.length-7)).join("0")+v},hexToRgb:function hexToRgb(l){l=this.parseColor(l);for(var u=[],_=1;_<7;_+=2)u.push(parseInt("0x"+l.slice(_,_+2)));return u},gradient:function gradient(l,u,_){for(var v=this.hexToRgb(l),C=this.hexToRgb(u),k=(C[0]-v[0])/_,N=(C[1]-v[1])/_,B=(C[2]-v[2])/_,U=[],W=0;W<_;W++)U.push(this.rgbToHex(k*W+v[0],N*W+v[1],B*W+v[2]));return U}}},Ys=Xs,Qs=normalizeComponent(Ys,HoColorPickervue_type_template_id_6f7e38c3_scoped_true_render,Js,!1,null,"6f7e38c3",null),el=Qs.exports,tl={name:"Delimiter",components:{HoColorPicker:el},data:function data(){return{width:1,color:"#000",animationClassNames:"control-modal-contents delimiter-modal animation-in"}},props:{vueController:{type:Object,required:!0}},methods:{insertDelimiter:function insertDelimiter(){this.vueController.insertSeparateChar(this.width,this.color),this.handleClose()},handleClose:function handleClose(){this.animationClassNames="control-modal-contents delimiter-modal animation-out",this.$emit("closed")}}},rl=tl,nl=normalizeComponent(rl,Delimitervue_type_template_id_228db06f_render,Zs,!1,null,null,null),il=nl.exports,ol=il,Signvue_type_template_id_38b332be_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("签名")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",staticStyle:{padding:"20px"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名名称")]),_("el-input",{staticStyle:{width:"120px",display:"flex"},attrs:{size:"mini"},model:{value:l.name,callback:function(u){l.name=u},expression:"name"}})],1),_("li",{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_("span",{staticClass:"label"},[l._v("签名类型")]),_("div",{staticStyle:{flex:"1"}},[_("el-radio",{attrs:{label:1},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("患者签名")]),_("el-radio",{attrs:{label:0},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("医生签名")]),_("el-radio",{attrs:{label:3},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("自定义医生签名")]),_("el-radio",{attrs:{label:2},model:{value:l.signType,callback:function(u){l.signType=u},expression:"signType"}},[l._v("自定义CA签名")])],1)]),l.signType>=3?[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名格式")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.signFormat,callback:function(u){l.signFormat=u},expression:"signFormat"}},[_("el-option",{attrs:{label:"<医师姓名>",value:"<医师姓名>"}}),_("el-option",{attrs:{label:"<医师姓名>(<医师职称>)",value:"<医师姓名>(<医师职称>)"}}),_("el-option",{attrs:{label:"<医师姓名>:<医师职称>",value:"<医师姓名>:<医师职称>"}}),_("el-option",{attrs:{label:"<医师姓名>:<医师职称>\\n<签名时间>",value:"<医师姓名>:<医师职称>\\n<签名时间>"}}),l._l(l.customSignFormatList,(function(l){return _("el-option",{key:l.label,attrs:{label:l.label,value:l.value}})}))],2)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名时间格式")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.signTimeFormat,callback:function(u){l.signTimeFormat=u},expression:"signTimeFormat"}},[_("el-option",{attrs:{label:"yyyy-MM-DD HH:mm:ss",value:"yyyy-MM-DD HH:mm:ss"}}),_("el-option",{attrs:{label:"yyyy-MM-DD HH:mm",value:"yyyy-MM-DD HH:mm"}}),_("el-option",{attrs:{label:"yyyy/MM/DD HH:mm:ss",value:"yyyy/MM/DD HH:mm:ss"}}),_("el-option",{attrs:{label:"yyyy/MM/DD HH:mm",value:"yyyy/MM/DD HH:mm"}}),_("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分ss秒",value:"yyyy年MM月DD日 HH时mm分ss秒"}}),_("el-option",{attrs:{label:"yyyy年MM月DD日 HH时mm分",value:"yyyy年MM月DD日 HH时mm分"}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("签名连接方式")]),_("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:l.connectMode,callback:function(u){l.connectMode=u},expression:"connectMode"}},[_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"换行",value:"换行"}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:",",value:","}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"}),_("el-checkbox",{model:{value:l.isFront,callback:function(u){l.isFront=u},expression:"isFront"}},[l._v("连接符前置")]),_("el-tooltip",{attrs:{placement:"right",effect:"dark"}},[_("div",{attrs:{slot:"content"},slot:"content"},[l._v("不勾选参数:     医师签名 / "),_("br"),l._v("   勾选参数:     / 医师签名")]),_("i",{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"}),_("el-checkbox",{model:{value:l.allowEditSignTime,callback:function(u){l.allowEditSignTime=u},expression:"allowEditSignTime"}},[l._v("允许修改签名时间")])],1)]:l._e()],2),l.signType>=3?_("div",{staticClass:"section-right"},[_("div",{staticClass:"custom-format-tool-box"},[_("ul",{staticClass:"custom-format-tool"},[_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<医师姓名>"}}},[l._v("医师姓名")]),_("i",{staticClass:"el-icon-circle-plus"})],1),_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<医师工号>"}}},[l._v("医师工号")]),_("i",{staticClass:"el-icon-circle-plus"})],1),_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<医师职称>"}}},[l._v("医师职称")]),_("i",{staticClass:"el-icon-circle-plus"})],1),_("li",[_("el-button",{attrs:{size:"small",plain:""},on:{click:function(u){l.customFormatContent+="<签名时间>"}}},[l._v("签名时间")]),_("i",{staticClass:"el-icon-circle-plus"})],1)]),_("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:l.customFormatContent,callback:function(u){l.customFormatContent=u},expression:"customFormatContent"}})],1),_("p",[l._v("提示:")]),_("p",[l._v("1. 尖括号内的内容用来替换, 不能修改")]),_("p",[l._v("2. 尖括号外的内容处理格式,可以编辑")]),_("p",[l._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_("div",{staticClass:"custom-format-tool-btn"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.createSignFormat}},[l._v("添加自定义签名格式")])],1)]):l._e()]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.insertSign}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},al=[],sl=function(l){(0,Y.Z)(Sign,l);var u=(0,ee.Z)(Sign);function Sign(){var l;return(0,q.Z)(this,Sign),l=u.apply(this,arguments),l.height=20,l.name="",l.signType=0,l.signFormat="<医师姓名>",l.connectMode="换行",l.isFront=!1,l.allowEditSignTime=!1,l.signTimeFormat="yyyy-MM-DD HH:mm",l.customFormatContent="",l.customSignFormatList=[],l.animationClassNames="control-modal-contents sign-modal animation-in",l}return(0,$.Z)(Sign,[{key:"createSignFormat",value:function createSignFormat(){var l=JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g,""),u=["<医师姓名>","<医师职称>","<医师工号>","<签名时间>"];if(this.$elMessage.closeAll(),0!==u.filter((function(u){return l.includes(u)})).length){var _=["<医师姓名>","<医师姓名>(<医师职称>)","<医师姓名>:<医师职称>","<医师姓名>:<医师职称>\n<签名时间>"].concat();this.customSignFormatList.forEach((function(l){return _.push(l.value)})),_.filter((function(u){return u===l.slice(1,l.length-1)})).length>0?this.$elMessage.warning({message:"签名格式已存在无需插入,已自动选中",duration:3e3,offset:120}):this.customSignFormatList.push({label:l.slice(1,l.length-1),value:l.slice(1,l.length-1)}),this.signFormat=l.slice(1,l.length-1)}else this.$elMessage.warning({message:"至少需要插入'<医师姓名>', '<医师职称>', '<医师工号>', '<签名时间>'中的一种",duration:3e3,offset:120})}},{key:"insertSign",value:function insertSign(){if(3===this.signType)this.vueController.insertEmptySignNode(this.name?this.name:"医生签名",1,this.signFormat,this.signTimeFormat,this.connectMode,this.isFront,this.allowEditSignTime,0);else{var l=this.name?this.name:1==this.signType?"患者签名":"医生签名";this.vueController.insertEmptySignNode(l,0,"","","",void 0,void 0,this.signType)}this.handleClose()}},{key:"handleClose",value:function handleClose(){this.animationClassNames="control-modal-contents sign-modal animation-out",this.$emit("closed")}}]),Sign}(k());__decorate([Prop()],sl.prototype,"vueController",void 0),__decorate([Prop()],sl.prototype,"controlStatus",void 0),sl=__decorate([ae({name:"Sign",components:{HoColorPicker:el}})],sl);var ll=sl,cl=ll,ul=normalizeComponent(cl,Signvue_type_template_id_38b332be_render,al,!1,null,null,null),dl=ul.exports,hl=dl,UploadImageDialogvue_type_template_id_40b59089_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("上传图片")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("上传图片")]),_("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":l.fileList,"show-file-list":!1,"auto-upload":!1,"on-change":l.uploadImage,accept:"image/*"}},[_("el-button",{attrs:{size:"small"}},[l._v("选择图片")])],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("修改")]),_("el-radio",{attrs:{label:"w"},model:{value:l.radio,callback:function(u){l.radio=u},expression:"radio"}},[l._v("宽度")]),_("el-radio",{attrs:{label:"h"},model:{value:l.radio,callback:function(u){l.radio=u},expression:"radio"}},[l._v("高度")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("图片宽度")]),_("el-input",{attrs:{disabled:"h"==l.radio,size:"mini",placeholder:"设置插入后的图片宽度",maxlength:"20"},model:{value:l.width,callback:function(u){l.width=u},expression:"width"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("图片高度")]),_("el-input",{attrs:{disabled:"w"==l.radio,size:"mini",placeholder:"设置插入后的图片高度",maxlength:"20"},model:{value:l.height,callback:function(u){l.height=u},expression:"height"}})],1),l.uploadImageParams&&l.uploadImageParams.uploadUrl?[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("图片格式")]),_("el-radio",{attrs:{label:!1},model:{value:l.upload,callback:function(u){l.upload=u},expression:"upload"}},[l._v("生成base64")]),_("el-radio",{attrs:{label:!0},model:{value:l.upload,callback:function(u){l.upload=u},expression:"upload"}},[l._v("上传到服务器")])],1)]:l._e(),l.upload?l._e():[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"}),_("el-checkbox",{model:{value:l.compress,callback:function(u){l.compress=u},expression:"compress"}},[l._v("是否按缩放后尺寸压缩图片")])],1),_("li",{staticStyle:{"text-align":"left",padding:"0 0 0 10px","line-height":"20px"}},[l._v("图片初始大小:"+l._s((l.uploadImageUrl.length/1024).toFixed(2))+" kb")]),_("li",{staticStyle:{"text-align":"left",padding:"0 0 0 10px","line-height":"20px"}},[l._v("压缩后图片大小:"+l._s((l.imageUrl.length/1024).toFixed(2))+" kb")]),_("li",{staticStyle:{"text-align":"left",padding:"0 0 0 10px","line-height":"20px"}},[l._v("图片默认压缩为 jpeg 格式")])],_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{staticClass:"view-image"},[l.imageUrl?_("img",{ref:"image",attrs:{width:this.width,src:l.imageUrl}}):l._e()])])],2)]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",loading:l.uploadLoading,type:"primary"},on:{click:l.sure}},[l._v(l._s(l.uploadLoading?"正在上传。。。":"上传"))]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},_l=[],pl=function uploadImages(l){return new Promise((function(u,_){if(l.url){var v=l.method||"GET",C=l.async||!0,k=new XMLHttpRequest;"GET"===v?(k.open(v,l.url+"?"+Math.random(),C),k.send(null)):"POST"===v&&(k.open(v,l.url,C),k.send(l.data)),k.onreadystatechange=function(){k.responseText&&u(k.responseText)},k.onerror=function(l){_(l)}}}))},fl=function(l){(0,Y.Z)(UploadImageDialog,l);var u=(0,ee.Z)(UploadImageDialog);function UploadImageDialog(){var l;return(0,q.Z)(this,UploadImageDialog),l=u.apply(this,arguments),l.animationClassNames="control-modal-contents image-modal animation-in",l.fileList=[],l.file=null,l.width=0,l.height=0,l.naturalWidth=0,l.naturalHeight=0,l.scale=0,l.heightScale=0,l.imageUrl="",l.uploadImageUrl="",l.uploadLoading=!1,l.radio="w",l.upload=!1,l.compressMethod="q",l.compressResult=.8,l.compress=!0,l.size=0,l}return(0,$.Z)(UploadImageDialog,[{key:"widthChange",value:function widthChange(){this.width&&"w"===this.radio&&(this.height=Math.floor(this.width*this.scale),this.scaleImage())}},{key:"heightChange",value:function heightChange(){this.height&&"h"===this.radio&&(this.width=Math.floor(this.height/this.scale),this.scaleImage())}},{key:"uploadImageParamsChange",value:function uploadImageParamsChange(){this.uploadImageParams&&this.uploadImageParams.uploadUrl&&(this.upload=!0)}},{key:"compressChange",value:function compressChange(){this.scaleImage()}},{key:"mounted",value:function mounted(){this.uploadImageParams&&this.uploadImageParams.uploadUrl&&(this.upload=!0)}},{key:"uploadImage",value:function uploadImage(l){var u=this;this.file=l,this.scale=0;var _=new FileReader;_.onload=function(l){var _=new Image,v=l.target.result;u.imageUrl=v,u.uploadImageUrl=v,_.src=v,_.onload=function(){u.scale=parseFloat((_.height/_.width).toFixed(2)),u.width?u.height=Math.floor(u.width*u.scale):(u.height=_.height,u.width=_.width)}},_.readAsDataURL(l.raw)}},{key:"uploadfwq",value:function uploadfwq(l){var u=this;if(this.uploadLoading=!0,this.uploadImageParams&&this.uploadImageParams.uploadUrl){var _=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",v=new FormData;v.append(_,l.raw),pl({url:this.uploadImageParams.uploadUrl,method:"POST",data:v}).then((function(l){var _,v="";if(null!==(_=u.uploadImageParams)&&void 0!==_&&_.callbackParamName||"string"!==typeof l){var C,k=null===(C=u.uploadImageParams)||void 0===C?void 0:C.callbackParamName;v=l[k]}else v=JSON.parse(l).imgUrl;if(v)if(u.width&&u.height)u.vueController.insertImage(v,u.width,u.height),u.handleClose();else{var N=new Image;N.src=v,N.onload=function(){u.vueController.insertImage(v,N.width,N.height),u.handleClose()}}else u.insertBase64Image()}),(function(){u.insertBase64Image()}))}else this.insertBase64Image()}},{key:"scaleImage",value:function scaleImage(){var l=this;if(this.width&&this.height){var u=function callback(u){l.imageUrl=u};"q"==this.compressMethod?this.compress?(0,Lt.h9)(this.uploadImageUrl,u,Number(this.compressResult),void 0,[this.width,this.height]):(0,Lt.h9)(this.uploadImageUrl,u,Number(this.compressResult),void 0):"s"==this.compressMethod&&(this.compress?(0,Lt.h9)(this.uploadImageUrl,u,void 0,Number(this.compressResult),[this.width,this.height]):(0,Lt.h9)(this.uploadImageUrl,u,void 0,Number(this.compressResult)))}}},{key:"insertBase64Image",value:function insertBase64Image(){var l=this;if(this.width&&this.height)this.vueController.insertImage(this.imageUrl,Number(this.width),Number(this.height)),this.handleClose();else{var u=new Image;u.src=this.imageUrl,u.onload=function(){l.vueController.insertImage(l.imageUrl,u.width,u.height),l.handleClose()}}}},{key:"sure",value:function sure(){this.file?this.uploadfwq(this.file):(Ji().closeAll(),Ji().warning("请选择图片"))}},{key:"handleClose",value:function handleClose(){this.fileList=[],this.file=null,this.width=0,this.height=0,this.naturalWidth=0,this.naturalHeight=0,this.scale=0,this.heightScale=0,this.imageUrl="",this.uploadLoading=!1,this.radio="w",this.upload=!1,this.compressMethod="q",this.compressResult=.8,this.compress=!0,this.size=0,this.animationClassNames="control-modal-contents image-modal animation-out",this.$emit("closed")}}]),UploadImageDialog}(k());__decorate([Prop()],fl.prototype,"controlStatus",void 0),__decorate([Prop()],fl.prototype,"vueController",void 0),__decorate([Prop()],fl.prototype,"uploadImageParams",void 0),__decorate([Watch("width")],fl.prototype,"widthChange",null),__decorate([Watch("height")],fl.prototype,"heightChange",null),__decorate([Watch("uploadImageParams",{deep:!0})],fl.prototype,"uploadImageParamsChange",null),__decorate([Watch("compress")],fl.prototype,"compressChange",null),fl=__decorate([ae({name:"UploadImageDialog"})],fl);var gl=fl,ml=gl,vl=normalizeComponent(ml,UploadImageDialogvue_type_template_id_40b59089_scoped_true_render,_l,!1,null,"40b59089",null),yl=vl.exports,CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"canvas-image",class:l.animationClassNames,style:{width:l.canvasWidth+250+"px",height:l.canvasHeight+150+"px"}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("编辑图片")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content",attrs:{id:"loon_canvas_editor"}},[_("div",{style:{width:l.canvasWidth+"px",height:l.canvasHeight+"px"},attrs:{id:"loon_canvas_editor_box"}},[_("canvas",{style:{width:l.canvasWidth+"px",height:l.canvasHeight+"px"},attrs:{id:"image_canvas",width:l.canvasWidth,height:l.canvasHeight}}),0===l.tool&&l.textAreaStyle.width?_("textarea",{ref:"textCanvas",style:l.textAreaStyle,attrs:{id:"text_canvas"},on:{blur:function(u){return l.drawText()}}}):l._e()])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{type:0===l.tool?"primary":"",size:"small"},on:{click:function(u){l.tool=0}}},[l._v("文字")]),_("el-button",{attrs:{type:1===l.tool?"primary":"",size:"small"},on:{click:function(u){l.tool=1}}},[l._v("画笔")]),_("el-button",{attrs:{size:"small"},on:{click:function(u){return l.canvasUndo()}}},[l._v("撤销")]),_("el-button",{attrs:{size:"small"},on:{click:function(u){return l.canvasRedo()}}},[l._v("恢复")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small",loading:l.uploadLoading,type:"primary"},on:{click:l.sure}},[l._v("保存")]),_("el-button",{attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},bl=[],wl={name:"canvasImageDialog",props:{hoEditorFactoryId:{type:String,required:!0},vueController:{type:Object,required:!0}},data:function data(){return{canvasWidth:500,canvasHeight:400,animationClassNames:"control-modal-contents image-modal animation-in",uploadLoading:!1,lWidth:2,strokeColor:"#FF0000",canvasHistory:[],step:-1,canvas:null,context:null,canvasArea:null,textarea:null,painting:!1,startPoint:{x:void 0,y:void 0},tool:1,textAreaStyle:{},moveDrawCount:0,quadraticCurvePoints:[]}},watch:{tool:function tool(){0===this.tool?this.canvas.removeEventListener("mousemove",this.move):1===this.tool&&this.canvas.addEventListener("mousemove",this.move)},canvasHistory:function canvasHistory(){}},mounted:function mounted(){var l=this;this.canvas=document.querySelector("#image_canvas"),this.canvasArea=document.querySelector("#loon_canvas_editor_box"),this.context=this.canvas.getContext("2d"),this.listenDrawLine();var u=this.getImageNode();if(null===u);else{var _=new Image;_.src=u.imageDataBase64String,_.onload=function(){l.canvasWidth=_.naturalWidth,l.canvasHeight=_.naturalHeight,l.context.clearRect(0,0,l.canvasWidth,l.canvasHeight),setTimeout((function(){l.context.drawImage(_,0,0,l.canvasWidth,l.canvasHeight),l.canvasDraw()}),0)}}},methods:{getImageNode:function getImageNode(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId),u=l.docTree.curOnDragNode;if(u instanceof Sn.H)return u;var _,v=l.docTree.curDomRange.normalize().endPath,C=null===(_=l.vueController.findNodebyPath(v))||void 0===_?void 0:_.node;return C instanceof Sn.H?C:null},listenDrawLine:function listenDrawLine(){this.canvas.addEventListener("mousedown",this.down),this.canvas.addEventListener("mousemove",this.move),this.canvasArea.addEventListener("mouseup",this.up)},clearListenDrawLine:function clearListenDrawLine(){this.canvas.removeEventListener("mousedown",this.down),this.canvas.removeEventListener("mousemove",this.move),this.canvasArea.removeEventListener("mouseup",this.up)},changeTool:function changeTool(l){this.tool=l},down:function down(l){var u=this;this.painting=!0,this.startPoint={x:l.offsetX,y:l.offsetY},this.quadraticCurvePoints.push(this.startPoint),0===this.tool&&(this.textAreaStyle={width:"100px",height:"27px",left:l.offsetX+"px",top:l.offsetY+"px"},setTimeout((function(){u.$refs.textCanvas&&u.$refs.textCanvas.focus()}),0)),l.stopPropagation(),l.preventDefault()},move:function move(l){switch(this.tool){case 0:this.drawText(l);break;case 1:if(this.quadraticCurvePoints.push({x:l.offsetX,y:l.offsetY}),this.quadraticCurvePoints.length>3){var u=this.quadraticCurvePoints.slice(-2),_=u[0],v={x:(u[0].x+u[1].x)/2,y:(u[0].y+u[1].y)/2};this.drawLine(this.startPoint,_,v),this.startPoint=v}break}l.stopPropagation(),l.preventDefault()},up:function up(l){if(0===this.tool&&this.canvas.removeEventListener("mousemove",this.move),this.quadraticCurvePoints.push({x:l.offsetX,y:l.offsetY}),this.quadraticCurvePoints.length>3){var u=this.quadraticCurvePoints.slice(-2),_=u[0],v={x:(u[0].x+u[1].x)/2,y:(u[0].y+u[1].y)/2};this.drawLine(this.startPoint,_,v)}this.quadraticCurvePoints=[],this.painting=!1,1===this.tool&&this.canvasDraw(),l.stopPropagation(),l.preventDefault()},changeText:function changeText(l){l.offsetX-this.startPoint.x>0?this.textAreaStyle.width=l.offsetX-this.startPoint.x+"px":(this.textAreaStyle.width=-(l.offsetX-this.startPoint.x)+"px",this.textAreaStyle.left=l.offsetX+"px"),l.offsetY-this.startPoint.y>0?this.textAreaStyle.height=l.offsetY-this.startPoint.y+"px":(this.textAreaStyle.height=-(l.offsetY-this.startPoint.y)+"px",this.textAreaStyle.top=l.offsetY+"px")},drawText:function drawText(){this.$refs.textCanvas&&this.$refs.textCanvas.value&&(this.context.font="16px 宋体",this.context.fillStyle="#F00",this.context.fillText(this.$refs.textCanvas.value,this.textAreaStyle.left.split("px")[0],Number(this.textAreaStyle.top.split("px")[0])+16),this.canvasDraw(),this.$refs.textCanvas.value="",this.textAreaStyle={})},drawLine:function drawLine(l,u,_){this.painting?(this.context.beginPath(),this.context.lineWidth=this.lWidth,this.context.strokeStyle=this.strokeColor,this.context.lineCap="round",this.context.lineJoin="round",this.context.moveTo(l.x,l.y),this.context.quadraticCurveTo(u.x,u.y,_.x,_.y),this.context.stroke(),this.context.closePath()):this.moveDrawCount=0},canvasDraw:function canvasDraw(){this.step++,this.step<this.canvasHistory.length&&(this.canvasHistory.length=this.step);var l=1,u=this.canvas.toDataURL("image/jpeg",l);while(u.length/1024>100)l-=.01,u=this.canvas.toDataURL("image/jpeg",l);this.canvasHistory.push(this.canvas.toDataURL())},canvasUndo:function canvasUndo(){var l=this;if(this.step>0){this.step--;var u=new Image;u.src=this.canvasHistory[this.step],this.context.clearRect(0,0,this.canvasWidth,this.canvasHeight),u.onload=function(){l.context.drawImage(u,0,0)}}},canvasRedo:function canvasRedo(){var l=this;if(this.step<this.canvasHistory.length-1){this.step++;var u=new Image;u.src=this.canvasHistory[this.step],this.context.clearRect(0,0,this.canvasWidth,this.canvasHeight),u.onload=function(){l.context.drawImage(u,0,0)}}},handleClose:function handleClose(){this.clearListenDrawLine(),this.$emit("closed")},sure:function sure(){var l=this.getImageNode(),u=this.canvasHistory[this.canvasHistory.length-1];l&&u&&(this.vueController.updateImageSrc(l,u),this.handleClose())}}},xl=wl,Pl=normalizeComponent(xl,CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_render,bl,!1,null,"1e0a2026",null),Cl=Pl.exports,ParagraphDialogvue_type_template_id_461dae42_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("段落属性设置")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[l._t("hoParagraph")],2)]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},El=[],Sl={name:"ParagraphDialog",props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0},controlProperty:{type:Object,required:!0}},inject:["getParagraphCustomProperty"],data:function data(){return{textActiveName:"first",animationClassNames:"control-modal-contents paragraph-modal animation-in"}},computed:{domRange:function domRange(){return this.controlProperty.domRange}},methods:{sure:function sure(){var l,u=rt.b.instance().getFactory(this.hoEditorFactoryId),_=null===(l=u.vueController.findNodebyPath(this.domRange.endPath))||void 0===l?void 0:l.node,v=u.drawTree.getDrawLineByDNode(_.drawNodes[0]).paragraphNode;v.setCustomProperty(this.getParagraphCustomProperty()),this.handleClose()},handleClose:function handleClose(){this.animationClassNames="control-modal-contents paragraph-modal animation-out",this.$emit("closed")}}},Tl=Sl,Dl=normalizeComponent(Tl,ParagraphDialogvue_type_template_id_461dae42_render,El,!1,null,null,null),kl=Dl.exports,WaterSetvue_type_template_id_58b59c58_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents water-set animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("水印")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"50px"}},[l._v("内容")]),_("el-input",{attrs:{type:"text",size:"mini",clearable:"",placeholder:"文本内容",maxlength:"20","show-word-limit":""},on:{input:l.codeChange},model:{value:l.textContent,callback:function(u){l.textContent=u},expression:"textContent"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"50px"}},[l._v("角度")]),_("el-radio-group",{attrs:{size:"mini"},on:{change:l.codeChange},model:{value:l.rotate,callback:function(u){l.rotate=u},expression:"rotate"}},[_("el-radio-button",{attrs:{label:0}},[l._v("水平")]),_("el-radio-button",{attrs:{label:1}},[l._v("倾斜")])],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"50px"}},[l._v("颜色")]),_("el-color-picker",{attrs:{"show-alpha":""},on:{change:l.codeChange},model:{value:l.color,callback:function(u){l.color=u},expression:"color"}})],1)]),_("div",{staticClass:"section-right"},[_("fieldset",{staticClass:"fieldset"},[_("legend",[l._v("预 览")]),_("div",{attrs:{id:"water"}},[_("img",{directives:[{name:"show",rawName:"v-show",value:l.waterUrl,expression:"waterUrl"}],attrs:{src:l.waterUrl,alt:"背景水印"}})])])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Il=[],Ml=function(l){(0,Y.Z)(WaterSetDialog,l);var u=(0,ee.Z)(WaterSetDialog);function WaterSetDialog(){var l;return(0,q.Z)(this,WaterSetDialog),l=u.apply(this,arguments),l.textContent="",l.rotate=1,l.waterUrl="",l.color="rgba(0, 0, 0, 0.2)",l}return(0,$.Z)(WaterSetDialog,[{key:"created",value:function created(){var l=this.getWaterMark(),u=(0,B.Z)(l,3);this.textContent=u[0],this.rotate=u[1],this.color=u[2]}},{key:"codeChange",value:function codeChange(){this.setWaterMark(this.textContent,150,150,this.callbacks,this.rotate,this.color)}},{key:"callbacks",value:function callbacks(l){this.waterUrl=l}},{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}(k());__decorate([Prop()],Ml.prototype,"vueController",void 0),__decorate([Inject("setWaterMark")],Ml.prototype,"setWaterMark",void 0),__decorate([Inject("getWaterMark")],Ml.prototype,"getWaterMark",void 0),Ml=__decorate([ae({name:"WaterSetDialog"})],Ml);var Nl=Ml,Ol=Nl,Ll=normalizeComponent(Ol,WaterSetvue_type_template_id_58b59c58_render,Il,!1,null,null,null),Al=Ll.exports,Gestationvue_type_template_id_3cebc89e_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.animationClassNames},[_("header",{staticClass:"modal-title"},[_("span",[l._v("孕周")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("末次月经日期")]),_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",disabled:l.lastMenstruationDateText.length>0,type:"date",format:"yyyy-MM-dd",placeholder:"末次月经日期"},model:{value:l.lastMenstruationDate,callback:function(u){l.lastMenstruationDate=u},expression:"lastMenstruationDate"}})],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("截止日期")]),_("el-date-picker",{attrs:{"prefix-icon":"null",size:"mini",type:"date",format:"yyyy-MM-dd",placeholder:"截止日期"},model:{value:l.usedDate,callback:function(u){l.usedDate=u},expression:"usedDate"}})],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Rl=[],Fl={name:"Gestation",props:{hoEditorFactoryId:{type:String,required:!0},controlStatus:{type:String,required:!0}},data:function data(){return{animationClassNames:"control-modal-contents gestation-modal animation-in",lastMenstruationDate:"",usedDate:"",lastMenstruationDateText:""}},mounted:function mounted(){"update"===this.controlStatus?this.getGestationNode():(this.getLastDate(),this.usedDate=(0,Lt.vc)(new Date))},methods:{getGestationNode:function getGestationNode(){var l,u=rt.b.instance().getFactory(this.hoEditorFactoryId),_=u.docTree.curDomRange.normalize().endPath,v=null===(l=u.vueController.findNodebyPath(_))||void 0===l?void 0:l.node;v instanceof Ti.G&&(v.lastMenstruationDate&&(this.lastMenstruationDate=v.lastMenstruationDate,this.getLastDate()),v.usedDate&&(this.usedDate=v.usedDate))},getLastDate:function getLastDate(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController,u=l.getNodesByName("main",!1,"末次月经");if(u.length>0&&u[0]){var _=u[0].text.replace(/\s+/g,"").replace(/['年'|'月'|'-']/g,"/").replace(/['日']/g,"");_&&(this.lastMenstruationDate=_,this.lastMenstruationDateText=_)}},sure:function sure(){if(!this.lastMenstruationDate)return this.$elMessage.closeAll(),void this.$elMessage.warning("请输入末次月经日期");var l=rt.b.instance().getFactory(this.hoEditorFactoryId).vueController;l.insertGestation(this.controlStatus,this.lastMenstruationDate,this.usedDate),this.handleClose()},handleClose:function handleClose(){this.animationClassNames="control-modal-contents gestation-modal animation-out",this.$emit("closed")}}},jl=Fl,Bl=normalizeComponent(jl,Gestationvue_type_template_id_3cebc89e_render,Rl,!1,null,null,null),Ul=Bl.exports,TablePropertyvue_type_template_id_472d5ba2_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("表格属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canAdjustRowHeight,callback:function(u){l.canAdjustRowHeight=u},expression:"canAdjustRowHeight"}},[l._v("用户可调整行高")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canAdjustRowWidth,callback:function(u){l.canAdjustRowWidth=u},expression:"canAdjustRowWidth"}},[l._v("用户可调整列宽")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canAddRow,callback:function(u){l.canAddRow=u},expression:"canAddRow"}},[l._v("用户可新增表格行列")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canDeleteRow,callback:function(u){l.canDeleteRow=u},expression:"canDeleteRow"}},[l._v("用户可删除表格行列")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.canDeleteTable,callback:function(u){l.canDeleteTable=u},expression:"canDeleteTable"}},[l._v("用户可删除表格")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.continuePrintBorders,callback:function(u){l.continuePrintBorders=u},expression:"continuePrintBorders"}},[l._v("续打时打印所有单元格边框")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.isAutoChangeLine,callback:function(u){l.isAutoChangeLine=u},expression:"isAutoChangeLine"}},[l._v("表格内自动换行")])],1),_("div",{staticStyle:{width:"50%"}},[_("el-checkbox",{model:{value:l.fixedOnePage,callback:function(u){l.fixedOnePage=u},expression:"fixedOnePage"}},[l._v("表格固定在一页")])],1),_("div",{staticStyle:{width:"100%"}},[_("span",{staticStyle:{padding:"0 10px 0 23px"}},[l._v("表格内自动换行行高")]),_("el-input-number",{attrs:{size:"mini",disabled:!l.isAutoChangeLine,step:1,min:0,precision:2,controls:!1},model:{value:l.autoLineHeight,callback:function(u){l.autoLineHeight=u},expression:"autoLineHeight"}}),_("span",{staticStyle:{"padding-left":"6px"}},[l._v(" 厘米")])],1),_("div",{staticStyle:{width:"100%"}},[_("span",{staticStyle:{padding:"0 10px 0 23px"}},[l._v("当前光标所在行行高 "+l._s(l.rowHeightMm)+" 厘米")])])])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Hl=[],Wl=function(l){(0,Y.Z)(TablePoperty,l);var u=(0,ee.Z)(TablePoperty);function TablePoperty(){var l;return(0,q.Z)(this,TablePoperty),l=u.apply(this,arguments),l.id="",l.canAdjustRowHeight=!1,l.canAdjustRowWidth=!1,l.canAddRow=!0,l.canDeleteRow=!0,l.canDeleteTable=!0,l.continuePrintBorders=!1,l.layoutFullLine=!0,l.tightLineSpace=!1,l.isAutoChangeLine=!1,l.fixedOnePage=!1,l.autoLineHeight=0,l.rowHeightMm=0,l.endPath="",l}return(0,$.Z)(TablePoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"created",value:function created(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l);this.endPath=u.docTree.curDomRange.normalize().endPath;var _=this.getTableNodes();_&&(this.id=_.tableProperty.id?_.tableProperty.id:this.vueController.generateID("TB"),this.canAdjustRowHeight=_.tableProperty.canAdjustRowHeight,this.canAdjustRowWidth=_.tableProperty.canAdjustRowWidth,this.canAddRow=_.tableProperty.canAddRow,this.canDeleteRow=_.tableProperty.canDeleteRow,this.canDeleteTable=_.tableProperty.canDeleteTable,this.continuePrintBorders=_.tableProperty.continuePrintBorders,this.layoutFullLine=_.tableProperty.layoutFullLine,this.tightLineSpace=_.tableProperty.tightLineSpace,this.isAutoChangeLine=_.tableProperty.isAutoChangeLine,this.fixedOnePage=_.tableProperty.fixedOnePage,this.autoLineHeight=_.tableProperty.autoLineHeight)}},{key:"getTableNodes",value:function getTableNodes(){var l,u=this.vueController.findNodebyPath(this.endPath).node,_=this.getCellNode(u),v=null===_||void 0===_?void 0:_.table,C=null===_||void 0===_?void 0:_.table.rows.indexOf(null===_||void 0===_?void 0:_.row);if(void 0!==C){var k=null===_||void 0===_?void 0:_.table.rowInfos[C];if(k){var N=rt.b.instance().getFactory(this.hoEditorFactoryId);k.rowProperty.rowHeight?this.rowHeightMm=Number(k.rowProperty.rowHeight.toFixed(2)):this.rowHeightMm=Number((N.unitConvert.pxConversionMm(k.rowHeight,!1)/10).toFixed(2))}}var B=null===v||void 0===v||null===(l=v.tableProperty)||void 0===l?void 0:l.customProperties;return Array.isArray(B)&&B.length>0?this.setCustomsValue([].concat((0,U.Z)(B),[{name:"",value:""}])):B&&Array.isArray(B.customProperty)&&B.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)(B.customProperty),[{name:"",value:"",description:""}])),v}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"sure",value:function sure(){var l=this,u={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,fixedOnePage:this.fixedOnePage,autoLineHeight:this.autoLineHeight},_=this.getTableNodes();this.vueController.tableProperty(JSON.stringify(u),_),this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TablePoperty}(mixins(Gr));__decorate([Prop()],Wl.prototype,"vueController",void 0),__decorate([Prop()],Wl.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsCustoms")],Wl.prototype,"setIsCustoms",void 0),__decorate([Inject("getCustomsValue")],Wl.prototype,"getCustomsValue",void 0),__decorate([Inject("setCustomsValue")],Wl.prototype,"setCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Wl.prototype,"getActiveDocId",void 0),Wl=__decorate([ae({name:"TablePoperty"})],Wl);var ql=Wl,zl=ql,Vl=normalizeComponent(zl,TablePropertyvue_type_template_id_472d5ba2_scoped_true_render,Hl,!1,null,"472d5ba2",null),Kl=Vl.exports,TableRowPropertyvue_type_template_id_c8198e42_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("表格行属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{"padding-right":"20px"}},[_("el-checkbox",{on:{change:l.watchParamsChange},model:{value:l.isSpecifyHeight,callback:function(u){l.isSpecifyHeight=u},expression:"isSpecifyHeight"}},[l._v("指定高度(厘米)")])],1),_("el-input-number",{attrs:{size:"mini",disabled:!l.isSpecifyHeight,precision:2,step:1,min:0,controls:!1,"controls-position":"right"},model:{value:l.rowHeight,callback:function(u){l.rowHeight=u},expression:"rowHeight"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("当前显示高度 "+l._s(l.rowHeightMm)+" 厘米")])],1),_("li",{staticClass:"control-item",staticStyle:{padding:"0 0 0 10px"}},[_("el-checkbox",{attrs:{disabled:!l.isSpecifyHeight},model:{value:l.isLockRowHeight,callback:function(u){l.isLockRowHeight=u},expression:"isLockRowHeight"}},[l._v("锁定行高")])],1),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.repeatAsTitleAtPageTop,callback:function(u){l.repeatAsTitleAtPageTop=u},expression:"repeatAsTitleAtPageTop"}},[l._v("在隔页顶端以标题行形式重复出现")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.sameLineCanAcrossPages,callback:function(u){l.sameLineCanAcrossPages=u},expression:"sameLineCanAcrossPages"}},[l._v("同行内容能跨页")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.forcedPageBreak,callback:function(u){l.forcedPageBreak=u},expression:"forcedPageBreak"}},[l._v("强制分页")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.printCellBorders,callback:function(u){l.printCellBorders=u},expression:"printCellBorders"}},[l._v("打印单元格边框线")])],1),_("div",{staticStyle:{width:"100%"}},[_("el-checkbox",{model:{value:l.printCellBg,callback:function(u){l.printCellBg=u},expression:"printCellBg"}},[l._v("打印单元格背景")])],1)])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},$l=[],Gl=function(l){(0,Y.Z)(TableRowPoperty,l);var u=(0,ee.Z)(TableRowPoperty);function TableRowPoperty(){var l;return(0,q.Z)(this,TableRowPoperty),l=u.apply(this,arguments),l.id="",l.defaultRowProperty={rowHeight:0,isSpecifyHeight:!1,isLockRowHeight:!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}},l.rowHeightMm="0",l.rowHeight=0,l.isSpecifyHeight=!1,l.isLockRowHeight=!1,l.repeatAsTitleAtPageTop=!1,l.sameLineCanAcrossPages=!0,l.forcedPageBreak=!1,l.printCellBorders=!0,l.printCellBg=!0,l.tabKeyInsNewLine=!1,l.paramsChange=[],l.rowInfos=null,l.rowProperty=null,l}return(0,$.Z)(TableRowPoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){this.init()}},{key:"init",value:function init(){var l=this.getCellNodes();if(null!==l){var u=l.table.rows.indexOf(l.row);this.rowInfos=l.table.rowInfos[u]}if(null!==this.rowInfos&&(this.rowProperty=this.rowInfos.rowProperty),null!==this.rowProperty&&null!==this.rowInfos){var _=rt.b.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.isLockRowHeight=this.rowProperty.isLockRowHeight,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=(_.unitConvert.pxConversionMm(this.rowInfos.rowHeight,!1)/10).toFixed(2)}}},{key:"getCellNodes",value:function getCellNodes(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l),_=u.docTree.curDomRange.normalize().endPath,v=this.vueController.findNodebyPath(_).node,C=this.getCellNode(v),k=null===C||void 0===C?void 0:C.table.rows.indexOf(null===C||void 0===C?void 0:C.row);if(k||0===k){var N=null===C||void 0===C?void 0:C.table.rowInfos[k];if(N){var B,W,q,$=null===(B=N.rowProperty)||void 0===B?void 0:B.customProperties;if(Array.isArray($)&&$.length>0?this.setCustomsValue([].concat((0,U.Z)($),[{name:"",value:""}])):$&&Array.isArray($.customProperty)&&$.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)($.customProperty),[{name:"",value:"",description:""}])),null!==(W=N.rowProperty)&&void 0!==W&&W.dataSource)this.setDataSource(null===(q=N.rowProperty)||void 0===q?void 0:q.dataSource);else this.setDataSource()}}return C}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyHeight||(this.rowHeight=0,this.isLockRowHeight=!1)}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"sure",value:function sure(){var l=this,u={id:this.id,customProperties:this.customProperties,dataSource:this.dataSource,isSpecifyHeight:this.isSpecifyHeight,rowHeight:this.rowHeight,isLockRowHeight:this.isLockRowHeight,repeatAsTitleAtPageTop:this.repeatAsTitleAtPageTop,sameLineCanAcrossPages:this.sameLineCanAcrossPages,forcedPageBreak:this.forcedPageBreak,printCellBorders:this.printCellBorders,printCellBg:this.printCellBg,tabKeyInsNewLine:this.tabKeyInsNewLine},_={};Object.keys(u).forEach((function(u){JSON.stringify(l[u])!==JSON.stringify(l.defaultRowProperty[u])&&(_[u]=l[u])})),this.vueController.rowProperty(JSON.stringify(_),this.rowInfos),this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.rowInfos=null,this.rowProperty=null}}]),TableRowPoperty}(mixins(Gr));__decorate([Prop()],Gl.prototype,"vueController",void 0),__decorate([Prop()],Gl.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],Gl.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Gl.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],Gl.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],Gl.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],Gl.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],Gl.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Gl.prototype,"getActiveDocId",void 0),Gl=__decorate([ae({name:"TableRowPoperty"})],Gl);var Zl=Gl,Jl=Zl,Xl=normalizeComponent(Jl,TableRowPropertyvue_type_template_id_c8198e42_scoped_true_render,$l,!1,null,"c8198e42",null),Yl=Xl.exports,TableColPropertyvue_type_template_id_0d009ab0_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-row-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("表格列属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticStyle:{"padding-right":"20px"}},[_("el-checkbox",{on:{change:l.watchParamsChange},model:{value:l.isSpecifyWidth,callback:function(u){l.isSpecifyWidth=u},expression:"isSpecifyWidth"}},[l._v("指定宽度(厘米)")])],1),_("el-input-number",{attrs:{size:"mini",disabled:!l.isSpecifyWidth,step:1,min:0,precision:2,controls:!1},model:{value:l.width,callback:function(u){l.width=u},expression:"width"}}),_("span",{staticStyle:{"padding-left":"10px"}},[l._v("当前显示宽度 "+l._s(l.colWidth)+" 厘米")])],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("垂直对齐方式")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:l.align,callback:function(u){l.align=u},expression:"align"}},[_("el-option",{attrs:{label:"靠上",value:0}}),_("el-option",{attrs:{label:"居中",value:1}}),_("el-option",{attrs:{label:"靠下",value:2}})],1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编辑器属性")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},on:{change:l.editorPropertyChange},model:{value:l.editorProperty,callback:function(u){l.editorProperty=u},expression:"editorProperty"}},[_("el-option",{attrs:{label:"无",value:0}}),_("el-option",{attrs:{label:"下拉列表",value:1}}),_("el-option",{attrs:{label:"日期",value:2}}),_("el-option",{attrs:{label:"数值",value:3}})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("分隔符")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:l.splitCharacter,callback:function(u){l.splitCharacter=u},expression:"splitCharacter"}},[_("el-option",{attrs:{label:",",value:","}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.allowMultiSelected,callback:function(u){l.allowMultiSelected=u},expression:"allowMultiSelected"}},[l._v("允许多选")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.isAllowDel,callback:function(u){l.isAllowDel=u},expression:"isAllowDel"}},[l._v("允许被删除")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.canModifyContent,callback:function(u){l.canModifyContent=u},expression:"canModifyContent"}},[l._v("用户可以直接编辑修改内容")])],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("来源")]),_("el-input",{attrs:{size:"mini"},model:{value:l.source,callback:function(u){l.source=u},expression:"source"}})],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.listItems,"max-height":"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return u.$index!==l.listItems.length-1&&l.focusIndexs===u.$index?[_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")])]:void 0}}],null,!0)})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:2===l.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("日期格式")]),_("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:l.inputStyle,callback:function(u){l.inputStyle=u},expression:"inputStyle"}},l._l(l.dateFormatList,(function(l){return _("el-option",{key:l,attrs:{label:l,value:l}})})),1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:3===l.editorProperty,expression:"editorProperty === 3"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("最小值")]),_("el-input-number",{attrs:{size:"mini",max:Number(l.maxNumVal),min:0,step:10,controls:!1},model:{value:l.minNumVal,callback:function(u){l.minNumVal=u},expression:"minNumVal"}})],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("最大值")]),_("el-input-number",{attrs:{size:"mini",min:Number(l.minNumVal),step:10,controls:!1},model:{value:l.maxNumVal,callback:function(u){l.maxNumVal=u},expression:"maxNumVal"}})],1)])])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},Ql=[],tc=function(l){(0,Y.Z)(TableColPoperty,l);var u=(0,ee.Z)(TableColPoperty);function TableColPoperty(){var l;return(0,q.Z)(this,TableColPoperty),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.id="",l.editorProperty=1,l.align=0,l.width=0,l.isSpecifyWidth=!1,l.listItems=[],l.source="",l.canModifyContent=!0,l.isAllowDel=!0,l.allowMultiSelected=!1,l.splitCharacter=",",l.errorArr=[],l.errorIndex=[],l.focusIndexs=-1,l.inputStyle="yyyy-MM-dd HH:mm:ss",l.colWidth="0",l.maxNumVal=0,l.minNumVal=50,l.defaultColProperty={id:"",editorProperty:0,align:0,width:0,isSpecifyWidth:!1,downListProperty:void 0,dateTimeProperty:void 0,numberProperty:void 0},l.colInfoes=null,l}return(0,$.Z)(TableColPoperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"created",value:function created(){var l=this.getCellNodes();if(null!==l){var u,_=l.row.indexOf(l);this.colInfoes=l.table.colInfos[_];var v=null===(u=this.colInfoes)||void 0===u?void 0:u.colProperty.customProperties;Array.isArray(v)&&v.length>0?this.setCustomsValue([].concat((0,U.Z)(v),[{name:"",value:""}])):v&&Array.isArray(v.customProperty)&&v.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)(v.customProperty),[{name:"",value:"",description:""}]))}if(null!==this.colInfoes){var C,k,N=rt.b.instance().getFactory(this.hoEditorFactoryId),B=this.colInfoes.colProperty;this.id=B.id?B.id:this.vueController.generateID("TB"),this.editorProperty=B.editorProperty?B.editorProperty:0,this.align=B.align?B.align:0;var W=this.getKeyId(0),q=[{value:"",text:"",id:W}];this.listItems=B.downListProperty&&JSON.parse(B.downListProperty.listItems)?[].concat((0,U.Z)(JSON.parse(B.downListProperty.listItems)),q):[].concat(q),this.source=B.downListProperty?B.downListProperty.source:"",this.canModifyContent=!B.downListProperty||B.downListProperty.canModifyContent,this.isAllowDel=!B.downListProperty||B.downListProperty.isAllowDel,this.allowMultiSelected=!!B.downListProperty&&B.downListProperty.allowMultiSelected,this.splitCharacter=B.downListProperty?B.downListProperty.splitCharacter:",",this.inputStyle=null!==(C=B.dateTimeProperty)&&void 0!==C&&C.inputStyle?null===(k=B.dateTimeProperty)||void 0===k?void 0:k.inputStyle:"yyyy-MM-dd",this.maxNumVal=B.numberProperty?B.numberProperty.maxNumVal:0,this.minNumVal=B.numberProperty?B.numberProperty.minNumVal:100,this.width=B.width?B.width:0,this.colWidth=(N.unitConvert.pxConversionMm(this.colInfoes.colWidth,!1)/10).toFixed(2),this.isSpecifyWidth=!!B.isSpecifyWidth}}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"getCellNodes",value:function getCellNodes(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l),_=u.docTree.curDomRange.normalize().endPath,v=this.vueController.findNodebyPath(_).node;return this.getCellNode(v)}},{key:"watchParamsChange",value:function watchParamsChange(){this.isSpecifyWidth||(this.width=0)}},{key:"querySearch",value:function querySearch(l,u){u(Lt.dv)}},{key:"editorPropertyChange",value:function editorPropertyChange(){}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.listItems[l];""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.listItems.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.listItems.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0?this.errorIndex.includes(u.id)||this.errorIndex.push(u.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(l){var u=this.listItems.filter((function(l){if(!l.text&&!l.value)return l}));0===u.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.listItems.filter((function(_,v){_.id===l&&(u=v)})),this.listItems.splice(u,1)}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"sure",value:function sure(){var l,u,_,v=this,C={};if(this.editorProperty===tt.YS.DownList){var k=this.listItems.filter((function(l){if(l.text||l.value)return l}));l={listItems:JSON.stringify(k),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},this.editorProperty!==this.defaultColProperty.editorProperty&&(C.downListProperty=l)}else this.editorProperty===tt.YS.DateTime?(u={inputStyle:this.inputStyle},this.editorProperty!==this.defaultColProperty.editorProperty&&(C.dateTimeProperty=u)):this.editorProperty===tt.YS.Number&&(_={minNumVal:this.minNumVal,maxNumVal:this.maxNumVal},this.editorProperty!==this.defaultColProperty.editorProperty&&(C.numberProperty=_));var N={id:this.id,editorProperty:this.editorProperty,align:this.align,width:this.width,isSpecifyWidth:this.isSpecifyWidth,customProperties:this.customProperties};Object.keys(N).forEach((function(l){JSON.stringify(v[l])!==JSON.stringify(v.defaultColProperty[l])&&(C[l]=v[l])})),this.vueController.colProperty(JSON.stringify(C),this.colInfoes),this.$nextTick((function(){return v.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed"),this.colInfoes=null}}]),TableColPoperty}(mixins(Gr));__decorate([Prop()],tc.prototype,"vueController",void 0),__decorate([Prop()],tc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsCustoms")],tc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],tc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],tc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],tc.prototype,"getActiveDocId",void 0),tc=__decorate([ae({name:"TableColPoperty"})],tc);var rc=tc,sc=rc,uc=normalizeComponent(sc,TableColPropertyvue_type_template_id_0d009ab0_render,Ql,!1,null,null,null),_c=uc.exports,TableCellPropertyvue_type_template_id_4214af76_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal-contents table-cell-modal animation-in"},[_("header",{staticClass:"modal-title"},[_("span",[l._v("单元格属性")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("el-tabs",{model:{value:l.textActiveName,callback:function(u){l.textActiveName=u},expression:"textActiveName"}},[_("el-tab-pane",{attrs:{label:"常规",name:"0"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编号")]),_("span",{staticClass:"readonly-value"},[l._v(l._s(l.id))])]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[l._v("标题")]),_("el-input",{attrs:{size:"mini",placeholder:"标题"},model:{value:l.title,callback:function(u){l.title=u},expression:"title"}})],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("自定义属性")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openCustomsModal}},[l._v("自定义属性")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[l._v("数据源")]),_("el-button",{attrs:{size:"mini"},on:{click:l.openDataSourceModal}},[l._v("设置数据源")])],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.lightCellBorders,callback:function(u){l.lightCellBorders=u},expression:"lightCellBorders"}},[l._v("突出显示单元格边框")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{"margin-left":"10px"}},[l._v("垂直对齐方式")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"垂直对齐方式",size:"mini"},model:{value:l.align,callback:function(u){l.align=u},expression:"align"}},[_("el-option",{attrs:{label:"靠上",value:0}}),_("el-option",{attrs:{label:"垂直居中",value:1}}),_("el-option",{attrs:{label:"靠下",value:2}})],1)],1)]),_("li",{staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("单元格背景色")]),_("ho-color-picker",{attrs:{defaultColor:"#ffffff"},model:{value:l.backColor,callback:function(u){l.backColor=u},expression:"backColor"}})],1)]),_("li",{staticClass:"control-item"},[_("div",[_("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[l._v("单元格内边距")]),_("span",{staticClass:"label"},[l._v("上")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellTop,callback:function(u){l.cellTop=u},expression:"cellTop"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")]),_("span",{staticClass:"label"},[l._v("下")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellBottom,callback:function(u){l.cellBottom=u},expression:"cellBottom"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")])],1),_("div",[_("span",{staticClass:"label",staticStyle:{display:"inline-block",padding:"0 44px","margin-left":"-1px"}}),_("span",{staticClass:"label"},[l._v("左")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellLeft,callback:function(u){l.cellLeft=u},expression:"cellLeft"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")]),_("span",{staticClass:"label"},[l._v("右")]),_("el-input-number",{attrs:{size:"mini",step:1,min:0,controls:!1},model:{value:l.cellRight,callback:function(u){l.cellRight=u},expression:"cellRight"}}),_("span",{staticStyle:{padding:"0 30px 0 10px"}},[l._v("厘米")])],1)]),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("边框设置")]),_("div",[_("el-checkbox",{on:{change:l.isDrawGridlinesChange},model:{value:l.isDrawGridlines,callback:function(u){l.isDrawGridlines=u},expression:"isDrawGridlines"}},[l._v("绘制边框")])],1)]),_("li",{staticClass:"control-item grid-lines-style",style:{color:l.isDrawGridlines?"#000000":"#C0C4CC"}},[_("span",{staticClass:"label"}),_("div",[_("div",{staticClass:"control-item"},[_("div",{staticClass:"grid-lines-color-item"},[_("span",{staticClass:"label",staticStyle:{display:"inline-block"}},[l._v("边框颜色")]),_("ho-color-picker",{model:{value:l.gridLinesColor[0],callback:function(u){l.$set(l.gridLinesColor,0,u)},expression:"gridLinesColor[0]"}})],1)]),_("PrintLineStyle",{attrs:{isDrawGridlines:l.isDrawGridlines,defaultStyle:l.gridLinesStyle,placeholder:"边框样式"},on:{change:l.printStyleChange}}),_("li",{staticClass:"control-item"},[_("el-checkbox",{attrs:{disabled:!l.isDrawGridlines},model:{value:l.printGridLines,callback:function(u){l.printGridLines=u},expression:"printGridLines"}},[l._v("打印边框")])],1)],1)])])]),_("el-tab-pane",{attrs:{label:"双击属性",name:"1"}},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("编辑器属性")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"编辑器属性",size:"mini"},model:{value:l.editorProperty,callback:function(u){l.editorProperty=u},expression:"editorProperty"}},[_("el-option",{attrs:{label:"无",value:0}}),_("el-option",{attrs:{label:"下拉列表",value:1}}),_("el-option",{attrs:{label:"日期",value:2}})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("分隔符")]),_("el-select",{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{placeholder:"分隔符",size:"mini"},model:{value:l.splitCharacter,callback:function(u){l.splitCharacter=u},expression:"splitCharacter"}},[_("el-option",{attrs:{label:",",value:","}}),_("el-option",{attrs:{label:"、",value:"、"}}),_("el-option",{attrs:{label:"/",value:"/"}}),_("el-option",{attrs:{label:"-",value:"-"}})],1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.allowMultiSelected,callback:function(u){l.allowMultiSelected=u},expression:"allowMultiSelected"}},[l._v("允许多选")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.isAllowDel,callback:function(u){l.isAllowDel=u},expression:"isAllowDel"}},[l._v("允许被删除")])],1),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.canModifyContent,callback:function(u){l.canModifyContent=u},expression:"canModifyContent"}},[l._v("用户可以直接编辑修改内容")])],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("来源")]),_("el-input",{attrs:{size:"mini"},model:{value:l.source,callback:function(u){l.source=u},expression:"source"}})],1),_("li",{directives:[{name:"show",rawName:"v-show",value:1===l.editorProperty,expression:"editorProperty === 1"}],staticClass:"control-item"},[_("el-table",{staticStyle:{width:"100%"},attrs:{data:l.listItems,"max-height":"210px"}},[_("el-table-column",{staticStyle:{"text-align":"center"},attrs:{label:"",width:"32"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("i",{directives:[{name:"show",rawName:"v-show",value:u.$index===l.focusIndexs,expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{transform:"translateX(6px)"}})]}}])}),_("el-table-column",{attrs:{label:"文本",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{class:l.errorIndex.includes(u.row.id)?"error":"",attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.text,callback:function(_){l.$set(u.row,"text",_)},expression:"scope.row.text"}})]}}])}),_("el-table-column",{attrs:{label:"值",width:"130"},scopedSlots:l._u([{key:"default",fn:function(u){return[_("el-input",{attrs:{size:"small"},on:{focus:function(_){return l.focusIndex(u.$index)},input:function(_){return l.inputIndex(u.$index)},blur:function(_){return l.blurIndex(u.$index)}},model:{value:u.row.value,callback:function(_){l.$set(u.row,"value",_)},expression:"scope.row.value"}})]}}])}),_("el-table-column",{scopedSlots:l._u([{key:"default",fn:function(u){return u.$index!==l.listItems.length-1&&l.focusIndexs===u.$index?[_("el-button",{attrs:{size:"mini"},on:{click:function(_){return _.stopPropagation(),l.deleteCurrentRow(u.row.id)}}},[l._v("删除")])]:void 0}}],null,!0)})],1)],1),_("li",{directives:[{name:"show",rawName:"v-show",value:2===l.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("日期格式")]),_("el-select",{attrs:{placeholder:"输入样式",size:"mini"},model:{value:l.inputStyle,callback:function(u){l.inputStyle=u},expression:"inputStyle"}},l._l(l.dateFormatList,(function(l){return _("el-option",{key:l,attrs:{label:l,value:l}})})),1)],1)]),_("li",{directives:[{name:"show",rawName:"v-show",value:2===l.editorProperty,expression:"editorProperty === 2"}],staticClass:"control-item"},[_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.isAutoInputCurDate,callback:function(u){l.isAutoInputCurDate=u},expression:"isAutoInputCurDate"}},[l._v("双击设置当前日期时间")])],1)])])]),_("el-tab-pane",{attrs:{label:"斜分割线",name:"2"}},[_("ul",{staticClass:"diagonal-line"},[_("li",{class:0===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(0)}}},[_("span",{staticClass:"line no-line"}),_("span",[l._v("None")])]),_("li",{class:1===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(1)}}},[_("span",{staticClass:"line left-line top-line top-left-one-line"}),_("span",[l._v("TopLeftOneLine")])]),_("li",{class:2===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(2)}}},[_("span",{staticClass:"line left-line top-line top-left-two-line"}),_("span",[l._v("TopLeftTwoLine")])]),_("li",{class:3===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(3)}}},[_("span",{staticClass:"line right-line top-line top-right-one-line"}),_("span",[l._v("TopRightOneLine")])]),_("li",{class:4===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(4)}}},[_("span",{staticClass:"line right-line top-line top-right-two-line"}),_("span",[l._v("TopRightTwoLine")])]),_("li",{class:5===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(5)}}},[_("span",{staticClass:"line left-line bottom-line bottom-left-one-line"}),_("span",[l._v("BottomLeftOneLine")])]),_("li",{class:6===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(6)}}},[_("span",{staticClass:"line left-line bottom-line bottom-left-two-line"}),_("span",[l._v("BottomLeftTwoLine")])]),_("li",{class:7===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(7)}}},[_("span",{staticClass:"line right-line bottom-line bottom-right-one-line"}),_("span",[l._v("BottomRightOneLine")])]),_("li",{class:8===l.obliqueSplitLine?"selected":"",on:{click:function(u){return l.setObliqueSplitLine(8)}}},[_("span",{staticClass:"line right-line bottom-line bottom-right-two-line"}),_("span",[l._v("BottomRightTwoLine")])])])])],1)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"small",type:"primary"},on:{click:l.sure}},[l._v("确定")]),_("el-button",{staticStyle:{"margin-left":"30px"},attrs:{size:"small"},on:{click:l.handleClose}},[l._v("取消")])],1)])},pc=[],PrintLineStylevue_type_template_id_01f80e1a_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-item"},[_("span",{staticClass:"label",style:{width:l.labelWidth}},[l._v(l._s(l.placeholder))]),_("el-select",{staticClass:"grid-lines-style",staticStyle:{width:"144px"},attrs:{disabled:l.isDrawGridlines,placeholder:l.placeholder,size:"mini"},on:{change:l.linesStyleChange},model:{value:l.linesStyle,callback:function(u){l.linesStyle=u},expression:"linesStyle"}},[_("el-option",{attrs:{label:"solid",value:0}},[_("svg",{attrs:{viewBox:"0 0 18236 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"34"}},[_("path",{attrs:{d:"M0 0h18236.952381v1024H0z",fill:"#333"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("solid")])]),_("el-option",{attrs:{label:"dash",value:1}},[_("svg",{attrs:{viewBox:"0 0 15360 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"32",fill:"#333"}},[_("path",{attrs:{d:"M0 1024V0h3072v1024H0z m4096 0V0h3072v1024H4096z m8192 0V0h3072v1024h-3072z m-4096 0V0h3072v1024H8192z"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("dash")])]),_("el-option",{attrs:{label:"dashdot",value:2}},[_("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"}},[_("path",{attrs:{d:"M0 0h2304v1024H0V0z m3328 0h1024v1024h-1024V0z m2048 0h2304v1024h-2304V0z"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("dashdot")])]),_("el-option",{attrs:{label:"dashdotdo",value:3}},[_("svg",{attrs:{viewBox:"0 0 12288 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"80",height:"34",fill:"#333"}},[_("path",{attrs:{d:"M6912 0h1536v1024h-1536V0zM3840 0h1536v1024h-1536V0zM0 0h2304v1024H0V0z m9984 0h2304v1024h-2304V0z"}})]),_("span",{staticStyle:{flex:"1",padding:"0 33px"}}),_("span",[l._v("dashdotdot")])]),_("el-option",{attrs:{label:"dot",value:4}},[_("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"}},[_("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_("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"}},[_("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_("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"}},[_("path",{attrs:{d:"M424.96 797.184h174.08v174.08H424.96zM790.016 797.184h174.08v174.08h-174.08zM59.904 797.184h174.08v174.08h-174.08z"}})]),_("span",{staticStyle:{flex:"1"}}),_("span",[l._v("dot")])])],1)],1)},fc=[],vc=(__webpack_require__(35192),function(l){(0,Y.Z)(PrintLineStyle,l);var u=(0,ee.Z)(PrintLineStyle);function PrintLineStyle(){var l;return(0,q.Z)(this,PrintLineStyle),l=u.apply(this,arguments),l.linesStyle=0,l}return(0,$.Z)(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(l){this.$emit("change",l)}}]),PrintLineStyle}(k()));__decorate([Prop()],vc.prototype,"isDrawGridlines",void 0),__decorate([Prop()],vc.prototype,"placeholder",void 0),__decorate([Prop()],vc.prototype,"defaultStyle",void 0),__decorate([Prop({default:"90px"})],vc.prototype,"labelWidth",void 0),vc=__decorate([ae({name:"PrintLineStyle"})],vc);var wc,xc,Pc=vc,Cc=Pc,Sc=normalizeComponent(Cc,PrintLineStylevue_type_template_id_01f80e1a_scoped_true_render,fc,!1,null,"01f80e1a",null),Tc=Sc.exports;(function(l){l[l["vatop"]=0]="vatop",l[l["vacenter"]=1]="vacenter",l[l["vabottom"]=2]="vabottom"})(wc||(wc={})),function(l){l[l["dash"]=0]="dash",l[l["dashdot"]=1]="dashdot",l[l["dashdotdo"]=2]="dashdotdo",l[l["dot"]=3]="dot",l[l["solid"]=4]="solid"}(xc||(xc={}));var Dc=function(l){(0,Y.Z)(TableCellProperty,l);var u=(0,ee.Z)(TableCellProperty);function TableCellProperty(){var l;return(0,q.Z)(this,TableCellProperty),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.textActiveName="0",l.lightCellBorders=!1,l.title="",l.align=wc.vatop,l.backColor="#ffffff",l.isDrawGridlines=!0,l.gridLinesColor=["#000000","#000000","#000000","#000000"],l.gridLinesStyle=xc.solid,l.span=0,l.alignTextToGridline=!0,l.printGridLines=!0,l.cellTop=0,l.cellBottom=0,l.cellLeft=0,l.cellRight=0,l.editorProperty=0,l.listItems=[],l.source="",l.canModifyContent=!0,l.isAllowDel=!0,l.allowMultiSelected=!1,l.splitCharacter=",",l.errorArr=[],l.errorIndex=[],l.focusIndexs=-1,l.inputStyle="yyyy-MM-dd HH:mm",l.isAutoInputCurDate=!0,l.obliqueSplitLine=0,l.endPath="",l}return(0,$.Z)(TableCellProperty,[{key:"customProperties",get:function get(){return this.getCustomsValue().filter((function(l){if(l.name||l.value)return l}))}},{key:"dataSource",get:function get(){return this.getDataSource()}},{key:"created",value:function created(){var l=this.getActiveDocId(),u=rt.b.instance().getFactory(l);this.endPath=u.docTree.curDomRange.normalize().endPath;var _=this.getCellNodes();if(null!==_){this.id=null!==_&&void 0!==_&&_.cellProperty.id?_.cellProperty.id:this.vueController.generateID("TB"),this.lightCellBorders=_.cellProperty.lightCellBorders,this.title=_.cellProperty.title?_.cellProperty.title:"",this.align=_.cellProperty.align,this.isDrawGridlines=_.cellProperty.isDrawGridlines,Array.isArray(_.cellProperty.gridLinesColor)?this.gridLinesColor=(0,U.Z)(_.cellProperty.gridLinesColor):this.gridLinesColor=["#000000","#000000","#000000","#000000"],this.backColor=_.cellProperty.backColor?_.cellProperty.backColor:"#ffffff",this.gridLinesStyle=_.cellProperty.gridLinesStyle,this.span=_.cellProperty.span,this.alignTextToGridline=_.cellProperty.alignTextToGridline,this.printGridLines=_.cellProperty.printGridLines;var v=_.cellProperty.cellInnerMargin?_.cellProperty.cellInnerMargin:[0,0,0,0],C=(0,B.Z)(v,4);this.cellTop=C[0],this.cellBottom=C[1],this.cellLeft=C[2],this.cellRight=C[3],this.editorProperty=_.cellProperty.editorProperty;var k=this.getKeyId(0),N=[{value:"",text:"",id:k}],W=_.cellProperty.downListProperty;W?(this.listItems=JSON.parse(W.listItems)?[].concat((0,U.Z)(JSON.parse(W.listItems)),N):[].concat(N),this.source=W.source?W.source:"",this.canModifyContent=void 0===W.canModifyContent||W.canModifyContent,this.isAllowDel=void 0===W.isAllowDel||W.isAllowDel,this.allowMultiSelected=void 0!==W.allowMultiSelected&&W.allowMultiSelected,this.splitCharacter=W.splitCharacter?W.splitCharacter:","):this.listItems=[].concat(N);var q=_.cellProperty.dateTimeProperty;q&&(this.inputStyle=q.inputStyle?q.inputStyle:"yyyy-MM-dd",this.isAutoInputCurDate=void 0!==q.isAutoInputCurDate&&q.isAutoInputCurDate),this.obliqueSplitLine=_.cellProperty.obliqueSplitLine}}},{key:"isDrawGridlinesChange",value:function isDrawGridlinesChange(){this.isDrawGridlines||(this.printGridLines=!1)}},{key:"getCellNodes",value:function getCellNodes(){var l,u,_=this.vueController.findNodebyPath(this.endPath).node,v=this.getCellNode(_),C=(null===v||void 0===v||v.table.rows.indexOf(null===v||void 0===v?void 0:v.row),null===v||void 0===v?void 0:v.cellProperty.customProperties);(Array.isArray(C)&&C.length>0?this.setCustomsValue([].concat((0,U.Z)(C),[{name:"",value:""}])):C&&Array.isArray(C.customProperty)&&C.customProperty.length>0&&this.setCustomsValue([].concat((0,U.Z)(C.customProperty),[{name:"",value:"",description:""}])),null!==v&&void 0!==v&&null!==(l=v.cellProperty)&&void 0!==l&&l.dataSource)?this.setDataSource(null===(u=v.cellProperty)||void 0===u?void 0:u.dataSource):this.setDataSource();return v}},{key:"querySearch",value:function querySearch(l,u){u(Lt.dv)}},{key:"focusIndex",value:function focusIndex(l){this.focusIndexs=l}},{key:"blurIndex",value:function blurIndex(l){var u=this.listItems[l];""===(null===u||void 0===u?void 0:u.value.replace(/\s*/g,""))&&""===(null===u||void 0===u?void 0:u.text.replace(/\s*/g,""))&&l!==this.listItems.length-1&&this.deleteCurrentRow(u.id),this.errorArr=this.listItems.filter((function(l){if(l.text===(null===u||void 0===u?void 0:u.text)&&l.id!==(null===u||void 0===u?void 0:u.id))return l})),this.errorArr.length>0?this.errorIndex.includes(u.id)||this.errorIndex.push(u.id):this.errorIndex=[]}},{key:"inputIndex",value:function inputIndex(l){var u=this.listItems.filter((function(l){if(!l.text&&!l.value)return l}));0===u.length&&this.addCustoms()}},{key:"addCustoms",value:function addCustoms(){this.listItems.push({text:"",value:"",id:this.getKeyId()})}},{key:"deleteCurrentRow",value:function deleteCurrentRow(l){var u=-1;this.listItems.filter((function(_,v){_.id===l&&(u=v)})),this.listItems.splice(u,1)}},{key:"getKeyId",value:function getKeyId(l){return l?"DL"+(new Date).getTime()+l:"DL"+(new Date).getTime()}},{key:"printStyleChange",value:function printStyleChange(l){this.gridLinesStyle=l}},{key:"setObliqueSplitLine",value:function setObliqueSplitLine(l){this.obliqueSplitLine=l}},{key:"openDataSourceModal",value:function openDataSourceModal(){this.setIsDataSource(!0)}},{key:"openCustomsModal",value:function openCustomsModal(){this.setIsCustoms(!0,!0)}},{key:"sure",value:function sure(){var l=this;this.gridLinesColor=[this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0],this.gridLinesColor[0]];var u={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 _=this.listItems.filter((function(l){if(l.text||l.value)return l}));u.downListProperty={listItems:JSON.stringify(_),canModifyContent:this.canModifyContent,isAllowDel:this.isAllowDel,allowMultiSelected:this.allowMultiSelected,splitCharacter:this.splitCharacter},u.dateTimeProperty=void 0}else 2===this.editorProperty&&(u.dateTimeProperty={inputStyle:this.inputStyle,isAutoInputCurDate:this.isAutoInputCurDate},u.downListProperty=void 0);var v=rt.b.instance().getFactory(this.hoEditorFactoryId),C=v.docTree.curDomRange,k=v.docTree.curDomRange.normalize().inSameTable()[1],N=k.getTableSelectCells(C,!0),B=this.getCellNodes();0===N.length&&null!==B&&N.push(B),v.tableController.cellProperty(JSON.stringify(u),N),this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("closed")}}]),TableCellProperty}(mixins(Gr));__decorate([Prop()],Dc.prototype,"vueController",void 0),__decorate([Prop()],Dc.prototype,"hoEditorFactoryId",void 0),__decorate([Inject("setIsDataSource")],Dc.prototype,"setIsDataSource",void 0),__decorate([Inject("getDataSource")],Dc.prototype,"getDataSource",void 0),__decorate([Inject("setDataSource")],Dc.prototype,"setDataSource",void 0),__decorate([Inject("setIsCustoms")],Dc.prototype,"setIsCustoms",void 0),__decorate([Inject("setCustomsValue")],Dc.prototype,"setCustomsValue",void 0),__decorate([Inject("getCustomsValue")],Dc.prototype,"getCustomsValue",void 0),__decorate([Inject("getActiveDocId")],Dc.prototype,"getActiveDocId",void 0),Dc=__decorate([ae({name:"TableCellProperty",components:{PrintLineStyle:Tc,HoColorPicker:el}})],Dc);var Mc=Dc,Nc=Mc,Rc=normalizeComponent(Nc,TableCellPropertyvue_type_template_id_4214af76_scoped_true_render,pc,!1,null,"4214af76",null),Fc=Rc.exports,jc={name:"ControlModal",components:{ExpressionForm:ls,DateDialog:ia,Barcode:Da,QrCode:Wa,Sign:hl,TextDialog:es,CustomAttributes:Ds,DataSourceDialog:Ls,RadioCheckbox:gs,SelectDialog:zo,ListSource:Hs,Gestation:Ul,TableProperty:Kl,TableRowProperty:Yl,TableCellProperty:Fc,TableColProperty:_c,WaterSetDialog:Al,CommentDialog:xs,PageInfoes:Gs,Delimiter:ol,UploadImageDialog:yl,CanvasImageDialog:Cl,ParagraphDialog:kl},mixins:[jt],props:{controlProperty:{type:Object,required:!0},isDataSource:{type:Boolean,required:!0},isCustoms:{type:Boolean,required:!0},isTableProperty:{type:Boolean,required:!0},isListStyle:{type:Boolean,required:!0},hoEditorFactoryId:{type:String,required:!0},uploadImageParams:{type:Object}},data:function data(){return{toolModals:null,names:{style1:"经期史",style5:"瞳孔图",style6:"光定位图",style7:"胎心图",style8:"恒牙牙位图",style9:"乳牙牙位图"}}},computed:{controlType:function controlType(){return this.controlProperty.controlType},controlStatus:function controlStatus(){return this.controlProperty.controlStatus},expressStyle:function expressStyle(){return this.controlProperty.expressStyle},vueController:function vueController(){return rt.b.instance().getFactory(this.hoEditorFactoryId).vueController}},mounted:function mounted(){this.toolModals=this.$refs.toolModals},methods:{insertComments:function insertComments(l){this.$emit("insertComments",l)},handleClose:function handleClose(){if(this.isDataSource||this.isCustoms||this.isListStyle||"find"===this.controlType)return!1;this.$emit("closeControlmodal")},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.toolModals,"modal-title")}}},Uc=jc,Wc=normalizeComponent(Uc,ControlModalvue_type_template_id_1b898d58_render,Fo,!1,null,null,null),qc=Wc.exports,FindReplacevue_type_template_id_15d96f32_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"findModal",class:l.animationClassNames,on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("查找替换")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label"},[l._v("查找内容")]),_("el-input",{attrs:{type:"text",size:"mini"},nativeOn:{keyup:function(u){return!u.type.indexOf("key")&&l._k(u.keyCode,"enter",13,u.key,"Enter")?null:l.toFind.apply(null,arguments)}},model:{value:l.findContent,callback:function(u){l.findContent=u},expression:"findContent"}})],1),_("li",{staticClass:"control-item"},[_("div",{staticClass:"label"},[_("el-checkbox",{on:{change:l.switchTypes},model:{value:l.switchType,callback:function(u){l.switchType=u},expression:"switchType"}},[l._v("替换内容")])],1),_("el-input",{attrs:{disabled:!l.switchType,type:"text",size:"mini"},model:{value:l.replaceCentent,callback:function(u){l.replaceCentent=u},expression:"replaceCentent"}})],1),_("li",{staticClass:"control-item"},[_("el-radio",{attrs:{label:0},model:{value:l.direction,callback:function(u){l.direction=u},expression:"direction"}},[l._v("向下")]),_("el-radio",{attrs:{label:1},model:{value:l.direction,callback:function(u){l.direction=u},expression:"direction"}},[l._v("向上")]),_("div",{staticStyle:{"margin-left":"30px"}},[_("el-checkbox",{model:{value:l.matchCase,callback:function(u){l.matchCase=u},expression:"matchCase"}},[l._v("区分大小写")])],1)],1)])]),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{disabled:""===l.findContent,size:"mini"},on:{click:l.toFind}},[l._v("查找")]),_("el-button",{attrs:{disabled:""===l.findContent||!l.switchType,size:"mini"},on:{click:l.toReplace}},[l._v("替换")]),_("el-button",{attrs:{disabled:""===l.findContent||!l.switchType,size:"mini"},on:{click:l.toReplaceAll}},[l._v("全部替换")]),_("el-button",{attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("关闭")])],1)])},Vc=[],$c={name:"FindReplaceDialog",mixins:[jt],Inject:["setControlFindType"],props:{hoEditorFactoryId:{type:String,required:!0}},data:function data(){return{switchType:!1,operType:"find",findContent:"",replaceCentent:"",direction:0,matchCase:!0,path:"",callbackCount:0,animationClassNames:"control-modal-contents find-modal animation-in",findModal:null}},mounted:function mounted(){this.findModal=this.$refs.findModal},methods:{switchTypes:function switchTypes(l){this.operType=l?"replace":"find"},toFind:function toFind(l){if(this.findContent){var u=rt.b.instance().getFactory(this.hoEditorFactoryId);this.path=u.vueController.find(this.findContent,this.direction,this.matchCase),l instanceof Function&&l()}},toReplace:function toReplace(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);""===this.path||"-1"===this.path?this.callbackCount<=2?(this.callbackCount++,this.toFind(this.toReplace)):this.callbackCount=0:(l.vueController.replace(this.findContent,this.replaceCentent,this.path,1,this.direction,this.matchCase),this.callbackCount=0,this.path="")},toReplaceAll:function toReplaceAll(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);l.vueController.replace(this.findContent,this.replaceCentent,"",0,1,this.matchCase),this.callbackCount=0,this.path=""},handleClose:function handleClose(){var l=this;this.animationClassNames="control-modal-contents find-modal animation-out",window.clearTimeout(),setTimeout((function(){l.setControlFindType("")}),100)},toolModalDown:function toolModalDown(l){(0,Lt.tC)(l,this.findModal,"modal-title")}}},Zc=$c,Xc=normalizeComponent(Zc,FindReplacevue_type_template_id_15d96f32_render,Vc,!1,null,null,null),Yc=Xc.exports,Qc=Yc,ViewContinuousXmlvue_type_template_id_db8cca98_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:l.loadMore,expression:"loadMore"}],staticClass:"ho-continuous-viewbox",staticStyle:{overflow:"auto"}},l._l(l.continuousView.currentList,(function(u,v){return _("div",{key:v,domProps:{innerHTML:l._s(u.innerHTML)}})})),0)},eu=[],tu=function(l){(0,Y.Z)(ViewContinuousXml,l);var u=(0,ee.Z)(ViewContinuousXml);function ViewContinuousXml(){var l;return(0,q.Z)(this,ViewContinuousXml),l=u.apply(this,arguments),l.continuousView={status:!1,currentList:[],allList:[]},l}return(0,$.Z)(ViewContinuousXml,[{key:"mounted",value:function mounted(){var l=rt.b.instance().getFactory(this.hoEditorFactoryId);l.continuousView=this.continuousView}},{key:"loadMore",value:function loadMore(){var l=this.continuousView.allList,u=this.continuousView.currentList;if(l.length>u.length){var _,v=l.filter((function(l,_){return _>u.length-1&&_<u.length+4}));(_=this.continuousView.currentList).push.apply(_,(0,U.Z)(v))}}}]),ViewContinuousXml}(k());__decorate([Prop()],tu.prototype,"hoEditorFactoryId",void 0),tu=__decorate([ae({name:"ViewContinuousXml",components:{}})],tu);var ru=tu,nu=ru,iu=normalizeComponent(nu,ViewContinuousXmlvue_type_template_id_db8cca98_render,eu,!1,null,null,null),ou=iu.exports,au=ou,su=function(l){(0,Y.Z)(ControlMixin,l);var u=(0,ee.Z)(ControlMixin);function ControlMixin(){var l;return(0,q.Z)(this,ControlMixin),l=u.apply(this,arguments),l.controlType="",l.controlStatus="",l.expressStyle="",l.rightType="",l.rightTypeIsTable=!1,l.commentValue=void 0,l.updateNodeValue=null,l.isDataSource=!1,l.dataSource=JSON.parse(JSON.stringify(Ut)),l.isCustoms=!1,l.isTableProperty=!1,l.customsValue=[{name:"",value:""}],l.customPropertyValue={},l.isListStyle=!1,l.listSource=[],l.listArrSource="",l.listAllowMultiSelected=!1,l.controlFindType=!1,l.activeDocId="",l.domRange={startPath:"",endPath:""},l}return(0,$.Z)(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(Ut)),this.isCustoms=!1,this.isTableProperty=!1,this.customsValue=[{name:"",value:""}],this.listSource=[],this.isListStyle=!1,this.listArrSource="",this.domRange={startPath:"",endPath:""}}},{key:"setControlFindType",value:function setControlFindType(l){this.controlFindType=l}},{key:"getControlProperty",value:function getControlProperty(){return{controlType:this.controlType,controlStatus:this.controlStatus,expressStyle:this.expressStyle,domRange:this.domRange}}},{key:"setControlProperty",value:function setControlProperty(l,u,_){this.controlType=l,this.controlStatus=u,this.expressStyle=_||this.expressStyle,"express"===this.controlType&&this.expressStyle,""===this.controlType&&(this.setDataSource(JSON.parse(JSON.stringify(Ut))),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(l){this.isDataSource=l}},{key:"getDataSource",value:function getDataSource(){return this.dataSource}},{key:"setDataSource",value:function setDataSource(l){this.dataSource=l?_objectSpread2({},l):JSON.parse(JSON.stringify(Ut))}},{key:"getIsListStyle",value:function getIsListStyle(){return this.isListStyle}},{key:"setIsListStyle",value:function setIsListStyle(l){this.isListStyle=l}},{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(l){this.listAllowMultiSelected=l}},{key:"setListStyle",value:function setListStyle(l,u){Array.isArray(l)&&(this.listSource=(0,U.Z)(l)),this.listArrSource=u}},{key:"getIsCustoms",value:function getIsCustoms(){return this.isCustoms}},{key:"setIsCustoms",value:function setIsCustoms(l,u){this.isCustoms=l,this.isTableProperty=!!u}},{key:"getCustomsValue",value:function getCustomsValue(){return this.customsValue}},{key:"setCustomsValue",value:function setCustomsValue(l){this.customsValue=(0,U.Z)(l)}},{key:"setUpdateNodeValue",value:function setUpdateNodeValue(l){l&&l.customProperty&&(0,Ui.Kn)(l.customProperty)&&(this.customPropertyValue=_objectSpread2({},l.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 l;return l=Array.isArray(this.updateNodeValue)?this.updateNodeValue:this.getCurrentSelectNode(),l}},{key:"getCurrentSelectNode",value:function getCurrentSelectNode(){var l,u,_=rt.b.instance().getFactory(this.activeDocId),v=null===(l=_.vueController.findNodebyPath(this.domRange.endPath))||void 0===l?void 0:l.node,C=_.drawTree.selectRange.spStart;if(C){var k,N=null===(k=_.docTree.findNodePositionByPath(C.path))||void 0===k?void 0:k.node;N instanceof gn.N&&3==N.type&&(v=N)}if(v instanceof $t.j||v instanceof Bt.re){var B=v.parentNode;u=B instanceof Bt.re?B:v}else if(v instanceof Gt.R){var U=v.parentNode;(U instanceof Bt.re||U instanceof et.D)&&(u=U)}else(v instanceof Rt.Z||v instanceof Ft.yF||v instanceof hi.T||v instanceof _i.d||v instanceof He.Yh||v instanceof Sn.H||v instanceof Si.P||v instanceof gn.N||v instanceof Ei.O)&&(u=v);return u}},{key:"setRightClickNodeValue",value:function setRightClickNodeValue(){this.rightTypeIsTable=!1,this.rightType="",this.updateNodeValue=null,this.expressStyle="";var l=rt.b.instance().getFactory(this.activeDocId);this.domRange={startPath:l.docTree.curDomRange.normalize().startPath,endPath:l.docTree.curDomRange.normalize().endPath};var u=this.getUpdateNode();if(void 0===u||null===u)return!1;if((null===u||void 0===u?void 0:u.parentNode)instanceof et.D&&(this.rightTypeIsTable=!0,this.rightType="table"),u instanceof Bt.re)this.rightType="text",this.dataSource=u.bandDataSource,(0,Ui.Kn)(u.customProperty)&&(this.customPropertyValue=_objectSpread2({},u.customProperty));else if(u instanceof $t.j&&u.parentNode instanceof Bt.re){var _=u.parentNode;this.rightType="text",this.dataSource=_.bandDataSource,(0,Ui.Kn)(_.customProperty)&&(this.customPropertyValue=_objectSpread2({},_.customProperty))}else if(u instanceof Gt.R){var v=u.parentNode;if(v instanceof Bt.re)this.rightType="text",this.dataSource=v.bandDataSource,(0,Ui.Kn)(v.customProperty)&&(this.customPropertyValue=_objectSpread2({},v.customProperty));else{if(!(v instanceof et.D))return this.rightType="",this.updateNodeValue=null,!1;this.rightTypeIsTable=!0,this.rightType="table"}}else u instanceof Rt.Z?(this.rightType="date",(0,Ui.Kn)(u.customProperty)&&(this.customPropertyValue=_objectSpread2({},u.customProperty))):u instanceof Ft.yF?this.rightType="select":u instanceof hi.T?this.rightType="barcode":u instanceof _i.d?(this.rightType="qrcode",this.dataSource={dataSourceEnabled:u.dataSourceEnabled,dataSource:u.dataSource,format:u.format,visitPath:u.visitPath,isReadOnly:u.isReadOnly,autoUpdate:u.autoUpdate,executeStatus:Number(u.execState)}):u instanceof He.Yh?(this.rightType=u.controlStyle,this.dataSource=u.bandDataSource):u instanceof Sn.H?this.rightType="edit-image":u instanceof Si.P?this.rightType="label":u instanceof gn.N?this.rightType="sign":u instanceof Ei.O||this.setDblclickNodeValue(u,"rightClick")}},{key:"setDblclickNodeValue",value:function setDblclickNodeValue(l,u){if("dblclick"===u&&(this.controlType="express",this.controlStatus="update"),l instanceof li.n){var _=l;this.expressStyle="style"+(_.expressStyle+1),this.updateNodeValue=[_.menseDays,_.cycleDays,_.menarcheAge,_.menoPauseAge]}else if(l instanceof ai.v){var v=l;this.expressStyle="style5",this.updateNodeValue=[v.value1,v.value2,v.value3,v.value4,v.value5,v.value6,v.value7]}else if(l instanceof si.D){var C=l;this.expressStyle="style6",this.updateNodeValue=[C.value1,C.value2,C.value3,C.value4,C.value5,C.value6,C.value7,C.value8,C.value9]}else if(l instanceof ci.t){var k=l;this.expressStyle="style7",this.updateNodeValue=[k.value1,k.value2,k.value3,k.value4,k.value5,k.value6]}else if(l instanceof ui.f){var N=l;this.expressStyle="style8",this.updateNodeValue=[N.topLeftSelected,N.topRightSelected,N.bottomLeftSelected,N.bottomRightSelected]}else if(l instanceof di.x){var B=l;this.expressStyle="style9",this.updateNodeValue=[B.topLeftSelected,B.topRightSelected,B.bottomLeftSelected,B.bottomRightSelected]}else l instanceof Ti.G?(this.controlType="gestation",this.controlStatus="update",this.expressStyle=""):(this.controlType="",this.controlStatus="add");"rightClick"===u&&this.expressStyle&&(this.rightType="express")}},{key:"setCommentValue",value:function setCommentValue(l){this.commentValue=l}},{key:"getCommentValue",value:function getCommentValue(){return this.commentValue}}]),ControlMixin}(k());__decorate([Provide()],su.prototype,"getActiveDocId",null),__decorate([Provide()],su.prototype,"initControlMixin",null),__decorate([Provide()],su.prototype,"setControlFindType",null),__decorate([Provide()],su.prototype,"setControlProperty",null),__decorate([Provide()],su.prototype,"getIsDataSource",null),__decorate([Provide()],su.prototype,"setIsDataSource",null),__decorate([Provide()],su.prototype,"getDataSource",null),__decorate([Provide()],su.prototype,"setDataSource",null),__decorate([Provide()],su.prototype,"getIsListStyle",null),__decorate([Provide()],su.prototype,"setIsListStyle",null),__decorate([Provide()],su.prototype,"getListStyle",null),__decorate([Provide()],su.prototype,"getListArrSource",null),__decorate([Provide()],su.prototype,"getListAllowMultiSelected",null),__decorate([Provide()],su.prototype,"setListAllowMultiSelected",null),__decorate([Provide()],su.prototype,"setListStyle",null),__decorate([Provide()],su.prototype,"getIsCustoms",null),__decorate([Provide()],su.prototype,"setIsCustoms",null),__decorate([Provide()],su.prototype,"getCustomsValue",null),__decorate([Provide()],su.prototype,"setCustomsValue",null),__decorate([Provide()],su.prototype,"setUpdateNodeValue",null),__decorate([Provide()],su.prototype,"getUpdateNodeValue",null),__decorate([Provide()],su.prototype,"getRightClickNodeValue",null),__decorate([Provide()],su.prototype,"setRightClickNodeValue",null),__decorate([Provide()],su.prototype,"setDblclickNodeValue",null),__decorate([Provide()],su.prototype,"setCommentValue",null),__decorate([Provide()],su.prototype,"getCommentValue",null),su=__decorate([ae],su);var lu=function(l){(0,Y.Z)(BackgroundMixins,l);var u=(0,ee.Z)(BackgroundMixins);function BackgroundMixins(){var l;return(0,q.Z)(this,BackgroundMixins),l=u.apply(this,arguments),l.style={backgroundImage:"",backgroundSize:"auto",backgroundRepeat:"no-repeat",backgroundPosition:"center center"},l.waterText="",l.rotateAngle=0,l.color="",l.imgUrl="",l}return(0,$.Z)(BackgroundMixins,[{key:"setCanvasRects",value:function setCanvasRects(l,u){this.canvasWidths=l,this.canvasHeights=u}},{key:"setBackgroundStyle",value:function setBackgroundStyle(l,u,_,v){""===v&&(this.waterText="",this.rotateAngle=1,this.color="rgba(0, 0, 0, 0.2)");var C=0,k=0,N=this.canvasWidths-C,B=this.canvasHeights-k,U="",W="";U=N>u?B<_?"auto":u+"px":N+"px",W=B>_?N<u?"auto":_+"px":B+"px",this.style.backgroundSize=U+" "+W,this.imgUrl=v,this.style=_objectSpread2(_objectSpread2({},this.style),l)}},{key:"getWaterMark",value:function getWaterMark(){return[this.waterText,this.rotateAngle,this.color]}},{key:"setWaterMark",value:function setWaterMark(l,u,_,v,C,k){if(this.waterText=l,this.rotateAngle=C,this.color=k,""===l)return this.setBackgroundStyle({"background-image":""},this.canvasWidths,this.canvasHeights,""),!1;var N={text:l,docWidth:u||this.canvasWidths,docHeight:_||this.canvasWidths,fontStyle:"16px 微软雅黑",rotateAngle:C?-20*Math.PI/180:0,fontColor:k||"rgba(0, 0, 0, 0.2)",firstLinePositionX:0,firstLinePositionY:70},B=document.querySelector("#watercanvas"),U=document.querySelector("#repeat-watercanvas");B.width=16*l.length+40,B.height=100,U.width=N.docWidth,U.height=N.docHeight;var W=B.getContext("2d");W.clearRect(0,0,160,100),W.font=N.fontStyle,W.rotate(N.rotateAngle),W.fillStyle=N.fontColor,W.fillText(N.text,N.firstLinePositionX,N.firstLinePositionY),W.rotate(-N.rotateAngle);var q=U.getContext("2d");q.fillStyle="#fff",q.fillRect(0,0,U.width,U.height);var $=q.createPattern(B,"repeat");q.fillStyle=$,q.fillRect(0,0,U.width,U.height);var Y=U.toDataURL("image/png");v instanceof Function?v(Y):this.setBackgroundStyle({"background-image":"url(".concat(Y,")")},this.canvasWidths,this.canvasHeights,Y)}},{key:"getBackgroundStyle",value:function getBackgroundStyle(){return this.style}},{key:"getBackImgUrl",value:function getBackImgUrl(){return this.imgUrl}}]),BackgroundMixins}(k());__decorate([Provide()],lu.prototype,"getBackgroundStyle",null),__decorate([Provide()],lu.prototype,"getBackImgUrl",null),lu=__decorate([ae],lu);var cu=function(l){(0,Y.Z)(FontStyleMixin,l);var u=(0,ee.Z)(FontStyleMixin);function FontStyleMixin(){var l;return(0,q.Z)(this,FontStyleMixin),l=u.apply(this,arguments),l.textStyle={font:"宋体",size:14,bold:!1,italic:!1,script:0,underline:!1,strikeout:!1,backColor:"transparent",color:"#000000",aligned:"both",lineSpace:1.25,canAddRow:!1,canDeleteRow:!1},l.aligned=["left","right","center","both"],l}return(0,$.Z)(FontStyleMixin,[{key:"getTableNodeInfo",value:function getTableNodeInfo(l){var u=null,_=function isFn(l){null!==(null===l||void 0===l?void 0:l.parentNode)&&null!==l&&void 0!==l&&l.parentNode&&(l.parentNode instanceof et.D?u={cellNode:l.parentNode,tableNode:l.parentNode.parentNode,colInfo:l.parentNode.table.colInfos[l.parentNode.row.indexOf(l.parentNode)],rowInfo:l.parentNode.table.rowInfos[l.parentNode.table.rows.indexOf(l.parentNode.row)]}:isFn(l.parentNode))};return l instanceof et.D?u={cellNode:l,tableNode:l.parentNode,colInfo:l.table.colInfos[l.row.indexOf(l)],rowInfo:l.table.rowInfos[l.table.rows.indexOf(l.row)]}:_(l),u}},{key:"createTable",value:function createTable(l,u){var _=this.getTableNodeInfo(null===u||void 0===u?void 0:u.node);if(_){var v,C=l.drawTree.drawPages[l.drawTree.caret.pageIndex],k=null===(v=C.drawDomLevel)||void 0===v?void 0:v.domCanvas.parentElement,N={x:l.pageProperty.leftMarginPixes+_.tableNode.drawTable.x,y:0,width:_.tableNode.drawTable.dWidth,height:0,cellWidth:null===_||void 0===_?void 0:_.cellNode.drawCell.dWidth,cellHeight:null===_||void 0===_?void 0:_.cellNode.drawCell.dHeight,cellY:20,cellX:0},B=_.tableNode.drawTable.drawPageTables,U=_.cellNode.drawCell.drawPageCells;N.cellX=U[0].x+20,N.cellY=U[0].y+20,N.cellWidth=U[0].dWidth,N.cellHeight=U[0].dHeight,B.forEach((function(l,u){l.parent.pageIndex===C.drawMainDoc.pageIndex&&(N.height=l.dHeight,N.y=C.drawMainDoc.y+l.dTop,U.length===B.length&&(N.cellHeight=U[u].dHeight))}));var W=document.createElement("div");W.id="ho_table_auxiliary",W.style.position="absolute",W.style.left=l.pageProperty.leftMarginPixes-20+"px",W.style.top=N.y-20+"px",W.style.height=l.pageProperty.heightPixes-N.y-l.pageProperty.footerYPixes+"px",W.innerHTML='\n <div id="ho_table_auxiliary_left" style="height: '.concat(N.height,'px"></div>\n <div id="ho_table_auxiliary_left_active" style="height: ').concat(N.cellHeight,"px; top: ").concat(N.cellY,'px;"></div>\n '),null===k||void 0===k||k.appendChild(W)}}},{key:"setFontStyle",value:function setFontStyle(l){var u,_,v=document.querySelector("#ho_table_auxiliary");v&&(null===(_=v.parentElement)||void 0===_||_.removeChild(v));var C,k=l.vueController,N=k.getCaretPosition(),U=k.findNodebyPath(N);if(null!==U&&void 0!==U&&null!==(u=U.node)&&void 0!==u&&u.drawNodes[0]){var W,q=l.drawTree.getDrawLineByDNode(null===U||void 0===U||null===(W=U.node)||void 0===W?void 0:W.drawNodes[0]).paragraphNode;C=q.combineParagraph,l.docTree.curParaNo=q.paraNo}var $=k.getDomRange().inSameTable(),Y=(0,B.Z)($,2),ee=Y[0],re=Y[1],ne={canAddRow:!1,canDeleteRow:!1};ee&&re&&(ne={canAddRow:re.tableProperty.canAddRow,canDeleteRow:re.tableProperty.canDeleteRow}),l.isCanUseTableProperty&&U&&this.createTable(l,U),k.getCurTextStyle(),this.textStyle=_objectSpread2({font:void 0!==k.combineStyle.font?k.combineStyle.font:this.textStyle.font,size:void 0!==k.combineStyle.size?k.combineStyle.size:this.textStyle.size,bold:void 0!==k.combineStyle.bold?k.combineStyle.bold:this.textStyle.bold,italic:void 0!==k.combineStyle.italic?k.combineStyle.italic:this.textStyle.italic,script:void 0!==k.combineStyle.script?k.combineStyle.script:this.textStyle.script,underline:void 0!==k.combineStyle.underline?k.combineStyle.underline:this.textStyle.underline,strikeout:void 0!==k.combineStyle.strikeout?k.combineStyle.strikeout:this.textStyle.strikeout,color:void 0!==k.combineStyle.color?k.combineStyle.color:this.textStyle.color,backColor:void 0!==k.combineStyle.backColor?k.combineStyle.backColor:this.textStyle.backColor,aligned:C?this.aligned[C.align]:"both",lineSpace:C?C.lineSpace:1.25},ne)}}]),FontStyleMixin}(k());cu=__decorate([ae],cu);var uu=__webpack_require__(98522),du=JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun","family":"宋体, SimSun"},{"ch":"Times New Roman","en":"Times New Roman","family":"Times New Roman"}],"CH":[{"name":"初号","value":42},{"name":"小初","value":36},{"name":"一号","value":26},{"name":"小一","value":24},{"name":"二号","value":22},{"name":"小二","value":18},{"name":"三号","value":16},{"name":"小三","value":15},{"name":"四号","value":14},{"name":"小四","value":12},{"name":"五号","value":10.5},{"name":"小五","value":9},{"name":"六号","value":7.5},{"name":"小六","value":6.5},{"name":"七号","value":5.5},{"name":"八号","value":5}]}'),hu=function(l){(0,Y.Z)(HoDocs,l);var u=(0,ee.Z)(HoDocs);function HoDocs(){var l;return(0,q.Z)(this,HoDocs),l=u.apply(this,arguments),l.hoEditorFactoryIdList=[],l.docList=[0],l.drawPageLength=0,l.activePageIndex=0,l.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,gestation:!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},l.defaultDocProperty={version:vn,type:0,title:"",docID:"",patientID:"",patientName:"",lastEditTime:"",lastEditorID:"",lastEditorName:"",currentIP:""},l.contentIsModify={isModify:!1},l}return(0,$.Z)(HoDocs,[{key:"controlProperty",get:function get(){return this.getControlProperty()}},{key:"contentIsModifyChange",value:function contentIsModifyChange(l){this.$emit("contentIsModify",this.contentIsModify)}},{key:"editJsonChange",value:function editJsonChange(l){l&&null!==l&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),l))}},{key:"getCustomProperty",value:function getCustomProperty(){return this.customProperty}},{key:"getParagraphCustomProperty",value:function getParagraphCustomProperty(){return this.paragraphCustomProperty}},{key:"textStyleChange",value:function textStyleChange(l){this.$emit("textStyleChange",l)}},{key:"modalStatusChange",value:function modalStatusChange(l){"find"!==l[0]?this.setControlProperty(l[0],l[1],l[2]):this.controlFindType=!0}},{key:"controlTypeChange",value:function controlTypeChange(l,u){if(""===l&&["text","date","comment","paragraph"].includes(u)&&(this.$emit("closeTextModal"),this.customPropertyValue={}),["text","date"].includes(l))(0,Ui.Kn)(this.customPropertyValue)&&this.$emit("openTextModal",_objectSpread2({},this.customPropertyValue));else if(["comment"].includes(l)){var _,v=null===(_=rt.b.instance().getFactory(this.activeDocId).vueController.getOnSelectedComment())||void 0===_?void 0:_.customProperty;v&&this.$emit("openTextModal",_objectSpread2({},v))}}},{key:"pagePropertyChange",value:function pagePropertyChange(l){l&&this.initPageProperty(_objectSpread2({},l))}},{key:"docPropertyChange",value:function docPropertyChange(l){var u=this;if(l){l.version&&delete l.version,Object.keys(l).forEach((function(_){void 0!==l[_]&&null!==l[_]&&(u.defaultDocProperty[_]=l[_])}));var _=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0];if(_){var v=rt.b.instance().hoEditorFactoryMap.get(_);v&&(v.docTree.docProperty=this.defaultDocProperty)}}}},{key:"isFixedPrintToA4Change",value:function isFixedPrintToA4Change(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l),_=this.isFixedPrintToA4;!0===_?_="1":!1===_&&(_=""),u&&(u.isFixedPrintToA4=_)}},{key:"isUseImagePrintChange",value:function isUseImagePrintChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isUseImagePrint=this.isUseImagePrint)}},{key:"isUseFormChange",value:function isUseFormChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isUseForm=this.isUseForm)}},{key:"superiorSignsChange",value:function superiorSignsChange(){if(Array.isArray(this.superiorSigns)){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.superiorSigns=(0,U.Z)(this.superiorSigns))}}},{key:"isCanEditHeadFootChange",value:function isCanEditHeadFootChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isCanEditHeadFoot=this.isCanEditHeadFoot)}},{key:"printBlackChange",value:function printBlackChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.printBlack=this.printBlack)}},{key:"isEnabledGlobalColorChange",value:function isEnabledGlobalColorChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isEnabledGlobalColor=this.isEnabledGlobalColor)}},{key:"isSameColorWithEmptyVlaueChange",value:function isSameColorWithEmptyVlaueChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.isSameColorWithEmptyVlaue=this.isSameColorWithEmptyVlaue)}},{key:"created",value:function created(){var l=this;window.oncontextmenu=function(l){l.preventDefault()},this.$nextTick((function(){l.editJson&&l.editJson.findModal&&(document.onkeydown=function(u){var _=u.keyCode||u.which||u.charCode,v=u.ctrlKey||u.metaKey;v&&70===_&&(u.preventDefault(),l.controlFindType=!l.controlFindType),27===_&&(l.controlFindType=!1)})})),this.docList.forEach((function(){var u=(0,Lt.y)("HO"),_=new fo(u);l.hoEditorFactoryIdList.push(u),Array.isArray(l.superiorSigns)&&l.superiorSigns.length>0&&(_.superiorSigns=(0,U.Z)(l.superiorSigns)),!0===l.isFixedPrintToA4?_.isFixedPrintToA4="1":!1===l.isFixedPrintToA4?_.isFixedPrintToA4="":_.isFixedPrintToA4=l.isFixedPrintToA4,_.isUseImagePrint=l.isUseImagePrint,_.isUseForm=l.isUseForm,_.printBlack=l.printBlack,_.isEnabledGlobalColor=l.isEnabledGlobalColor,_.isSameColorWithEmptyVlaue=l.isSameColorWithEmptyVlaue,_.contentIsModify=l.contentIsModify,_.isCanEditHeadFoot=l.isCanEditHeadFoot,_.docTree.docProperty=l.defaultDocProperty,rt.b.instance().hoEditorFactoryMap.set(u,_)})),uu.Z.instance().imageNodeList=this.deleteImageNodeList,this.editJson&&null!==this.editJson&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),this.editJson)),this.setActiveDocIndex(this.hoEditorFactoryIdList[0]),this.$nextTick((function(){l.pageProperty&&l.initPageProperty(_objectSpread2({},l.pageProperty))}))}},{key:"rightClickEvent",value:function rightClickEvent(l){var u=this,_=this.getRightClickNodeValue(),v=rt.b.instance().getFactory(this.activeDocId);_.rightTypeIsTable=v.docTree.curDomRange.normalize().inSameTable()[0],_.rightPosition=l;var C=_.node();_.labelNode=function(){var l=[],_="",v=rt.b.instance().getFactory(u.activeDocId),k=v.vueController.getDomRange();if(null!==k&&void 0!==k&&k.isEmpty)C instanceof Si.P&&(l.push(C),_="toText");else{_="toLabel";var N=k.startPath,B=k.endPath,U=Ie.a.getSelectDomNodes(u.activeDocId,N,B,!0)[0];U.length>0&&U.forEach((function(u){u instanceof Si.P&&(_="toText",l.push(u))}))}return{labelNode:[].concat(l),isIncludes:_}},_.isElement=!1,_.canShowComment=v.drawTree.paintStatus===Ee.Dh.psEdit||v.drawTree.paintStatus===Ee.Dh.psReview||v.drawTree.paintStatus===Ee.Dh.psReadOnly,_.isHideComments=v.isHideComments,_.activePageIndex=this.activePageIndex,_.paintStatus=v.drawTree.paintStatus;var k=v.vueController.getDomRange(),N=k.inSameTable(),U=(0,B.Z)(N,2),W=U[0],q=U[1];W&&q&&(_.tableProperty={canAddRow:q.tableProperty.canAddRow,canDeleteRow:q.tableProperty.canDeleteRow}),_.getParagraphNode=function(){var l,_=null===(l=v.vueController.findNodebyPath(u.domRange.endPath))||void 0===l?void 0:l.node;return _?v.drawTree.getDrawLineByDNode(_.drawNodes[0]).paragraphNode:null},_.isCanUseTableProperty=v.isCanUseTableProperty,this.$emit("rightClickEvent",_)}},{key:"initListener",value:function initListener(){var l=this;window.oncontextmenu=function(l){l.preventDefault()},this.$nextTick((function(){l.editJson.findModal&&(document.onkeydown=function(u){var _=u.keyCode||u.which||u.charCode,v=u.ctrlKey||u.metaKey;v&&70===_&&(u.preventDefault(),l.controlFindType=!l.controlFindType),27===_&&(l.controlFindType=!1)})}))}},{key:"insertComments",value:function insertComments(l){this.$emit("insertComments",l)}},{key:"dblNodeClick",value:function dblNodeClick(l){this.$emit("dblClickEvent",l)}},{key:"setFontStyles",value:function setFontStyles(){var l=rt.b.instance().getFactory(this.activeDocId);this.setFontStyle(l)}},{key:"setActivePageIndex",value:function setActivePageIndex(l){this.activePageIndex=l}},{key:"setActiveDocIndex",value:function setActiveDocIndex(l){this.activeDocId=l;var u=rt.b.instance().getFactory(this.activeDocId);u.hoLocalStorage.initHoWebSql(),this.$emit("docReady",{vueController:u.vueController,baseController:u.baseController,domController:u.domController,editController:u.editController,elementController:u.elementController,nodeController:u.nodeController,printController:u.printController,reviewController:u.reviewController,selectController:u.selectController,tableController:u.tableController})}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(l){this.drawPageLength=l}},{key:"initPageProperty",value:function initPageProperty(l){var u=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],_=rt.b.instance().hoEditorFactoryMap.get(u);if(_){var v,C=_objectSpread2({},l);C.fontFormat=C.fontFormat?null===(v=C.fontFormat)||void 0===v?void 0:v.match(/[\u4e00-\u9fa5]/g).join(""):"宋体",isNaN(Number(C.fontSize))?(du.CH.forEach((function(l){l.name===C.fontSize&&(C.fontSize=Number(l.value))})),isNaN(Number(C.fontSize))&&(C.fontSize=14)):C.fontSize=Number(C.fontSize),C.charSpace=C.charSpace?null===_||void 0===_?void 0:_.unitConvert.mmConversionPx(10*Number(C.charSpace),!0):0,C.lineHeight=Number(C.lineHeight)?Number(C.lineHeight):1.25,isNaN(Number(l.signHeight))||(_.signHeight=Number(l.signHeight)),l.elementBackColor&&_.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"}),!0===l.pasteBase||!1===l.pasteBase?_.pasteBase=l.pasteBase:_.pasteBase=!1,_.openXmled?(delete C.leftMarginMm,delete C.rightMarginMm,delete C.topMarginMm,delete C.bottomMarginMm,delete C.headerYMm,delete C.footerYMm):(isNaN(Number(C.leftMarginMm))?C.leftMarginMm=15:C.leftMarginMm=Number(C.leftMarginMm),isNaN(Number(C.rightMarginMm))?C.rightMarginMm=15:C.rightMarginMm=Number(C.rightMarginMm),isNaN(Number(C.topMarginMm))?C.topMarginMm=25:C.topMarginMm=Number(C.topMarginMm),isNaN(Number(C.bottomMarginMm))?C.bottomMarginMm=10:C.bottomMarginMm=Number(C.bottomMarginMm),isNaN(Number(C.headerYMm))?C.headerYMm=3:C.headerYMm=Number(C.headerYMm),isNaN(Number(C.footerYMm))?C.footerYMm=3:C.footerYMm=Number(C.footerYMm)),delete C.signHeight,delete C.pasteBase,delete C.elementBackColor,_.vueController.setPageProperty(JSON.stringify(C))}}},{key:"closeControlModal",value:function closeControlModal(){this.setControlProperty("","add","")}},{key:"blankAreaRightClick",value:function blankAreaRightClick(l){l.target instanceof HTMLDivElement&&l.target.className}}]),HoDocs}(mixins(su,cu,lu));__decorate([Prop()],hu.prototype,"editJson",void 0),__decorate([Prop()],hu.prototype,"docStatus",void 0),__decorate([Prop()],hu.prototype,"modalStatus",void 0),__decorate([Prop()],hu.prototype,"docProperty",void 0),__decorate([Prop()],hu.prototype,"uploadImageParams",void 0),__decorate([Prop()],hu.prototype,"customProperty",void 0),__decorate([Prop()],hu.prototype,"paragraphCustomProperty",void 0),__decorate([Prop()],hu.prototype,"deleteImageNodeList",void 0),__decorate([Prop()],hu.prototype,"pageProperty",void 0),__decorate([Prop()],hu.prototype,"superiorSigns",void 0),__decorate([Prop({default:!0})],hu.prototype,"notUseModal",void 0),__decorate([Prop({default:!0})],hu.prototype,"isCanEditHeadFoot",void 0),__decorate([Prop({default:!1})],hu.prototype,"isUseTipText",void 0),__decorate([Prop({default:""})],hu.prototype,"isFixedPrintToA4",void 0),__decorate([Prop({default:!0})],hu.prototype,"isUseImagePrint",void 0),__decorate([Prop({default:!1})],hu.prototype,"isUseForm",void 0),__decorate([Prop({default:!0})],hu.prototype,"printBlack",void 0),__decorate([Prop({default:!1})],hu.prototype,"isEnabledGlobalColor",void 0),__decorate([Prop({default:!1})],hu.prototype,"isSameColorWithEmptyVlaue",void 0),__decorate([Watch("contentIsModify",{deep:!0})],hu.prototype,"contentIsModifyChange",null),__decorate([Watch("editJson")],hu.prototype,"editJsonChange",null),__decorate([Provide()],hu.prototype,"getCustomProperty",null),__decorate([Provide()],hu.prototype,"getParagraphCustomProperty",null),__decorate([Watch("textStyle",{deep:!0})],hu.prototype,"textStyleChange",null),__decorate([Watch("modalStatus",{deep:!0})],hu.prototype,"modalStatusChange",null),__decorate([Watch("controlType",{deep:!0})],hu.prototype,"controlTypeChange",null),__decorate([Watch("pageProperty",{deep:!0})],hu.prototype,"pagePropertyChange",null),__decorate([Watch("docProperty",{deep:!0})],hu.prototype,"docPropertyChange",null),__decorate([Watch("isFixedPrintToA4",{deep:!0})],hu.prototype,"isFixedPrintToA4Change",null),__decorate([Watch("isUseImagePrint",{deep:!0})],hu.prototype,"isUseImagePrintChange",null),__decorate([Watch("isUseForm",{deep:!0})],hu.prototype,"isUseFormChange",null),__decorate([Watch("superiorSigns")],hu.prototype,"superiorSignsChange",null),__decorate([Watch("isCanEditHeadFoot")],hu.prototype,"isCanEditHeadFootChange",null),__decorate([Watch("printBlack")],hu.prototype,"printBlackChange",null),__decorate([Watch("isEnabledGlobalColor")],hu.prototype,"isEnabledGlobalColorChange",null),__decorate([Watch("isSameColorWithEmptyVlaue")],hu.prototype,"isSameColorWithEmptyVlaueChange",null),hu=__decorate([ae({name:"HoDocs",components:{HoDoc:Nn,HoFooter:Ro,ControlModal:qc,FindReplaceDialog:Qc,ViewContinuousXml:au}})],hu);var _u=hu,pu=_u,fu=normalizeComponent(pu,render,N,!1,null,null,null),gu=fu.exports,ToolBarvue_type_template_id_0e95df22_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("tabs",{attrs:{tabKey:l.tabKey},on:{tabClick:l.mainBarClick,updateTabKey:l.updateTabKey}},[l._t("beforeBrowse"),_("tab-pane",{attrs:{isShow:l.defaultBrowseJson.isBrowse,label:"浏览模式",notHover:!0,name:"ho-browse"}},[l.defaultBrowseJson.saveAsFile?_("li",{staticClass:"sub-bar-items"},[_("el-dropdown",{attrs:{trigger:"click"}},[_("span",{staticClass:"el-dropdown-link"},[l._v("另存为")]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("xml")}}},[l._v("XML")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("html")}}},[l._v("HTML")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("pdf")}}},[l._v("PDF")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("plain")}}},[l._v("TXT")]),_("el-dropdown-item",{nativeOn:{click:function(u){return l.saveAsFile("json")}}},[l._v("JSON")])],1)],1)],1):l._e(),l.isPrinted?_("li",{staticClass:"sub-bar-items"},[_("span",{class:l.isPrintClass,on:{click:l.outPrinted}},[l._v("退出打印预览状态")])]):l._e(),_("li",{staticClass:"sub-bar-items"},[l.defaultBrowseJson.printed?_("span",{class:l.printedClass,on:{click:l.printed}},[l._v("打印")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultBrowseJson.printSelected?_("span",{class:l.printSelectedClass,on:{click:l.printSelected}},[l._v("打印拖动鼠标选中区域")]):l._e()]),_("li",{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[l.defaultBrowseJson.printCaret?_("span",{class:l.printCaretClass,on:{click:l.printCaret}},[l._v("打印鼠标点击位置")]):l._e()]),_("li",{staticClass:"sub-bar-items",staticStyle:{border:"0"}},[l.defaultBrowseJson.printContinue?_("span",{class:l.printContinueClass,on:{click:l.printContinue}},[l._v("续打")]):l._e()]),_("HoPrintDialog",{attrs:{vueController:l.vueController,printBeforeStatus:5,printModal:l.printModal},on:{closed:l.closedHoPrintModal}})],1),l._t("beforeEdit"),_("tab-pane",{attrs:{isShow:l.defaultEditJson.isEdit,label:"编辑模式",notHover:!0,name:"ho-edit"}},[_("ToolBarChild",{attrs:{editJson:l.defaultEditJson,vueController:l.vueController,tabStatus:l.tabStatus,textStyle:l.textStyle,uploadImageParams:l.uploadImageParams},on:{setModalStatus:l.setModalStatus}})],1),l._t("afterEdit"),_("tab-pane",{attrs:{isShow:l.defaultEditJson.isInsertElement,label:"插入",name:"ho-insert"}},[_("tool-control",{attrs:{insert:l.defaultEditJson,vueController:l.vueController,uploadImageParams:l.uploadImageParams},on:{setModalStatus:l.setModalStatus},scopedSlots:l._u([{key:"hoInsertItem",fn:function(){return[l._t("insideInsert")]},proxy:!0}],null,!0)})],1),_("tab-pane",{attrs:{isShow:l.defaultEditJson.isInsertTable,label:"表格",name:"ho-table"}},[_("tool-table",{attrs:{table:l.defaultEditJson,tableProperty:{canAddRow:l.textStyle.canAddRow,canDeleteRow:l.textStyle.canDeleteRow},vueController:l.vueController},scopedSlots:l._u([{key:"hoTableItem",fn:function(){return[l._t("insideTable")]},proxy:!0}],null,!0)})],1),_("tab-pane",{attrs:{isShow:l.defaultReviewJson.isReview,label:"审阅模式",name:"ho-review"}},[_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.insertComment?_("span",{staticClass:"review",on:{click:function(u){return u.stopPropagation(),l.createControlComment.apply(null,arguments)}}},[l._v("插入批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.editComment?_("span",{staticClass:"review",on:{click:l.editComment}},[l._v("编辑批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.deleteComment?_("span",{staticClass:"review",on:{click:l.deleteComment}},[l._v("删除批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.deleteAllComment?_("span",{staticClass:"review",on:{click:l.deleteAllComment}},[l._v("删除全部批注")]):l._e()]),_("li",{staticClass:"sub-bar-items"},[l.defaultReviewJson.cancelDelete?_("span",{staticClass:"review",on:{click:l.cancelDelete}},[l._v("取消删除文本")]):l._e()]),l._t("insertReview"),l.defaultReviewJson.printStatus?_("li",{staticClass:"sub-bar-items"},[_("span",{on:{click:l.reviewPrintStatus}},[l._v(l._s(l.isPrinted?"显示批注":"隐藏批注"))])]):l._e()],2),l._t("afterReview")],2)},mu=[],HoMedicalExpressionvue_type_template_id_7096edd1_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{staticClass:"sub-bar-items"},[_("el-dropdown",{class:l.dropdownClassName+" ho-medical-expression-list",attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange,command:l.selectedSure}},[_("span",{staticClass:"el-dropdown-link"},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}})]),_("span",[l._v("医学表达式")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{attrs:{command:"style1"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130 60"}},[_("g",{staticClass:"text",attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"48",y:"13"}},[l._v("经期")]),_("text",{attrs:{x:"48",y:"55"}},[l._v("周期")]),_("text",{attrs:{x:"75",y:"33"}},[l._v("末次月经")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 52 30 L 70 30"}})])])]),_("el-dropdown-item",{attrs:{command:"style2"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"5",y:"20"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("经期")]),_("text",{attrs:{x:"5",y:"50"}},[l._v("末次月经")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("周期")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 5 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-dropdown-item",{attrs:{command:"style3"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"50",y:"13"}},[l._v("经期")]),_("text",{attrs:{x:"40",y:"55"}},[l._v("末次月经")]),_("text",{attrs:{x:"83",y:"33"}},[l._v("周期")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 15 5 L 110 55"}}),_("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),_("el-dropdown-item",{attrs:{command:"style4"}},[_("p",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("初潮年龄")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("经期")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("周期")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 62 30 L 110 30"}}),_("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),_("el-dropdown-item",{attrs:{command:"style5"}},[_("p",[l._v("瞳孔图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"10",y:"25"}},[l._v("1")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("2")]),_("text",{attrs:{x:"10",y:"40"}},[l._v("3")]),_("text",{attrs:{x:"45",y:"40"}},[l._v("4")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("5")]),_("text",{attrs:{x:"10",y:"55"}},[l._v("6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("7")])])])]),_("el-dropdown-item",{attrs:{command:"style6"}},[_("p",[l._v("光定位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"10",y:"25"}},[l._v("1")]),_("text",{attrs:{x:"10",y:"40"}},[l._v("4")]),_("text",{attrs:{x:"10",y:"55"}},[l._v("7")]),_("text",{attrs:{x:"45",y:"25"}},[l._v("2")]),_("text",{attrs:{x:"45",y:"40"}},[l._v("5")]),_("text",{attrs:{x:"45",y:"55"}},[l._v("8")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("3")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("9")])])])]),_("el-dropdown-item",{attrs:{command:"style7"}},[_("p",[l._v("胎心图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"26",y:"15"}},[l._v("1")]),_("text",{attrs:{x:"26",y:"35"}},[l._v("4")]),_("text",{attrs:{x:"26",y:"55"}},[l._v("7")]),_("text",{attrs:{x:"84",y:"15"}},[l._v("2")]),_("text",{attrs:{x:"84",y:"35"}},[l._v("5")]),_("text",{attrs:{x:"84",y:"55"}},[l._v("8")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 0 30 L 10 30"}}),_("path",{attrs:{d:"M 52 30 L 67 30"}}),_("path",{attrs:{d:"M 110 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-dropdown-item",{attrs:{command:"style8"}},[_("p",[l._v("恒牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("12345678")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("12345678")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),_("el-dropdown-item",{attrs:{command:"style9"}},[_("p",[l._v("乳牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("I II III IV V")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("I II III IV V")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)],1)],1)},vu=[],yu=function(l){(0,Y.Z)(DropDownClassNameMixins,l);var u=(0,ee.Z)(DropDownClassNameMixins);function DropDownClassNameMixins(){var l;return(0,q.Z)(this,DropDownClassNameMixins),l=u.apply(this,arguments),l.dropdownClassName="",l}return(0,$.Z)(DropDownClassNameMixins,[{key:"dropdownChange",value:function dropdownChange(l){this.dropdownClassName=l?"drop-down-open":"drop-down-close"}}]),DropDownClassNameMixins}(k());yu=__decorate([ae],yu);var bu=function(l){(0,Y.Z)(HoMedicalExpression,l);var u=(0,ee.Z)(HoMedicalExpression);function HoMedicalExpression(){return(0,q.Z)(this,HoMedicalExpression),u.apply(this,arguments)}return(0,$.Z)(HoMedicalExpression,[{key:"selectedSure",value:function selectedSure(l){this.$emit("openExpress",l)}}]),HoMedicalExpression}(mixins(yu));bu=__decorate([ae({name:"HoMedicalExpression"})],bu);var wu=bu,xu=wu,Pu=normalizeComponent(xu,HoMedicalExpressionvue_type_template_id_7096edd1_scoped_true_render,vu,!1,null,"7096edd1",null),Cu=Pu.exports,HoPrintDialogvue_type_template_id_f8a2f34e_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-dialog",{attrs:{title:"打印设置",top:"200px",visible:l.printDialog,center:"",width:"40%","before-close":l.closedHoPrintModal,"append-to-body":"","destroy-on-close":"","close-on-click-modal":!1},on:{"update:visible":function(u){l.printDialog=u}}},[_("section",{staticClass:"ho-print-content"},[_("el-radio",{attrs:{size:"medium",label:0},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("全部打印")]),_("el-radio",{attrs:{label:1},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("奇数页")]),_("el-radio",{attrs:{label:2},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("偶数页")]),_("div",{staticClass:"ho-print-more"},[_("el-radio",{attrs:{label:3},model:{value:l.printMode,callback:function(u){l.printMode=u},expression:"printMode"}},[l._v("打印指定页:")]),_("el-input",{attrs:{disabled:3!==l.printMode,size:"mini",placeholder:"示例: 1, 2-4, 5, 7-10, 12"},model:{value:l.printAppoint,callback:function(u){l.printAppoint=u},expression:"printAppoint"}})],1),l.errorText?_("div",{staticClass:"ho-print-error"},[l._v(l._s(l.errorText))]):l._e(),_("div",{staticClass:"ho-print-title"},[l._v("指定页: 1, 2-4, 5, 7-10, 12")])],1),_("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{size:"mini",type:"primary"},on:{click:l.hoPrinted}},[l._v("确 定")]),_("el-button",{attrs:{size:"mini"},on:{click:l.closedHoPrintModal}},[l._v("取 消")])],1)])},Eu=[],Su=function(l){(0,Y.Z)(HoPrintDialog,l);var u=(0,ee.Z)(HoPrintDialog);function HoPrintDialog(){var l;return(0,q.Z)(this,HoPrintDialog),l=u.apply(this,arguments),l.printMode=0,l.printAppoint="",l.errorText="",l}return(0,$.Z)(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 l=this.vueController.printPromisePDF(this.printMode,this.printAppoint);l?this.errorText=l:this.$emit("closed","sure")}},{key:"closedHoPrintModal",value:function closedHoPrintModal(){this.$emit("closed","cancel")}}]),HoPrintDialog}(k());__decorate([Prop()],Su.prototype,"vueController",void 0),__decorate([Prop()],Su.prototype,"printModal",void 0),__decorate([Prop()],Su.prototype,"printBeforeStatus",void 0),__decorate([Watch("printMode")],Su.prototype,"printModeChange",null),Su=__decorate([ae({name:"HoPrintDialog"})],Su);var Tu=Su,Du=Tu,ku=normalizeComponent(Du,HoPrintDialogvue_type_template_id_f8a2f34e_render,Eu,!1,null,null,null),Iu=ku.exports,Mu=function(l){(0,Y.Z)(ToolFamily,l);var u=(0,ee.Z)(ToolFamily);function ToolFamily(){var l;return(0,q.Z)(this,ToolFamily),l=u.apply(this,arguments),l.fontFamily=du.TN,l.fontSize=du.CH,l.isSuperScript=!1,l.isSubScript=!1,l.familySelected="微软雅黑",l.fontSizeSelected="14",l.font={ch:"宋体",en:"SimSun"},l.size={name:"四号",value:14},l.isBold=!1,l.isItalic=!1,l.isUnderline=!1,l.isStrikeout=!1,l.backcolor="transparent",l.color="#333333",l.predefineColors=["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#158577","#ffffff","#000000"],l.fontFamilyVisible=!1,l.fontSizeVisible=!1,l.fontColorVisible=!1,l.backColorVisible=!1,l}return(0,$.Z)(ToolFamily,[{key:"textStyleChange",value:function textStyleChange(l){this.setCurrentFonts(l)}},{key:"setCurrentFonts",value:function setCurrentFonts(l){this.isBold=l.bold,this.isItalic=l.italic,this.isUnderline=l.underline,this.isStrikeout=l.strikeout,this.backcolor=l.backColor,this.color=l.color,this.isSuperScript=2===l.script,this.isSubScript=1===l.script;var u=du.TN.filter((function(u){if(u.ch===l.font)return u}));Array.isArray(u)&&0!==u.length?this.font=u[0]:this.font={ch:"",en:""};var _=du.CH.filter((function(u){if(u.value===l.size)return u}));Array.isArray(_)&&0!==_.length?this.size=_[0]:this.size={name:"",value:0}}},{key:"fontFamilyClick",value:function fontFamilyClick(l){this.font=l,this.fontFamilyVisible=!1,this.vueController.fontFormat(l.ch)}},{key:"fontSizeClick",value:function fontSizeClick(l){this.size=l,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(l){var u=l.split(","),_=parseInt(u[0].split("(")[1]),v=parseInt(u[1]),C=parseInt(u[2].split(")")[0]),k="#"+((1<<24)+(_<<16)+(v<<8)+C).toString(16).slice(1).toLocaleUpperCase();return k}},{key:"backcolorChanges",value:function backcolorChanges(l){var u=l;-1!==l.indexOf("rgb")?u=this.rgbToHex(u):null===l&&(u="transparent"),this.backColorChange(u)}},{key:"backColorChange",value:function backColorChange(l){var u=l;this.backcolor=u,null===l&&(u="transparent"),this.vueController.fontBackColor(u)}},{key:"colorChanges",value:function colorChanges(l){var u=l;-1!==l.indexOf("rgb")?u=this.rgbToHex(u):null===l&&(u="transparent"),this.fontColorChange(u)}},{key:"fontColorChange",value:function fontColorChange(l){var u=l;this.color=u,null===l&&(u="transparent"),this.vueController.fontColor(u)}},{key:"isSupportFontFamily",value:function isSupportFontFamily(l){var u="Arial";if(l.toLowerCase()==u.toLowerCase())return!0;var _="a",v=100,C=100,k=100,N=document.createElement("canvas"),B=N.getContext("2d");N.width=C,N.height=k,B.textAlign="center",B.fillStyle="black",B.textBaseline="middle";var U=function g(l){B.clearRect(0,0,C,k),B.font=v+"px "+l+", "+u,B.fillText(_,C/2,k/2);var N=B.getImageData(0,0,C,k).data;return[].slice.call(N).filter((function(l){return 0!=l}))};return U(u).join!==U(l).join}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.family;return u("li",{class:"sub-bar-items sub-bar-not-item-hover"},[_.family?u(Mo,{attrs:_objectSpread2({},{title:"字体",poperStyle:{width:"160px",textAlign:"left"}})},[u("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[u("span",{class:"el-dropdown-link"},[this.font.ch,u("i",{class:"el-icon-arrow-down el-icon--right"})]),u("el-dropdown-menu",{slot:"dropdown"},[this.fontFamily.map((function(_){return u("el-dropdown-item",{key:_.en,class:_.en===l.font.en?"selected":"",style:{fontFamilys:_.ch},nativeOn:{click:function click(){return l.fontFamilyClick(_)}}},[u("span",[_.ch])])}))])])]):null,_.size?u(Mo,{attrs:_objectSpread2({},{title:"字号",poperStyle:{width:"60px",textAlign:"left"}})},[u("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[u("span",{class:"el-dropdown-link"},[this.size.name,u("i",{class:"el-icon-arrow-down el-icon--right"})]),u("el-dropdown-menu",{slot:"dropdown"},[this.fontSize.map((function(_){return u("el-dropdown-item",{key:_.name,class:_.name===l.size.name?"selected":"",nativeOn:{click:function click(){return l.fontSizeClick(_)}}},[_.name])}))])])]):null,_.enlargeSize?u(Mo,{attrs:_objectSpread2({},{title:"增大字体",svg:"fontSizeEnlarge"}),nativeOn:{click:this.fontSizeEnlargeClick.bind(this)}}):null,_.decreaseSize?u(Mo,{attrs:_objectSpread2({},{title:"缩小字体",svg:"fontSizeDecrease"}),nativeOn:{click:this.fontSizeDecreaseClick.bind(this)}}):null,_.superScript?u(Mo,{attrs:_objectSpread2({},{title:"上标",svg:"fontSuperScript",selected:this.isSuperScript}),nativeOn:{click:this.fontSuperScriptClick.bind(this)}}):null,_.subScript?u(Mo,{attrs:_objectSpread2({},{title:"下标",svg:"fontSubScript",selected:this.isSubScript}),nativeOn:{click:this.fontSubScriptClick.bind(this)}}):null,_.bold?u(Mo,{attrs:_objectSpread2({},{title:"加粗",svg:"bold",selected:this.isBold}),nativeOn:{click:this.fontBoldClick.bind(this)}}):null,_.underline?u(Mo,{attrs:_objectSpread2({},{title:"下划线",svg:"underline",selected:this.isUnderline}),nativeOn:{click:this.fontUnderlineClick.bind(this)}}):null,_.strikeout?u(Mo,{attrs:_objectSpread2({},{title:"删除线",svg:"strikeout",selected:this.isStrikeout}),nativeOn:{click:this.fontStrikeoutClick.bind(this)}}):null,_.fontColor?u(Mo,{attrs:_objectSpread2({},{title:"字体颜色",poperStyle:{padding:"0",width:"50px"}})},[u("div",{class:"color-picker-menu"},[u("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17"},style:"transform: translate(8px, 0px)"},[u("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-4 -3)"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("rect",{attrs:{width:"16",height:"3",x:"4",y:"17",fill:this.color,rx:"1.5"}})])]),u("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,_.backColor?u(Mo,{attrs:_objectSpread2({},{title:"背景颜色",poperStyle:{padding:"0",width:"50px"}})},[u("div",{class:"color-picker-menu"},[u("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 1024 1024"},style:"transform: translate(2px, 0px)"},[u("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"}}),u("path",{attrs:{d:"M851.536842 485.052632H970.105263l-247.915789 269.473684H377.263158z",fill:this.backcolor}})]),u("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}(k());__decorate([Prop()],Mu.prototype,"vueController",void 0),__decorate([Prop()],Mu.prototype,"family",void 0),__decorate([Prop()],Mu.prototype,"textStyle",void 0),__decorate([Watch("textStyle",{deep:!0})],Mu.prototype,"textStyleChange",null),Mu=__decorate([ae({name:"ToolFamily",components:{Poper:Mo}})],Mu);var Nu=Mu,Ou=function(l){(0,Y.Z)(ToolParagraph,l);var u=(0,ee.Z)(ToolParagraph);function ToolParagraph(){var l;return(0,q.Z)(this,ToolParagraph),l=u.apply(this,arguments),l.aligned="both",l.lineHeight=1.25,l.lineHeightList=[1.25,1.5,2,2.5,3],l.lineHeightVisible=!1,l.isInMenu=!1,l.toolMenuOpenPath=[],l}return(0,$.Z)(ToolParagraph,[{key:"alignChange",value:function alignChange(l){l&&(this.aligned=l)}},{key:"lineSpaceChange",value:function lineSpaceChange(l){l&&(this.lineHeight=l)}},{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(l){this.lineHeightVisible=!1,this.vueController.setLineHeight(l)}},{key:"closeToolMenus",value:function closeToolMenus(l){var u=this;this.toolMenuOpenPath.length>0&&this.toolMenuOpenPath.forEach((function(l){u.toolMenu.closeMenu(l)}))}},{key:"toolMenuSelected",value:function toolMenuSelected(l,u){this.toolMenuOpenPath=u}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.paragraph;this.isInMenu;return u("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-not-item-hover"},[_.alignLeft?u(Mo,{attrs:_objectSpread2({},{title:"向左对齐",svg:"alignLeft",selected:"left"===this.aligned}),nativeOn:{click:this.alignedLeft.bind(this)}}):null,_.alignCenter?u(Mo,{attrs:_objectSpread2({},{title:"居中对齐",svg:"alignCenter",selected:"center"===this.aligned}),nativeOn:{click:this.alignedCenter.bind(this)}}):null,_.alignRight?u(Mo,{attrs:_objectSpread2({},{title:"向右对齐",svg:"alignRight",selected:"right"===this.aligned}),nativeOn:{click:this.alignedRight.bind(this)}}):null,_.alignBoth?u(Mo,{attrs:_objectSpread2({},{title:"两端对齐",svg:"alignBoth",selected:"both"===this.aligned}),nativeOn:{click:this.alignedBothEnds.bind(this)}}):null,_.addIndent?u(Mo,{attrs:_objectSpread2({},{title:"增加缩进",svg:"addIndent"}),nativeOn:{click:this.addIndentClick.bind(this)}}):null,_.decreaseIndent?u(Mo,{attrs:_objectSpread2({},{title:"减少缩进",svg:"decreaseIndent"}),nativeOn:{click:this.decreaseIndentClick.bind(this)}}):null,_.setHeight?u(Mo,{attrs:_objectSpread2({},{title:"设置行高",poperStyle:{width:"44px"}})},[u("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start",tabindex:-1}},[u("span",{class:"el-dropdown-link"},[u("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"15",viewBox:"0 0 13 15"},style:"transform: translate(5px, -1px)"},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(-6 -5)"}},[u("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)"}})])]),u("i",{class:"el-icon-arrow-down el-icon--right"})]),u("el-dropdown-menu",{slot:"dropdown"},[this.lineHeightList.map((function(_){return u("el-dropdown-item",{key:"line-height-"+_,class:_===l.lineHeight?"selected":"",nativeOn:{click:function click(){return l.lineHeightClick(_)}}},[1.25===_?1:_])}))])])]):null])}}]),ToolParagraph}(k());__decorate([Prop()],Ou.prototype,"vueController",void 0),__decorate([Prop()],Ou.prototype,"paragraph",void 0),__decorate([Ref()],Ou.prototype,"toolMenu",void 0),__decorate([Prop()],Ou.prototype,"align",void 0),__decorate([Prop()],Ou.prototype,"lineSpace",void 0),__decorate([Watch("align")],Ou.prototype,"alignChange",null),__decorate([Watch("lineSpace")],Ou.prototype,"lineSpaceChange",null),Ou=__decorate([ae({name:"ToolParagraph",components:{Poper:Mo}})],Ou);var Lu=Ou,MedicalExpressionsvue_type_template_id_2ab05066_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticStyle:{overflow:"hidden",height:"640px"},attrs:{native:!1}},[_("el-menu-item",{staticClass:"express-item",attrs:{index:"style1"},on:{click:function(u){return l.selectedSure("style1")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("Value1")]),_("text",{attrs:{x:"43",y:"13"}},[l._v("Value2")]),_("text",{attrs:{x:"43",y:"55"}},[l._v("Value3")]),_("text",{attrs:{x:"83",y:"33"}},[l._v("Value4")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 40 30 L 80 30"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style2"},on:{click:function(u){return l.selectedSure("style2")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"15",y:"20"}},[l._v("Value1")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("Value2")]),_("text",{attrs:{x:"15",y:"50"}},[l._v("Value3")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("Value4")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 10 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style3"},on:{click:function(u){return l.selectedSure("style3")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("Value1")]),_("text",{attrs:{x:"43",y:"13"}},[l._v("Value2")]),_("text",{attrs:{x:"43",y:"55"}},[l._v("Value3")]),_("text",{attrs:{x:"83",y:"33"}},[l._v("Value4")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 15 5 L 110 55"}}),_("path",{attrs:{d:"M 15 55 L 110 5"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style4"},on:{click:function(u){return l.selectedSure("style4")}}},[_("span",[l._v("经期史")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"33"}},[l._v("Value1")]),_("text",{attrs:{x:"70",y:"20"}},[l._v("Value2")]),_("text",{attrs:{x:"70",y:"50"}},[l._v("Value3")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 62 30 L 110 30"}}),_("path",{attrs:{d:"M 45 45 L 55 15"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style5"},on:{click:function(u){return l.selectedSure("style5")}}},[_("span",[l._v("瞳孔图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"25"}},[l._v("Value1")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("Value2")]),_("text",{attrs:{x:"0",y:"40"}},[l._v("Value3")]),_("text",{attrs:{x:"40",y:"40"}},[l._v("Value4")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("Value5")]),_("text",{attrs:{x:"0",y:"55"}},[l._v("Value6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("Value7")])])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style6"},on:{click:function(u){return l.selectedSure("style6")}}},[_("span",[l._v("光定位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"0",y:"25"}},[l._v("Value1")]),_("text",{attrs:{x:"0",y:"40"}},[l._v("Value4")]),_("text",{attrs:{x:"0",y:"55"}},[l._v("Value7")]),_("text",{attrs:{x:"40",y:"25"}},[l._v("Value2")]),_("text",{attrs:{x:"40",y:"40"}},[l._v("Value5")]),_("text",{attrs:{x:"40",y:"55"}},[l._v("Value8")]),_("text",{attrs:{x:"80",y:"25"}},[l._v("Value3")]),_("text",{attrs:{x:"80",y:"40"}},[l._v("Value6")]),_("text",{attrs:{x:"80",y:"55"}},[l._v("Value9")])])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style7"},on:{click:function(u){return l.selectedSure("style7")}}},[_("span",[l._v("胎心图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"12",y:"15"}},[l._v("Value1")]),_("text",{attrs:{x:"12",y:"35"}},[l._v("Value4")]),_("text",{attrs:{x:"12",y:"55"}},[l._v("Value7")]),_("text",{attrs:{x:"70",y:"15"}},[l._v("Value2")]),_("text",{attrs:{x:"70",y:"35"}},[l._v("Value5")]),_("text",{attrs:{x:"70",y:"55"}},[l._v("Value8")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 0 30 L 10 30"}}),_("path",{attrs:{d:"M 52 30 L 67 30"}}),_("path",{attrs:{d:"M 110 30 L 120 30"}}),_("path",{attrs:{d:"M 60 0 L 60 60"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style8"},on:{click:function(u){return l.selectedSure("style8")}}},[_("span",[l._v("恒牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("12345678")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("87654321")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("12345678")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])]),_("el-menu-item",{staticClass:"express-item",attrs:{index:"style9"},on:{click:function(u){return l.selectedSure("style9")}}},[_("span",[l._v("乳牙牙位图")]),_("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 60"}},[_("g",{attrs:{stroke:"none",fill:"#000000"}},[_("text",{attrs:{x:"3",y:"23"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"23"}},[l._v("I II III IV V")]),_("text",{attrs:{x:"3",y:"47"}},[l._v("V IV III II I")]),_("text",{attrs:{x:"63",y:"47"}},[l._v("I II III IV V")])]),_("g",{attrs:{fill:"none",stroke:"#000000"}},[_("path",{attrs:{d:"M 2 30 L 118 30"}}),_("path",{attrs:{d:"M 60 10 L 60 50"}})])])])],1)},Au=[],Ru=function(l){(0,Y.Z)(MedicalExpression,l);var u=(0,ee.Z)(MedicalExpression);function MedicalExpression(){return(0,q.Z)(this,MedicalExpression),u.apply(this,arguments)}return(0,$.Z)(MedicalExpression,[{key:"selectedSure",value:function selectedSure(l){this.$emit("open-express","express","add",l)}}]),MedicalExpression}(k());Ru=__decorate([ae({name:"MedicalExpression"})],Ru);var Fu=Ru,ju=Fu,Bu=normalizeComponent(ju,MedicalExpressionsvue_type_template_id_2ab05066_scoped_true_render,Au,!1,null,"2ab05066",null),Uu=Bu.exports,UploadImagevue_type_template_id_83f7ba12_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-upload",{ref:"upload",staticClass:"upload-image",attrs:{action:"","file-list":l.fileList,"auto-upload":!1,"on-change":l.uploadImage,accept:"image/*"}},[_("el-menu-item",{attrs:{slot:"trigger",index:"upload"},slot:"trigger"},[_("svg",{attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("g",{attrs:{transform:"translate(1 1)"}},[_("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"}}),_("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),_("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"}})])]),_("span",{attrs:{size:"small"}},[l._v("图片")])])],1)},Hu=[],Wu=function(l){(0,Y.Z)(UploadImage,l);var u=(0,ee.Z)(UploadImage);function UploadImage(){var l;return(0,q.Z)(this,UploadImage),l=u.apply(this,arguments),l.fileList=[],l}return(0,$.Z)(UploadImage,[{key:"uploadImage",value:function uploadImage(l){var u=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var _=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",v=new FormData;v.append(_,l.raw),pl({url:this.uploadImageParams.uploadUrl,method:"POST",data:v}).then((function(_){var v,C="";if(null!==(v=u.uploadImageParams)&&void 0!==v&&v.callbackParamName||"string"!==typeof _){var k,N=null===(k=u.uploadImageParams)||void 0===k?void 0:k.callbackParamName;C=_[N]}else C=JSON.parse(_).imgUrl;if(C){var B=new Image;B.src=C,B.onload=function(){u.vueController.insertImage(C,B.width,B.height)}}else u.insertBase64Image(l)}),(function(){u.insertBase64Image(l)}))}else this.insertBase64Image(l)}},{key:"insertBase64Image",value:function insertBase64Image(l){var u=this,_=new FileReader;_.onload=function(l){var _=new Image,v=l.target.result;_.src=v,_.onload=function(){u.vueController.insertImage(v,_.width,_.height),u.fileList=[]}},_.readAsDataURL(l.raw)}}]),UploadImage}(k());__decorate([Prop()],Wu.prototype,"vueController",void 0),__decorate([Prop()],Wu.prototype,"uploadImageParams",void 0),Wu=__decorate([ae({name:"UploadImage"})],Wu);var qu=Wu,zu=qu,Vu=normalizeComponent(zu,UploadImagevue_type_template_id_83f7ba12_scoped_true_render,Hu,!1,null,"83f7ba12",null),Ku=Vu.exports,SpecialCharsvue_type_template_id_149aee36_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-menu-item",{staticClass:"special-characters",attrs:{disabled:"",index:"style1"}},[_("section",[_("ul",[_("li",[_("header",[l._v("特殊字符")]),_("p",{staticClass:"chars-list special-chars-list"},l._l(l.specialChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("罗马字符")]),_("p",{staticClass:"chars-list"},l._l(l.romanChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("数学字符")]),_("p",{staticClass:"chars-list"},l._l(l.mathChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)])])])])},$u=[],Gu=function(l){(0,Y.Z)(SpecialChars,l);var u=(0,ee.Z)(SpecialChars);function SpecialChars(){var l;return(0,q.Z)(this,SpecialChars),l=u.apply(this,arguments),l.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],l.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡","▽","△","▷","◁","/","∕"],l.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],l.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],l.usedChars=[],l}return(0,$.Z)(SpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(l){if(this.vueController.insertSpecialChars("",l),this.usedChars.includes(l))return!1;this.usedChars.unshift(l),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var l=this;this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),SpecialChars}(k());__decorate([Prop()],Gu.prototype,"controlStatus",void 0),__decorate([Prop()],Gu.prototype,"vueController",void 0),Gu=__decorate([ae({name:"SpecialChars"})],Gu);var Zu=Gu,Ju=Zu,Xu=normalizeComponent(Ju,SpecialCharsvue_type_template_id_149aee36_scoped_true_render,$u,!1,null,"149aee36",null),Yu=Xu.exports,Qu=function(l){(0,Y.Z)(ToolControls,l);var u=(0,ee.Z)(ToolControls);function ToolControls(){var l;return(0,q.Z)(this,ToolControls),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.dateFormatValue=[],l.dateFormat=Lt.vc,l.fileList=[],l.tableFormulaValue=[],l.tableFormulaList=["sum(a3:a10)","(a1 + a20) * 2"],l}return(0,$.Z)(ToolControls,[{key:"initDropdown",value:function initDropdown(){var l=this,u=[];this.dateFormatList.forEach((function(_,v){v<10&&u.push(l.dateFormat("",_))})),this.dateFormatValue=[].concat(u);var _=[];this.tableFormulaList.forEach((function(l){_.push(l)})),this.tableFormulaValue=[].concat(_)}},{key:"created",value:function created(){this.initDropdown()}},{key:"createControl",value:function createControl(l){this.$emit("setModal",[l,"add",""])}},{key:"openExpress",value:function openExpress(){for(var l=arguments.length,u=new Array(l),_=0;_<l;_++)u[_]=arguments[_];this.$emit("setModal",u)}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModal",["","add",""])}},{key:"selectedDate",value:function selectedDate(l,u){if("more"===l)this.$emit("setModal",["date","add",""]);else{var _={id:this.vueController.generateID("DT"),name:"",text:u,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:l};this.vueController.insertDateTime("add",JSON.stringify(_))}}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.insert,v=this.vueController;return u("el-submenu",{attrs:{"popper-class":"insert-menus",index:"control"}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}})]),u("span",["插入"])]),_.express?u("el-submenu",{attrs:{index:"express","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}})]),u("span",["医学表达式"])]),u(Uu,{on:{"open-express":this.openExpress.bind(this)}})]):null,_.specialChars?u("el-submenu",{attrs:{index:"specialChars","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("defs",[u("g",{attrs:{id:"watermark"}},[u("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"}}),u("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"}})])]),u("use",{attrs:{"xlink:href":"#watermark"}})]),u("span",["特殊字符"])]),u(Yu,{attrs:_objectSpread2({},{vueController:v}),on:{"close-menu":this.closeMenu.bind(this)}})]):null,_.datetime?u("el-submenu",{attrs:{index:"datetime","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("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"}})]),u("span",["日期时间"])]),this.dateFormatValue.map((function(_,v){return u("el-menu-item",{class:"date-time-item",attrs:{index:l.dateFormatList[v]},key:_+v,on:{click:function click(){return l.selectedDate(l.dateFormatList[v],_)}}},[_])})),u("el-menu-item",{class:"date-time-item",attrs:{index:"datetimemore"},on:{click:function click(){return l.selectedDate("more","")}}},["更多日期属性"])]):null,_.select?u("el-menu-item",{attrs:{index:"select"},on:{click:function click(){return l.createControl("select")}}},[u("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}})]),u("span",["下拉框"])]):null,_.text?u("el-menu-item",{attrs:{index:"text"},on:{click:function click(){return l.createControl("text")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("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"}})]),u("span",["文本域"])]):null,_.uploadImage?u(Ku,{attrs:_objectSpread2({},{vueController:v,uploadImageParams:this.uploadImageParams})}):null,_.barcode?u("el-menu-item",{attrs:{index:"bar-code"},on:{click:function click(){return l.createControl("barcode")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}})]),u("span",["条形码"])]):null,_.qrcode?u("el-menu-item",{attrs:{index:"qr-code"},on:{click:function click(){return l.createControl("qrcode")}}},[u("svg",{attrs:{viewBox:"0 0 1041 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"13"}},[u("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),u("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"}}),u("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),u("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),u("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),u("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),u("span",["二维码"])]):null,_.radioBox?u("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return l.createControl("RadioBox")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}})]),u("span",["单选框"])]):null,_.checkBox?u("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return l.createControl("CheckBox")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}}),u("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"}})]),u("span",["复选框"])]):null,_.pageInfoes?u("el-menu-item",{attrs:{index:"RadioBox"},on:{click:function click(){return l.createControl("pageInfoes")}}},[u("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[u("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"}})]),u("span",["页码页数信息"])]):null])}}]),ToolControls}(mixins(lu));__decorate([Prop()],Qu.prototype,"vueController",void 0),__decorate([Prop()],Qu.prototype,"insert",void 0),__decorate([Prop()],Qu.prototype,"uploadImageParams",void 0),Qu=__decorate([ae({name:"ToolControls",components:{MedicalExpressions:Uu,SpecialChars:Yu,UploadImage:Ku}})],Qu);var ed=Qu,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){l.isDocumentShow=!1},expression:"\n () => {\n isDocumentShow = false;\n }\n "}],staticClass:"sub-bar-items",style:l.isDocumentShow?"background-color: #eaeaea;":"background-color: #fff;"},[_("div",{staticClass:"sub-bar-item",staticStyle:{width:"80px"},on:{click:l.openDocument}},[l._v(" 更新说明 ")]),l.isDocumentShow?_("div",{staticClass:"document-item animation-in"},[l._m(0)]):l._e()])},rd=[function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",[_("li",[_("p",[_("span",[l._v("0.3.60 ~ 0.3.95 (累积更新)")]),_("span",[l._v("2021/11/01")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v(" 1:编辑器内存占用量大幅降低; ")]),_("p",[l._v(" 2: 改进生成html功能,使导出的html打印效果跟编辑器直接打印一致 ")]),_("p",[l._v(" 3:增加版本号右键显示 ")]),_("p",[l._v(" 4:编辑模式下隐藏、显示批注; ")]),_("p",[l._v(" 5: 医学表达式增加结构化 ")]),_("p",[l._v(" 6:增加了强制删除功能 ")]),_("p",[l._v(" 7:文本域下拉列表增加对应的keyValue和双击事件; ")]),_("p",[l._v(" 8:签名功能重新设计以适配单人、多人签名 ")]),_("p",[l._v(" 9: 增加日期时间格式和处理方式; ")]),_("p",[l._v(" 10:医学表达式添加下拉列表文字描述; ")]),_("p",[l._v(" 11:复制粘贴文本域时 去掉不必要的标记; ")]),_("p",[l._v(" 12:合并打印返回参数增加`startPageNum: 本次打印起始页面` ")]),_("p",[l._v(" 13:单元格双击下拉列表允许删除; ")]),_("p",[l._v(" 14:移除批量打印结束时恢复打印前文档状态异步调用方式; ")]),_("p",[l._v(" 15:优化页眉页脚内表格结束位置多出空行的问题; ")]),_("p",[l._v(" 16:新增删除当前页接口`vueController.delCurPage(pageIndex)` ")]),_("p",[l._v(" 17:设置页顶端至页眉最小默认高度3mm,小于3MM将影响打印 ")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v(" 1: 修复从word复制粘贴最后多个段落; ")]),_("p",[l._v(" 2: 修复在云平台插入元素时 回车是否对齐总是默认是true的问题; ")]),_("p",[l._v(" 3: 处理当文本域中第一个节点为回车时,造成的无法选中问题; ")]),_("p",[l._v(" 4: 处理日期DataID每次保存都会变的问题; ")]),_("p",[l._v(" 5: 处理页码页数,调整字体大小时,导致重复绘制问; ")]),_("p",[l._v(" 6: 处理提示弹窗高度过高问题; ")]),_("p",[l._v(" 7: 文本域下拉列表单选不显示问题修复 ")]),_("p",[l._v(" 9: 修复表格保存行信息异常; ")]),_("p",[l._v(" 10:修复表格的复制粘贴; ")]),_("p",[l._v(" 11:修复批量打印 另起一页 抬头字体样式不对; ")]),_("p",[l._v(" 13: 处理合并行中非最后一行不同列单元格内容变高度,导致边框未正确绘制问题; ")]),_("p",[l._v(" 14: 修复在表达式后面打字字体样式变成文档默认字体的问题; ")]),_("p",[l._v(" 15: 修复下拉框确认按钮显示不完整问题; ")]),_("p",[l._v(" 16: 修复日期框显示不完整问题; ")]),_("p",[l._v(" 17: 处理续打时已打印页面仍然存在的问题; ")]),_("p",[l._v(" 18: 修改打印起始页判断方式; ")]),_("p",[l._v(" 19:处理表格行线偶尔变粗的问题; ")]),_("p",[l._v(" 20: 处理表格边框变粗问题; ")]),_("p",[l._v(" 21: 文档加载时 文档类型是空时默认类型是病历; ")]),_("p",[l._v(" 22: 合并打印返回打印起始页获取位置调整到重置文档状态前; ")]),_("p",[l._v(" 23: 第一份病历合并或者批量打印时,用settimeout方式异步等待图片缩放完成; ")]),_("p",[l._v(" 24: 处理续打位置错误问题; ")]),_("p",[l._v(" 25:打印移除Safari兼容方法, 修复谷歌浏览器打印卡死问题; ")]),_("p",[l._v(" 26:日期时间格式化函数处理中文格式情况, 修复加载异常问题; ")]),_("p",[l._v(" 27:处理合并多行单元格跨页不绘制问题; ")]),_("p",[l._v(" 28:处理病历由医生打开时,文本域标签重复绘制问题; ")]),_("p",[l._v(" 29: 修复从老版本病历复制粘贴到新版本病历时段落消失的问题; ")]),_("p",[l._v(" 30: 修复删除选区包含不允许删除的元素时删除异常的问题; ")]),_("p",[l._v(" 31: 复制、粘贴MarkNode时带上其样式; ")]),_("p",[l._v(" 32: 处理保存病历时检查元素报错的问题; ")]),_("p",[l._v(" 33: 修复日期设置不成功问题; ")]),_("p",[l._v(" 34: 修复删除问题; ")]),_("p",[l._v(" 35:修复部分日期时间格式加载不显示问题; ")]),_("p",[l._v(" 36:修复下拉框元素双击不弹出问题; ")]),_("p",[l._v(" 37:修复低版本打印空元素仍旧显示问题; ")]),_("p",[l._v(" 38:增加`ElementController.forceDelete`强制删除接口; ")]),_("p",[l._v(" 39:修复批量打印时表格内样式加载不对问题; ")]),_("p",[l._v(" 40:修复日期时间表单修改时自动设置当前时间问题; ")]),_("p",[l._v(" 41:优化弹窗定位方式; ")]),_("p",[l._v(" 42:修复chromium内核浏览器粗体打印不显示问题; ")]),_("p",[l._v(" 43:修复另存为的html文件在浏览器上打开后右键打印多出空白页问题; ")]),_("p",[l._v(" 44:需要自定义列表的下拉框和文本域下来列表修改: ")]),_("p",[l._v(" 45:修复批量加载文档; ")]),_("p",[l._v(" 46:处理合并打印时,表格线超过正文内容绘制到页脚的问题; ")]),_("p",[l._v(" 47:处理页码绘制占位宽度不够 48:导致两位数页码时,页码跟文本内容重叠的问题;; ")]),_("p",[l._v(" 49:处理文本域双击下拉选择的文本长短不同时,导致的选区报错问题; ")]),_("p",[l._v(" 50:修复打开文件报错问题 ")]),_("p",[l._v(" 51:修复页眉页脚加载样式错误问题; ")]),_("p",[l._v(" 52:修复文本域内光标位置错误问题; ")]),_("p",[l._v(" 53:修复打印时打印样式未加载成功问题; ")]),_("p",[l._v(" 54:处理自动换行行线模糊,断断续续绘制不完全的问题; ")]),_("p",[l._v(" 55: 下拉列表多选时选中值按列表顺序排列,不再按选中先后顺序排列; ")]),_("p",[l._v(" 56:修复打开非A4纸病历,不显示内容问题; ")]),_("p",[l._v(" 57:处理加载时,如果左右边距与页面默认设置不匹配,导致的偏移问题; ")]),_("p",[l._v(" 58:修复签名删除问题 ")]),_("p",[l._v(" 59:修复下拉列表单选问题 ")]),_("p",[l._v(" 60:修复84版本谷歌浏览器打印问题; ")]),_("p",[l._v(" 61: 修复下拉选择中搜索功能选择和插入顺序问题; ")]),_("p",[l._v(" 62:修复字体样式中带有特殊字符(下划线_),导致打印生成svg不识别无法打印的问题 ")])])]),_("li",[_("p",[_("span",[l._v("0.3.2 ~ 0.3.59 (累积更新)")]),_("span",[l._v("2021/09/29")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1:改进打印,转成svg进行打印,打印质量与word、wps达到一致")]),_("p",[l._v("2: 增加英文与数字分词功能,行首不出现标点,英文数字整体换行")]),_("p",[l._v("3: 新增病历合并显示功能")]),_("p",[l._v("4: 新增批量打印,合并打印,续打连续病历功能")]),_("p",[l._v("5: 新增元素联动功能")]),_("p",[l._v("6: 单元格绑定控件,可以双击单元格实现下拉、日期、固定值填充等")]),_("p",[l._v(" 7: 新增设计模式,元素表格设置的权限在此模式不受限制,用于制作模板 ")]),_("p",[l._v("8: 字号单位由px变更为pt,以适配超高清屏幕")]),_("p",[l._v("9: 打印不再新开页签,直接在当前页弹打印对话框")]),_("p",[l._v("10: 新增打印全部页,奇数页,偶数页,指定页打印设置")]),_("p",[l._v(" 11: 新增customProperty参数用来配置文本域,日期表单自定义属性项; ")]),_("p",[l._v(" 12: 新增pageProperty参数用来初始化编辑器字体字号字间距段落等部分全局样式; ")]),_("p",[l._v("13: 新增插入分隔符功能")]),_("p",[l._v("14: 新增标签转文本和文本转标签的接口方法及右键菜单项;")]),_("p",[l._v("15: 新增编辑器组件emit返回右键事件和双击事件;")]),_("p",[l._v("16: 新增获取所有元素的接口")]),_("p",[l._v("17: 新增接口方法: 验证病历文档中所有的文本域的数据格式")]),_("p",[l._v("18: 新增格式刷以及对应的撤销恢复功能")]),_("p",[l._v("19: 新增单元格属性背景色backColor属性")]),_("p",[l._v("20: 新增数学公式插入表单弹窗")]),_("p",[l._v("21: 新增签名接口和表单弹窗")]),_("p",[l._v("22: 新增行或者列时,复制当前行或者列的单元格的编辑器属性")]),_("p",[l._v(" 23: 新增tab键响应:光标移到下一个元素,日期和下拉列表控件处于选中状态按enter键弹框 ")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 修复行首退格导致输入域丢失提示文本与边框的问题")]),_("p",[l._v("2: 修复单元格另存xml后加载丢失边框问题")]),_("p",[l._v(" 3: 修复设置输入域固定宽度后,在输入域中打字,导致后续内容丢失的问题 ")]),_("p",[l._v(" 4: 修复打印清晰度,打印预览单元格边框不显示,横向打印多出空白页的问题 ")]),_("p",[l._v("5: 修复光标换页错位问题")]),_("p",[l._v("6: 修复在文本中插入回车无效问题")]),_("p",[l._v("7: 修复加载文件单元格属性不起作用")]),_("p",[l._v("9: 修复设置打印起始位置当起始行为表格时无效问题")]),_("p",[l._v("10: 修复页眉未打印问题")]),_("p",[l._v("11: 修复设置分页后加载表格多插入了一页的问题")]),_("p",[l._v("12: 修复文本域修改无法实时更新文本域宽度问题")]),_("p",[l._v("13: 修复图片上传接口返回图片地址接收错误问题")]),_("p",[l._v("14: 修复空文本域打印预览时不打印初始化显示的字")]),_("p",[l._v("15: 修复方向键的响应问题")]),_("p",[l._v(" 16: 修复当选择起始点为自动换行文本非首行起始点时,选区范围绘制错误问题 ")]),_("p",[l._v("17: 修复打印导致除当前页外无法选中的问题")]),_("p",[l._v("18: 修复删除元素不能撤销的问题")]),_("p",[l._v(" 19: 修复输入域内的输入域设置固定宽度后,导致父区域指定的宽度无效问题 ")]),_("p",[l._v("20: 修复pageProperty初始化循环设置问题")]),_("p",[l._v("21: 修复导致设计模式不生效问题和菜单栏切换错误问题")]),_("p",[l._v(" 22: 修复单元格内更新文本域内容带自动换行时,换行后的内容出现在表格外的问题 ")]),_("p",[l._v(" 23: 修复表格中带公式,修改表格内容触发公式计算 导致表格后的非表格行消失问题 ")]),_("p",[l._v("24: 修复工具栏文件,插入表格等菜单配置项错误")]),_("p",[l._v(" 25: 修复打印方向变化后预览界面白色背景未重绘导致出现黑色区域问题,打印预览图片缩放未完成导致预览界面图片与文档图片大小不一致问题 ")]),_("p",[l._v("26: 修复文档的加载")]),_("p",[l._v("27: 修复加载病历时行高获取异常的问题")]),_("p",[l._v("28: 修复表格某列多行合并后跨页绘制异常问题")]),_("p",[l._v("29: 修复调用`openXml`加载文档首页页眉未加载出来的问题")]),_("p",[l._v("30: 修复文档加载时文本域的段落使用块对齐不起作用")]),_("p",[l._v("31: 修复从旧版病历复制粘贴到新版病历,会导致大面积斜体问题")]),_("p",[l._v(" 32: 统一行位置设置坐标位置为段落节点内,不再在其他地方设置行的x坐标,避免位置不齐 ")]),_("p",[l._v("33: 处理在调整表格行列大小时,会误选中单元格内容的问题")]),_("p",[l._v("34: 处理在行较多时,合并多行后,行线会覆盖下面的行的问题")]),_("p",[l._v(" 35: 处理在合并多行列的隔隔行编辑时,合并多行的单元格未正确绘制边框的问题 ")]),_("p",[l._v("36: 修复右键删除签名异常的问题")]),_("p",[l._v("37: 处理输入域在文档中设置了固定宽度后,导致文档对不齐的问题")]),_("p",[l._v("38: 处理表格内合并单元格中文本域混乱问题")]),_("p",[l._v("39: 修复日期修改导致节点后内容被覆盖的问题")]),_("p",[l._v("40: 处理文本域内需要点击两次才能切换菜单的问题")]),_("p",[l._v(" 41: 修复文本域多层嵌套,子文本域内容变动时复文本域内容未更新的问题 ")]),_("p",[l._v("42: 修复单元格表单打开时内边距问题")]),_("p",[l._v("43: 处理合并多行的单元格,绘制时偏移问题")]),_("p",[l._v("44: 处理打印时页眉中的图片未正常显示问题")]),_("p",[l._v(" 45: 处理在页眉中编辑表格导致重绘异常,以及错误的将页眉中的表格绘制于正文的问题 ")]),_("p",[l._v(" 46: 修复双击弹出下拉列表高度不够导致无法动态调整位置和下拉列表高度的问题 ")])])]),_("li",[_("p",[_("span",[l._v("0.3.1")]),_("span",[l._v("2021/08/05")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 表格中插入求和、四则混合运算")]),_("p",[l._v("2: 新增接口页眉页脚插入")]),_("p",[l._v("3: 日期控件增加labelText")]),_("p",[l._v(" 4: 新增接口方法: 保存选区内容(病历段落)、插入段落、删除元素、删除选区内内容 ")]),_("p",[l._v("5: 新增接口方法: 保存与替换页眉页脚")]),_("p",[l._v("6: 元素增加属性是否自动回填")]),_("p",[l._v("7: 新增接口方法: 读取xml病历字符串")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 编辑状态无法打印的问题")]),_("p",[l._v("2: 编辑批注错误问题")]),_("p",[l._v("3: 诊断换行无效问题")]),_("p",[l._v("4: 处理删除输入域 导致输入域后面的文本也被 删除的问题")]),_("p",[l._v("5: 护理记录标题行弹控件问题")])]),_("div",[_("h3",[l._v("others:")]),_("p",[l._v("1: UI优化")])])]),_("li",[_("p",[_("span",[l._v("0.3.0")]),_("span",[l._v("2021/07/31")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 工具栏独立抽出成组件,调用方开源并允许修改")]),_("p",[l._v("2: 增加插入html文本串接口")]),_("p",[l._v("3: 工具栏增加配置功能")]),_("p",[l._v(" 4: 增加直接修改xml文件输入域text字段,加载文件根据text生成节点功能 ")]),_("p",[l._v("5: 绘制页根据可视范围进行创建与销毁,以优化内存")]),_("p",[l._v("6: 增加修改元素的接口方法")]),_("p",[l._v("7: 上传图片的接口方法")]),_("p",[l._v("8: 增加了不合并续打功能")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 修复可视化区监听错误,导致页面多绘问题")]),_("p",[l._v("2: 页面设置弹窗重新打开时获取上次设置信息失败问题")]),_("p",[l._v("3: 绘制方式变更后引入的无法选择问题修复")]),_("p",[l._v("4: 绘制方式变更后换页问题修复")]),_("p",[l._v(" 5: 绘制方式变更后的选择问题、双击问题、路径失效问题、页码问题、全局样式问题 ")]),_("p",[l._v("6: 时间格式小时解析成HH的问题")]),_("p",[l._v("7: 在有文本的行插入图片时造成的行高异常问题")])]),_("div",[_("h3",[l._v("others:")]),_("p",[l._v("1: 更新并整理文档,增加注释")]),_("p",[l._v("2: 去掉hoeditorFacotry的循环引用,以优化内存占用")]),_("p",[l._v("3: 接口方法梳理分类并整理")]),_("p",[l._v("4: 去掉对drawPages的循环引用,以优化内存")]),_("p",[l._v("5: 对可视区外的页面进行销")]),_("p",[l._v("6: 打印功能多入口合并成一个管理对象进行管理")])])]),_("li",[_("p",[_("span",[l._v("0.2.5")]),_("span",[l._v("2021/07/19")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 文本域中的段落使用块对齐")]),_("p",[l._v("2: 另存为json功能")]),_("p",[l._v("3: 存储格式节点名称变更成类型名称")]),_("p",[l._v("4: 直接打印功能,会新开页签")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 输入域元素无法通过下拉选择更新内容,如单选、多选")]),_("p",[l._v("2: 文本域块模式文本超出自动换行不能正确显示,回车换行显示正常")]),_("p",[l._v("3: 在页面设置中设置字间距过大后,会导致文本超出面的右边界")]),_("p",[l._v("4: 批注跨页丢失")]),_("p",[l._v("5: 区域打印,打印了后续页,第三页不能选区的问题")]),_("p",[l._v("6: 文本域里面有换行 保存再加载 显示不对")]),_("p",[l._v(" 7: 在页的末行加批注 第一次点确定没反应 再点一次才插入成功 有偶然性 有时候又正常 ")]),_("p",[l._v("8: 表格删除无法撤销的问题")]),_("p",[l._v("9: 文本域不能嵌套")]),_("p",[l._v(" 10: 分页后,光标无法定位到第一页的后面几行,第二页也无法录入文字 ")]),_("p",[l._v("11: 文本域取消选中全局文本色,没什么变化")])])]),_("li",[_("p",[_("span",[l._v("0.2.4")]),_("span",[l._v("2021/07/13")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 文本自动换行结束处不能回车换行的问题")]),_("p",[l._v("2: 不能区域打印与续打的问题")]),_("p",[l._v("3: 保存为xml文件丢失空格问题")])])]),_("li",[_("p",[_("span",[l._v("0.2.3")]),_("span",[l._v("2021/07/09")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),_("p",[l._v("2: 修正不同的质控层级的批注颜色")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 文本域不能嵌套bug")]),_("p",[l._v("2: 文本域全局文本色无效问题")]),_("p",[l._v("3: 在非首页批注导致页面不可见问题")]),_("p",[l._v("4: 分页后光标无法定位到跨页表格前几行的问题")]),_("p",[l._v("5: 护理记录单第二页前几行无法弹出的问题")]),_("p",[l._v("6: 表格后面删除 然后双击,表格消失问题")]),_("p",[l._v("7: 工具栏字体样式不随光标位置变化问题修复")]),_("p",[l._v("8: 牙位图双击修改后显示错位修复")]),_("p",[l._v("9: 处理调整列宽 合并单元格没有正常绘制边框的问题")]),_("p",[l._v("10: 跨页单元格尾行绘制的行线过多问题、多一行的空行问题")]),_("p",[l._v("11: 日期选择无法选中问题修复")]),_("p",[l._v("12: 未设置允许被删除仍能删除的问题")]),_("p",[l._v("13: 选择一行合并把第二行也合并的问题")]),_("p",[l._v("14: 在横打界面批注,绘制位置偏差的问题")])]),_("div",[_("h3",[l._v("others:")]),_("p",[l._v("1: 表格调整宽度功能优化")]),_("p",[l._v("2: 单元格垂直对齐优化")]),_("p",[l._v("3: 优化表格录入较卡的问题")])])]),_("li",[_("p",[_("span",[l._v("0.2.2")]),_("span",[l._v("2021/06/30")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 表格中插入列后删除列导致表单宽度异常问题")]),_("p",[l._v("2: 修正不同的质控层级的批注颜色")])])]),_("li",[_("p",[_("span",[l._v("0.2.1")]),_("span",[l._v("2021/06/29")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1: 增加护理记录表单模式编辑病历、包括自动换行、表格列编辑器等")]),_("p",[l._v("2: 批量设置行高、列宽")]),_("p",[l._v("3: 元素使用特殊背景色标识")]),_("p",[l._v("4: 增加一级质控员、二级质控员、三级质控员不同的颜色标记")]),_("p",[l._v("5: 增加状态栏显示文件信息、病历类型、修改时间等功能")]),_("p",[l._v("6: 增加病历文档版本号")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v("1: 浏览模式可编辑的问题")]),_("p",[l._v("2 : 处理单元格内对齐方式无效问题")]),_("p",[l._v("3: 处理无法选择合并单元格问题")]),_("p",[l._v("4: 列宽过窄时,文本跳到相邻单元格问题")]),_("p",[l._v(" 5: 在文档编辑过程中切换纸张大小 文档首行的文本显示不正确的问题 ")]),_("p",[l._v("6: 取消合并单元格无效问题")]),_("p",[l._v("7: 列合并单元格左侧插入列,显示混乱问题")]),_("p",[l._v("8: 页眉页脚错乱问题")]),_("p",[l._v("9: 页码显不对问题")]),_("p",[l._v("10: 插入自定义行列数时,双击导致多插入行列问题")]),_("p",[l._v("11: 处理左对齐无效,行缩进无效问题")]),_("p",[l._v("12: 表格后偶尔无法录入的问题")])])]),_("li",[_("p",[_("span",[l._v("0.1.1")]),_("span",[l._v("2021/06/08")])]),_("div",[_("h3",[l._v("feat:")]),_("p",[l._v("1. 增加自定义表格行列,自定义插入行列")])]),_("div",[_("h3",[l._v("bugFix:")]),_("p",[l._v(" 1: 选中一段文本进行样式变更 变更完之后鼠标点击选区的前几个字没有反应 ")]),_("p",[l._v("2: 插入一个空文本域 标记框内初始化显示的文字不对")]),_("p",[l._v("3: 插入页码 显示不对")]),_("p",[l._v("4: 合并单元格保存后加载第一行行宽不对的问题")]),_("p",[l._v("5: 删除表格无效与删除后无法撤销恢复表格问题")]),_("p",[l._v("6: 处理取消合并单元格无效问题")]),_("p",[l._v("7: 选中图片后, 隐藏光标")]),_("p",[l._v(" 8: 表格, 上、下插入行或者左、右插入列后, 将新插入的行或者列处于选中状态, 并隐藏光标 ")]),_("p",[l._v("9: 修复编辑批注后, 批注内容较多时, 覆盖其它批注的问题")]),_("p",[l._v("10: 给表格增加列属性, 修改对应的文档的加载和保存")]),_("p",[l._v(" 11: 修复当当前页有选区时, 取消光标聚焦到页的起始位置, 以免发生跳转 ")]),_("p",[l._v("12: 修复插入一个空文本域, 域内初始化显示的文字不对的问题")]),_("p",[l._v("13: 修复文件加载后段落样式没起作用的问题")]),_("p",[l._v("14: 根据最新的绘制逻辑, 修复方向键的响应")]),_("p",[l._v("15: 打印功能整理到编辑模式菜单中")])])]),_("li",{staticClass:"version-line"}),_("li",[_("span",[l._v("2021/6/01 星期二")]),_("p",[l._v("1. 内存性能进一步优化")]),_("p",[l._v("2. 优化表格拖放边框线")]),_("p",[l._v("3. 处理最右侧无法插入列的问题")])]),_("li",[_("span",[l._v("2021/5/21 星期五")]),_("p",[l._v(" 1. 分页绘制优化,引入滚动绘制(不绘制非可视区域),进一步优化绘制速度 ")]),_("p",[l._v("2. 增加编辑批注,添加编辑和删除批注操作提示")]),_("p",[l._v("3. 修复表单粘贴无效且粘贴内容出现在文档中的问题")]),_("p",[l._v("4. 修复多页文档时日期选择弹窗多次创建问题")])]),_("li",[_("span",[l._v("2021/5/21 星期五")]),_("p",[l._v("1. 测试与bug修复")]),_("p",[l._v("2.整理与去HIS的对接文档")])]),_("li",[_("span",[l._v("2021/5/21 星期五")]),_("p",[l._v("1. 重写文本绘制算法,对绘制速度进一步优化")]),_("p",[l._v("2. 优化段落样式变更速度(主要是分散对齐)")]),_("p",[l._v("2. 处理绘制优化后产生的问题")]),_("p",[l._v(" 3. 去绘制缓存,由于速度已经非常快,不再需要绘制缓存,缓存会造成文字变粗 ")])]),_("li",[_("span",[l._v("2021/5/6 星期四")]),_("p",[l._v("1. 重写绘制算法,将删除重绘变更为移动重绘")]),_("p",[l._v("2. 重写表格绘制功能,优化整体性能以及调通变更后的绘制错误")])]),_("li",[_("span",[l._v("2021/5/6 星期四")]),_("p",[l._v("1. 根据新的绘制算法调整批注的插入、选中、删除和对应的文件的保存")]),_("p",[l._v("2. 根据新的绘制算法调整图片的缩放功能")])]),_("li",[_("span",[l._v("2021/4/12 星期一")]),_("p",[l._v("1. 工具栏页面设置功能完善")]),_("p",[l._v("2. 工具栏撤销恢复功能完善")]),_("p",[l._v("3. 工具栏上标下标功能完善")])]),_("li",[_("span",[l._v("2021/03/19 星期一")]),_("p",[l._v("1: bug修复、速度优化、UI优化")])]),_("li",[_("span",[l._v("2021/03/01 星期一")]),_("p",[l._v("1.完善批注的插入 实现批注随着文本的移动而移动")]),_("p",[l._v("2.实现批注的删除和选中时颜色的变化")]),_("p",[l._v("3.实现审阅模式下 逻辑删除")]),_("p",[l._v("4.做插入页码和页数的前期工作")]),_("p",[l._v("5.初步实现文档的新建")])]),_("li",[_("span",[l._v("2021/03/01 星期一")]),_("p",[l._v("1: 页眉页脚中显示页码、页数")]),_("p",[l._v("2: 审阅模式直接输入留痕")]),_("p",[l._v(" 3: 表格的插入行、插入列、删除行、删除列、合并单元格、取消合并单元格、拖动调列宽行高的撤销恢复功能 ")])]),_("li",[_("span",[l._v("2021/03/01 星期一")]),_("p",[l._v("1. 创建表格增加touch事件适配ipad端")]),_("p",[l._v("2. 审阅模式创建和删除提示调整")]),_("p",[l._v("3. 增加页码页数信息插入ui")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 完成web病历自身文档复制剪切粘贴到自身文档")]),_("p",[l._v("2. 完成web病历文档与word文档间的复制剪切粘贴")]),_("p",[l._v("3. 完成web病历文档与记事本文档间复制剪切粘贴")]),_("p",[l._v("4. 完成web病历文档与网页间复制剪切粘贴")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 完善文档xml格式,增加xml数组折叠,改进文档可读性")]),_("p",[l._v("2. 实现图片、条形码、二维码的缩放")]),_("p",[l._v("3. 初步实现审阅模式下逻辑删除;非审阅模式下物理删除")]),_("p",[l._v("4. 初步实现审阅模式下插入批注和批注选中后颜色变化")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 文档元素的滑过提示功能重写")]),_("p",[l._v("2. 工具栏提示组件重新实现,移除elementui组件")]),_("p",[l._v("3. 调整表单弹窗适应iPad")]),_("p",[l._v("4. 审阅模式删除提示和批注添加删除表单功能")])]),_("li",[_("span",[l._v("2021/2/09 星期二")]),_("p",[l._v("1. 表格跨页标题行显示、编辑")]),_("p",[l._v("2. 全文档重绘(切换编辑、审阅等页签时调用)")]),_("p",[l._v("3. 表格插入撤销恢复")]),_("p",[l._v("4. 表格删除撤销恢复")]),_("p",[l._v("5. 表格选中部分单元格内容删除的撤销恢复")]),_("p",[l._v("6. 表格选区绘制与表格部分选择时的选区扩展")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 实现打印记录标记绘制")]),_("p",[l._v("2. 实现续打功能")]),_("p",[l._v("3. 实现打印选中区域功能")]),_("p",[l._v("4. 实现打印选中区域的多选打印")]),_("p",[l._v("5. 实现打印鼠标选中位置打印功能")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 表格边框线绘制")]),_("p",[l._v("2. 表格边框拖动以调整行列大小")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 完善文档xml格式的保存和加载")]),_("p",[l._v("2. 文档另存为txt格式")]),_("p",[l._v("3. 文档另存为html格式")]),_("p",[l._v("4. 实现插入特殊字符")])]),_("li",[_("span",[l._v("2021/1/11 星期一")]),_("p",[l._v("1. 水印设置功能已实现,ui待进一步优化完善")]),_("p"),_("p",[l._v("2. 页面设置完善")]),_("p",[l._v("3. 特殊字符插入功能接入")]),_("p",[l._v("4. 实现插入特殊字符")])]),_("li",[_("span",[l._v("2020/12/22 星期二")]),_("p",[l._v("1. 表格中插入表格行、列")]),_("p",[l._v("2. 合并单元格功能")]),_("p",[l._v("3. 表格中删除行、列")]),_("p",[l._v("4. 页眉显示优化")]),_("p",[l._v("5. 绘制效率优化")]),_("p",[l._v("6. 取消合并单元格")])]),_("li",[_("span",[l._v("2020/12/22 星期二")]),_("p",[l._v("1. 在文本域中插入下拉列表")]),_("p",[l._v("2. 完善文档的保存和加载")]),_("p",[l._v("3. 添加鼠标放到文本域上显示左右标记事件")])]),_("li",[_("span",[l._v("2020/12/22 星期二")]),_("p",[l._v("1. 表格属性,表格行属性,单元格属性弹窗表单UI已完成")]),_("p",[l._v("2. 背景图片设置与清除")]),_("p",[l._v(" 3. Vue组件化完成,可用npm install+文件本地路径方式加载,import方式引入组件及UI,组件内可用HoDoc单标签方式使用 ")]),_("p",[l._v("4. 带有提示文本的控件增加滑过文本提示层")])]),_("li",[_("span",[l._v("2020/12/14 星期一")]),_("p",[l._v("1. 实现插入单复选控件")]),_("p",[l._v("2. 实现插入日期时间控件")]),_("p",[l._v("3. 实现插入下拉列表控件")]),_("p",[l._v("4. 实现控件的样式变更和内容删除控制")]),_("p",[l._v("5. 实现查找和替换")]),_("p",[l._v("6. 实现方向键的响应")]),_("p",[l._v("7. 完善往表格内插入控件和条形码等")]),_("p",[l._v("8. 实现鼠标移动到单复选控件同组照亮")]),_("p",[l._v("9. 完善页眉和页脚的方向键响应")])]),_("li",[_("span",[l._v("2020/12/11 星期五")]),_("p",[l._v("1. 表格的初步插入绘制功能")]),_("p",[l._v("2. 表格行跨页")]),_("p",[l._v("3. 页眉页脚功能")])]),_("li",[_("span",[l._v("2020/12/11 星期五")]),_("p",[l._v("1. 添加文本域节点绘制")]),_("p",[l._v("2. 实现文本域节点嵌套绘制")]),_("p",[l._v("3. 实现文本域节点定长绘制")]),_("p",[l._v("4. 实现文本域节点整体及内容删除控制")]),_("p",[l._v("5. 实现文本域节点内容只读控制")]),_("p",[l._v("6. 实现文本域placeholder显示及操作控制")]),_("p",[l._v("7. 实现文本域节点边界显示隐藏操作")]),_("p",[l._v("8. 重写节点删除undoredo操作")]),_("p",[l._v("9. 重写样式变更undoredo操作")]),_("p",[l._v("10. 添加打印至pdf测试demo")]),_("p",[l._v("11. 处理斜体文字部分被遮盖问题")])]),_("li",[_("span",[l._v("2020/12/11 星期五")]),_("p",[l._v("1. 日期时间插入功能及ui完成,双击弹窗修改日期功能及ui完成")]),_("p",[l._v("2. 下拉框插入功能及ui完成,双击弹窗修改选择功能及ui完成")]),_("p",[l._v("3. 右键菜单列表中,右键选中任一控件的属性修改功能及ui完成")]),_("p",[l._v("5. 重新整理组件内状态管理方式,移除vuex")])]),_("li",[_("span",[l._v("2020/11/16 星期一")]),_("p",[l._v("1. 段落左对齐")]),_("p",[l._v("2. 段落右对齐")]),_("p",[l._v("3. 段落两端对齐")]),_("p",[l._v("4. 段落行间距")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/16 星期一")]),_("p",[l._v("1. 二维码表单和插入功能")]),_("p",[l._v("2. 图片和条形码插入功能修复")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/13 星期五")]),_("p",[l._v("1. 插入文本域 绘制层实现")]),_("p",[l._v("2. 插入图片 绘制层实现")]),_("p",[l._v("3. 插入条形码 绘制层实现")]),_("p",[l._v("4. 插入二维码 绘制层实现")]),_("p",[l._v("5. 插入和修改医学表达 绘制层实现")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/13 星期五")]),_("p",[l._v("1. 下拉菜单ui部分风格统一调整(插入和表格)")]),_("p",[l._v("2. 弹出层部分ui风格统一调整(医学表达式,条形码,文本域)")]),_("p",[l._v("3. 文本域 ui及功能")]),_("p",[l._v("4. 条形码 UI及功能")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/11/5 星期四")]),_("p",[l._v("1. 工具栏列表,底部文字信息栏,文档编辑区域布局UI完成")]),_("p",[l._v("2. 颜色选择组件完成")]),_("p",[l._v(" 3. 选中区域或者输入光标所在位置改变工具栏状态(上标下标加粗下划线删除线颜色等选中位置的样式) ")]),_("p",[l._v("4. 医学表达式添加和修改UI及功能完成")]),_("p",[l._v("5. 日期时间控件UI完成")])]),_("li",{staticClass:"lines"}),_("li",[_("span",[l._v("2020/10/29 星期四")]),_("p",[l._v("1. 文本节点中下划线绘制")]),_("p",[l._v("2. 文本节点中删除线绘制")]),_("p",[l._v("3. 文本节点中上标样式绘制")]),_("p",[l._v("4. 文本节点中下标样式绘制")]),_("p",[l._v("5. 文本节点中背景色绘制")]),_("p",[l._v("6. 节点(单个/多个选中/文本节点中单个文字)删除操作撤销恢复操作")]),_("p",[l._v("7. 节点插入操作撤销恢复操作")]),_("p",[l._v("8. 文本节点中文本插入操作的合并操作添加时间戳判断")]),_("p",[l._v("9. 文本节点拆分操作的撤销恢复操作")]),_("p",[l._v("10. 文字录入中,多文字连续录入合并撤销,合并恢复")])])])}],nd=function(l){(0,Y.Z)(UpdateDocument,l);var u=(0,ee.Z)(UpdateDocument);function UpdateDocument(){var l;return(0,q.Z)(this,UpdateDocument),l=u.apply(this,arguments),l.isDocumentShow=!1,l}return(0,$.Z)(UpdateDocument,[{key:"openDocument",value:function openDocument(){this.isDocumentShow=!this.isDocumentShow}}]),UpdateDocument}(k());nd=__decorate([ae({name:"UpdateDocument"})],nd);var od=nd,ad=od,cd=normalizeComponent(ad,UpdateDocumentvue_type_template_id_01703d21_scoped_true_render,rd,!1,null,"01703d21",null),_d=cd.exports,ToolTablevue_type_template_id_7e9dd939_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-submenu",{attrs:{"popper-class":"insert-menus",index:"tables"}},[_("template",{slot:"title"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[_("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"}})])]),_("span",[l._v("表格")])]),_("el-submenu",{attrs:{index:"insertTable","popper-append-to-body":!0}},[_("template",{slot:"title"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-4 -4)"}},[_("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"}})])]),_("span",[l._v("插入表格")])]),_("el-menu-item",{staticClass:"table-menus",attrs:{index:"0"}},[_("div",{staticClass:"columns",on:{mouseleave:l.clearData}},[_("p",{staticClass:"table-title"},[l._v(" "+l._s(l.rows?l.rows+" x "+l.columns:"插入")+" 表格 ")]),l._l(10,(function(u){return _("div",{key:"row_"+u,staticClass:"rows",on:{mousemove:l.mouse,click:l.createdTables}},l._l(10,(function(v){return _("span",{key:"column_index"+v,class:u<=l.rows&&v<=l.columns?"selected":"",attrs:{"data-column":v,"data-row":u},on:{touchstart:l.touch,touchmove:l.touch,touchend:l.touchend}})})),0)})),_("p",{staticClass:"table-bottom-title",on:{click:function(u){l.dialogFormVisible=!0}}},[l._v(" 自定义行列数 ")])],2)])],2),l.isOpen?_("TableFeatures",{attrs:{className:"insert-rows-columns-menu",vueController:l.vueController,table:l.table},on:{closeMenu:l.closeMenu}}):l._e(),_("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:l.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("el-form",{attrs:{model:l.form}},[_("el-form-item",{attrs:{label:"行数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.rows,callback:function(u){l.$set(l.form,"rows",u)},expression:"form.rows"}})],1),_("el-form-item",{attrs:{label:"列数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.columns,callback:function(u){l.$set(l.form,"columns",u)},expression:"form.columns"}})],1)],1),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{on:{click:function(u){l.dialogFormVisible=!1}}},[l._v("取 消")]),_("el-button",{attrs:{type:"primary"},on:{click:l.sure}},[l._v("确 定")])],1)],1)],2)},pd=[],TableFeaturesvue_type_template_id_624de6d8_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("p",{class:l.className},[_("ul",{staticClass:"mouse-right-menu"},[l.table.insertRowAbove&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("defs",[_("g",{attrs:{id:"insertTableRowsColumns"}},[_("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"}})])]),_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("上方插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.topRows,callback:function(u){l.topRows=u},expression:"topRows"}}),_("span",[l._v(" 行")])],1)]):l._e(),l.table.insertRowBelow&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("下方插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.bottomRows,callback:function(u){l.bottomRows=u},expression:"bottomRows"}}),_("span",[l._v(" 行")])],1)]):l._e(),l.table.insertColLeft&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("左侧插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.leftRows,callback:function(u){l.leftRows=u},expression:"leftRows"}}),_("span",[l._v(" 列")])],1)]):l._e(),l.table.insertColRight&&l.tableProperty.canAddRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("use",{attrs:{"xlink:href":"#insertTableRowsColumns"}})]),_("div",{staticClass:"insert-rows-columns"},[_("span",[l._v("右侧插入 ")]),_("el-input-number",{staticClass:"insert-rows-columns-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:l.rightRows,callback:function(u){l.rightRows=u},expression:"rightRows"}}),_("span",[l._v(" 列")])],1)]):l._e(),l.table.deleteRows&&l.tableProperty.canDeleteRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27213",width:"16",height:"16"}},[_("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"}}),_("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"}})]),_("span",[l._v("删除行")])]):l._e(),l.table.deleteCols&&l.tableProperty.canDeleteRow?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("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"}},[_("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"}}),_("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"}})]),_("span",[l._v("删除列")])]):l._e(),l.table.mergerCells?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[_("path",{attrs:{fill:"#F0F0F0",d:"M0,0 L24,0 L24,24 L0,24 L0,0 Z",opacity:"0"}}),_("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)"}}),_("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"}}),_("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)"}}),_("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"}})])]),_("span",[l._v("合并单元格")])]):l._e(),l.table.unMergerCells?_("li",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"mouse-menu-item"},[_("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16"}},[_("g",{attrs:{"fill-rule":"evenodd",transform:"translate(-3 -4)"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("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)"}}),_("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"}}),_("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)"}})])]),_("span",[l._v("取消合并单元格")])]):l._e()]),_("el-dialog",{attrs:{title:"表格计算公式",width:"520px",visible:l.dialogFormVisible,top:"200px",center:""},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("section",[_("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[l._v(" "+l._s("a3:a10"===l.dialogFormTitle?"求和公式":"四则运算公式")+" ")]),_("div",{staticStyle:{height:"36px","line-height":"36px"}},[l._v("示例: "+l._s(l.dialogFormTitle))]),_("el-input",{attrs:{autocomplete:"off"},model:{value:l.formula,callback:function(u){l.formula=u},expression:"formula"}})],1),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{type:"primary"},on:{click:l.sure}},[l._v("确 定")])],1)])],1)},fd=[],bd=function(l){(0,Y.Z)(TableFeatures,l);var u=(0,ee.Z)(TableFeatures);function TableFeatures(){var l;return(0,q.Z)(this,TableFeatures),l=u.apply(this,arguments),l.tableFormulaValue=[],l.tableCellCode=!1,l.dialogFormVisible=!1,l.dialogFormTitle="",l.formula="",l.isCellSplitModal=!1,l.row=1,l.column=1,l.topRows=1,l.bottomRows=1,l.leftRows=1,l.rightRows=1,l}return(0,$.Z)(TableFeatures,[{key:"setCellCode",value:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.$emit("closeMenu"),this.init()}},{key:"tableInsertRowAbove",value:function tableInsertRowAbove(l){var u="."+this.className+" .insert-rows-columns-top",_=document.querySelector(u);_.contains(l.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowAbove(this.topRows))}},{key:"tableInsertRowBelow",value:function tableInsertRowBelow(l){var u="."+this.className+" .insert-rows-columns-bottom",_=document.querySelector(u);_.contains(l.target)||(this.$emit("closeMenu"),this.vueController.insertTableRowBelow(this.bottomRows))}},{key:"tableInsertColLeft",value:function tableInsertColLeft(l){var u="."+this.className+" .insert-rows-columns-left",_=document.querySelector(u);_.contains(l.target)||(this.$emit("closeMenu"),this.vueController.insertTableColLeft(this.leftRows))}},{key:"tableInsertColRight",value:function tableInsertColRight(l){var u="."+this.className+" .insert-rows-columns-right",_=document.querySelector(u);_.contains(l.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(l){this.dialogFormVisible=!0,this.dialogFormTitle=l,this.formula=l}},{key:"sure",value:function sure(){this.dialogFormVisible=!1,this.$emit("closeMenu")}},{key:"beforeDestroy",value:function beforeDestroy(){this.init()}}]),TableFeatures}(k());__decorate([Prop()],bd.prototype,"vueController",void 0),__decorate([Prop()],bd.prototype,"className",void 0),__decorate([Prop()],bd.prototype,"table",void 0),__decorate([Prop()],bd.prototype,"tableProperty",void 0),bd=__decorate([ae({name:"TableFeatures"})],bd);var Dd=bd,Id=Dd,Hd=normalizeComponent(Id,TableFeaturesvue_type_template_id_624de6d8_render,fd,!1,null,null,null),qd=Hd.exports,zd=function(l){(0,Y.Z)(ToolTables,l);var u=(0,ee.Z)(ToolTables);function ToolTables(){var l;return(0,q.Z)(this,ToolTables),l=u.apply(this,arguments),l.rows=0,l.columns=0,l.dialogFormVisible=!1,l.form={rows:1,columns:1},l.formLabelWidth="72px",l}return(0,$.Z)(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(l){var u=l.target;if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touch",value:function touch(l){var u=document.elementFromPoint(l.changedTouches[0].pageX,l.changedTouches[0].pageY);if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touchend",value:function touchend(l){this.touch(l),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTables}(k());__decorate([Prop()],zd.prototype,"vueController",void 0),__decorate([Prop()],zd.prototype,"table",void 0),__decorate([Prop()],zd.prototype,"isOpen",void 0),zd=__decorate([ae({name:"ToolTables",components:{TableFeatures:qd}})],zd);var $d=zd,Gd=$d,Zd=normalizeComponent(Gd,ToolTablevue_type_template_id_7e9dd939_render,pd,!1,null,null,null),Yd=Zd.exports,PageSettingvue_type_template_id_224627a8_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{staticClass:"control-modal"},[_("div",{ref:"pageSettingModal",class:l.animationClassNames,on:{mousedown:l.toolModalDown}},[_("header",{staticClass:"modal-title"},[_("span",[l._v("页面设置")]),_("i",{staticClass:"el-icon-close modal-title-close",on:{click:l.handleClose}})]),_("section",{staticClass:"modal-content"},[_("el-tabs",{model:{value:l.textActiveName,callback:function(u){l.textActiveName=u},expression:"textActiveName"}},[_("el-tab-pane",{attrs:{label:"页面设置",name:"first"}},[_("div",{staticClass:"control-list"},[_("fieldset",{staticClass:"control-item fieldset",staticStyle:{margin:"0 10px 10px 10px"}},[_("legend",[l._v("页边距    毫米")]),_("ul",{staticClass:"page-spacing"},[_("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("上(T)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.topMarginMm,callback:function(u){l.$set(l.property,"topMarginMm",u)},expression:"property.topMarginMm"}})],1),_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("左(L)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.leftMarginMm,callback:function(u){l.$set(l.property,"leftMarginMm",u)},expression:"property.leftMarginMm"}})],1)]),_("li",{staticClass:"page-spacing-item",staticStyle:{"justify-content":"space-between"}},[_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("下(B)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.bottomMarginMm,callback:function(u){l.$set(l.property,"bottomMarginMm",u)},expression:"property.bottomMarginMm"}})],1),_("div",{staticClass:"page-spacing-form"},[_("span",{staticClass:"labels"},[l._v("右(R)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.rightMarginMm,callback:function(u){l.$set(l.property,"rightMarginMm",u)},expression:"property.rightMarginMm"}})],1)])])]),_("div",{staticClass:"print-settings"},[_("fieldset",{staticClass:"fieldset print-direction-item"},[_("legend",[l._v("打印方向")]),_("div",{class:0===l.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(u){return l.setPrintDirection(0)}}},[_("div",[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[_("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"}}),_("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"}})])]),_("p",[l._v("纵向(P)")])]),_("div",{class:1===l.property.printDirection?"print-direction is-actived":"print-direction",on:{click:function(u){return l.setPrintDirection(1)}}},[_("div",[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"}},[_("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"}}),_("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"}})])]),_("p",[l._v("横向(P)")])])]),_("div",{staticClass:"control-item",staticStyle:{padding:"0","margin-left":"10px"}},[_("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px",margin:"0"}},[_("legend",[l._v("纸张    毫米")]),_("ul",{staticClass:"control-list"},[_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("大小(Z)")]),_("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择纸张大小"},on:{change:function(u){return l.setPrintDirection(l.property.printDirection)}},model:{value:l.property.pageSize,callback:function(u){l.$set(l.property,"pageSize",u)},expression:"property.pageSize"}},l._l(l.paperStyle,(function(l,u){return _("el-option",{key:u,attrs:{label:l[0],value:l[0]}})})),1)],1),_("li",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("来源(S)")]),_("el-select",{staticStyle:{width:"100%"},attrs:{size:"mini",placeholder:"请选择来源"},model:{value:l.property.source,callback:function(u){l.$set(l.property,"source",u)},expression:"property.source"}},[_("el-option",{attrs:{label:"自动选择",value:"0"}})],1)],1),_("li",{staticClass:"control-item paper-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("宽度(W)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==l.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:l.property.widthMm,callback:function(u){l.$set(l.property,"widthMm",u)},expression:"property.widthMm"}})],1),_("li",{staticClass:"control-item paper-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("高度(H)")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{disabled:"自定义"!==l.property.pageSize,controls:!1,size:"mini",step:1,min:0},model:{value:l.property.heightMm,callback:function(u){l.$set(l.property,"heightMm",u)},expression:"property.heightMm"}})],1)])]),_("fieldset",{staticClass:"fieldset",staticStyle:{width:"250px",padding:"0 10px 10px"}},[_("legend",[l._v("边框")]),_("div",{staticClass:"control-item"},[_("el-checkbox",{model:{value:l.property.isPaintBorder,callback:function(u){l.$set(l.property,"isPaintBorder",u)},expression:"property.isPaintBorder"}},[l._v("绘制边框")])],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"64px"}},[l._v("边框颜色")]),_("ho-color-picker",{model:{value:l.property.borderColor,callback:function(u){l.$set(l.property,"borderColor",u)},expression:"property.borderColor"}})],1),_("PrintLineStyle",{attrs:{labelWidth:"64px",defaultStyle:l.property.paintRowLine,placeholder:"绘制行线"},on:{change:l.printStyleChange}})],1)])])])]),_("el-tab-pane",{attrs:{label:"页眉页脚",name:"second"}},[_("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[_("legend",[l._v("页眉    毫米")]),_("div",{staticClass:"control-item"},[l._v("距页边界:")]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[l._v("至页眉(H):")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.headerYMm,callback:function(u){l.$set(l.property,"headerYMm",u)},expression:"property.headerYMm"}})],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px"}}),_("el-checkbox",{model:{value:l.property.showFirstPageHead,callback:function(u){l.$set(l.property,"showFirstPageHead",u)},expression:"property.showFirstPageHead"}},[l._v("显示-第一页的页眉(H)")])],1)]),_("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[_("legend",[l._v("页脚    毫米")]),_("div",{staticClass:"control-item"},[l._v("距页边界:")]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px","padding-left":"54px"}},[l._v("至页脚(F):")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.footerYMm,callback:function(u){l.$set(l.property,"footerYMm",u)},expression:"property.footerYMm"}})],1),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px"}}),_("el-checkbox",{model:{value:l.property.showFirstPageFoot,callback:function(u){l.$set(l.property,"showFirstPageFoot",u)},expression:"property.showFirstPageFoot"}},[l._v("显示-第一页的页脚(F)")])],1)]),_("fieldset",{staticClass:"control-item fieldset page-header",staticStyle:{padding:"0 10px 10px"}},[_("legend",[l._v("页数")]),_("div",{staticClass:"control-item"},[_("span",{staticClass:"label",staticStyle:{width:"138px"}},[l._v("从第几页开始(S):")]),_("el-input-number",{staticStyle:{"text-align":"left"},attrs:{"controls-position":"right",size:"mini",step:1,min:0},model:{value:l.property.pageNumber,callback:function(u){l.$set(l.property,"pageNumber",u)},expression:"property.pageNumber"}})],1)])])],1)],1),_("footer",{staticClass:"ho-modal-footer"},[_("el-button",{attrs:{size:"mini",type:"primary"},on:{click:l.sureSetPageing}},[l._v("确定")]),_("el-button",{attrs:{size:"mini"},on:{click:l.handleClose}},[l._v("取消")])],1)])])},eh=[],th=function(l){(0,Y.Z)(PageSetting,l);var u=(0,ee.Z)(PageSetting);function PageSetting(){var l;return(0,q.Z)(this,PageSetting),l=u.apply(this,arguments),l.fontFamily=du.TN,l.fontSize=du.CH,l.alignList=["left","both","right","both"],l.lineHeightList=[1.25,1.5,2,2.5,3],l.fontSpacingList=[0,1,2,3],l.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]]],l.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:"#FFFFFF",paintRowLine:0,isPaintBorder:!1},l.textActiveName="first",l.backFile=null,l.backImgUrl="",l.animationClassNames="control-modal-contents page-setting-content animation-in",l}return(0,$.Z)(PageSetting,[{key:"created",value:function created(){var l=this,u=this.vueController.pageProperty();Object.keys(u).forEach((function(_){var v=_.replace(/_/g,"");"backColor"===v||"fontColor"===v?Object.prototype.hasOwnProperty.call(l.property,v)&&("transparent"===u[v]?l.property[v]=null:l.property[v]=u[v]):Object.prototype.hasOwnProperty.call(l.property,v)&&(l.property[v]=u[v])}))}},{key:"setPrintDirection",value:function setPrintDirection(l){var u=this;this.property.printDirection=l;var _=[];if(this.paperStyle.forEach((function(l){l[0]===u.property.pageSize&&(_=l[1])})),0===this.property.printDirection){var v=_,C=(0,B.Z)(v,2);this.property.widthMm=C[0],this.property.heightMm=C[1]}else{var k=_,N=(0,B.Z)(k,2);this.property.heightMm=N[0],this.property.widthMm=N[1]}}},{key:"printStyleChange",value:function printStyleChange(l){this.property.paintRowLine=l}},{key:"handleClose",value:function handleClose(){this.$emit("closePageSetting",!1)}},{key:"sureSetPageing",value:function sureSetPageing(){var l=_objectSpread2(_objectSpread2({},this.property),{},{isHaveBgImage:!1});null===l.backColor&&(l.backColor="transparent"),null===l.fontColor&&(l.fontColor="transparent"),this.vueController.setPageProperty(JSON.stringify(_objectSpread2({},l))),this.vueController.fullRedraw(),this.handleClose()}},{key:"toolModalDown",value:function toolModalDown(l){(0,Lt.tC)(l,this.pageSettingModal,"modal-title")}}]),PageSetting}(mixins(jt));__decorate([Ref()],th.prototype,"pageSettingModal",void 0),__decorate([Prop()],th.prototype,"vueController",void 0),th=__decorate([ae({name:"PageSetting",components:{HoColorPicker:el,PrintLineStyle:Tc}})],th);var rh=th,nh=rh,ih=normalizeComponent(nh,PageSettingvue_type_template_id_224627a8_scoped_true_render,eh,!1,null,"224627a8",null),oh=ih.exports,UploadFilevue_type_template_id_4361e817_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-upload",{staticClass:"upload-image",attrs:{action:"",accept:".xml",multiple:!1,"show-file-list":!1,"auto-upload":!1,"file-list":l.fileList,"on-change":l.uploadFiles}},[_("span",{attrs:{size:"small"}},[l._v("打开文件")])])},ah=[],sh=function(l){(0,Y.Z)(UploadFile,l);var u=(0,ee.Z)(UploadFile);function UploadFile(){var l;return(0,q.Z)(this,UploadFile),l=u.apply(this,arguments),l.fileList=[],l}return(0,$.Z)(UploadFile,[{key:"uploadFiles",value:function uploadFiles(l){this.vueController.openLocalFiles(l.raw,this.uploadFileCallback)}},{key:"uploadFileCallback",value:function uploadFileCallback(l){}}]),UploadFile}(k());__decorate([Prop()],sh.prototype,"vueController",void 0),sh=__decorate([ae({name:"UploadFile"})],sh);var lh=sh,ch=lh,uh=normalizeComponent(ch,UploadFilevue_type_template_id_4361e817_render,ah,!1,null,null,null),dh=uh.exports,HistoryLogsvue_type_template_id_13465a06_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{staticClass:"sub-bar-items item-history-logs"},[_("span",{staticStyle:{padding:"0 10px"},on:{click:l.openHistoryLogs}},[l._v("历史记录")]),l.showHistoryLogs&&l.historyLog?_("div",{staticClass:"document-item animation-in"},[_("p",{staticStyle:{"text-align":"left","border-bottom":"1px solid #ccc"}},[_("i",{staticClass:"el-icon-circle-close"}),_("span",{on:{click:l.closeHistoryLogs}},[l._v("关闭历史记录")])]),Array.isArray(l.historyLog)?_("ul",l._l(l.historyLog,(function(u,v){return _("li",{key:u.saveTime+Math.random(0,1)},[_("div",[_("p",{staticClass:"flex-rows"},[_("span",{staticStyle:{"padding-left":"4px"}},[l._v("缓存时间:"+l._s(u.saveTime))]),_("span",{staticClass:"cover",on:{click:function(u){return l.manualSaveLocalStorage(v)}}},[l._v("恢复")])]),l._l(u.logs,(function(u){return[_("p",{key:u.operTime},[_("span",[l._v("操作类型:"+l._s(u._operType))]),_("span",[l._v("操作时间:"+l._s(l.dateFormat(u._operTime)))]),_("span",[l._v("操作内容:"+l._s(u._operText))])])]}))],2)])})),0):l._e()]):l._e()])},_h=[],ph=function(l){(0,Y.Z)(HistoryLogs,l);var u=(0,ee.Z)(HistoryLogs);function HistoryLogs(){var l;return(0,q.Z)(this,HistoryLogs),l=u.apply(this,arguments),l.showHistoryLogs=!1,l.historyLog=null,l.dateFormat=Lt.vc,l}return(0,$.Z)(HistoryLogs,[{key:"manualSaveLocalStorage",value:function manualSaveLocalStorage(l){var u=this;this.vueController.hoLocalStorage().getLocalStorage().then((function(_){u.vueController.openXml(_[l].xml)}))}},{key:"getLocalStorage",value:function getLocalStorage(){var l=this;this.historyLog=[],this.vueController.hoLocalStorage().getLocalStorage().then((function(u){u.forEach((function(u){l.historyLog.push({saveTime:u.saveTime,logs:u.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(yu));__decorate([Prop()],ph.prototype,"vueController",void 0),ph=__decorate([ae({name:"HistoryLogs"})],ph);var fh=ph,gh=fh,mh=normalizeComponent(gh,HistoryLogsvue_type_template_id_13465a06_scoped_true_render,_h,!1,null,"13465a06",null),vh=mh.exports,yh=function(l){(0,Y.Z)(ToolBarChild,l);var u=(0,ee.Z)(ToolBarChild);function ToolBarChild(){var l;return(0,q.Z)(this,ToolBarChild),l=u.apply(this,arguments),l.isPageSettingShow=!1,l.isLoginModel=!1,l.cleanAllFormat=!1,l.toolMenuOpenPath=[],l.toolMenuOpenPathTest=[],l.toolPrintOpenPath=[],l.printStatus="",l.isPrinted=!1,l.printModal=!1,l}return(0,$.Z)(ToolBarChild,[{key:"isOpen",get:function get(){return!!this.toolMenuOpenPath.includes("tables")}},{key:"createNew",value:function createNew(l){this.vueController.newFile(l)}},{key:"openPageSettings",value:function openPageSettings(){this.isPageSettingShow=!0}},{key:"closePageSetting",value:function closePageSetting(l){this.isPageSettingShow=l}},{key:"closedHoPrintModal",value:function closedHoPrintModal(l){"sure"===l&&(this.isPrinted=!1),this.printModal=!1}},{key:"printTpPDF",value:function printTpPDF(){this.isPrinted?this.vueController.printPromisePDF():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 l=document.querySelector(".ho-format-paint");this.vueController.formatPainter(l)}},{key:"copyOperateClick",value:function copyOperateClick(){}},{key:"cutOperateClick",value:function cutOperateClick(){}},{key:"pasteOperateClick",value:function pasteOperateClick(){}},{key:"closeToolMenus",value:function closeToolMenus(l){var u=this;this.toolMenuOpenPath.length>0&&(this.toolMenuOpenPath.forEach((function(l){u.toolMenus.closeMenu(l)})),this.toolMenuOpenPath=[])}},{key:"toolMenuSelected",value:function toolMenuSelected(l,u){this.toolMenuOpenPath=u}},{key:"closeToolMenusTest",value:function closeToolMenusTest(l){var u=this;this.toolMenuOpenPathTest.length>0&&(this.toolMenuOpenPathTest.forEach((function(l){u.toolMenusTest.closeMenu(l)})),this.toolMenuOpenPathTest=[])}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(l,u){this.toolMenuOpenPathTest=u}},{key:"toolPrintSelected",value:function toolPrintSelected(l,u){this.toolPrintOpenPath=u,u.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 l=this;!this.isPrinted&&this.toolPrintOpenPath.length>0&&this.toolPrintOpenPath.forEach((function(u){l.toolPrint.closeMenu(u)}))}},{key:"saveAsFile",value:function saveAsFile(l){var u=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档";if("pdf"==l)this.vueController.saveAsPDF("","pdf",!1);else if("html"!==l){var _=this.vueController.saveAsFile(l,!0);this.downloadFile(_,u,l)}else this.vueController.saveAsPDF("","html",!1)}},{key:"saveAsFileTest",value:function saveAsFileTest(l){var u="电子病历文档",_="返回的JSON串",v=this.vueController.getDocXml(l);this.downloadFile(v,u,l);var C=this.vueController.getDocJson();this.downloadFile(C,_,"plain")}},{key:"uploadDataSet",value:function uploadDataSet(){this.vueController.uploadDataSet()}},{key:"downloadFile",value:function downloadFile(l,u,_){var v;"json"===_?(v=window.URL.createObjectURL(new Blob([l],{type:"text/plain;charset=utf-8"})),u+=".json"):v=window.URL.createObjectURL(new Blob([l],{type:"text/".concat(_)}));var C=document.createElement("a");C.style.display="none",C.href=v,C.setAttribute("download",u),document.body.appendChild(C),C.click(),this.$nextTick((function(){return C.remove()}))}},{key:"setModalStatus",value:function setModalStatus(l){this.$emit("setModalStatus",l)}},{key:"render",value:function render(){var l=this,u=arguments[0],_=this.editJson,v={family:_.family,size:_.size,enlargeSize:_.enlargeSize,decreaseSize:_.decreaseSize,superScript:_.superScript,subScript:_.subScript,bold:_.bold,italic:_.italic,underline:_.underline,strikeout:_.strikeout,fontColor:_.fontColor,backColor:_.backColor},C={alignLeft:_.alignLeft,alignCenter:_.alignCenter,alignRight:_.alignRight,alignBoth:_.alignBoth,addIndent:_.addIndent,decreaseIndent:_.decreaseIndent,setHeight:_.setHeight},k=Object.keys(v).filter((function(l){return v[l]})).length>0,N=Object.keys(C).filter((function(l){return C[l]})).length>0,B={vueController:this.vueController};return u("ul",{class:"sub-bar"},[_.editFile?u("li",{class:"sub-bar-items sub-bar-paragraph sub-bar-print"},[u("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}},[u("el-submenu",{attrs:{"popper-class":"insert-menus insert-paragraph inset-print",index:"file"}},[u("template",{slot:"title"},[u("span",["文件"])]),u("el-submenu",{attrs:{index:"createNew","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("span",["新建"])]),u("el-menu-item",{attrs:{index:"caseHistory"},nativeOn:{click:function click(){return l.createNew("caseHistory")}}},["病历"]),u("el-menu-item",{attrs:{index:"form"},nativeOn:{click:function click(){return l.createNew("form")}}},["表单"])]),_.openFile&&u("el-menu-item",{attrs:{index:"uploadFile"}},[u(dh,{attrs:_objectSpread2({},B)})]),_.pageSetting&&u("el-menu-item",{attrs:{index:"openPageSettings"},nativeOn:{click:this.openPageSettings.bind(this)}},["页面设置"]),_.saveAsFile&&u("el-submenu",{attrs:{index:"saveAsFile","popper-append-to-body":!0}},[u("template",{slot:"title"},[u("span",["另存为"])]),u("el-menu-item",{attrs:{index:"xml"},nativeOn:{click:function click(){return l.saveAsFile("xml")}}},["XML"]),u("el-menu-item",{attrs:{index:"html"},nativeOn:{click:function click(){return l.saveAsFile("html")}}},["HTML"]),u("el-menu-item",{attrs:{index:"json"},nativeOn:{click:function click(){return l.saveAsFile("pdf")}}},["PDF"]),u("el-menu-item",{attrs:{index:"plain"},nativeOn:{click:function click(){return l.saveAsFile("plain")}}},["TXT"]),u("el-menu-item",{attrs:{index:"json"},nativeOn:{click:function click(){return l.saveAsFile("json")}}},["JSON"])]),u("el-menu-item",{attrs:{disabled:!0,index:"printed"},nativeOn:{click:this.printTpPDF.bind(this)}},[u("span",{class:"print"},["打印"])]),u(Iu,{attrs:_objectSpread2({},{vueController:this.vueController,printBeforeStatus:1,printModal:this.printModal}),on:{closed:this.closedHoPrintModal.bind(this)}}),_.printed&&this.isPrinted&&u("el-menu-item",{attrs:{index:"tool-printed",disabled:!0},nativeOn:{click:this.openPrintPreview.bind(this)}},[u("span",{class:"print-selected"},[this.isPrinted?"退出打印预览":"打印预览"])]),_.printSelected?u("el-menu-item",{attrs:{disabled:!0,index:"printSelected"},nativeOn:{click:this.printSelected.bind(this)}},[u("span",{class:{print:!0,"print-selected":"selected"===this.printStatus}},["打印拖动鼠标选中区域"])]):null,_.printCaret?u("el-menu-item",{attrs:{disabled:!0,index:"printCaret"},nativeOn:{click:this.printCaret.bind(this)}},[u("span",{class:{print:!0,"print-selected":"caret"===this.printStatus}},["打印鼠标点击位置"])]):null,_.printContinue?u("el-menu-item",{attrs:{disabled:!0,index:"printContinue"},nativeOn:{click:this.printContinue.bind(this)}},[u("span",{class:{print:!0,"print-selected":"continue"===this.printStatus}},["续打"])]):null])])]):null,this.isPageSettingShow?u(oh,{attrs:_objectSpread2({},B),on:{closePageSetting:this.closePageSetting.bind(this)}}):null,_.unDoOperate||_.reDoOperate?u("li",{class:"sub-bar-items sub-bar-not-item-hover"},[_.unDoOperate?u(Mo,{attrs:_objectSpread2({},{title:"撤销",svg:"unDoOperate"}),nativeOn:{click:this.unDoOperateClick.bind(this)}}):null,_.reDoOperate?u(Mo,{attrs:_objectSpread2({},{title:"恢复",svg:"reDoOperate"}),nativeOn:{click:this.reDoOperateClick.bind(this)}}):null,_.formatPaint?u(Mo,{attrs:_objectSpread2({},{title:"格式刷",svg:"formatPaint",name:"ho-format-paint"}),nativeOn:{click:this.formatPainterClick.bind(this)}}):null]):null,k?u(Nu,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},B),{},{family:v,textStyle:this.textStyle}))}):null,N?u(Lu,{attrs:_objectSpread2({},_objectSpread2(_objectSpread2({},B),{},{paragraph:C,align:this.textStyle.aligned,lineSpace:this.textStyle.lineSpace}))}):null,_.updateDocument?u(_d):null,_.findModal?u("li",{class:"sub-bar-items",on:{click:function click(){return l.setModalStatus(["find","add",""])}}},[u(Mo,{attrs:_objectSpread2({},{title:"查找替换",svg:"find"})})]):null,u(vh,{attrs:_objectSpread2({},_objectSpread2({},B))})])}}]),ToolBarChild}(k());__decorate([Prop()],yh.prototype,"vueController",void 0),__decorate([Prop()],yh.prototype,"editJson",void 0),__decorate([Prop()],yh.prototype,"uploadImageParams",void 0),__decorate([Prop()],yh.prototype,"textStyle",void 0),__decorate([Ref()],yh.prototype,"toolMenus",void 0),__decorate([Ref()],yh.prototype,"toolMenusTest",void 0),__decorate([Ref()],yh.prototype,"toolPrint",void 0),yh=__decorate([ae({name:"ToolBarChild",components:{HoPrintDialog:Iu,PageSetting:oh,ToolFamily:Nu,ToolTables:Yd,ToolControl:ed,UpdateDocument:_d,ToolParagraph:Lu,UploadFile:dh,Poper:Mo,HistoryLogs:vh}})],yh);var bh=yh,ToolControlvue_type_template_id_6fa12664_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"sub-bar"},[l._t("insertBefore"),l.insert.delimiter?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("delimiter")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}}),_("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"}}),_("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"}})]),_("span",[l._v("分割符")])]):l._e(),l.insert.uploadImage?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("upload-image")}}},[_("svg",{attrs:{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("g",{attrs:{transform:"translate(1 1)"}},[_("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"}}),_("circle",{attrs:{stroke:"none",cx:"10",cy:"4",r:"1"}}),_("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"}})])]),_("span",{attrs:{size:"small"}},[l._v("图片")])]):l._e(),l.insert.barcode?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("barcode")}}},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}})]),_("span",[l._v("条形码")])]):l._e(),l.insert.qrcode?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("qrcode")}}},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("path",{attrs:{d:"M761.173333 931.84H853.333333V1024h-92.16zM187.733333 187.733333h92.16v92.16H187.733333z","p-id":"1209"}}),_("path",{attrs:{d:"M0 464.213333h464.213333V0H0v464.213333zM92.16 92.16h279.893333v279.893333H92.16V92.16zM187.733333 744.106667h92.16v92.16H187.733333z"}}),_("path",{attrs:{d:"M0 1024h464.213333V559.786667H0V1024z m92.16-372.053333h279.893333v279.893333H92.16v-279.893333zM761.173333 187.733333H853.333333v92.16h-92.16z"}}),_("path",{attrs:{d:"M1041.066667 0H576.853333v464.213333h464.213334V0z m-92.16 372.053333h-279.893334V92.16h279.893334v279.893333z"}})]),_("span",[l._v("二维码")])]):l._e(),l.insert.express?_("HoMedicalExpression",{on:{openExpress:l.openExpress}}):l._e(),l.insert.datetime?_("li",{staticClass:"sub-bar-items"},[_("HoDateTime",{attrs:{vueController:l.vueController},on:{setModal:l.createControl}})],1):l._e(),l.insert.select?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("select")}}},[_("svg",{attrs:{viewBox:"0 0 1573 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}})]),_("span",[l._v("下拉框")])]):l._e(),l.insert.text?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("text")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("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"}})]),_("span",[l._v("文本域")])]):l._e(),l.insert.radioBox?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("RadioBox")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}})]),_("span",[l._v("单选框")])]):l._e(),l.insert.checkBox?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("CheckBox")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}}),_("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"}})]),_("span",[l._v("复选框")])]):l._e(),l.insert.mathFormula?_("li",{staticClass:"sub-bar-items"},[_("HoFormula",{attrs:{vueController:l.vueController}})],1):l._e(),l.insert.gestation?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("gestation")}}},[_("span",[l._v("孕周")])]):l._e(),l.insert.sign?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("sign")}}},[_("span",[l._v("签名")])]):l._e(),l.insert.pageInfoes?_("li",{staticClass:"sub-bar-items",on:{click:function(u){return l.createControl("pageInfoes")}}},[_("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"}},[_("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"}})]),_("span",[l._v("页码页数信息")])]):l._e(),l._t("hoInsertItem"),l.insert.specialChars?_("li",{staticClass:"sub-bar-items"},[_("HoSpecialChars",{attrs:{vueController:l.vueController}})],1):l._e()],2)},wh=[],HoSpecialCharsvue_type_template_id_02ed7d68_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("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"}},[_("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"}})]),_("span",[l._v("特殊字符")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{staticClass:"special-characters",attrs:{disabled:""}},[_("section",[_("ul",[_("li",[_("header",[l._v("特殊字符")]),_("p",{staticClass:"chars-list special-chars-list"},l._l(l.specialChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("罗马字符")]),_("p",{staticClass:"chars-list"},l._l(l.romanChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)]),_("li",[_("header",[l._v("数学字符")]),_("p",{staticClass:"chars-list"},l._l(l.mathChars,(function(u){return _("span",{key:u,on:{click:function(_){return l.specialCharsClick(u)}}},[l._v(l._s(u))])})),0)])])])])],1)],1)},xh=[],Ph=function(l){(0,Y.Z)(HoSpecialChars,l);var u=(0,ee.Z)(HoSpecialChars);function HoSpecialChars(){var l;return(0,q.Z)(this,HoSpecialChars),l=u.apply(this,arguments),l.arrChars=["㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡"],l.specialChars=["、","。","·","ˉ","ˇ","¨","〃","々","—","~","‖","…","‘","’","“","”","〔","〕","〈","〉","《","》","「","」","『","』","±","×","÷","∶","∧","∨","∑","∏","∪","∩","∈","α","β","γ","∷","√","⊥","∥","∠","⌒","⊙","∫","∮","≡","≌","≈","∽","∝","≠","≮","≯","≤","≥","∞","∵","∴","♂","♀","°","′","″","℃","$","¤","¢","£","‰","§","№","※","→","←","↑","↓","㎎","㎏","㎜","㎝","㎞","㎡","㏄","㏎","㏑","㏒","㏕","℡","▽","△","▷","◁","/","∕"],l.romanChars=["ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ"],l.mathChars=["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩"],l.usedChars=[],l}return(0,$.Z)(HoSpecialChars,[{key:"specialCharsClick",value:function specialCharsClick(l){if(this.vueController.insertSpecialChars("",l),this.usedChars.includes(l))return!1;this.usedChars.unshift(l),this.usedChars.length>22&&this.usedChars.pop()}},{key:"sure",value:function sure(){var l=this;this.$nextTick((function(){return l.handleClose()}))}},{key:"handleClose",value:function handleClose(){this.$emit("close-menu")}}]),HoSpecialChars}(mixins(yu));__decorate([Prop()],Ph.prototype,"vueController",void 0),Ph=__decorate([ae({name:"HoSpecialChars"})],Ph);var Ch=Ph,Eh=Ch,Sh=normalizeComponent(Eh,HoSpecialCharsvue_type_template_id_02ed7d68_scoped_true_render,xh,!1,null,"02ed7d68",null),Th=Sh.exports,HoDateTimevue_type_template_id_5e85d543_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("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"}},[_("rect",{attrs:{width:"24",height:"24",fill:"#F0F0F0",opacity:"0"}}),_("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"}}),_("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"}})]),_("span",[l._v("日期时间")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l._l(l.dateFormatValue,(function(u,v){return _("el-dropdown-item",{key:u+v,staticClass:"date-time-item",attrs:{index:l.dateFormatList[v]},nativeOn:{click:function(_){return l.selectedDate(l.dateFormatList[v],u)}}},[l._v(l._s(u))])})),_("el-dropdown-item",{staticClass:"date-time-item",nativeOn:{click:function(u){return l.selectedDate("more","")}}},[l._v("更多日期属性")])],2)],1)},Dh=[],kh=function(l){(0,Y.Z)(HoDateTime,l);var u=(0,ee.Z)(HoDateTime);function HoDateTime(){var l;return(0,q.Z)(this,HoDateTime),l=u.apply(this,arguments),l.dateFormatList=Lt.eG,l.dateFormatValue=[],l.dateFormat=Lt.vc,l}return(0,$.Z)(HoDateTime,[{key:"created",value:function created(){var l=this,u=[];this.dateFormatList.forEach((function(_,v){v<10&&u.push(l.dateFormat("",_))})),this.dateFormatValue=[].concat(u)}},{key:"selectedDate",value:function selectedDate(l,u){if("more"===l)this.$emit("setModal","date");else{var _={id:this.vueController.generateID("DT"),name:"",text:u,title:"",tipText:"",isAllowDelete:!1,isReadOnly:!1,controlStyle:l,readType:0};this.vueController.insertDateTime("add",JSON.stringify(_))}}}]),HoDateTime}(mixins(yu));__decorate([Prop()],kh.prototype,"vueController",void 0),kh=__decorate([ae({name:"HoDateTime"})],kh);var Ih=kh,Mh=Ih,Nh=normalizeComponent(Mh,HoDateTimevue_type_template_id_5e85d543_render,Dh,!1,null,null,null),Oh=Nh.exports,HoFormulavue_type_template_id_d904f830_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("p",[_("span",{on:{click:l.insertFormula}},[l._v("插入公式")]),_("el-dialog",{staticClass:"ho-formula-iframe",attrs:{title:"公式编辑",width:"868px",visible:l.createFormula,"close-on-click-modal":!1,top:"150px","append-to-body":"",center:""},on:{"update:visible":function(u){l.createFormula=u},"before-close":l.closeFormula}},[_("section",[_("div",{staticClass:"kf-editor",attrs:{id:"HoKfEditorContainer"}}),l.kityformulaError?_("p",[l._v(l._s(l.kityformulaError))]):l._e()]),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:l.sureInsertKityFormula}},[l._v("确认插入")]),_("el-button",{staticClass:"right",attrs:{id:"kityformula-btn"},on:{click:l.closeFormula}},[l._v("取消")])],1)])],1)},Lh=[],Ah=function(l){(0,Y.Z)(HoFormula,l);var u=(0,ee.Z)(HoFormula);function HoFormula(){var l;return(0,q.Z)(this,HoFormula),l=u.apply(this,arguments),l.hoKFEditor=null,l.hoFactorys=null,l.kityformulaError="",l.createFormula=!1,l.defaultLateX="",l}return(0,$.Z)(HoFormula,[{key:"initFormula",value:function initFormula(){var l=this,u=__webpack_require__(69440);this.hoFactorys=u.create(document.querySelector("#HoKfEditorContainer"),{render:{fontsize:50},resource:{path:"111/fonts/"},lang:"zh_cn"}),this.hoFactorys.ready((function(u){u.execCommand("render","\\placeholder"),u.execCommand("focus"),l.hoKFEditor=u}))}},{key:"insertFormula",value:function insertFormula(){var l=this;this.createFormula=!0,this.kityformulaError="",this.defaultLateX="\\placeholder",setTimeout((function(){l.initFormula()}),100)}},{key:"sureInsertKityFormula",value:function sureInsertKityFormula(){var l=this,u=function createImage(u){var _=l.hoKFEditor.execCommand("get.source").replace(/\s/g,"");if(u.width&&u.height)l.vueController.insertImage(u.img,u.width/2,u.height/2,!0,_),l.createFormula=!1;else{var v=new Image;v.src=u.img,v.onload=function(){l.vueController.insertImage(u.img,v.width/2,v.height/2,!0,_),l.closeFormula()}}},_=function getUrl(l){u(l)};this.hoKFEditor.execCommand("get.image.data",_)}},{key:"closeFormula",value:function closeFormula(){this.createFormula=!1,this.hoKFEditor=null,this.hoFactorys=null,this.kityformulaError="",this.defaultLateX=""}}]),HoFormula}(k());__decorate([Prop()],Ah.prototype,"vueController",void 0),Ah=__decorate([ae({name:"HoFormula"})],Ah);var Rh=Ah,Fh=Rh,jh=normalizeComponent(Fh,HoFormulavue_type_template_id_d904f830_render,Lh,!1,null,null,null),Bh=jh.exports,Uh=Bh,Hh=function(l){(0,Y.Z)(ToolControl,l);var u=(0,ee.Z)(ToolControl);function ToolControl(){var l;return(0,q.Z)(this,ToolControl),l=u.apply(this,arguments),l.fileList=[],l}return(0,$.Z)(ToolControl,[{key:"uploadImage",value:function uploadImage(l){var u=this;if(this.uploadImageParams&&this.uploadImageParams.uploadUrl){var _=this.uploadImageParams.uploadParamName?this.uploadImageParams.uploadParamName:"hoImage",v=new FormData;v.append(_,l.raw),pl({url:this.uploadImageParams.uploadUrl,method:"POST",data:v}).then((function(l){var _,v="";if(null!==(_=u.uploadImageParams)&&void 0!==_&&_.callbackParamName||"string"!==typeof l){var C,k=null===(C=u.uploadImageParams)||void 0===C?void 0:C.callbackParamName;v=l[k]}else v=l;if(v){var N=new Image;N.src=v,N.onload=function(){u.loadImage(N.width,N.height,v)}}}),(function(){u.insertBase64Image(l)})).catch((function(){u.insertBase64Image(l)}))}else this.insertBase64Image(l)}},{key:"insertBase64Image",value:function insertBase64Image(l){var u=this,_=new FileReader;_.onload=function(l){u.fileList=[];var _=new Image,v=l.target.result;_.src=v,_.onload=function(){u.loadImage(_.width,_.height,v)}},_.readAsDataURL(l.raw)}},{key:"loadImage",value:function loadImage(l,u,_){var v,C=0,k=0,N=this.vueController.pageProperty(),B=N.widthPixes-N.leftMarginPixes-N.rightMarginPixes,U=this.vueController.getCaretPosition();if(-1!==U.indexOf("header")?v=N.topMarginPixes:-1!==U.indexOf("footer")?v=N.bottomMarginPixes:-1!==U.indexOf("main")&&(v=N.heightPixes-N.topMarginPixes-N.bottomMarginPixes),l<=B&&u<=v)C=l,k=u;else if(l>B&&u<=v)C=B,k=Number((u*B/l).toFixed(0));else if(l<=B&&u>v)C=Number((u*v/u).toFixed(0)),k=v;else if(l>B&&u>v){var W=.8*B/l,q=.8*v/u,$=Math.min(W,q);C=Number((l*$).toFixed(0)),k=Number((u*$).toFixed(0))}this.vueController.insertImage(_,C,k)}},{key:"createControl",value:function createControl(l){this.$emit("setModalStatus",[l,"add",""])}},{key:"openExpress",value:function openExpress(l){this.$emit("setModalStatus",["express","add",l])}},{key:"closeControlModal",value:function closeControlModal(){this.$emit("setModalStatus",["","add",""])}}]),ToolControl}(mixins(lu));__decorate([Prop()],Hh.prototype,"vueController",void 0),__decorate([Prop()],Hh.prototype,"insert",void 0),__decorate([Prop()],Hh.prototype,"uploadImageParams",void 0),Hh=__decorate([ae({name:"ToolControl",components:{HoMedicalExpression:Cu,HoSpecialChars:Th,UploadImage:Ku,HoDateTime:Oh,HoFormula:Uh,Poper:Mo}})],Hh);var Wh=Hh,qh=Wh,zh=normalizeComponent(qh,ToolControlvue_type_template_id_6fa12664_render,wh,!1,null,null,null),Vh=zh.exports,ToolTablevue_type_template_id_194f516e_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{staticClass:"sub-bar table-bar"},[_("el-dialog",{attrs:{title:"自定义表格行列",width:"320px",visible:l.dialogFormVisible,top:"200px","append-to-body":"",center:""},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("el-form",{attrs:{model:l.form}},[_("el-form-item",{attrs:{label:"行数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.rows,callback:function(u){l.$set(l.form,"rows",u)},expression:"form.rows"}})],1),_("el-form-item",{attrs:{label:"列数","label-width":l.formLabelWidth}},[_("el-input-number",{attrs:{precision:0,min:1,controls:!1,autocomplete:"off"},model:{value:l.form.columns,callback:function(u){l.$set(l.form,"columns",u)},expression:"form.columns"}})],1)],1),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{type:"primary"},on:{click:l.sure}},[l._v("确 定")]),_("el-button",{on:{click:function(u){l.dialogFormVisible=!1}}},[l._v("取 消")])],1)],1),l._t("insertBefore"),l.table.insertTable?_("li",{staticClass:"sub-bar-items"},[_("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("span",[l._v("插入表格")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[_("el-dropdown-item",{staticClass:"ho-insert-table-item",attrs:{disabled:""}},[_("div",{staticClass:"columns",on:{mouseleave:l.clearData}},[_("p",{staticClass:"table-title"},[l._v(l._s(l.rows?l.rows+" x "+l.columns:"插入")+" 表格")]),l._l(10,(function(u){return _("div",{key:"row_"+u,staticClass:"rows",on:{mousemove:l.mouse,click:l.createdTables}},l._l(10,(function(v){return _("span",{key:"column_index"+v,class:u<=l.rows&&v<=l.columns?"selected":"",attrs:{"data-column":v,"data-row":u},on:{touchstart:l.touch,touchmove:l.touch,touchend:l.touchend}})})),0)}))],2),_("p",{staticClass:"table-bottom-title",on:{click:function(u){l.dialogFormVisible=!0}}},[l._v("自定义行列数")])])],1)],1)],1):l._e(),_("HoTableFeatures",{attrs:{vueController:l.vueController,tableProperty:l.tableProperty,dropdownClassName:l.dropdownClassName,table:l.table}}),l._t("hoTableItem")],2)},Kh=[],HoTableFeaturesvue_type_template_id_02d0c560_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("li",{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_("el-dialog",{attrs:{width:"520px",top:"20%",center:"","append-to-body":"","close-on-click-modal":!1,title:l.dialogFormTitle,visible:l.dialogFormVisible},on:{"update:visible":function(u){l.dialogFormVisible=u}}},[_("p",{staticStyle:{padding:"10px 0"}},[l._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),"a1: a2"===l.formula||"(a1 + a2) * 2"===l.formula?_("section",[_("div",{staticStyle:{height:"26px","line-height":"36px","font-size":"16px"}},[l._v(" "+l._s(l.dialogFormTitle)+" ")]),_("div",{staticStyle:{height:"36px","line-height":"36px"}},[l._v("示例: "+l._s("表格行列求和公式"===l.dialogFormTitle?"a1: a2":"(a1 + a2) * 2"))]),_("el-checkbox",{model:{value:l.isHideZero,callback:function(u){l.isHideZero=u},expression:"isHideZero"}},[l._v("结果为 0 不显示")]),_("p",{staticStyle:{height:"10px"}}),_("el-input",{attrs:{autocomplete:"off"},model:{value:l.simpleFormula,callback:function(u){l.simpleFormula=u},expression:"simpleFormula"}})],1):l._e(),"bmi"===l.formula?_("section",[_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("身高")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.height,callback:function(u){l.height=u},expression:"height"}})],1),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("体重")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.weight,callback:function(u){l.weight=u},expression:"weight"}})],1)]):l._e(),"labor"===l.formula?_("section",[_("el-checkbox",{model:{value:l.isHideZero,callback:function(u){l.isHideZero=u},expression:"isHideZero"}},[l._v("结果为 0 不显示")]),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("产程类型")]),_("el-select",{attrs:{size:"mini"},on:{change:l.laborTypeChange},model:{value:l.laborType,callback:function(u){l.laborType=u},expression:"laborType"}},[_("el-option",{attrs:{value:1,label:"第一产程"}}),_("el-option",{attrs:{value:2,label:"第二产程"}}),_("el-option",{attrs:{value:3,label:"第三产程"}}),_("el-option",{attrs:{value:0,label:"总产程"}})],1)],1),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v(l._s(["第一产程","宫缩开始","宫口全开","胎儿娩出"][l.laborType]))]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.labor1,callback:function(u){l.labor1=u},expression:"labor1"}})],1),_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v(l._s(["第二产程","宫口全开","胎儿娩出","胎盘娩出"][l.laborType]))]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.labor2,callback:function(u){l.labor2=u},expression:"labor2"}})],1),0===l.laborType?_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v(l._s(["第三产程","宫缩开始","宫口全开","胎儿娩出"][l.laborType]))]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.labor3,callback:function(u){l.labor3=u},expression:"labor3"}})],1):l._e()],1):l._e(),"expectedDate"===l.formula||"pregnantDays"===l.formula||"pregnantWeeks"===l.formula?_("section",[_("div",{staticClass:"ho-table-features-list"},[_("p",[l._v("末次月经")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.expectedDate,callback:function(u){l.expectedDate=u},expression:"expectedDate"}})],1)]):l._e(),"ftScoreMapping"===l.formula?_("section",[_("div",{staticClass:"ho-table-features-list"},[_("p",{staticStyle:{width:"220px"}},[l._v("分值所在的单元格编号")]),_("el-input",{attrs:{size:"mini",autocomplete:"off"},model:{value:l.ftScoreMapping.cell,callback:function(u){l.$set(l.ftScoreMapping,"cell",u)},expression:"ftScoreMapping.cell"}})],1),_("div",{staticClass:"ho-table-features-list"},[_("p",{staticStyle:{width:"143px"}},[l._v("分值区间及映射值")]),_("ul",[l._l(l.ftScoreMapping.item,(function(u,v){return _("li",[_("el-input-number",{staticClass:"ft-score-mapping-input",attrs:{size:"mini",controls:!1,min:0},model:{value:u.range[0],callback:function(_){l.$set(u.range,0,_)},expression:"item.range[0]"}}),_("span",{staticStyle:{padding:"0 10px"}},[l._v("到")]),_("el-input-number",{staticClass:"ft-score-mapping-input",attrs:{size:"mini",controls:!1,min:1},model:{value:u.range[1],callback:function(_){l.$set(u.range,1,_)},expression:"item.range[1]"}}),_("span",{staticStyle:{padding:"0 10px 0 0"}},[l._v(" :")]),_("el-input",{staticClass:"ft-score-mapping-input",attrs:{size:"mini",autocomplete:"off"},model:{value:u.text,callback:function(_){l.$set(u,"text",_)},expression:"item.text"}})],1)})),_("li",[_("el-button",{attrs:{size:"mini"},on:{click:l.addFtScoreMappingItem}},[_("i",{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):l._e(),_("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[_("el-button",{attrs:{type:"primary",size:"small"},on:{click:l.sure}},[l._v("确 定")]),_("el-button",{attrs:{size:"small"},on:{click:function(u){l.dialogFormVisible=!1}}},[l._v("取 消")])],1)]),l.table.tableFormula?_("div",{staticClass:"sub-bar-items"},[_("el-dropdown",{class:l.dropdownClassName,attrs:{trigger:"click",placement:"bottom-start","popper-append-to-body":"",tabindex:-1},on:{"visible-change":l.dropdownChange}},[_("span",{staticClass:"el-dropdown-link"},[_("span",[l._v("表格计算公式")]),_("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),_("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l.table.isTableCode?_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:l.setCellCode,expression:"setCellCode",arg:"30",modifiers:{click:!0}}]},[_("span",[l._v(l._s(l.tableCellCode?"隐藏":"显示")+"单元格编号")])])]):l._e(),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"sumFormula"},on:{click:function(u){return l.openFormula(["表格行列求和公式","a1: a2"])}}},[l._v(" 表格行列求和 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"arithmeticFormula"},on:{click:function(u){l.openFormula(["表格行列混合运算公式","(a1 + a2) * 2"])}}},[l._v(" 表格行列混合运算 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"bmiFormula"},on:{click:function(u){return l.openFormula(["BMI指数计算公式","bmi"])}}},[l._v(" BMI指数 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"laborFormula"},on:{click:function(u){return l.openFormula(["产程计算公式","labor"])}}},[l._v(" 产程 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"expectedDate"},on:{click:function(u){return l.openFormula(["预产期计算公式","expectedDate"])}}},[l._v(" 预产期 ")])]),_("el-dropdown-item",{staticClass:"ho-insert-table-item"},[_("div",{attrs:{index:"ftScoreMapping"},on:{click:function(u){return l.openFormula(["分值映射计算公式","ftScoreMapping"])}}},[l._v(" 分值映射 ")])])],1)],1)],1):l._e(),l.table.insertRowAbove&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowAbove,expression:"tableInsertRowAbove",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("上方插入 ")]),_("el-input-number",{staticClass:"insert-top",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.topRows,callback:function(u){l.topRows=u},expression:"topRows"}}),_("span",[l._v(" 行")])],1):l._e(),l.table.insertRowBelow&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertRowBelow,expression:"tableInsertRowBelow",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("下方插入 ")]),_("el-input-number",{staticClass:"insert-bottom",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.bottomRows,callback:function(u){l.bottomRows=u},expression:"bottomRows"}}),_("span",[l._v(" 行")])],1):l._e(),l.table.insertColLeft&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColLeft,expression:"tableInsertColLeft",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("左侧插入 ")]),_("el-input-number",{staticClass:"insert-left",attrs:{size:"mini",controls:!1,precision:0,min:1},model:{value:l.leftRows,callback:function(u){l.leftRows=u},expression:"leftRows"}}),_("span",[l._v(" 列")])],1):l._e(),l.table.insertColRight&&l.tableProperty.canAddRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableInsertColRight,expression:"tableInsertColRight",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("右侧插入 ")]),_("el-input-number",{staticClass:"insert-right",attrs:{size:"mini",precision:0,controls:!1,min:1},model:{value:l.rightRows,callback:function(u){l.rightRows=u},expression:"rightRows"}}),_("span",[l._v(" 列")])],1):l._e(),l.table.deleteRows&&l.tableProperty.canDeleteRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteRows,expression:"tableDeleteRows",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("删除行")])]):l._e(),l.table.deleteCols&&l.tableProperty.canDeleteRow?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableDeleteCols,expression:"tableDeleteCols",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("删除列")])]):l._e(),l.table.mergerCells?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableMergerCells,expression:"tableMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("合并单元格")])]):l._e(),l.table.unMergerCells?_("div",{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:l.tableUnMergerCells,expression:"tableUnMergerCells",arg:"1000",modifiers:{click:!0}}],staticClass:"sub-bar-items"},[_("span",[l._v("取消合并单元格")])]):l._e()],1)},$h=[],Gh={name:"HoTableFeatures",mixins:[yu],props:{vueController:{required:!0,type:Object},className:{type:String,default:""},table:{required:!0,type:Object},tableProperty:{required:!0,type:Object}},data:function data(){return{hoTableFeatures:null,tableFormulaValue:[],tableCellCode:!1,dialogFormVisible:!1,dialogFormTitle:"",formula:"",simpleFormula:"",isCellSplitModal:!1,row:1,column:1,topRows:1,bottomRows:1,leftRows:1,rightRows:1,height:"",weight:"",laborType:1,labor1:"",labor2:"",labor3:"",expectedDate:"",isHideZero:!0,isOnceClick:!1,ftScoreMapping:{cell:"",item:[{text:"",range:[]},{text:"",range:[]},{text:"",range:[]}]}}},computed:{disabledName:function disabledName(){return this.isOnceClick?"sub-bar-items sub-bar-items-disabled":"sub-bar-items"}},methods:{setCellCode:function setCellCode(){this.tableCellCode=!this.tableCellCode,this.init(),this.vueController.showCellAdress(this.tableCellCode)},tableInsertRowAbove:function tableInsertRowAbove(l){var u=document.querySelector(".insert-top");u.contains(l.target)||this.vueController.insertTableRowAbove(this.topRows)},tableInsertRowBelow:function tableInsertRowBelow(l){var u=document.querySelector(".insert-bottom");u.contains(l.target)||this.vueController.insertTableRowBelow(this.bottomRows)},tableInsertColLeft:function tableInsertColLeft(l){var u=document.querySelector(".insert-left");u.contains(l.target)||this.vueController.insertTableColLeft(this.leftRows)},tableInsertColRight:function tableInsertColRight(l){var u=document.querySelector(".insert-right");u.contains(l.target)||this.vueController.insertTableColRight(this.rightRows)},tableDeleteRows:function tableDeleteRows(){this.vueController.tableDeleteRows()},tableDeleteCols:function tableDeleteCols(){this.vueController.tableDeleteCols()},tableMergerCells:function tableMergerCells(){this.vueController.tableMergerCells()},tableUnMergerCells:function tableUnMergerCells(){this.vueController.tableUnMergerCells()},init: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=""},laborTypeChange:function laborTypeChange(){this.labor1="",this.labor2="",this.labor3=""},addFtScoreMappingItem:function addFtScoreMappingItem(){this.ftScoreMapping.item.push({text:"",range:[]})},openFormula:function openFormula(l){this.dialogFormVisible=!0,this.dialogFormTitle=l[0],this.formula=l[1]},sure:function sure(){if(this.dialogFormVisible=!1,this.$emit("closeMenu"),"bmi"===this.formula)this.vueController.insertTableFormula("".concat(this.weight,",").concat(this.height).toLocaleLowerCase(),this.isHideZero,Pi.a.ftBMI);else if("a1: a2"===this.formula)this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Pi.a.ftSum);else if("(a1 + a2) * 2"===this.formula)this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(),this.isHideZero,Pi.a.ftFormular);else if("labor"===this.formula)0===this.laborType?this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2,",").concat(this.labor3).toLocaleLowerCase(),this.isHideZero,Pi.a.ftLaborProcess):this.vueController.insertTableFormula("".concat(this.labor1,",").concat(this.labor2).toLocaleLowerCase(),this.isHideZero,Pi.a.ftLaborProcess);else if("expectedDate"===this.formula)this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Pi.a.ftExpectedBirthDate);else if("pregnantWeeks"===this.formula)this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(),this.isHideZero,Pi.a.ftPregnantWeeks);else if("pregnantDays"===this.formula);else if("ftScoreMapping"===this.formula){var l=(0,U.Z)(this.ftScoreMapping.item),u={cell:this.ftScoreMapping.cell,items:l.map((function(l){return""===l.text.replace(/\s*/g,"")?"":{text:l.text,range:l.range.join("-")}})).filter((function(l){return l}))};this.vueController.insertTableFormula(JSON.stringify(u).toLocaleLowerCase(),this.isHideZero,Pi.a.ftScoreMapping)}}},beforeDestroy:function beforeDestroy(){this.init()}},Zh=Gh,Jh=normalizeComponent(Zh,HoTableFeaturesvue_type_template_id_02d0c560_render,$h,!1,null,null,null),Xh=Jh.exports,Yh=function(l){(0,Y.Z)(ToolTable,l);var u=(0,ee.Z)(ToolTable);function ToolTable(){var l;return(0,q.Z)(this,ToolTable),l=u.apply(this,arguments),l.rows=0,l.columns=0,l.dialogFormVisible=!1,l.form={rows:1,columns:1},l.formLabelWidth="72px",l}return(0,$.Z)(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(l){var u=l.target;if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touch",value:function touch(l){var u=document.elementFromPoint(l.changedTouches[0].pageX,l.changedTouches[0].pageY);if("SPAN"===u.nodeName){var _=u.dataset;this.rows=parseInt(_.row),this.columns=parseInt(_.column)}}},{key:"touchend",value:function touchend(l){this.touch(l),this.vueController.vueController.insertTable(this.rows,this.columns),this.closeMenu(),this.clearData()}},{key:"closeMenu",value:function closeMenu(){this.$emit("closeMenu")}}]),ToolTable}(mixins(yu));__decorate([Prop()],Yh.prototype,"vueController",void 0),__decorate([Prop()],Yh.prototype,"table",void 0),__decorate([Prop()],Yh.prototype,"tableProperty",void 0),Yh=__decorate([ae({name:"ToolTable",components:{HoTableFeatures:Xh}})],Yh);var Qh=Yh,e_=Qh,t_=normalizeComponent(e_,ToolTablevue_type_template_id_194f516e_render,Kh,!1,null,null,null),r_=t_.exports,n_=function(l){(0,Y.Z)(ToolBar,l);var u=(0,ee.Z)(ToolBar);function ToolBar(){var l;return(0,q.Z)(this,ToolBar),l=u.apply(this,arguments),l.printModal=!1,l.ctrlS=!1,l.toolMenuOpenPathTest=[],l.printStatus="",l.isPrinted=!1,l.reviewLevel={limit:1,color:["#f19191","#8198f7","#7fd27f"],text:["一级质控","二级质控","三级质控"]},l.userInfoes=null,l.defaultToolBarParams={"ho-browse":5,"ho-edit":1,"ho-insert":1,"ho-table":1,"ho-review":4},l.tabKey="",l.defaultReviewJson={isReview:!0,clearSelectSign:!0,clearAllSign:!0,insertComment:!0,editComment:!0,deleteComment:!0,deleteAllComment:!0,qualityControl:!0,cancelDelete:!0,printStatus:!0},l.defaultBrowseJson={isBrowse:!0,saveAsFile:!0,printed:!0,printSelected:!0,printCaret:!0,printContinue:!0},l.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,gestation:!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},l}return(0,$.Z)(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(l){l&&null!==l&&(this.defaultEditJson=_objectSpread2(_objectSpread2({},this.defaultEditJson),l))}},{key:"reviewJsonChange",value:function reviewJsonChange(l){l&&null!==l&&(this.defaultReviewJson=_objectSpread2(_objectSpread2({},this.defaultReviewJson),l))}},{key:"browseJsonChange",value:function browseJsonChange(l){l&&null!==l&&(this.defaultBrowseJson=_objectSpread2(_objectSpread2({},this.defaultBrowseJson),l))}},{key:"toolbarParamsChange",value:function toolbarParamsChange(l){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 l=this;this.tabStatus&&(this.tabKey=this.tabStatus),"[object Function]"===Object.prototype.toString.call(this.vueController.setEditorStatus)&&this.tabKey&&this.$nextTick((function(){return l.vueController.setEditorStatus(l.defaultToolBarParams[l.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(l){var u=this;this.toolMenuOpenPathTest.length>0&&this.toolMenuOpenPathTest.forEach((function(l){u.controlMenus.closeMenu(l)}))}},{key:"toolMenuSelectedTest",value:function toolMenuSelectedTest(l,u){this.toolMenuOpenPathTest=u}},{key:"setLogin",value:function setLogin(l,u){var _=["李医生","张医生","王医生"],v=this.vueController.generateID("UI");this.vueController.setUserLoginInfo(v,_[l-1],l,""),this.vueController.setReviewLevelColor({reviewLev1Color:"#F19191",reviewLev2Color:"#FFFFFF",reviewLev3Color:"#FFFFFF",fieldColor:"#DFFFFF",dateTimeColor:"#FBFAD0",downListColor:"#D2ECB1"})}},{key:"setModalStatus",value:function setModalStatus(l){this.$emit("setModalStatus",l)}},{key:"updateTabKey",value:function updateTabKey(l){var u=this;this.$nextTick((function(){return u.vueController.setEditorStatus(u.defaultToolBarParams[l])}))}},{key:"mainBarClick",value:function mainBarClick(l,u){var _=this.defaultToolBarParams[l],v=this.defaultToolBarParams[u];this.emitToolBarStatus(),_!==v&&this.vueController.setEditorStatus(v),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(l){this.$emit("setModalStatus",["express","add",l])}},{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(l){"sure"===l&&(this.isPrinted=!1),this.printModal=!1}},{key:"printed",value:function printed(){this.isPrinted?(this.vueController.printPromisePDF(),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 l=this.vueController.getOnSelectedComment();if(!l)return this.$elMessage.closeAll(),void this.$elMessage.warning({message:"点击右侧批注区域内已添加的批注进行编辑操作",duration:3e3,offset:120});this.$emit("setModalStatus",["comment","update",""])}},{key:"deleteComment",value:function deleteComment(){this.$emit("insertComments",{type:"delete",selectedComment:this.vueController.getOnSelectedComment()})}},{key:"deleteAllComment",value:function deleteAllComment(){this.$emit("insertComments",{type:"deleteAll",commentValue:this.vueController.getDocCommentValue()})}},{key:"cancelDelete",value:function cancelDelete(){this.vueController.cancelDel()}},{key:"saveAsFile",value:function saveAsFile(l){var u=this.vueController.getDocTitle()?this.vueController.getDocTitle():"电子病历文档";if("pdf"==l)this.vueController.saveAsPDF("","pdf",!1);else if("html"!==l){var _=this.vueController.saveAsFile(l,!0);this.downloadFile(_,u,l)}else this.vueController.saveAsPDF("","html",!1)}},{key:"downloadFile",value:function downloadFile(l,u,_){var v=window.URL.createObjectURL(new Blob([l],{type:"text/".concat(_)})),C=document.createElement("a");C.style.display="none",C.href=v,C.setAttribute("download",u),document.body.appendChild(C),C.click(),this.$nextTick((function(){return C.remove()}))}}]),ToolBar}(k());__decorate([Prop()],n_.prototype,"vueController",void 0),__decorate([Prop({default:"ho-edit"})],n_.prototype,"tabStatus",void 0),__decorate([Prop()],n_.prototype,"editJson",void 0),__decorate([Prop()],n_.prototype,"browseJson",void 0),__decorate([Prop()],n_.prototype,"reviewJson",void 0),__decorate([Prop()],n_.prototype,"toolbarParams",void 0),__decorate([Prop()],n_.prototype,"uploadImageParams",void 0),__decorate([Ref()],n_.prototype,"controlMenus",void 0),__decorate([Prop()],n_.prototype,"textStyle",void 0),__decorate([Watch("tabStatus")],n_.prototype,"tabStatusChange",null),__decorate([Watch("editJson",{deep:!0})],n_.prototype,"editJsonChange",null),__decorate([Watch("reviewJson",{deep:!0})],n_.prototype,"reviewJsonChange",null),__decorate([Watch("browseJson",{deep:!0})],n_.prototype,"browseJsonChange",null),__decorate([Watch("toolbarParams",{deep:!0})],n_.prototype,"toolbarParamsChange",null),__decorate([Watch("vueController",{deep:!0})],n_.prototype,"vueControllerChange",null),n_=__decorate([ae({name:"ToolBar",components:{HoMedicalExpression:Cu,HoPrintDialog:Iu,ToolBarChild:bh,ToolControl:Vh,ToolTable:r_,Tabs:Jo}})],n_);var i_=n_,o_=i_,a_=normalizeComponent(o_,ToolBarvue_type_template_id_0e95df22_render,mu,!1,null,null,null),s_=a_.exports,TabPanevue_type_template_id_71cdc485_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("ul",{directives:[{name:"show",rawName:"v-show",value:l.show,expression:"show"}],class:l.className},[l._t("default")],2)},l_=[],c_=function(l){(0,Y.Z)(TabPane,l);var u=(0,ee.Z)(TabPane);function TabPane(){var l;return(0,q.Z)(this,TabPane),l=u.apply(this,arguments),l.show=!0,l}return(0,$.Z)(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}(k());__decorate([Prop()],c_.prototype,"name",void 0),__decorate([Prop()],c_.prototype,"label",void 0),__decorate([Prop()],c_.prototype,"isShow",void 0),__decorate([Prop()],c_.prototype,"notHover",void 0),__decorate([Prop()],c_.prototype,"customProperty",void 0),__decorate([Watch("isShow")],c_.prototype,"isShowChange",null),__decorate([Watch("label")],c_.prototype,"labelChange",null),c_=__decorate([ae({name:"TabPane"})],c_);var u_=c_,d_=u_,h_=normalizeComponent(d_,TabPanevue_type_template_id_71cdc485_render,l_,!1,null,null,null),p_=h_.exports,f_=function(l){(0,Y.Z)(HoRightMenu,l);var u=(0,ee.Z)(HoRightMenu);function HoRightMenu(){var l;return(0,q.Z)(this,HoRightMenu),l=u.apply(this,arguments),l.versions=vn,l.defaultTable={insertTable:!0,insertRowAbove:!0,insertRowBelow:!0,insertColLeft:!0,insertColRight:!0,deleteRows:!0,deleteCols:!0,mergerCells:!0,unMergerCells:!0,isTableCode:!0,tableFormula:!0},l.poppernIstance=null,l.isIncludes="",l.emrDebug=!1,l}return(0,$.Z)(HoRightMenu,[{key:"mounted",value:function mounted(){var l,u;this.isIncludes=null===(l=this.rightNode)||void 0===l?void 0:l.labelNode().isIncludes,this.isDeisgn=this.rightNode.paintStatus;var _={getBoundingClientRect:this.generateGetBoundingClientRect(null===(u=this.rightNode)||void 0===u?void 0:u.rightPosition)};this.poppernIstance=(0,Ar.fi)(_,this.mouseRightMenuPopup,{placement:"bottom-start",modifiers:[{name:"flip",options:{fallbackPlacements:["bottom-start","bottom","right","left"],padding:10}}]}),this.emrDebug=!(!window||!window.emrDebug0331)}},{key:"generateGetBoundingClientRect",value:function generateGetBoundingClientRect(l){var u=l.clientX,_=l.clientY;return function(){return{width:0,height:0,top:_,right:u,bottom:_,left:u}}}},{key:"toUpdateNodes",value:function toUpdateNodes(l,u){null===u||void 0===u||u.stopPropagation(),this.$emit("setModalStatus",[l,"update",this.rightNode.style]),this.handleClose()}},{key:"handleClose",value:function handleClose(){var l=this;this.$nextTick((function(){return l.$emit("closeRight")}))}},{key:"labelToText",value:function labelToText(){var l=this,u=this.rightNode.labelNode().labelNode;u.forEach((function(u){l.vueController.labelToText(u)})),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:"clearSelectedRangeParas",value:function clearSelectedRangeParas(){this.vueController.clearSelectedRangeParas(),this.handleClose()}},{key:"render",value:function render(){var l,u,_,v,C,k,N,B,U,W,q,$,Y,ee,re,ne,ie,oe=this,ae=arguments[0];return ae("div",{directives:[{name:"click-outside",value:this.handleClose.bind(this)}],ref:"mouseRightMenuPopup",class:"mouse-right-menu-popup animation-in"},[null===(l=this.$slots.hoRightSlot)||void 0===l?void 0:l.map((function(l){return l})),ae("p",["toLabel"===this.isIncludes&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:this.textToLabel.bind(this)}},["文本转标签"])]),"toText"===this.isIncludes&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:this.labelToText.bind(this)}},["标签转文本"])]),"express"===(null===(u=this.rightNode)||void 0===u?void 0:u.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("express",event)}}},["医学表达式属性"])]),"RadioBox"===(null===(_=this.rightNode)||void 0===_?void 0:_.type)||"CheckBox"===(null===(v=this.rightNode)||void 0===v?void 0:v.type)?ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){var l;return oe.toUpdateNodes(null===(l=oe.rightNode)||void 0===l?void 0:l.type,event)}}},["RadioBox"===(null===(C=this.rightNode)||void 0===C?void 0:C.type)?"单选框属性":"复选框属性"])]):null,"date"===(null===(k=this.rightNode)||void 0===k?void 0:k.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("date",event)}}},["日期属性"])]),"select"===(null===(N=this.rightNode)||void 0===N?void 0:N.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("select",event)}}},["下拉框属性"])]),"barcode"===(null===(B=this.rightNode)||void 0===B?void 0:B.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("barcode",event)}}},["条形码属性"])]),"qrcode"===(null===(U=this.rightNode)||void 0===U?void 0:U.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("qrcode",event)}}},["二维码属性"])]),"edit-image"===(null===(W=this.rightNode)||void 0===W?void 0:W.type)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("edit-image",event)}}},["编辑图片"])]),("text"===(null===(q=this.rightNode)||void 0===q?void 0:q.type)||this.emrDebug)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("text",event)}}},["文本域属性"])]),((null===($=this.rightNode)||void 0===$?void 0:$.rightTypeIsTable)&&this.defaultTable&&(0===(null===(Y=this.rightNode)||void 0===Y?void 0:Y.paintStatus)||(null===(ee=this.rightNode)||void 0===ee?void 0:ee.isCanUseTableProperty))||this.emrDebug)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table",event)}}},["表格属性"]),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table-col",event)}}},["表格列属性"]),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table-row",event)}}},["表格行属性"]),ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.toUpdateNodes("table-cell",event)}}},["单元格属性"])]),(null===(re=this.rightNode)||void 0===re?void 0:re.rightTypeIsTable)&&this.defaultTable&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item mouse-right-menu-line"}),ae(qd,{on:{closeMenu:this.handleClose.bind(this)},attrs:_objectSpread2({},{vueController:this.vueController,className:"insert-rows-columns-right",table:this.defaultTable,tableProperty:this.rightNode.tableProperty})})]),(null===(ne=this.rightNode)||void 0===ne?void 0:ne.canShowComment)&&ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item",on:{click:function click(){return oe.hideComments()}}},[null!==(ie=this.rightNode)&&void 0!==ie&&ie.isHideComments?"显示":"隐藏","批注"])]),ae("ul",{class:"mouse-right-menu"},[ae("li",{class:"mouse-menu-item"},["编辑器内核版本:  ",ae("span",{style:"font-size: 14px;color: #0a77e3;"},["v ",this.versions])])])])])}}]),HoRightMenu}(mixins(jt));__decorate([Prop()],f_.prototype,"rightPos",void 0),__decorate([Prop()],f_.prototype,"vueController",void 0),__decorate([Prop()],f_.prototype,"editController",void 0),__decorate([Prop()],f_.prototype,"editJson",void 0),__decorate([Prop()],f_.prototype,"rightNode",void 0),__decorate([Ref()],f_.prototype,"mouseRightMenuPopup",void 0),f_=__decorate([ae({name:"HoRightMenu",components:{TableFeatures:qd}})],f_);var g_=f_,viewvue_type_template_id_4a7f3e3a_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return l.hoEditorFactoryIdList.length>0?_("div",{staticClass:"ho-docs",staticStyle:{width:"1px",height:"1px"}},[_("section",{staticClass:"ho-editor-list editor-no-footer"},[l._l(l.hoEditorFactoryIdList,(function(u,v){return[_("PrintDoc",{key:v,attrs:{docIndex:v,hoEditorId:u,hoEditorFactoryIdList:l.hoEditorFactoryIdList,activeDocId:l.activeDocId},on:{setActiveDocIndex:l.setActiveDocIndex,drawPagesLengthChange:l.drawPagesLengthChange}})]}))],2)]):l._e()},m_=[],viewDocvue_type_template_id_717b1315_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{class:l.docClassNames},[_("div",{ref:"editorArea",staticClass:"editors"},[l.drawPageLength>0?_("div",{staticClass:"editor"},[l._l(l.drawPageCount.count,(function(u){return[_("PrintPage",{key:u-1,attrs:{"data-id":u-1,index:u-1,docIndex:l.docIndex,canvasWidth:l.canvasParams.width,canvasHeight:l.canvasParams.height,currentActivePages:l.activePageIndex.index,hoEditorId:l.hoEditorId,hoEditorFactoryIdList:l.hoEditorFactoryIdList,viewableAreaObserver:l.viewableAreaObserver,inViewPages:l.inViewPages},on:{pageReady:l.pageReady}})]}))],2):l._e()])])},v_=[],viewPagevue_type_template_id_28aec101_scoped_true_render=function(){var l=this,u=l.$createElement,_=l._self._c||u;return _("div",{ref:"hoPage",class:l.pageClassNames,style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"}},[_("canvas",{ref:"domcanvas",staticClass:"domcanvas-selected",style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight}}),_("canvas",{ref:"selectcanvas",staticClass:"selectcanvas",style:{height:l.scaleHeight+"px",width:l.scaleWidth+"px"},attrs:{width:l.scaleWidth,height:l.scaleHeight}})])},y_=[],b_=function(l){(0,Y.Z)(PrintPage,l);var u=(0,ee.Z)(PrintPage);function PrintPage(){return(0,q.Z)(this,PrintPage),u.apply(this,arguments)}return(0,$.Z)(PrintPage,[{key:"pageClassNames",get:function get(){return 1===this.hoEditorFactoryIdList.length?"edit-container edit-container-margin":"edit-container"}},{key:"scaleHeight",get:function get(){return this.canvasHeight}},{key:"scaleWidth",get:function get(){return this.canvasWidth}},{key:"mounted",value:function mounted(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId),_=new ct(this.hoEditorId,this.index,this.domcanvas),v=new st(this.hoEditorId,this.index,this.selectcanvas,this.docIndex,this.index),C=u.drawTree.drawPages[this.index];C.init(_,v),this.$emit("pageReady",C),this.$nextTick((function(){var u;return null===(u=l.viewableAreaObserver)||void 0===u?void 0:u.observe(l.hoPage)}))}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=this.viewableAreaObserver)||void 0===l||l.unobserve(this.hoPage)}}]),PrintPage}(k());__decorate([Prop()],b_.prototype,"canvasWidth",void 0),__decorate([Prop()],b_.prototype,"canvasHeight",void 0),__decorate([Prop()],b_.prototype,"index",void 0),__decorate([Prop()],b_.prototype,"hoEditorId",void 0),__decorate([Prop()],b_.prototype,"hoEditorFactoryIdList",void 0),__decorate([Prop()],b_.prototype,"docIndex",void 0),__decorate([Prop()],b_.prototype,"viewableAreaObserver",void 0),__decorate([Prop()],b_.prototype,"inViewPages",void 0),__decorate([Ref()],b_.prototype,"hoPage",void 0),__decorate([Ref()],b_.prototype,"domcanvas",void 0),__decorate([Ref()],b_.prototype,"selectcanvas",void 0),b_=__decorate([ae({name:"PrintPage",components:{HoHeadFoot:ft,AiModel:xt}})],b_);var w_=b_,x_=w_,P_=normalizeComponent(x_,viewPagevue_type_template_id_28aec101_scoped_true_render,y_,!1,null,"28aec101",null),C_=P_.exports,E_=function(l){(0,Y.Z)(PrintDoc,l);var u=(0,ee.Z)(PrintDoc);function PrintDoc(){var l;return(0,q.Z)(this,PrintDoc),l=u.apply(this,arguments),l.canvasParams={width:Math.floor(793*nt.f.instance().scaleXY)%2===1?Math.floor(793*nt.f.instance().scaleXY)+1:Math.floor(793*nt.f.instance().scaleXY),height:Math.floor(1122*nt.f.instance().scaleXY)%2===1?Math.floor(1122*nt.f.instance().scaleXY)+1:Math.floor(1122*nt.f.instance().scaleXY)},l.canvasHeadFootPos={headerY:48,footerY:48},l.drawing=!1,l.drawPageCount={count:-1},l.activePageIndex={index:-1},l.viewableAreaObserver=null,l.inViewPages=[0],l.drawPageLength=0,l}return(0,$.Z)(PrintDoc,[{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:"created",value:function created(){var l=rt.b.instance().getFactory(this.hoEditorId);l.hoEditorFactoryIndex=this.docIndex,l.subDocManger.initBlankDoc(),l.docTree.initBlankDoc(),window.addEventListener("keydown",(function(u){l.docTree.updateCtlKey(u)})),window.addEventListener("keyup",(function(u){l.docTree.updateCtlKey(u)}))}},{key:"mounted",value:function mounted(){var l=rt.b.instance().getFactory(this.hoEditorId);l.pageProperty.canvasParams=this.canvasParams,l.pageProperty.canvasHeadFootPos=this.canvasHeadFootPos,l.drawPageTree.initDoc(),l.drawTree.drawPageCount=this.drawPageCount,l.drawTree.activePageIndex=this.activePageIndex,this.drawing=!1;var u=this.hoEditorFactoryIdList.length;if(0===this.docIndex){var _=l.subDocManger.getHeaderSubDocTree(0);if(!_)throw new Error("需要先创建页眉文档");l.drawTree.buildDrawTree(_.subDocNodes,l.drawTree.headerDNodes[0])}if(this.docIndex===u-1){var v=l.subDocManger.getFooterSubDocTree(0);if(!v)throw new Error("需要先创建页脚文档");l.drawTree.buildDrawTree(v.subDocNodes,l.drawTree.footerDNodes[0])}l.drawTree.buildDrawTree(l.docTree.mainNodes,l.drawTree.mainDNodes),l.drawTree.addPage(),l.drawTree.drawPageCount.count=l.drawTree.drawPages.length,l.drawTree.inViewPages=[0],l.drawPageTree.changeInViewPage()}},{key:"beforeDestroy",value:function beforeDestroy(){var l;null===(l=this.viewableAreaObserver)||void 0===l||l.disconnect()}},{key:"pageIntersectionObserver",value:function pageIntersectionObserver(){var l=this,u=rt.b.instance().getFactory(this.hoEditorId);this.viewableAreaObserver=new pn((function(_){if(_){var v=(0,U.Z)(u.drawTree.inViewPages);_.forEach((function(l){var _=Number(l.target.dataset.id),C=u.drawTree.drawPages[_],k=u.drawTree.drawPages.length;C&&C.needUpdateStage&&C.drawDomLevel&&(u.drawPageTree.updateDrawPage(C.pageIndex),C.needUpdateStage=!1),0===l.intersectionRatio?v=v.filter((function(l){return C&&l!==C.pageIndex})):!v.includes(C.pageIndex)&&v.push(C.pageIndex),v=v.filter((function(l){return l<k})).sort()})),l.inViewPages=(0,U.Z)(v),u.drawTree.inViewPages=(0,U.Z)(v),u.drawPageTree.changeInViewPage()}}),{root:null,rootMargin:"0px",threshold:[0,1]})}},{key:"pageReady",value:function pageReady(l){try{null===this.viewableAreaObserver&&this.pageIntersectionObserver();var u=rt.b.instance().getFactory(this.hoEditorId);this.drawing=!0,u.drawTree.paintHeader(l.pageIndex),u.drawTree.paintFooter(l.pageIndex),l.reFreshBounds(),u.drawPageTree.changeInViewPage(),l.drawDomLevel&&u.drawPageTree.updateDrawPage(l.pageIndex)}finally{this.drawing=!1}}}]),PrintDoc}(k());__decorate([Prop()],E_.prototype,"docIndex",void 0),__decorate([Prop()],E_.prototype,"hoEditorId",void 0),__decorate([Prop()],E_.prototype,"hoEditorFactoryIdList",void 0),__decorate([Watch("drawPageCount",{deep:!0})],E_.prototype,"drawPagesLengthChange",null),__decorate([Watch("activePageIndex",{deep:!0})],E_.prototype,"activePageIndexChange",null),E_=__decorate([ae({name:"PrintDoc",components:{PrintPage:C_}})],E_);var S_=E_,T_=S_,D_=normalizeComponent(T_,viewDocvue_type_template_id_717b1315_render,v_,!1,null,null,null),k_=D_.exports,I_=function(l){(0,Y.Z)(PrintDocs,l);var u=(0,ee.Z)(PrintDocs);function PrintDocs(){var l;return(0,q.Z)(this,PrintDocs),l=u.apply(this,arguments),l.hoEditorFactoryIdList=[],l.docList=[0],l.drawPageLength=0,l.activeDocId="",l.defaultDocProperty={version:"",type:0,title:"",docID:"",patientID:"",patientName:"",lastEditTime:"",lastEditorID:"",lastEditorName:"",currentIP:""},l}return(0,$.Z)(PrintDocs,[{key:"pagePropertyChange",value:function pagePropertyChange(l){l&&this.initPageProperty(_objectSpread2({},l))}},{key:"isFixedPrintToA4Change",value:function isFixedPrintToA4Change(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0];rt.b.instance().hoEditorFactoryMap.get(l)}},{key:"printBlackChange",value:function printBlackChange(){var l=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],u=rt.b.instance().hoEditorFactoryMap.get(l);u&&(u.printBlack=this.printBlack)}},{key:"created",value:function created(){var l=this;window.oncontextmenu=function(l){l.preventDefault()},this.docList.forEach((function(){var u=(0,Lt.y)("HO"),_=new fo(u);l.hoEditorFactoryIdList.push(u),_.isFixedPrintToA4=l.isFixedPrintToA4,_.printBlack=l.printBlack,_.docTree.docProperty=l.defaultDocProperty,rt.b.instance().hoEditorFactoryMap.set(u,_)})),this.setActiveDocIndex(this.hoEditorFactoryIdList[0]),this.$nextTick((function(){l.pageProperty&&l.initPageProperty(_objectSpread2({},l.pageProperty))}))}},{key:"setActiveDocIndex",value:function setActiveDocIndex(l){this.activeDocId=l;var u=rt.b.instance().getFactory(this.activeDocId);u.hoLocalStorage.initHoWebSql(),this.$emit("docReady",{vueController:u.vueController,printController:u.printController})}},{key:"drawPagesLengthChange",value:function drawPagesLengthChange(l){this.drawPageLength=l}},{key:"initPageProperty",value:function initPageProperty(l){var u=this.activeDocId?this.activeDocId:this.hoEditorFactoryIdList[0],_=rt.b.instance().hoEditorFactoryMap.get(u);_&&(isNaN(Number(l.signHeight))||(_.signHeight=Number(l.signHeight)))}}]),PrintDocs}(mixins());__decorate([Prop()],I_.prototype,"pageProperty",void 0),__decorate([Prop({default:""})],I_.prototype,"isFixedPrintToA4",void 0),__decorate([Prop({default:!0})],I_.prototype,"printBlack",void 0),__decorate([Watch("pageProperty",{deep:!0})],I_.prototype,"pagePropertyChange",null),__decorate([Watch("isFixedPrintToA4",{deep:!0})],I_.prototype,"isFixedPrintToA4Change",null),__decorate([Watch("printBlack")],I_.prototype,"printBlackChange",null),I_=__decorate([ae({name:"PrintDocs",components:{PrintDoc:k_}})],I_);var M_=I_,N_=M_,O_=normalizeComponent(N_,viewvue_type_template_id_4a7f3e3a_render,m_,!1,null,null,null),L_=O_.exports;gu.install=function(l){l.component(gu.name,gu)},L_.install=function(l){l.component(L_.name,L_)},s_.install=function(l){l.component(s_.name,s_)},p_.install=function(l){l.component(p_.name,p_)},g_.install=function(l){l.component(g_.name,g_)},Cu.install=function(l){l.component(Cu.name,Cu)};var A_=__webpack_require__(54813),R_=__webpack_require__.n(A_),F_=__webpack_require__(14561),j_=__webpack_require__.n(F_),B_=__webpack_require__(35034),U_=__webpack_require__.n(B_),H_=__webpack_require__(63364),W_=__webpack_require__.n(H_),q_=__webpack_require__(62618),z_=__webpack_require__.n(q_),V_=__webpack_require__(85517),K_=__webpack_require__.n(V_),$_=__webpack_require__(44242),G_=__webpack_require__.n($_),Z_=__webpack_require__(40032),J_=__webpack_require__.n(Z_),X_=__webpack_require__(54223),Y_=__webpack_require__.n(X_),Q_=__webpack_require__(26906),ep=__webpack_require__.n(Q_),tp=__webpack_require__(42173),rp=__webpack_require__.n(tp),ip=__webpack_require__(43229),op=__webpack_require__.n(ip),ap=__webpack_require__(57099),sp=__webpack_require__.n(ap),lp=__webpack_require__(66177),cp=__webpack_require__.n(lp),dp=__webpack_require__(84005),hp=__webpack_require__.n(dp),fp=__webpack_require__(17113),gp=__webpack_require__.n(fp),mp=__webpack_require__(45614),vp=__webpack_require__.n(mp),yp=__webpack_require__(67186),bp=__webpack_require__.n(yp),wp=__webpack_require__(62810),xp=__webpack_require__.n(wp),Pp=__webpack_require__(13235),Cp=__webpack_require__.n(Pp),Ep=__webpack_require__(82626),Sp=__webpack_require__.n(Ep),Tp=__webpack_require__(88331),Dp=__webpack_require__.n(Tp),kp=__webpack_require__(81337),Ip=__webpack_require__.n(kp),Mp=__webpack_require__(41955),Np=__webpack_require__.n(Mp),Op=__webpack_require__(7987),Lp=__webpack_require__.n(Op),Ap=__webpack_require__(80950),Rp=__webpack_require__.n(Ap),Fp=__webpack_require__(7626),jp=__webpack_require__.n(Fp),Bp=__webpack_require__(91119),Up=__webpack_require__.n(Bp),Hp=__webpack_require__(2444),Wp=__webpack_require__.n(Hp),qp=__webpack_require__(10642),zp=__webpack_require__.n(qp),Vp=__webpack_require__(26426),Kp=__webpack_require__.n(Vp);k().use(Kp()),k().use(zp()),k().use(Wp()),k().use(Up()),k().use(jp()),k().use(Rp()),k().use(Lp()),k().use(Np()),k().use(Ip()),k().use(Dp()),k().use(Sp()),k().use(Cp()),k().use(xp()),k().use(bp()),k().use(vp()),k().use(gp()),k().use(hp()),k().use(cp()),k().use(sp()),k().use(op()),k().use(rp()),k().use(ep()),k().use(Y_()),k().use(J_()),k().use(G_()),k().use(K_()),k().use(z_()),k().use(W_()),k().use(U_()),k().use(j_()),k().use(R_()),k().prototype.$elMessage=Ji(),k().prototype.$elConfirm=Jn().confirm;var $p="click",Gp=Object.create(null),Zp=Object.create(null),Jp=Object.create(null),Xp=Object.create(null),Yp=[Gp,Zp],Qp=function onCommonEvent(l,u,_,v){var C=_.target,k=function itemIteratee(u){var v=u.el;if(v!==C&&!v.contains(C)){var k=u.binding;k.modifiers.stop&&_.stopPropagation(),k.modifiers.prevent&&_.preventDefault(),k.value.call(l,_)}};u[v].forEach(k)},_f=function getEventHandler(l,u){return l?(Jp[u]||(Jp[u]=function onCaptureEvent(l){Qp(this,Gp,l,u)}),Jp[u]):(Xp[u]||(Xp[u]=function onNonCaptureEvent(l){Qp(this,Zp,l,u)}),Xp[u])},Pf=Object.defineProperties({},{$captureInstances:{value:Gp},$nonCaptureInstances:{value:Zp},$captureEventHandlers:{value:Jp},$nonCaptureEventHandlers:{value:Xp},bind:{value:function bind(l,u){if("function"!==typeof u.value)throw new TypeError("Binding value must be a function.");var _=u.arg||$p,v=_objectSpread2(_objectSpread2({},u),{arg:_,modifiers:_objectSpread2(_objectSpread2({},{capture:!1,prevent:!1,stop:!1}),u.modifiers)}),C=v.modifiers.capture,k=C?Gp:Zp;Array.isArray(k[_])||(k[_]=[]),1===k[_].push({el:l,binding:v})&&"object"===("undefined"===typeof document?"undefined":(0,ri.Z)(document))&&document&&document.addEventListener(_,_f(C,_),C)}},unbind:{value:function unbind(l){var u=function compareElements(u){return u.el!==l},_=function instancesIteratee(l){var _=Object.keys(l);if(_.length){var v=l===Gp,C=function keysIteratee(_){var C=l[_].filter(u);C.length?l[_]=C:("object"===("undefined"===typeof document?"undefined":(0,ri.Z)(document))&&document&&document.removeEventListener(_,_f(v,_),v),delete l[_])};_.forEach(C)}};Yp.forEach(_)}}});function clickoutside_install(l){l.directive("click-outside",Pf)}var Sf={install:function install(l){l.directive("clickOnce",{inserted:function inserted(l,u){l.addEventListener("click",(function(){l.disabled||(l.disabled=!0,setTimeout((function(){l.disabled=!1}),u.value||3e3))}))}})}},Tf=void 0,Mf=function debounce(l,u){var _,v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(){for(var C=arguments.length,k=new Array(C),N=0;N<C;N++)k[N]=arguments[N];if(v)return l.apply(Tf,k),void(v=!1);clearTimeout(_),_=setTimeout((function(){l.apply(Tf,k)}),u)}},Nf={install:function install(l){l.directive("debounce",{bind:function bind(l,u){var _=u.value,v=u.arg,C=u.modifiers,k=Object.keys(C)[0];l.addEventListener(k,Mf(_,v))}})}};k().use(l),k().use(Sf),k().use(Nf);var Of=[gu,L_,s_,p_,g_,Cu],Rf=function install(l){Of.forEach((function(u){l.component(u.name,u)}))};"undefined"!==typeof window&&window.Vue&&Rf(window.Vue);var Uf={install:Rf,HoDocs:gu,PrintDocs:L_,ToolBar:s_,TabPane:p_,HoRightMenu:g_,HoMedicalExpression:Cu},Wf=Uf,Vf=Wf}(),__webpack_exports__=__webpack_exports__["default"],__webpack_exports__}()}));