!function(){functione(t){returne="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},e(t)}functiont(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){returnr};varr={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeofSymbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,r){returne[t]=r}}functionf(e,t,r,n){varo=t&&t.prototypeinstanceofd?t:d,a=Object.create(o.prototype),c=newP(n||[]);returni(a,"_invoke",{value:E(e,r,c)}),a}functionh(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}r.wrap=f;varm={};functiond(){}functionp(){}functiony(){}varv={};l(v,c,(function(){returnthis}));varb=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==n&&o.call(w,c)&&(v=w);varg=y.prototype=d.prototype=Object.create(v);functionx(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionk(t,r){functionn(i,a,c,s){varu=h(t[i],t,a);if("throw"!==u.type){varl=u.arg,f=l.value;returnf&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):r.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){returnn("throw",e,c,s)}))}s(u.arg)}vara;i(this,"_invoke",{value:function(e,t){functiono(){returnnewr((function(r,o){n(e,t,r,o)}))}returna=a?a.then(o,o):o()}})}functionE(e,t,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnS()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=L(a,r);if(c){if(c===m)continue;returnc}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";vars=h(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}functionL(e,t){varr=e.iterator[t.method];if(void0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void0,L(e,t),"throw"===t.method))returnm;t.method="throw",t.arg=newTypeError("The iterator does not provide a 'throw' method")}returnm}varn=h(r,e.iterator,t.arg);if("throw"===n.type)returnt.method="throw",t.arg=n.arg,t.delegate=null,m;varo=n.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,m):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,m)}functionO(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionN(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionP(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}functionC(e){if(e){vart=e[c];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varr=-1,n=functiont(){for(;++r<e.length;)if(o.call(e,r))returnt.value=e[r],t.done=!1,t;returnt.value=void0,t.done=!0,t};returnn.next=n}}return{next:S}}functionS(){return{value:void0,done:!0}}returnp.prototype=y,i(g,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:p,configurable:!0}),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},r.awrap=function(e){return{__await:e}},x(k.prototype),l(k.prototype,s,(function(){returnthis})),r.AsyncIterator=k,r.async=function(e,t,n,o,i){void0===i&&(i=Promise);vara=newk(f(e,t,n,o),i);returnr.isGeneratorFunction(t)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,c,(function(){returnthis})),l(g,"toString",(function(){return"[object Generator]"})),r.keys=function(e){vart=Object(e),r=[];for(varnint)r.push(n);returnr.reverse(),functione(){for(;r.length;){varn=r.pop();if(nint)returne.value=n,e.done=!1,e}returne.done=!0,e}},r.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void0,this.done=!1,this.delegate=null,this.method="next",this.arg=void0,this.tryEntries.forEach(N),!e)for(vartinthis)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void0)},stop:function(){this.done=!0;vare=this.tryEntries[0].completion;if("throw"===e.type)throwe.arg;returnthis.rval},dispatchException:function(e){if(this.done)throwe;vart=this;functionr(r,n){returna.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(varn=this.tryEntries.length-1;n>=0;--n){vari=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!s)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(e,t){for(varr=this.tryEntries.length-1;r>=0;--r){varn=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){vari=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throwe.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.finallyLoc===e)returnthis.complete(r.completion,r.afterLoc),N(r),m}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.tryLoc===e){varn=r.completion;if("throw"===n.type){varo=n.arg;N(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),m}},r}functionr(e,t,r,n,o,i,a){try{varc=e[i](a),s=c.value}catch(u){returnvoidr(u)}c.done?t(s):Promise.resolve(s).then(n,o)}functionn(e){returnfunction(){vart=this,n=arguments;returnnewPromise((function(o,i){vara=e.apply(t,n);functionc(e){r(a,o,i,c,s,"next",e)}functions(e){r(a,o,i,c,s,"throw",e)}c(void0)}))}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}functiona(e,t,r){returnt&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}functionc(e,t){returnc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},c(e,t)}functions(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varr,n=f(e);if(t){varo=f(this).constructor;r=Reflect.construct(n,arguments,o)}elser=n.apply(this,arguments);returnu(this,r)}}functionu(t,r){if(r&&("object"===e(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnl(t)}functionl(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionf(e){returnf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},f(e)}functionh(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","@ibiz-template/runtime","@ibiz-template/model"],(function(e,r){"use strict";vari,u,f,m,d,p,y,v,b,w,g,x,k,E,L,O,N,P;return{setters:[function(e){i=e.GridFieldColumnController,u=e.GridRowController,f=e.WFStepTraceViewController},function(e){m=e.defineComponent,d=e.computed,p=e.h,y=e.getCurrentInstance,v=e.ref},function(e){b=e.useNamespace,w=e.useViewController,g=e.usePropsWatch,x=e.useWFStepTraceViewController,k=e.useWFDynaEditView3Controller,E=e.useEditView3Controller},function(e){L=e.colorBlend,O=e.IBizContext},function(e){N=e.ViewMode},function(e){P=e.ViewType}],execute:function(){varC=m({name:"CodeListGridColumn",props:{controller:{type:i,required:!0},row:{type:u,required:!0}},setup:function(e){vart=b("grid-field-column"),r=d((function(){varr;if("FRONT"!==e.controller.model.source.cLConvertMode)return[];varn=e.row.data[e.controller.model.codeName];returnnull!==(r=e.controller.codeListItems)&&void0!==r&&r.length&&n?n.split(",").map((function(r){varn=e.controller.codeListItems.find((function(e){returne.value===r}));if(n){varo=n.color||"#515a6e";return{text:n.text,colorStyle:t.cssVarBlock({color:o,"border-color":o,"bg-color":L(o,"#fff")})}}})).filter(Boolean):[]})),n=d((function(){varr="";switch(e.controller.model.align){case"LEFT":r="flex-start";break;case"RIGHT":r="flex-end";break;default:r="center"}returnt.cssVarBlock({"justify-content":r})}));return{ns:t,alignStyle:n,selectedItems:r,onCellClick:function(t){e.controller.isLinkColumn&&e.controller.openLinkView(e.row,t)}}},render:function(){vare=this,t=this.controller,r=this.row.data[t.model.codeName];returnp("div",{class:[this.ns.b(),t.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(t){returnp("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):p("span",{class:this.ns.e("text")},[r])])}}),S=function(e){!function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(u,e);varr,i=s(u);functionu(){vare;o(this,u);for(vart=arguments.length,r=newArray(t),n=0;n<t;n++)r[n]=arguments[n];returnh(l(e=i.call.apply(i,[this].concat(r))),"imgSrc",void0),e}returna(u,[{key:"getUIData",value:(r=n(t().mark((functione(){varr,n,o;returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnr=newO(this.params,this.context),e.next=3,this.entityService.wf.getWFProcessDiagram(r);case3:n=e.sent,o=newBlob([n.data]),this.imgSrc=URL.createObjectURL(o);case6:case"end":returne.stop()}}),e,this)}))),function(){returnr.apply(this,arguments)})}]),u}(f),T=m({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=b("preset-wf-chart-view"),r=y().proxy,n=w(r,(function(t,r){returnnewS(e.modelPath,t,r)}));returng(r,"deName",n.setDeName.bind(n)),{c:n,ns:t}},render:function(){returnp("div",{class:this.ns.b()},[p("img",{attrs:{src:this.c.imgSrc}})])}}),j=m({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,r){varo=r.emit,i=b("wf-toolbar"),a=function(){vare=n(t().mark((functione(r,n){returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:o("wf-link-click",r,n);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}();return{ns:i,handleClick:a}},render:function(){vare=this,t=this.wfLinks||[];returnp("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varr="驳回"==t.sequenceFlowName||"取消"==t.sequenceFlowName;returnp("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[p("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){returne.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}}),_=a((functione(){o(this,e),h(this,"component",T)})),I=function(){functione(){o(this,e),h(this,"component",C)}varr;returna(e,[{key:"createController",value:(r=n(t().mark((functione(r,n){varo;returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returno=newi(r,n),e.next=3,o.init();case3:returne.abrupt("return",o);case4:case"end":returne.stop()}}),e)}))),function(e,t){returnr.apply(this,arguments)})}]),e}(),V=a((functione(){o(this,e),h(this,"component","IndexView")})),F=m({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=y().proxy,r=x(t,e.modelPath);g(t,"deName",r.setDeName.bind(r));varn=b("wf-step-trace-grid"),o=v([]);r.nerve.self.evt.on("mounted",(function(){vare;r.data&&(null===(e=r.data.usertasks)||void0===e||e.forEach((function(e){e.identitylinks.length>0||(e.comments.length>0&&e.comments.forEach((function(t){o.value.push({nodeName:e.userTaskName,personName:t.authorName,time:t.time,content:t.type,comment:t.fullMessage})})),o.value.sort((function(e,t){returnDate.parse(t.time)-Date.parse(e.time)})))})))}));vari=v([{title:"处理环节",key:"nodeName",width:180,resizable:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:r,ns:n,gridData:o,columns:i}},render:function(){returnp("div",{class:this.ns.b()},[p("div",{class:this.ns.e("title")},["审批信息"]),p("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData},class:this.ns.e("grid")})])}}),D=m({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=y().proxy,r=k(t,e.modelPath),n=b("view-".concat(P.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this,r=[];if(this.c.complete){varn=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(e(this.c.providers[n.name].component,{props:{modelData:n,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){varo=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];r.push(e(F,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}returne("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){returnt.c.complete?[t.c.wfLinks.length>0&&e("wf-toolbar",{attrs:{wfLinks:t.c.wfLinks},on:{"wf-link-click":function(e){t.c.onLinkClick(e)}}})]:null}}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[r]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),z=a((functione(){o(this,e),h(this,"component",D)})),W=m({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=y().proxy,r=E(t,e.modelPath),n=b("view-deeditview3"),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this;returne("view-base",{attrs:{controller:this.c}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[e("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),e(F,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}})]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];if(n)returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),G=a((functione(){o(this,e),h(this,"component",W)}));e("default",{mateUrl:r.meta.url,install:function(e){ibiz.config.enableDataInfoBar=!1,e.component("WfToolbar",j),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",newV),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new_),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",newI),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",newz),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",newG)}})}}}))}();
!function(){functione(t){returne="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},e(t)}functiont(e){returnfunction(e){if(Array.isArray(e))returnr(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeofe)returnr(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)returnArray.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnr(e,t)}(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionr(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functionn(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){returnt};vart={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeofSymbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";functionu(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(N){u=function(e,t,r){returne[t]=r}}functionf(e,t,r,n){varo=t&&t.prototypeinstanceofp?t:p,a=Object.create(o.prototype),c=newT(n||[]);returni(a,"_invoke",{value:k(e,r,c)}),a}functiond(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=f;varm={};functionp(){}functionh(){}functionv(){}vary={};u(y,c,(function(){returnthis}));varb=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==r&&o.call(w,c)&&(y=w);varg=v.prototype=p.prototype=Object.create(y);functionx(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionE(t,r){functionn(i,a,c,s){varl=d(t[i],t,a);if("throw"!==l.type){varu=l.arg,f=u.value;returnf&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):r.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){returnn("throw",e,c,s)}))}s(l.arg)}vara;i(this,"_invoke",{value:function(e,t){functiono(){returnnewr((function(r,o){n(e,t,r,o)}))}returna=a?a.then(o,o):o()}})}functionk(e,t,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnF()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=S(a,r);if(c){if(c===m)continue;returnc}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";vars=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}functionS(e,t){varr=e.iterator[t.method];if(void0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void0,S(e,t),"throw"===t.method))returnm;t.method="throw",t.arg=newTypeError("The iterator does not provide a 'throw' method")}returnm}varn=d(r,e.iterator,t.arg);if("throw"===n.type)returnt.method="throw",t.arg=n.arg,t.delegate=null,m;varo=n.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,m):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,m)}functionC(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionO(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionT(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}functionL(e){if(e){vart=e[c];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varr=-1,n=functiont(){for(;++r<e.length;)if(o.call(e,r))returnt.value=e[r],t.done=!1,t;returnt.value=void0,t.done=!0,t};returnn.next=n}}return{next:F}}functionF(){return{value:void0,done:!0}}returnh.prototype=v,i(g,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},x(E.prototype),u(E.prototype,s,(function(){returnthis})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void0===i&&(i=Promise);vara=newE(f(e,r,n,o),i);returnt.isGeneratorFunction(r)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},x(g),u(g,l,"Generator"),u(g,c,(function(){returnthis})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){vart=Object(e),r=[];for(varnint)r.push(n);returnr.reverse(),functione(){for(;r.length;){varn=r.pop();if(nint)returne.value=n,e.done=!1,e}returne.done=!0,e}},t.values=L,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void0,this.done=!1,this.delegate=null,this.method="next",this.arg=void0,this.tryEntries.forEach(O),!e)for(vartinthis)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void0)},stop:function(){this.done=!0;vare=this.tryEntries[0].completion;if("throw"===e.type)throwe.arg;returnthis.rval},dispatchException:function(e){if(this.done)throwe;vart=this;functionr(r,n){returna.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(varn=this.tryEntries.length-1;n>=0;--n){vari=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!s)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(e,t){for(varr=this.tryEntries.length-1;r>=0;--r){varn=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){vari=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throwe.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.finallyLoc===e)returnthis.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.tryLoc===e){varn=r.completion;if("throw"===n.type){varo=n.arg;O(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),m}},t}functiono(e,t,r,n,o,i,a){try{varc=e[i](a),s=c.value}catch(l){returnvoidr(l)}c.done?t(s):Promise.resolve(s).then(n,o)}functioni(e){returnfunction(){vart=this,r=arguments;returnnewPromise((function(n,i){vara=e.apply(t,r);functionc(e){o(a,n,i,c,s,"next",e)}functions(e){o(a,n,i,c,s,"throw",e)}c(void0)}))}}functiona(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionc(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}functions(e,t,r){returnt&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}functionl(e,t){returnl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},l(e,t)}functionu(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varr,n=m(e);if(t){varo=m(this).constructor;r=Reflect.construct(n,arguments,o)}elser=n.apply(this,arguments);returnf(this,r)}}functionf(t,r){if(r&&("object"===e(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnd(t)}functiond(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionm(e){returnm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},m(e)}functionp(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","qx-util","@ibiz-template/runtime","@ibiz-template/model"],(function(e,r){"use strict";varo,c,f,m,h,v,y,b,w,g,x,E,k,S,C,O,T,L,F,N,P,j,I;return{setters:[function(e){o=e.GridFieldColumnController,c=e.GridRowController,f=e.WFStepTraceViewController,m=e.UploadEditorController},function(e){h=e.defineComponent,v=e.computed,y=e.h,b=e.getCurrentInstance,w=e.ref,g=e.watch},function(e){x=e.useNamespace,E=e.useViewController,k=e.usePropsWatch,S=e.getUploadProps,C=e.getEditorEmits,O=e.useWFStepTraceViewController,T=e.useWFDynaEditView3Controller,L=e.useEditView3Controller},function(e){F=e.colorBlend,N=e.IBizContext},function(e){P=e.getCookie},function(e){j=e.ViewMode},function(e){I=e.ViewType}],execute:function(){varD=h({name:"CodeListGridColumn",props:{controller:{type:o,required:!0},row:{type:c,required:!0}},setup:function(e){vart=x("grid-field-column"),r=v((function(){varr;if("FRONT"!==e.controller.model.source.cLConvertMode)return[];varn=e.row.data[e.controller.model.codeName];returnnull!==(r=e.controller.codeListItems)&&void0!==r&&r.length&&n?n.split(",").map((function(r){varn=e.controller.codeListItems.find((function(e){returne.value===r}));if(n){varo=n.color||"#515a6e";return{text:n.text,colorStyle:t.cssVarBlock({color:o,"border-color":o,"bg-color":F(o,"#fff")})}}})).filter(Boolean):[]})),n=v((function(){varr="";switch(e.controller.model.align){case"LEFT":r="flex-start";break;case"RIGHT":r="flex-end";break;default:r="center"}returnt.cssVarBlock({"justify-content":r})}));return{ns:t,alignStyle:n,selectedItems:r,onCellClick:function(t){e.controller.isLinkColumn&&e.controller.openLinkView(e.row,t)}}},render:function(){vare=this,t=this.controller,r=this.row.data[t.model.codeName];returny("div",{class:[this.ns.b(),t.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(t){returny("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):y("span",{class:this.ns.e("text")},[r])])}}),U=function(e){!function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(o,e);vart,r=u(o);functiono(){vare;a(this,o);for(vart=arguments.length,n=newArray(t),i=0;i<t;i++)n[i]=arguments[i];returnp(d(e=r.call.apply(r,[this].concat(n))),"imgSrc",void0),e}returns(o,[{key:"getUIData",value:(t=i(n().mark((functione(){vart,r,o;returnn().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnt=newN(this.params,this.context),e.next=3,this.entityService.wf.getWFProcessDiagram(t);case3:r=e.sent,o=newBlob([r.data]),this.imgSrc=URL.createObjectURL(o);case6:case"end":returne.stop()}}),e,this)}))),function(){returnt.apply(this,arguments)})}]),o}(f),_=h({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=x("preset-wf-chart-view"),r=b().proxy,n=E(r,(function(t,r){returnnewU(e.modelPath,t,r)}));returnk(r,"deName",n.setDeName.bind(n)),{c:n,ns:t}},render:function(){returny("div",{class:this.ns.b()},[y("img",{attrs:{src:this.c.imgSrc}})])}}),V=h({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,t){varr=t.emit,o=x("wf-toolbar"),a=function(){vare=i(n().mark((functione(t,o){returnn().wrap((function(e){for(;;)switch(e.prev=e.next){case0:r("wf-link-click",t,o);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}();return{ns:o,handleClick:a}},render:function(){vare=this,t=this.wfLinks||[];returny("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varr="驳回"==t.sequenceFlowName||"取消"==t.sequenceFlowName;returny("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[y("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){returne.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}}),z="function"==typeofbtoa,A="function"==typeofBuffer;"function"==typeofTextDecoder&&newTextDecoder;varR,B="function"==typeofTextEncoder?newTextEncoder:void0,M=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");R={},M.forEach((function(e,t){returnR[e]=t}));varW=String.fromCharCode.bind(String);"function"==typeofUint8Array.from&&Uint8Array.from.bind(Uint8Array);varG=function(e){returne.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},q=z?function(e){returnbtoa(e)}:A?function(e){returnBuffer.from(e,"binary").toString("base64")}:function(e){for(vart,r,n,o,i="",a=e.length%3,c=0;c<e.length;){if((r=e.charCodeAt(c++))>255||(n=e.charCodeAt(c++))>255||(o=e.charCodeAt(c++))>255)thrownewTypeError("invalid character found");i+=M[(t=r<<16|n<<8|o)>>18&63]+M[t>>12&63]+M[t>>6&63]+M[63&t]}returna?i.slice(0,a-3)+"===".substring(a):i},Y=A?function(e){returnBuffer.from(e).toString("base64")}:function(e){for(vart=[],r=0,n=e.length;r<n;r+=4096)t.push(W.apply(null,e.subarray(r,r+4096)));returnq(t.join(""))},J=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?W(192|t>>>6)+W(128|63&t):W(224|t>>>12&15)+W(128|t>>>6&63)+W(128|63&t);vart=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);returnW(240|t>>>18&7)+W(128|t>>>12&63)+W(128|t>>>6&63)+W(128|63&t)},H=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,K=A?function(e){returnBuffer.from(e,"utf8").toString("base64")}:B?function(e){returnY(B.encode(e))}:function(e){returnq(e.replace(H,J))};functionQ(e,r,n){varo=w([]),i=w({Authorization:"Bearer ".concat(P("access_token"))}),a=w(""),c=w(""),s={count:0,cacheFiles:[]};g((function(){returne.value}),(function(e){o.value=e?JSON.parse(e):[]}),{immediate:!0}),g((function(){returne.data}),(function(e){if(e){vart=n.calcBaseUrl(e);a.value=t.uploadUrl,c.value=t.downloadUrl}}),{immediate:!0,deep:!0}),g(o,(function(e){null!=e&&e.length&&c.value&&e.forEach((function(e){e.url=e.url||c.value.replace("%fileId%",e.id)}))}),{immediate:!0}),g(c,(function(e){e&&o.value.length&&o.value.forEach((function(e){e.url=c.value.replace("%fileId%",e.id)}))}),{immediate:!0});varl=function(){vare=[].concat(t(o.value),t(s.cacheFiles)),n=e.length>0?JSON.stringify(e.map((function(e){return{name:e.name,id:e.id}}))):null;s.cacheFiles=[],r(n)},u=w(!1),f=w(""),d=w("");return{uploadUrl:a,downloadUrl:c,headers:i,files:o,onDownload:function(e){vart=e.url||c.value.replace("%fileId%",e.id);n.fileDownload({url:t,name:e.name})},onError:function(e){throws.count-=1,e},onRemove:function(t){if(!e.disabled){varr=o.value.findIndex((function(e){returne.id===t.id}));-1!==r&&o.value.splice(r,1),l()}},onSuccess:function(e){e&&(s.cacheFiles.push({name:e.filename,id:e.fileid}),s.count-=1,0===s.count&&l())},beforeUpload:function(){s.count+=1},showModal:u,modalTitle:f,iframeUrl:d,onModalCancel:function(){u.value=!1,f.value="",d.value=""},previewFile:function(e){u.value=!0,f.value=e.name;vart=window.Environment.previewFileUrl;if(t){varr=encodeURIComponent(function(e){returnarguments.length>1&&void0!==arguments[1]&&arguments[1]?G(K(e)):K(e)}("".concat(window.location.origin).concat(e.url,"?fullfilename=").concat(e.name)));d.value="".concat(t,"/onlinePreview?url=").concat(r)}}}}varX=h({name:"SyFileUpload",props:S(),emits:C(),setup:function(e,t){varr=t.emit,n=x("sy-file-upload"),o=e.controller,i=Q(e,(function(e){r("change",e)}),o);return{ns:n,c:o,uploadUrl:i.uploadUrl,headers:i.headers,files:i.files,onDownload:i.onDownload,onError:i.onError,onRemove:i.onRemove,onSuccess:i.onSuccess,beforeUpload:i.beforeUpload,showModal:i.showModal,modalTitle:i.modalTitle,iframeUrl:i.iframeUrl,onModalCancel:i.onModalCancel,previewFile:i.previewFile}},render:function(e){vart=this;returne("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[e("IUpload",{ref:"fileUpload",props:{action:this.uploadUrl,headers:this.headers,disabled:this.disabled,"default-file-list":this.files,multiple:this.c.model.multiple,type:this.c.model.isDrag?"drag":"select",accept:this.c.model.accept,"before-upload":this.beforeUpload,"on-success":this.onSuccess,"on-error":this.onError,"on-remove":this.onRemove,"on-preview":this.onDownload,"show-upload-list":!1}},[this.c.model.isDrag?e("div",{class:this.ns.bm("box","drag")},[e("i-icon",{attrs:{type:"md-cloud-upload"}}),e("div",{class:this.ns.be("box","title")},[e("span",["将文件拖到此处,或"]),e("span",["点击上传"])])]):e("i-button",{attrs:{icon:"md-cloud-upload"},class:this.ns.bm("box","select")},["点击上传"])]),e("div",{class:this.ns.b("file-list")},[this.files.map((function(r){returne("div",{class:t.ns.b("file-item"),key:r.id},[e("div",{class:t.ns.b("file-item-title")},[e("i-icon",{attrs:{type:"md-document"}}),e("span",[r.name])]),e("div",{class:t.ns.b("file-item-action")},[e("i-button",{class:t.ns.be("file-item-action","download"),attrs:{icon:"md-download",type:"text"},on:{click:function(){returnt.onDownload(r)}}},["下载"]),e("i-button",{class:t.ns.be("file-item-action","preview"),attrs:{icon:"md-eye",type:"text"},on:{click:function(){returnt.previewFile(r)}}},["预览"]),t.disabled||t.readonly?null:e("i-button",{class:t.ns.be("file-item-action","remove"),attrs:{icon:"md-trash",type:"text"},on:{click:function(){returnt.onRemove(r)}}},["删除"])])])}))]),e("i-modal",{attrs:{value:this.showModal,title:this.modalTitle,width:"70%",transfer:!1,"footer-hide":!0},on:{"on-cancel":this.onModalCancel}},[e("iframe",{class:this.ns.b("iframe"),attrs:{src:this.iframeUrl}})])])}}),Z=s((functione(){a(this,e),p(this,"component",_)})),$=function(){functione(){a(this,e),p(this,"component",D)}vart;returns(e,[{key:"createController",value:(t=i(n().mark((functione(t,r){vari;returnn().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returni=newo(t,r),e.next=3,i.init();case3:returne.abrupt("return",i);case4:case"end":returne.stop()}}),e)}))),function(e,r){returnt.apply(this,arguments)})}]),e}(),ee=s((functione(){a(this,e),p(this,"component","IndexView")})),te=h({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=b().proxy,r=O(t,e.modelPath);k(t,"deName",r.setDeName.bind(r));varn=x("wf-step-trace-grid"),o=w([]);r.nerve.self.evt.on("mounted",(function(){vare;r.data&&(null===(e=r.data.usertasks)||void0===e||e.forEach((function(e){e.identitylinks.length>0||(e.comments.length>0&&e.comments.forEach((function(t){o.value.push({nodeName:e.userTaskName,personName:t.authorName,time:t.time,content:t.type,comment:t.fullMessage})})),o.value.sort((function(e,t){returnDate.parse(t.time)-Date.parse(e.time)})))})))}));vari=w([{title:"处理环节",key:"nodeName",width:180,resizable:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:r,ns:n,gridData:o,columns:i}},render:function(){returny("div",{class:this.ns.b()},[y("div",{class:this.ns.e("title")},["审批信息"]),y("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData},class:this.ns.e("grid")})])}}),re=h({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=b().proxy,r=T(t,e.modelPath),n=x("view-".concat(I.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=w(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this,r=[];if(this.c.complete){varn=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(e(this.c.providers[n.name].component,{props:{modelData:n,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){varo=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];r.push(e(te,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}returne("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){returnt.c.complete?[t.c.wfLinks.length>0&&e("wf-toolbar",{attrs:{wfLinks:t.c.wfLinks},on:{"wf-link-click":function(e){t.c.onLinkClick(e)}}})]:null}}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[r]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:j.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),ne=s((functione(){a(this,e),p(this,"component",re)})),oe=h({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=b().proxy,r=L(t,e.modelPath),n=x("view-deeditview3"),o=w(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this;returne("view-base",{attrs:{controller:this.c}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[e("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),e(te,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}})]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];if(n)returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:j.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),ie=s((functione(){a(this,e),p(this,"component",oe)})),ae=function(){functione(){a(this,e),p(this,"formEditor","SyFileUpload"),p(this,"gridEditor","IBizGridFileUpload")}vart;returns(e,[{key:"createController",value:(t=i(n().mark((functione(t,r){varo;returnn().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returno=newm(t,r),e.next=3,o.init();case3:returne.abrupt("return",o);case4:case"end":returne.stop()}}),e)}))),function(e,r){returnt.apply(this,arguments)})}]),e}();e("default",{mateUrl:r.meta.url,install:function(e){ibiz.config.enableDataInfoBar=!1,e.component("WfToolbar",V),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",newee),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",newZ),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",new$),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",newne),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",newie),e.component("SyFileUpload",X),ibiz.register.editor.register("EDITOR_CUSTOMSTYLE_SyFileUpload",newae)}})}}}))}();