!function(){functiont(e){returnt="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},t(e)}functione(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){returnr};varr={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeofSymbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";functions(t,e,r){returnObject.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(N){s=function(t,e,r){returnt[e]=r}}functionf(t,e,r,n){varo=e&&e.prototypeinstanceofv?e:v,a=Object.create(o.prototype),c=newO(n||[]);returni(a,"_invoke",{value:E(t,r,c)}),a}functionh(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}r.wrap=f;varp={};functionv(){}functiony(){}functiond(){}varm={};s(m,c,(function(){returnthis}));varg=Object.getPrototypeOf,w=g&&g(g(_([])));w&&w!==n&&o.call(w,c)&&(m=w);varb=d.prototype=v.prototype=Object.create(m);functionx(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){returnthis._invoke(e,t)}))}))}functionL(e,r){functionn(i,a,c,u){varl=h(e[i],e,a);if("throw"!==l.type){vars=l.arg,f=s.value;returnf&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){returnn("throw",t,c,u)}))}u(l.arg)}vara;i(this,"_invoke",{value:function(t,e){functiono(){returnnewr((function(r,o){n(t,e,r,o)}))}returna=a?a.then(o,o):o()}})}functionE(t,e,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnP()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=S(a,r);if(c){if(c===p)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";varu=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}functionS(t,e){varr=e.method,n=t.iterator[r];if(void0===n)returne.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=newTypeError("The iterator does not provide a '"+r+"' method")),p;varo=h(n,t.iterator,e.arg);if("throw"===o.type)returne.method="throw",e.arg=o.arg,e.delegate=null,p;vari=o.arg;returni?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void0),e.delegate=null,p):i:(e.method="throw",e.arg=newTypeError("iterator result is not an object"),e.delegate=null,p)}functionj(t){vare={tryLoc:t[0]};1int&&(e.catchLoc=t[1]),2int&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}functionk(t){vare=t.completion||{};e.type="normal",deletee.arg,t.completion=e}functionO(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function_(t){if(t){vare=t[c];if(e)returne.call(t);if("function"==typeoft.next)returnt;if(!isNaN(t.length)){varr=-1,n=functione(){for(;++r<t.length;)if(o.call(t,r))returne.value=t[r],e.done=!1,e;returne.value=void0,e.done=!0,e};returnn.next=n}}return{next:P}}functionP(){return{value:void0,done:!0}}returny.prototype=d,i(b,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:y,configurable:!0}),y.displayName=s(d,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){vare="function"==typeoft&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},x(L.prototype),s(L.prototype,u,(function(){returnthis})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void0===i&&(i=Promise);vara=newL(f(t,e,n,o),i);returnr.isGeneratorFunction(e)?a:a.next().then((function(t){returnt.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){returnthis})),s(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){vare=Object(t),r=[];for(varnine)r.push(n);returnr.reverse(),functiont(){for(;r.length;){varn=r.pop();if(nine)returnt.value=n,t.done=!1,t}returnt.done=!0,t}},r.values=_,O.prototype={constructor:O,reset:function(t){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(k),!t)for(vareinthis)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void0)},stop:function(){this.done=!0;vart=this.tryEntries[0].completion;if("throw"===t.type)throwt.arg;returnthis.rval},dispatchException:function(t){if(this.done)throwt;vare=this;functionr(r,n){returna.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.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"),u=o.call(i,"finallyLoc");if(c&&u){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(!u)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throwt.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.finallyLoc===t)returnthis.complete(r.completion,r.afterLoc),k(r),p}},catch:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.tryLoc===t){varn=r.completion;if("throw"===n.type){varo=n.arg;k(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(t,e,r){returnthis.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void0),p}},r}functionr(t,e,r,n,o,i,a){try{varc=t[i](a),u=c.value}catch(l){returnvoidr(l)}c.done?e(u):Promise.resolve(u).then(n,o)}functionn(t){returnfunction(){vare=this,n=arguments;returnnewPromise((function(o,i){vara=t.apply(e,n);functionc(t){r(a,o,i,c,u,"next",t)}functionu(t){r(a,o,i,c,u,"throw",t)}c(void0)}))}}functiono(t,e){for(varr=0;r<e.length;r++){varn=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}functioni(t,e,r){returne&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}functiona(e){varr=function(e,r){if("object"!==t(e)||null===e)returne;varn=e[Symbol.toPrimitive];if(void0!==n){varo=n.call(e,r||"default");if("object"!==t(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}System.register(["@ibiz-template/model","vue","@ibiz-template/vue-util","@ibiz-template/runtime"],(function(t,r){"use strict";varo,c,u,l,s;return{setters:[function(t){o=t.ModelUtil},function(t){c=t.defineComponent,u=t.h},function(t){l=t.useNamespace},function(t){s=t.PluginStaticResource}],execute:function(){varf=i((functiont(){vare,r,n;!function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,t),e=this,n="IndexView",(r=a(r="component"))ine?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})),h=c({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(t,r){varo=r.emit,i=l("wf-toolbar"),a=function(){vart=n(e().mark((functiont(r,n){returne().wrap((function(t){for(;;)switch(t.prev=t.next){case0:o("wf-link-click",r,n);case1:case"end":returnt.stop()}}),t)})));returnfunction(e,r){returnt.apply(this,arguments)}}(),c=function(){vart=n(e().mark((functiont(r,n){returne().wrap((function(t){for(;;)switch(t.prev=t.next){case0:setTimeout((function(){a(r,n)}),30);case1:case"end":returnt.stop()}}),t)})));returnfunction(e,r){returnt.apply(this,arguments)}}();return{ns:i,handleClick:c}},render:function(){vart=this,e=this.wfLinks||[];returnu("div",{class:"".concat(this.ns.b())},[e.length>0&&e.map((function(e){varr=e.sequenceFlowName.startsWith("驳回")||e.sequenceFlowName.startsWith("取消");returnu("div",{key:e.sequenceFlowId,class:[t.ns.e("item"),r?t.ns.em("item","reject"):""]},[u("i-button",{attrs:{title:e.sequenceFlowName},on:{click:function(r){returnt.handleClick(e,r)}}},[e.sequenceFlowName||""])])}))])}}),p=news(r.meta.url);t("default",{mateUrl:r.meta.url,install:function(t){o.getModelService().then((function(t){"true"===t.app.userParams.autoWidth&&document.getElementsByClassName("app")[0].classList.add("auto-width")})),p.loadStyle(["/style.css"]),t.component("WfToolbar",h),ibiz.config.enableDataInfoBar=!1,ibiz.config.gridEditShowMode="all",ibiz.register.view.register("VIEW_CUSTOM_GsIndexCSS",newf)}})}}}))}();
!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,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,u(n.key),n)}}functionr(e,r,n){returnr&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiono(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varr=null==e?null:"undefined"!=typeofSymbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){varn,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}elsefor(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throwo}}returnc}}(e,t)||s(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functioni(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}returnr}functiona(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionc(e,t,r){return(t=u(t))ine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionu(t){varr=function(t,r){if("object"!==e(t)||null===t)returnt;varn=t[Symbol.toPrimitive];if(void0!==n){varo=n.call(t,r||"default");if("object"!==e(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}functionl(e){returnfunction(e){if(Array.isArray(e))returnf(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||s(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functions(e,t){if(e){if("string"==typeofe)returnf(e,t);varr=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void0}}functionf(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functionh(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){returnt};vart={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeofSymbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(R){l=function(e,t,r){returne[t]=r}}functions(e,t,r,n){vari=t&&t.prototypeinstanceofp?t:p,a=Object.create(i.prototype),c=newx(n||[]);returno(a,"_invoke",{value:C(e,r,c)}),a}functionf(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(R){return{type:"throw",arg:R}}}t.wrap=s;vard={};functionp(){}functionv(){}functiong(){}vary={};l(y,a,(function(){returnthis}));varm=Object.getPrototypeOf,b=m&&m(m(E([])));b&&b!==r&&n.call(b,a)&&(y=b);varw=g.prototype=p.prototype=Object.create(y);functionS(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionP(t,r){functioni(o,a,c,u){varl=f(t[o],t,a);if("throw"!==l.type){vars=l.arg,h=s.value;returnh&&"object"==e(h)&&n.call(h,"__await")?r.resolve(h.__await).then((function(e){i("next",e,c,u)}),(function(e){i("throw",e,c,u)})):r.resolve(h).then((function(e){s.value=e,c(s)}),(function(e){returni("throw",e,c,u)}))}u(l.arg)}vara;o(this,"_invoke",{value:function(e,t){functionn(){returnnewr((function(r,n){i(e,t,r,n)}))}returna=a?a.then(n,n):n()}})}functionC(e,t,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnL()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=O(a,r);if(c){if(c===d)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";varu=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}functionO(e,t){varr=t.method,n=e.iterator[r];if(void0===n)returnt.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=newTypeError("The iterator does not provide a '"+r+"' method")),d;varo=f(n,e.iterator,t.arg);if("throw"===o.type)returnt.method="throw",t.arg=o.arg,t.delegate=null,d;vari=o.arg;returni?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,d):i:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,d)}functionk(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionj(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionx(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}functionE(e){if(e){vart=e[a];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varr=-1,o=functiont(){for(;++r<e.length;)if(n.call(e,r))returnt.value=e[r],t.done=!1,t;returnt.value=void0,t.done=!0,t};returno.next=o}}return{next:L}}functionL(){return{value:void0,done:!0}}returnv.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(P.prototype),l(P.prototype,c,(function(){returnthis})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void0===i&&(i=Promise);vara=newP(s(e,r,n,o),i);returnt.isGeneratorFunction(r)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},S(w),l(w,u,"Generator"),l(w,a,(function(){returnthis})),l(w,"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=E,x.prototype={constructor:x,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(j),!e)for(vartinthis)"t"===t.charAt(0)&&n.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(varo=this.tryEntries.length-1;o>=0;--o){vari=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){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(!u)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){varo=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){vari=o;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,d):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),d},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),j(r),d}},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;j(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),d}},t}functiond(e,t,r,n,o,i,a){try{varc=e[i](a),u=c.value}catch(l){returnvoidr(l)}c.done?t(u):Promise.resolve(u).then(n,o)}functionp(e){returnfunction(){vart=this,r=arguments;returnnewPromise((function(n,o){vari=e.apply(t,r);functiona(e){d(i,n,o,a,c,"next",e)}functionc(e){d(i,n,o,a,c,"throw",e)}a(void0)}))}}System.register(["@ibiz-template/model","vue","@ibiz-template/vue-util","@ibiz-template/runtime"],(function(e,t){"use strict";vari,u,s,f,d,v,g,y,m,b,w,S;return{setters:[function(e){i=e.GridModel,u=e.ModelUtil},function(e){s=e.defineComponent,f=e.h,d=e.ref,v=e.computed,g=e.getCurrentInstance,y=e.watch,m=e.onUnmounted},function(e){b=e.useNamespace,w=e.useGridController},function(e){S=e.PluginStaticResource}],execute:function(){varP=s({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,t){varr=t.emit,n=b("wf-toolbar"),o=function(){vare=p(h().mark((functione(t,n){returnh().wrap((function(e){for(;;)switch(e.prev=e.next){case0:r("wf-link-click",t,n);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}(),i=function(){vare=p(h().mark((functione(t,r){returnh().wrap((function(e){for(;;)switch(e.prev=e.next){case0:setTimeout((function(){o(t,r)}),30);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}();return{ns:n,handleClick:i}},render:function(){vare=this,t=this.wfLinks||[];returnf("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varr=t.sequenceFlowName.startsWith("驳回")||t.sequenceFlowName.startsWith("取消");returnf("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[f("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){returne.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}});functionC(e,t){varr,n,o=[];"GROUPGRIDCOLUMN"===e.source.columnType&&e.children.forEach((function(e){o.push(C(e,t))}));vari={title:e.title,width:"STAR"===e.source.widthUnit?void0:e.width,minWidth:e.width,align:(null===(r=e.source.align)||void0===r?void0:r.toLowerCase())||"center",slot:e.codeName,key:e.codeName,fieldName:e.deFieldName,ellipsis:!0,tooltip:!1,resizable:!0,sortable:!(t.noSort||!e.source.enableSort)&&"custom",columnType:e.source.columnType,userParams:e.source.userParams,className:null===(n=e.source.getCellPSSysCss())||void0===n?void0:n.cssName};returno.length>0&&Object.assign(i,{children:o}),i}functionO(e){vart=e.model,r=[],n=t.columns.map((function(t){returnC(t,e)}));returnt.children.forEach((function(e){vart=n.find((function(t){returnt.key===e.codeName}));t&&r.push(t)})),e.singleSelect||r.splice(0,0,{type:"selection",width:60}),r}vark=s({props:{modelData:i,context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},gridRowActiveMode:{type:Number,default:2},modal:{type:Object}},setup:function(e){vart=g().proxy,r=b("grid"),n=w(t,e.modelData,e.context,e.params),i=function(e){vart=d([]);returne.nerve.self.evt.on("created",(function(){t.value=O(e)})),[v((function(){vare=l(t.value);if(!e.find((function(e){return!e.width}))){varr=e.length-1;"rowEdit"===e[r].key&&(r-=1),e[r]=a(a({},e[r]),{},{width:void0})}varn=e.find((function(e){return"UAGRIDCOLUMN"===e.columnType}));if(n){varo=n.userParams;o&&"true"===o.fixed&&(n.fixed="right")}returne})),t]}(n),c=o(i,1)[0],u=function(e){vart=function(t){returne.items.find((function(e){returne.srfkey===t.srfkey}))};return{onRowClick:function(r){varn=t(r);if(e.singleSelect){varo=e.selectedData.find((function(e){returne.srfkey===r.srfkey}));e.onSelectionChange(o?[]:[n])}e.onRowClick(n)},onDbRowClick:function(r){e.onDbRowClick(t(r))},onSelectionChange:function(r){if(!e.singleSelect){varn=[];r.forEach((function(e){varr=t(e);r&&n.push(r)})),e.onSelectionChange(n)}},onSortChange:function(t){varr=t.column,n=t.order,o="asc"===n||"desc"===n?n:void0;e.setSort(r.fieldName,o),e.load()}}}(n),s=u.onRowClick,h=u.onDbRowClick,p=u.onSelectionChange,S=u.onSortChange,P=function(e){return{onPageChange:function(t){t&&t!==e.curPage&&(e.curPage=t,e.load())},onPageSizeChange:function(t){t&&t!==e.size&&(e.size=t,1===e.curPage&&e.load())},onPageReset:function(){e.curPage=1,e.load()}}}(n),C=P.onPageChange,k=P.onPageReset,j=P.onPageSizeChange,x=v((function(){vart,r,n=null===(t=e.modelData)||void0===t||null===(r=t.source.getPSControlParam())||void0===r?void0:r.ctrlParams;return"false"!==(null==n?void0:n.HIGHLIGHT)})),E=null,L=d(0),R=d(null),N=d(null),T=null,D=0,I=function(){vart;if(R.value&&"EMBED"!==(null===(t=e.modal)||void0===t?void0:t.mode))if(n.model.source.enablePagingBar&&N.value){varr=N.value.$el,o=r.offsetHeight+parseFloat(window.getComputedStyle(r).paddingTop);L.value=R.value.offsetHeight-o}elseL.value=R.value.offsetHeight;n.model.source.height>0&&(L.value=n.model.source.height)};y(R,(function(e,t){e&&e!==t&&(I(),window.ResizeObserver&&R.value&&(T=newResizeObserver((function(e){vart=e[0].contentRect.height;t!==D&&(I(),D=t)}))).observe(R.value))})),m((function(){T&&T.disconnect()}));varz=v((function(){return[{hiddenRow:!0}].concat(l(n.items))})),G=b("grid-field-column"),A=b("collaborative-satisfaction-grid"),_=d([]),U=v((function(){vare=l(c.value);returne.splice.apply(e,[1,0].concat(l(_.value))),e})),F=d([]);returny((function(){returnn.items}),(function(){_.value=[],F.value=[],Array.isArray(n.items)&&(_.value=n.items.map((function(e){vart=e.bpjbm,r=e.type;return{title:t,width:120,minWidth:120,align:"right",key:r,ellipsis:!0,tooltip:!1,resizable:!0,render:function(e,t){varn=t.index,o=F.value[n-1];returnf("div",{class:[G.b()],style:G.cssVarBlock({"justify-content":"flex-end"})},[f("span",{class:G.e("text")},[(null==o?void0:o[r])||""])])}}})),F.value=n.items.map((function(e){try{vart=JSON.parse(e.pjdbs||"[]");if(Array.isArray(t)&&t.length){varr={};returnt.forEach((function(e){r[e.type]=e.value||""})),r}}catch(n){ibiz.log.error("".concat(e.pjdbs," 解析错误"))}return{}})))})),{c:n,ns:r,columns:c,tableData:z,onDbRowClick:h,onUIRowClick:function(e,r){null!=E&&window.clearTimeout(E),E=window.setTimeout((function(){varo=t.$refs.grid;o&&(n.selectedData.find((function(t){returnt.srfkey===e.srfkey}))&&o.clearCurrentRow(),o.toggleSelect&&o.toggleSelect(r));s(e)}),300)},onUIDbRowClick:function(e){null!=E&&window.clearTimeout(E);varr=t.$refs.grid;r&&(n.selectedData.find((function(t){returnt.srfkey===e.srfkey}))||r.clearCurrentRow());h(e)},onSelectionChange:p,onSortChange:S,onPageChange:C,onPageSizeChange:j,onPageReset:k,tableHeight:L,gridRef:R,girdPaginationRef:N,highlight:x,ns2:G,ns3:A,tableColumns:U}},render:function(){vare=this;if(this.c.complete){vart={};returnthis.c.model.columns.forEach((function(r){if("GROUPGRIDCOLUMN"!==r.source.columnType){varn=r.codeName;t[n]=function(t){varr=t.row,o=t.index,i=e.c.rows[o-1];returnr.hiddenRow?f("span",{style:"word-break: break-word;white-space: pre-wrap;"},["隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列"]):i?f(e.c.providers[n].component,{props:{controller:e.c.columns[n],row:i},key:r.srfkey+n}):void0}}})),f("control-layout",{attrs:{modelData:this.c.model}},[f("div",{ref:"gridRef",class:[this.ns.b(),this.ns.is("show-header",!this.c.model.source.hideHeader),this.ns.is("enable-page",this.c.model.source.enablePagingBar),this.ns3.b()]},[f("i-table",{ref:"grid",attrs:{height:this.tableHeight,"show-header":!this.c.model.source.hideHeader,"highlight-row":this.c.singleSelect&&this.highlight,data:this.tableData,columns:this.tableColumns,"row-class-name":function(e){returne.hiddenRow?"hidden-row":""}},class:this.ns.b("content"),on:{"on-row-click":this.onUIRowClick,"on-row-dblclick":this.onUIDbRowClick,"on-selection-change":this.onSelectionChange,"on-sort-change":this.onSortChange},scopedSlots:t}),this.c.model.source.enablePagingBar&&f("app-grid-pagination",{ref:"girdPaginationRef",attrs:{total:this.c.total,curPage:this.c.curPage,size:this.c.size},on:{change:this.onPageChange,"page-size-change":this.onPageSizeChange,"page-reset":this.onPageReset}})])])}}}),j=r((functione(){n(this,e),c(this,"component","IndexView")})),x=newS(t.meta.url),E=r((functione(){n(this,e),c(this,"component","CollaborativeSatisfactionGrid")}));e("default",{mateUrl:t.meta.url,install:function(e){u.getModelService().then((function(e){"true"===e.app.userParams.autoWidth&&document.getElementsByClassName("app")[0].classList.add("auto-width")})),x.loadStyle(["/style.css"]),e.component("WfToolbar",P),ibiz.config.enableDataInfoBar=!1,ibiz.config.gridEditShowMode="all",ibiz.register.view.register("VIEW_CUSTOM_GsIndexCSS",newj),e.component("CollaborativeSatisfactionGrid",k),ibiz.register.control.register("CUSTOM_CollaborativeSatisfactionGrid",newE)}})}}}))}();