ddy-process-pc-vue3 1.0.1-rc.2.17 → 1.0.1-rc.2.21

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.
@@ -17,7 +17,7 @@ https://github.com/vuejs/vue-devtools`)),process.env.NODE_ENV!=="production"&&pr
17
17
  Make sure to turn on production mode when deploying for production.
18
18
  See more tips at https://vuejs.org/guide/deployment.html`)},0);var sy=function(e,n){return sy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},sy(e,n)};function _R(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");sy(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var sh=function(){return sh=Object.assign||function(n){for(var i,a=1,s=arguments.length;a<s;a++){i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])}return n},sh.apply(this,arguments)};function ly(e){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&e[n],a=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function aD(e,n){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var a=i.call(e),s,c=[],f;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)c.push(s.value)}catch(m){f={error:m}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(f)throw f.error}}return c}function oD(e,n,i){if(i||arguments.length===2)for(var a=0,s=n.length,c;a<s;a++)(c||!(a in n))&&(c||(c=Array.prototype.slice.call(n,0,a)),c[a]=n[a]);return e.concat(c||Array.prototype.slice.call(n))}function sD(e){var n;qt(e,(n=cs())===null||n===void 0?void 0:n.proxy)}var Ll,lh=[],lD=function(){function e(n){this.active=!0,this.effects=[],this.cleanups=[],this.vm=n}return e.prototype.run=function(n){if(this.active)try{return this.on(),n()}finally{this.off()}else process.env.NODE_ENV!=="production"&&sD("cannot run an inactive effect scope.")},e.prototype.on=function(){this.active&&(lh.push(this),Ll=this)},e.prototype.off=function(){this.active&&(lh.pop(),Ll=lh[lh.length-1])},e.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach(function(n){return n.stop()}),this.cleanups.forEach(function(n){return n()}),this.active=!1)},e}();(function(e){_R(n,e);function n(i){i===void 0&&(i=!1);var a=this,s=void 0;return SR(function(){s=dy(ls())}),a=e.call(this,s)||this,i||yR(a),a}return n})(lD);function yR(e,n){var i;if(n=n||Ll,n&&n.active){n.effects.push(e);return}var a=(i=cs())===null||i===void 0?void 0:i.proxy;a&&a.$on("hook:destroyed",function(){return e.stop()})}function cD(){return Ll}function wR(e){Ll?Ll.cleanups.push(e):process.env.NODE_ENV!=="production"&&sD("onScopeDispose() is called when there is no active effect scope to be associated with.")}function xR(){var e,n;return((e=cD())===null||e===void 0?void 0:e.vm)||((n=cs())===null||n===void 0?void 0:n.proxy)}function ER(e){if(!e.scope){var n=new lD(e.proxy);e.scope=n,e.proxy.$on("hook:destroyed",function(){return n.stop()})}return e.scope}var cy=void 0;try{var os=require("vue");os&&dD(os)?cy=os:os&&"default"in os&&dD(os.default)&&(cy=os.default)}catch{}var ss=null,jl=null,ch=!0,uD="__composition_api_installed__";function dD(e){return e&&Yr(e)&&e.name==="Vue"}function kR(e){return ss&&Vr(e,uD)}function ls(){return process.env.NODE_ENV!=="production"&&fh(ss,"must call Vue.use(VueCompositionAPI) before using any function."),ss}function fD(){var e=ss||cy;return process.env.NODE_ENV!=="production"&&fh(e,"No vue dependency found."),e}function CR(e){process.env.NODE_ENV!=="production"&&ss&&e.__proto__!==ss.__proto__&&qt("[vue-composition-api] another instance of Vue installed"),ss=e,Object.defineProperty(e,uD,{configurable:!0,writable:!0,value:!0})}function SR(e){var n=ch;ch=!1;try{e()}finally{ch=n}}function uh(e){if(!!ch){var n=jl;n==null||n.scope.off(),jl=e,jl==null||jl.scope.on()}}function cs(){return jl}var uy=new WeakMap;function dh(e){if(uy.has(e))return uy.get(e);var n={proxy:e,update:e.$forceUpdate,type:e.$options,uid:e._uid,emit:e.$emit.bind(e),parent:null,root:null};ER(n);var i=["data","props","attrs","refs","vnode","slots"];return i.forEach(function(a){Vn(n,a,{get:function(){return e["$".concat(a)]}})}),Vn(n,"isMounted",{get:function(){return e._isMounted}}),Vn(n,"isUnmounted",{get:function(){return e._isDestroyed}}),Vn(n,"isDeactivated",{get:function(){return e._inactive}}),Vn(n,"emitted",{get:function(){return e._events}}),uy.set(e,n),e.$parent&&(n.parent=dh(e.$parent)),e.$root&&(n.root=dh(e.$root)),n}var DR=function(e){return Object.prototype.toString.call(e)};function pD(e){return typeof e=="function"&&/native code/.test(e.toString())}var hD=typeof Symbol<"u"&&pD(Symbol)&&typeof Reflect<"u"&&pD(Reflect.ownKeys),ga=function(e){return e};function Vn(e,n,i){var a=i.get,s=i.set;Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:a||ga,set:s||ga})}function mD(e,n,i,a){Object.defineProperty(e,n,{value:i,enumerable:!!a,writable:!0,configurable:!0})}function Vr(e,n){return Object.hasOwnProperty.call(e,n)}function fh(e,n){if(!e)throw new Error("[vue-composition-api] ".concat(n))}function BR(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function wr(e){return Array.isArray(e)}var IR=Object.prototype.toString,gD=function(e){return IR.call(e)},OR=function(e){return gD(e)==="[object Map]"},TR=function(e){return gD(e)==="[object Set]"},NR=4294967295;function MR(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)&&n<=NR}function us(e){return e!==null&&typeof e=="object"}function Ur(e){return DR(e)==="[object Object]"}function Yr(e){return typeof e=="function"}function FR(e){return e==null}function qt(e,n){var i=fD();!i||!i.util?console.warn("[vue-composition-api] ".concat(e)):i.util.warn(e,n)}function PR(e,n,i){if(process.env.NODE_ENV!=="production"&&qt("Error in ".concat(i,': "').concat(e.toString(),'"'),n),typeof window<"u"&&typeof console<"u")console.error(e);else throw e}function RR(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function LR(e,n){return n=n||cs(),process.env.NODE_ENV!=="production"&&!n&&qt("".concat(e," is called when there is no active component instance to be ")+"associated with. Lifecycle injection APIs can only be used during execution of setup()."),n}function dy(e,n){n===void 0&&(n={});var i=e.config.silent;e.config.silent=!0;var a=new e(n);return e.config.silent=i,a}function jR(e){var n=ls();return n&&e instanceof n}function QR(e,n){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e.$scopedSlots[n]?e.$scopedSlots[n].apply(e,i):process.env.NODE_ENV!=="production"?qt("slots.".concat(n,'() got called outside of the "render()" scope'),e):void 0}}function zR(e,n){var i;if(!e)i={};else{if(e._normalized)return e._normalized;i={};for(var a in e)e[a]&&a[0]!=="$"&&(i[a]=!0)}for(var a in n)a in i||(i[a]=!0);return i}function AD(e){return hD?Symbol.for(e):e}var Ql=AD("composition-api.preFlushQueue"),ad=AD("composition-api.postFlushQueue"),Za="composition-api.refKey",vD=new WeakMap,HR=new WeakMap,bD=new WeakMap;function VR(e,n,i){var a=ls(),s=a.util,c=s.warn,f=s.defineReactive;process.env.NODE_ENV!=="production"&&(FR(e)||BR(e))&&c("Cannot set reactive property on undefined, null, or primitive value: ".concat(e));var m=e.__ob__;function g(){m&&us(i)&&!Vr(i,"__ob__")&&my(i)}if(wr(e)){if(MR(n))return e.length=Math.max(e.length,n),e.splice(n,1,i),g(),i;if(n==="length"&&i!==e.length)return e.length=i,m==null||m.dep.notify(),i}return n in e&&!(n in Object.prototype)?(e[n]=i,g(),i):e._isVue||m&&m.vmCount?(process.env.NODE_ENV!=="production"&&c("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),i):m?(f(m.value,n,i),wD(e,n,i),g(),m.dep.notify(),i):(e[n]=i,i)}var _D=function(){function e(n){var i=n.get,a=n.set;Vn(this,"value",{get:i,set:a})}return e}();function fy(e,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var a=new _D(e);i&&(a.effect=!0);var s=Object.seal(a);return n&&bD.set(s,!0),s}function ph(e){var n;if(un(e))return e;var i=xD((n={},n[Za]=e,n));return fy({get:function(){return i[Za]},set:function(a){return i[Za]=a}})}function un(e){return e instanceof _D}function UR(e){return un(e)?e.value:e}function YR(e){if(process.env.NODE_ENV!=="production"&&!Aa(e)&&qt("toRefs() expects a reactive object but received a plain one."),!Ur(e))return e;var n={};for(var i in e)n[i]=WR(e,i);return n}function WR(e,n){n in e||VR(e,n,void 0);var i=e[n];return un(i)?i:fy({get:function(){return e[n]},set:function(a){return e[n]=a}})}function GR(e){var n;if(un(e))return e;var i=XR((n={},n[Za]=e,n));return fy({get:function(){return i[Za]},set:function(a){return i[Za]=a}})}var yD="__v_skip";function ds(e){var n;return Boolean(e&&Vr(e,"__ob__")&&typeof e.__ob__=="object"&&((n=e.__ob__)===null||n===void 0?void 0:n[yD]))}function Aa(e){var n;return Boolean(e&&Vr(e,"__ob__")&&typeof e.__ob__=="object"&&!(!((n=e.__ob__)===null||n===void 0)&&n[yD]))}function py(e){if(!(!Ur(e)||ds(e)||wr(e)||un(e)||jR(e)||vD.has(e))){vD.set(e,!0);for(var n=Object.keys(e),i=0;i<n.length;i++)wD(e,n[i])}}function wD(e,n,i){if(n!=="__ob__"&&!ds(e[n])){var a,s,c=Object.getOwnPropertyDescriptor(e,n);if(c){if(c.configurable===!1)return;a=c.get,s=c.set,(!a||s)&&arguments.length===2&&(i=e[n])}py(i),Vn(e,n,{get:function(){var m=a?a.call(e):i;return n!==Za&&un(m)?m.value:m},set:function(m){a&&!s||(n!==Za&&un(i)&&!un(m)?i.value=m:(s&&s.call(e,m),i=m),py(m))}})}}function hy(e){var n=fD(),i;if(n.observable)i=n.observable(e);else{var a=dy(n,{data:{$$state:e}});i=a._data.$$state}return Vr(i,"__ob__")||my(i),i}function my(e,n){var i,a;if(n===void 0&&(n=new Set),!(n.has(e)||Vr(e,"__ob__")||!Object.isExtensible(e))){mD(e,"__ob__",JR(e)),n.add(e);try{for(var s=ly(Object.keys(e)),c=s.next();!c.done;c=s.next()){var f=c.value,m=e[f];!(Ur(m)||wr(m))||ds(m)||!Object.isExtensible(m)||my(m,n)}}catch(g){i={error:g}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}}}function JR(e){return e===void 0&&(e={}),{value:e,dep:{notify:ga,depend:ga,addSub:ga,removeSub:ga}}}function KR(){return hy({}).__ob__}function XR(e){var n,i;if(!us(e))return process.env.NODE_ENV!=="production"&&qt('"shallowReactive()" must be called on an object.'),e;if(!(Ur(e)||wr(e))||ds(e)||!Object.isExtensible(e))return e;var a=hy(wr(e)?[]:{}),s=a.__ob__,c=function(y){var O=e[y],C,N,_=Object.getOwnPropertyDescriptor(e,y);if(_){if(_.configurable===!1)return"continue";C=_.get,N=_.set}Vn(a,y,{get:function(){var P;return(P=s.dep)===null||P===void 0||P.depend(),O},set:function(P){var M;C&&!N||O!==P&&(N?N.call(e,P):O=P,(M=s.dep)===null||M===void 0||M.notify())}})};try{for(var f=ly(Object.keys(e)),m=f.next();!m.done;m=f.next()){var g=m.value;c(g)}}catch(y){n={error:y}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}return a}function xD(e){if(!us(e))return process.env.NODE_ENV!=="production"&&qt('"reactive()" must be called on an object.'),e;if(!(Ur(e)||wr(e))||ds(e)||!Object.isExtensible(e))return e;var n=hy(e);return py(n),n}function ED(e){return process.env.NODE_ENV!=="production"&&!us(e)?qt("value cannot be made reactive: ".concat(String(e))):bD.set(e,!0),e}var ZR=function(e){return"on".concat(e[0].toUpperCase()+e.slice(1))};function $R(e){return function(n,i){var a=LR(ZR(e),i);return a&&qR(ls(),a,e,n)}}function qR(e,n,i,a){var s=n.proxy.$options,c=e.config.optionMergeStrategies[i],f=e5(n,a);return s[i]=c(s[i],f),f}function e5(e,n){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=cs();uh(e);try{return n.apply(void 0,oD([],aD(i),!1))}finally{uh(s)}}}var t5=$R("mounted"),hh;function n5(){mh(this,Ql)}function i5(){mh(this,ad)}function r5(e){return e[Ql]!==void 0}function a5(e){e[Ql]=[],e[ad]=[],e.$on("hook:beforeUpdate",n5),e.$on("hook:updated",i5)}function o5(e){return sh({immediate:!1,deep:!1,flush:"pre"},e)}function s5(e){return sh({flush:"pre"},e)}function kD(){var e=xR();return e?r5(e)||a5(e):(hh||(hh=dy(ls())),e=hh),e}function mh(e,n){for(var i=e[n],a=0;a<i.length;a++)i[a]();i.length=0}function l5(e,n,i){var a=function(){e.$nextTick(function(){e[Ql].length&&mh(e,Ql),e[ad].length&&mh(e,ad)})};switch(i){case"pre":a(),e[Ql].push(n);break;case"post":a(),e[ad].push(n);break;default:fh(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(i));break}}function c5(e,n,i,a){var s=e._watchers.length;return e.$watch(n,i,{immediate:a.immediateInvokeCallback,deep:a.deep,lazy:a.noRun,sync:a.sync,before:a.before}),e._watchers[s]}function CD(e,n){var i=e.teardown;e.teardown=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];i.apply(e,a),n()}}function SD(e,n,i,a){var s;process.env.NODE_ENV!=="production"&&!i&&(a.immediate!==void 0&&qt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),a.deep!==void 0&&qt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));var c=a.flush,f=c==="sync",m,g=function(Z){m=function(){try{Z()}catch(ie){PR(ie,e,"onCleanup()")}}},y=function(){m&&(m(),m=null)},O=function(Z){return f||e===hh?Z:function(){for(var ie=[],oe=0;oe<arguments.length;oe++)ie[oe]=arguments[oe];return l5(e,function(){Z.apply(void 0,oD([],aD(ie),!1))},c)}};if(i===null){var C=!1,N=function(){if(!C)try{C=!0,n(g)}finally{C=!1}},_=c5(e,N,ga,{deep:a.deep||!1,sync:f,before:y});CD(_,y),_.lazy=!1;var E=_.get.bind(_);return _.get=O(E),function(){_.teardown()}}var P=a.deep,M=!1,T;if(un(n)?T=function(){return n.value}:Aa(n)?(T=function(){return n},P=!0):wr(n)?(M=!0,T=function(){return n.map(function(Z){return un(Z)?Z.value:Aa(Z)?zl(Z):Yr(Z)?Z():(process.env.NODE_ENV!=="production"&&qt("Invalid watch source: ".concat(JSON.stringify(Z),`.
19
19
  A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`),e),ga)})}):Yr(n)?T=n:(T=ga,process.env.NODE_ENV!=="production"&&qt("Invalid watch source: ".concat(JSON.stringify(n),`.
20
- A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`),e)),P){var F=T;T=function(){return zl(F())}}var v=function(Z,ie){if(!(!P&&M&&Z.every(function(oe,ge){return RR(oe,ie[ge])})))return y(),i(Z,ie,g)},x=O(v);if(a.immediate){var I=x,z=function(Z,ie){return z=I,v(Z,wr(Z)?[]:ie)};x=function(Z,ie){return z(Z,ie)}}var L=e.$watch(T,x,{immediate:a.immediate,deep:P,sync:f}),H=e._watchers[e._watchers.length-1];return Aa(H.value)&&((s=H.value.__ob__)===null||s===void 0?void 0:s.dep)&&P&&H.value.__ob__.dep.addSub({update:function(){H.run()}}),CD(H,y),function(){L()}}function u5(e,n){var i=s5(n),a=kD();return SD(a,e,null,i)}function DD(e,n,i){var a=null;Yr(n)?a=n:(process.env.NODE_ENV!=="production"&&qt("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),i=n,a=null);var s=o5(i),c=kD();return SD(c,e,a,s)}function zl(e,n){if(n===void 0&&(n=new Set),!us(e)||n.has(e)||HR.has(e))return e;if(n.add(e),un(e))zl(e.value,n);else if(wr(e))for(var i=0;i<e.length;i++)zl(e[i],n);else if(TR(e)||OR(e))e.forEach(function(s){zl(s,n)});else if(Ur(e))for(var a in e)zl(e[a],n);return e}process.env.NODE_ENV!=="production"&&Object.freeze({});var d5=function(){for(var n,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return(n=ls())===null||n===void 0?void 0:n.nextTick.apply(this,i)};function f5(e,n,i){var a=e.__composition_api_state__=e.__composition_api_state__||{};a[n]=i}function p5(e,n){return(e.__composition_api_state__||{})[n]}var $a={set:f5,get:p5};function h5(e,n,i){var a=e.$options.props;!(n in e)&&!(a&&Vr(a,n))?(un(i)?Vn(e,n,{get:function(){return i.value},set:function(s){i.value=s}}):Vn(e,n,{get:function(){return Aa(i)&&i.__ob__.dep.depend(),i},set:function(s){i=s}}),process.env.NODE_ENV!=="production"&&e.$nextTick(function(){Object.keys(e._data).indexOf(n)===-1&&(un(i)?Vn(e._data,n,{get:function(){return i.value},set:function(s){i.value=s}}):Vn(e._data,n,{get:function(){return i},set:function(s){i=s}}))})):process.env.NODE_ENV!=="production"&&(a&&Vr(a,n)?qt('The setup binding property "'.concat(n,'" is already declared as a prop.'),e):qt('The setup binding property "'.concat(n,'" is already declared.'),e))}function m5(e){var n=$a.get(e,"rawBindings")||{};if(!(!n||!Object.keys(n).length)){for(var i=e.$refs,a=$a.get(e,"refs")||[],s=0;s<a.length;s++){var c=a[s],f=n[c];!i[c]&&f&&un(f)&&(f.value=null)}for(var m=Object.keys(i),g=[],s=0;s<m.length;s++){var c=m[s],f=n[c];i[c]&&f&&un(f)&&(f.value=i[c],g.push(c))}$a.set(e,"refs",g)}}function BD(e){for(var n=[e._vnode];n.length;){var i=n.pop();if(i&&(i.context&&m5(i.context),i.children))for(var a=0;a<i.children.length;++a)n.push(i.children[a])}}function ID(e,n){var i,a;if(!!e){var s=$a.get(e,"attrBindings");if(!(!s&&!n)){if(!s){var c=xD({});s={ctx:n,data:c},$a.set(e,"attrBindings",s),Vn(n,"attrs",{get:function(){return s==null?void 0:s.data},set:function(){process.env.NODE_ENV!=="production"&&qt("Cannot assign to '$attrs' because it is a read-only property",e)}})}var f=e.$attrs,m=function(C){Vr(s.data,C)||Vn(s.data,C,{get:function(){return e.$attrs[C]}})};try{for(var g=ly(Object.keys(f)),y=g.next();!y.done;y=g.next()){var O=y.value;m(O)}}catch(C){i={error:C}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}}}}function OD(e,n){var i=e.$options._parentVnode;if(!!i){for(var a=$a.get(e,"slots")||[],s=zR(i.data.scopedSlots,e.$slots),c=0;c<a.length;c++){var f=a[c];s[f]||delete n[f]}for(var m=Object.keys(s),c=0;c<m.length;c++){var f=m[c];n[f]||(n[f]=QR(e,f))}$a.set(e,"slots",m)}}function gy(e,n,i){var a=cs();uh(e);try{return n(e)}catch(s){if(i)i(s);else throw s}finally{uh(a)}}function g5(e){e.mixin({beforeCreate:n,mounted:function(){BD(this)},beforeUpdate:function(){ID(this)},updated:function(){BD(this)}});function n(){var f=this,m=f.$options,g=m.setup,y=m.render;if(y&&(m.render=function(){for(var C=this,N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];return gy(dh(f),function(){return y.apply(C,N)})}),!!g){if(!Yr(g)){process.env.NODE_ENV!=="production"&&qt('The "setup" option should be a function that returns a object in component definitions.',f);return}var O=m.data;m.data=function(){return i(f,f.$props),Yr(O)?O.call(f,f):O||{}}}}function i(f,m){m===void 0&&(m={});var g=f.$options.setup,y=c(f),O=dh(f);O.setupContext=y,mD(m,"__ob__",KR()),OD(f,y.slots);var C;if(gy(O,function(){C=g(m,y)}),!!C){if(Yr(C)){var N=C;f.$options.render=function(){return OD(f,y.slots),gy(O,function(){return N()})};return}else if(us(C)){Aa(C)&&(C=YR(C)),$a.set(f,"rawBindings",C);var _=C;Object.keys(_).forEach(function(E){var P=_[E];if(!un(P))if(Aa(P))wr(P)&&(P=ph(P));else if(Yr(P)){var M=P;P=P.bind(f),Object.keys(M).forEach(function(T){P[T]=M[T]})}else us(P)?s(P)&&a(P):P=ph(P);h5(f,E,P)});return}process.env.NODE_ENV!=="production"&&fh(!1,'"setup" must return a "Object" or a "Function", got "'.concat(Object.prototype.toString.call(C).slice(8,-1),'"'))}}function a(f,m){if(m===void 0&&(m=new Set),!m.has(f)&&!(!Ur(f)||un(f)||Aa(f)||ds(f))){var g=ls(),y=g.util.defineReactive;Object.keys(f).forEach(function(O){var C=f[O];y(f,O,C),C&&(m.add(C),a(C,m))})}}function s(f,m){return m===void 0&&(m=new Map),m.has(f)?m.get(f):(m.set(f,!1),wr(f)&&Aa(f)?(m.set(f,!0),!0):!Ur(f)||ds(f)||un(f)?!1:Object.keys(f).some(function(g){return s(f[g],m)}))}function c(f){var m={slots:{}},g=["root","parent","refs","listeners","isServer","ssrContext"],y=["emit"];return g.forEach(function(O){var C="$".concat(O);Vn(m,O,{get:function(){return f[C]},set:function(){process.env.NODE_ENV!=="production"&&qt("Cannot assign to '".concat(O,"' because it is a read-only property"),f)}})}),ID(f,m),y.forEach(function(O){var C="$".concat(O);Vn(m,O,{get:function(){return function(){for(var N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];var E=f[C];E.apply(f,N)}}})}),process.env.NODE_ENV==="test"&&(m._vm=f),m}}function TD(e,n){if(!e)return n;if(!n)return e;for(var i,a,s,c=hD?Reflect.ownKeys(e):Object.keys(e),f=0;f<c.length;f++)i=c[f],i!=="__ob__"&&(a=n[i],s=e[i],Vr(n,i)?a!==s&&Ur(a)&&!un(a)&&Ur(s)&&!un(s)&&TD(s,a):n[i]=s);return n}function A5(e){if(kR(e)){process.env.NODE_ENV!=="production"&&qt("[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.");return}process.env.NODE_ENV!=="production"&&(e.version?(e.version[0]!=="2"||e.version[1]!==".")&&qt("[vue-composition-api] only works with Vue 2, v".concat(e.version," found.")):qt("[vue-composition-api] no Vue version found")),e.config.optionMergeStrategies.setup=function(n,i){return function(s,c){return TD(Yr(n)?n(s,c)||{}:void 0,Yr(i)?i(s,c)||{}:void 0)}},CR(e),g5(e)}var ND={install:function(e){return A5(e)}};typeof window<"u"&&window.Vue&&window.Vue.use(ND);function v5(e){e=e||Gt,e&&!e.__composition_api_installed__&&e.use(ND)}v5(Gt),Gt.version;const xZ="";var b5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?i("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),!e.noPostOption&&!e.onePostUser?i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),i("departPerson",e._b({attrs:{visible:e.visible,checkedArray:e.checkedArray,positionArray:e.positionArray},on:{"update:visible":function(a){e.visible=a},callback:e.handleCallback},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},"departPerson",e.entity,!1))],1)},_5=[];const EZ="";function dn(e,n,i,a,s,c,f,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=i,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(f?(y=function(N){N=N||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!N&&typeof __VUE_SSR_CONTEXT__<"u"&&(N=__VUE_SSR_CONTEXT__),s&&s.call(this,N),N&&N._registeredComponents&&N._registeredComponents.add(f)},g._ssrRegister=y):s&&(y=m?function(){s.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:s),y)if(g.functional){g._injectStyles=y;var O=g.render;g.render=function(_,E){return y.call(E),O(_,E)}}else{var C=g.beforeCreate;g.beforeCreate=C?[].concat(C,y):[y]}return{exports:e,options:g}}var MD=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{MD=e});const y5={components:{departPerson:KM.departPerson},unmounted(){window.clearInterval(this.searchInterval)},props:{modelValue:{type:Object},defaultOption:{type:Array},personType:"",personEntity:{type:Object,default:()=>{}},disable:!1,multiple:{default:!1,type:Boolean},max:{default:1,type:Number},items:{default:void 0,type:Array},processNodeObj:{default:void 0,request:!1},isAlis:{type:Boolean,default:!1}},inject:{isAlisInject:{value:"isAlisInject",default:null}},data(){return{visible:!1,treeOptions:null,selectModel:this.multiple?[]:void 0,treeSearchOptions:null,noPostOption:!1,onePostUser:!1,positionArray:[],searchTime:-1,searchParam:"",userList:[],checkedArray:[],entity:{source:"1",type:this.personType||"0",request:Ze.getAjaxObj(),orgType:[],codeType:[3],multiple:!0,maxMultiple:this.processNodeObj&&this.processNodeObj.loopCardinality==-1?1:1e3,deptCode:this.processNodeObj?this.getDeptCode(1):"",deptCodeArray:this.processNodeObj?this.getDeptCode(0)||[]:[],subjectName:this.processNodeObj?this.getSubjectName():""},searchInterval:window.setInterval(this.searchIntervalFunc,100)}},model:{prop:"modelValue",event:"update:modelValue"},mounted(){this.personEntity!=""&&(this.entity={...this.entity,...this.personEntity}),this.processNodeObj&&this.processNodeObj.participantList&&this.processNodeObj.participantList.length>0&&(this.processNodeObj.participantList.map(e=>{e.id=e.id}),this.userList=this.processNodeObj.participantList,this.checkedArray=this.processNodeObj.participantList.map(e=>({type:3,id:e.id,name:e.name||e.realName,subjectId:e.subjectId})),this.$emit("update:modelValue",this.userList.map(e=>e.id)),this.$emit("select",this.userList)),this.gePostUsers()},methods:{getSubjectName(){let e="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"&&(e=this.processNodeObj.routeTxt.companyIds[0].name),e},gePostUsers(){if(this.processNodeObj&&this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let{routeTxt:e}=this.processNodeObj,n={taskDefId:this.processNodeObj.id,postIds:[]};e.postList.map(i=>{n.postIds.push(i.postId)}),e.postList&&e.postList.length>0&&Ze.common.getTaskAuditor(this.personEntity._businessDeptId?this.personEntity._businessDeptId:this.processNodeObj.taskNode?this.processNodeObj.taskNode[0].vars._businessDeptId:"",[n]).then(i=>{let a=[],s=[],c=!1;if(i.data.map(f=>{f.posts.map(m=>{s.push(...m.users),m.users.length==1?a.push(...m.users):c=!0})}),a.length>this.entity.maxMultiple&&this.entity.maxMultiple!=0&&(c=!0),c&&(a=[]),s.length==0){this.noPostOption=!0;return}a.length>0&&(this.onePostUser=!0,this.handleCallback(a)),this.entity.orgType=[5],this.entity.codeType=[8],i.data[0].posts.map(f=>{this.positionArray.push({...f,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:f.users.map(m=>m.id)})})})}},getDeptCode(e){let n="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"&&(e=="1"&&this.processNodeObj.routeTxt.departmentIds.length==1&&(n=this.processNodeObj.routeTxt.departmentIds[0].rangeId),e=="0"&&this.processNodeObj.routeTxt.departmentIds.length>1&&(n=this.processNodeObj.routeTxt.departmentIds.map(i=>i.rangeId))),n},handleCallback(e){this.userList=e,this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},handleClose(e){this.userList.splice(e,1),this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},searchIntervalFunc(){this.searchTime>0&&(this.searchTime-=100),this.searchTime==0&&(this.searchTime=-1,this.searchParam&&!(this.items&&this.items.length>0)?Ze.org.list(this.searchParam).then(async e=>{if(e.code==bt.success){let n=e.data.map(i=>(i.children=null,i.label=i.name,i.id=i.id,i.deptName=i.deptName,i.alisName=i.alisName,i));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(i=>{i.isBranch=!1}),await this.$nextTick(),this.$refs.deptTree.handleLocalSearch()}}):this.treeSearchOptions=null)},searchChange(e){this.searchParam=e,this.searchTime=500,this.deptTree},onSelect(e,n){this.$emit("update:modelValue",this.selectModel),this.$emit("select",e)},onInput(e,n){this.max>0&&this.multiple&&e.length>this.max&&e.length>this.max?(this.$refs.deptTree.clear(),this.$refs.deptTree.forest.selectedNodeIds=this.selectModel,this.$refs.deptTree.select(this.selectModel),this.$refs.deptTree.forest.selectedNodeIds,MD.warning(`\u6700\u591A\u9009\u62E9 ${this.max} \u4EBA`)):(this.selectModel=e,this.$emit("update:modelValue",this.selectModel))},normalizer(e){if(e.children&&!e.children.length&&delete e.children,e.leaf){let n=`${e.deptName} - ${e.label}(${e.phone})`;return(this.isAlis||this.isAlisInject)&&e.alisName&&(n+="participantList -- "+e.alisName),this.$refs.deptTree.trigger.searchQuery&&(n+=`(${this.$refs.deptTree.trigger.searchQuery})`),{id:e.id,label:n,leaf:e.leaf,phone:e.phone,deptName:e.deptName,alisName:e.alisName}}return{id:e.id,label:e.label,leaf:e.leaf,phone:e.phone,children:e.children,deptName:e.deptName,alisName:e.alisName}},async loadTreeOptions({action:e,parentNode:n,callback:i,instanceId:a}){if(e===LOAD_ROOT_OPTIONS)if(this.items){let s=this.items.map(c=>(c.children=null,c.label=c.name,c.id=c.id,c));this.$set(this,"treeOptions",s)}else Ze.org.list().then(s=>{if(s.code==bt.success){let c=s.data.map(f=>(f.children=null,f.label=f.name,f.id=f.id,f));this.defaultOption&&(c=[...c,...this.defaultOption]),this.$set(this,"treeOptions",c)}});else if(e===LOAD_CHILDREN_OPTIONS){let s=n.id,c="";if(n.orgType==Yu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Yu.\u7FA4\u7EC4){Ze.org.findTeamMember("",s).then(f=>{let m=f.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,i()});return}Ze.org.list("",s,c).then(f=>{if(f.code==bt.success){let m=f.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,i()}})}}}},FD={};var w5=dn(y5,b5,_5,!1,x5,"dda24c6c",null,null);function x5(e){for(let n in FD)this[n]=FD[n]}const va=function(){return w5.exports}();var Hl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function E5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function PD(e){var n=e.default;if(typeof n=="function"){var i=function(){return n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),i}var RD={exports:{}};(function(e,n){(function(i,a){e.exports=a()})(Hl,function(){var i=1e3,a=6e4,s=36e5,c="millisecond",f="second",m="minute",g="hour",y="day",O="week",C="month",N="quarter",_="year",E="date",P="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ce){var Se=["th","st","nd","rd"],me=Ce%100;return"["+Ce+(Se[(me-20)%10]||Se[me]||Se[0])+"]"}},v=function(Ce,Se,me){var G=String(Ce);return!G||G.length>=Se?Ce:""+Array(Se+1-G.length).join(me)+Ce},x={s:v,z:function(Ce){var Se=-Ce.utcOffset(),me=Math.abs(Se),G=Math.floor(me/60),J=me%60;return(Se<=0?"+":"-")+v(G,2,"0")+":"+v(J,2,"0")},m:function Ce(Se,me){if(Se.date()<me.date())return-Ce(me,Se);var G=12*(me.year()-Se.year())+(me.month()-Se.month()),J=Se.clone().add(G,C),re=me-J<0,Ae=Se.clone().add(G+(re?-1:1),C);return+(-(G+(me-J)/(re?J-Ae:Ae-J))||0)},a:function(Ce){return Ce<0?Math.ceil(Ce)||0:Math.floor(Ce)},p:function(Ce){return{M:C,y:_,w:O,d:y,D:E,h:g,m,s:f,ms:c,Q:N}[Ce]||String(Ce||"").toLowerCase().replace(/s$/,"")},u:function(Ce){return Ce===void 0}},I="en",z={};z[I]=F;var L="$isDayjsObject",H=function(Ce){return Ce instanceof ge||!(!Ce||!Ce[L])},Z=function Ce(Se,me,G){var J;if(!Se)return I;if(typeof Se=="string"){var re=Se.toLowerCase();z[re]&&(J=re),me&&(z[re]=me,J=re);var Ae=Se.split("-");if(!J&&Ae.length>1)return Ce(Ae[0])}else{var Oe=Se.name;z[Oe]=Se,J=Oe}return!G&&J&&(I=J),J||!G&&I},ie=function(Ce,Se){if(H(Ce))return Ce.clone();var me=typeof Se=="object"?Se:{};return me.date=Ce,me.args=arguments,new ge(me)},oe=x;oe.l=Z,oe.i=H,oe.w=function(Ce,Se){return ie(Ce,{locale:Se.$L,utc:Se.$u,x:Se.$x,$offset:Se.$offset})};var ge=function(){function Ce(me){this.$L=Z(me.locale,null,!0),this.parse(me),this.$x=this.$x||me.x||{},this[L]=!0}var Se=Ce.prototype;return Se.parse=function(me){this.$d=function(G){var J=G.date,re=G.utc;if(J===null)return new Date(NaN);if(oe.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var Ae=J.match(M);if(Ae){var Oe=Ae[2]-1||0,ue=(Ae[7]||"0").substring(0,3);return re?new Date(Date.UTC(Ae[1],Oe,Ae[3]||1,Ae[4]||0,Ae[5]||0,Ae[6]||0,ue)):new Date(Ae[1],Oe,Ae[3]||1,Ae[4]||0,Ae[5]||0,Ae[6]||0,ue)}}return new Date(J)}(me),this.init()},Se.init=function(){var me=this.$d;this.$y=me.getFullYear(),this.$M=me.getMonth(),this.$D=me.getDate(),this.$W=me.getDay(),this.$H=me.getHours(),this.$m=me.getMinutes(),this.$s=me.getSeconds(),this.$ms=me.getMilliseconds()},Se.$utils=function(){return oe},Se.isValid=function(){return this.$d.toString()!==P},Se.isSame=function(me,G){var J=ie(me);return this.startOf(G)<=J&&J<=this.endOf(G)},Se.isAfter=function(me,G){return ie(me)<this.startOf(G)},Se.isBefore=function(me,G){return this.endOf(G)<ie(me)},Se.$g=function(me,G,J){return oe.u(me)?this[G]:this.set(J,me)},Se.unix=function(){return Math.floor(this.valueOf()/1e3)},Se.valueOf=function(){return this.$d.getTime()},Se.startOf=function(me,G){var J=this,re=!!oe.u(G)||G,Ae=oe.p(me),Oe=function(S,X){var te=oe.w(J.$u?Date.UTC(J.$y,X,S):new Date(J.$y,X,S),J);return re?te:te.endOf(y)},ue=function(S,X){return oe.w(J.toDate()[S].apply(J.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(X)),J)},pe=this.$W,ye=this.$M,Fe=this.$D,K="set"+(this.$u?"UTC":"");switch(Ae){case _:return re?Oe(1,0):Oe(31,11);case C:return re?Oe(1,ye):Oe(0,ye+1);case O:var R=this.$locale().weekStart||0,k=(pe<R?pe+7:pe)-R;return Oe(re?Fe-k:Fe+(6-k),ye);case y:case E:return ue(K+"Hours",0);case g:return ue(K+"Minutes",1);case m:return ue(K+"Seconds",2);case f:return ue(K+"Milliseconds",3);default:return this.clone()}},Se.endOf=function(me){return this.startOf(me,!1)},Se.$set=function(me,G){var J,re=oe.p(me),Ae="set"+(this.$u?"UTC":""),Oe=(J={},J[y]=Ae+"Date",J[E]=Ae+"Date",J[C]=Ae+"Month",J[_]=Ae+"FullYear",J[g]=Ae+"Hours",J[m]=Ae+"Minutes",J[f]=Ae+"Seconds",J[c]=Ae+"Milliseconds",J)[re],ue=re===y?this.$D+(G-this.$W):G;if(re===C||re===_){var pe=this.clone().set(E,1);pe.$d[Oe](ue),pe.init(),this.$d=pe.set(E,Math.min(this.$D,pe.daysInMonth())).$d}else Oe&&this.$d[Oe](ue);return this.init(),this},Se.set=function(me,G){return this.clone().$set(me,G)},Se.get=function(me){return this[oe.p(me)]()},Se.add=function(me,G){var J,re=this;me=Number(me);var Ae=oe.p(G),Oe=function(ye){var Fe=ie(re);return oe.w(Fe.date(Fe.date()+Math.round(ye*me)),re)};if(Ae===C)return this.set(C,this.$M+me);if(Ae===_)return this.set(_,this.$y+me);if(Ae===y)return Oe(1);if(Ae===O)return Oe(7);var ue=(J={},J[m]=a,J[g]=s,J[f]=i,J)[Ae]||1,pe=this.$d.getTime()+me*ue;return oe.w(pe,this)},Se.subtract=function(me,G){return this.add(-1*me,G)},Se.format=function(me){var G=this,J=this.$locale();if(!this.isValid())return J.invalidDate||P;var re=me||"YYYY-MM-DDTHH:mm:ssZ",Ae=oe.z(this),Oe=this.$H,ue=this.$m,pe=this.$M,ye=J.weekdays,Fe=J.months,K=J.meridiem,R=function(X,te,de,ke){return X&&(X[te]||X(G,re))||de[te].slice(0,ke)},k=function(X){return oe.s(Oe%12||12,X,"0")},S=K||function(X,te,de){var ke=X<12?"AM":"PM";return de?ke.toLowerCase():ke};return re.replace(T,function(X,te){return te||function(de){switch(de){case"YY":return String(G.$y).slice(-2);case"YYYY":return oe.s(G.$y,4,"0");case"M":return pe+1;case"MM":return oe.s(pe+1,2,"0");case"MMM":return R(J.monthsShort,pe,Fe,3);case"MMMM":return R(Fe,pe);case"D":return G.$D;case"DD":return oe.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return R(J.weekdaysMin,G.$W,ye,2);case"ddd":return R(J.weekdaysShort,G.$W,ye,3);case"dddd":return ye[G.$W];case"H":return String(Oe);case"HH":return oe.s(Oe,2,"0");case"h":return k(1);case"hh":return k(2);case"a":return S(Oe,ue,!0);case"A":return S(Oe,ue,!1);case"m":return String(ue);case"mm":return oe.s(ue,2,"0");case"s":return String(G.$s);case"ss":return oe.s(G.$s,2,"0");case"SSS":return oe.s(G.$ms,3,"0");case"Z":return Ae}return null}(X)||Ae.replace(":","")})},Se.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Se.diff=function(me,G,J){var re,Ae=this,Oe=oe.p(G),ue=ie(me),pe=(ue.utcOffset()-this.utcOffset())*a,ye=this-ue,Fe=function(){return oe.m(Ae,ue)};switch(Oe){case _:re=Fe()/12;break;case C:re=Fe();break;case N:re=Fe()/3;break;case O:re=(ye-pe)/6048e5;break;case y:re=(ye-pe)/864e5;break;case g:re=ye/s;break;case m:re=ye/a;break;case f:re=ye/i;break;default:re=ye}return J?re:oe.a(re)},Se.daysInMonth=function(){return this.endOf(C).$D},Se.$locale=function(){return z[this.$L]},Se.locale=function(me,G){if(!me)return this.$L;var J=this.clone(),re=Z(me,G,!0);return re&&(J.$L=re),J},Se.clone=function(){return oe.w(this.$d,this)},Se.toDate=function(){return new Date(this.valueOf())},Se.toJSON=function(){return this.isValid()?this.toISOString():null},Se.toISOString=function(){return this.$d.toISOString()},Se.toString=function(){return this.$d.toUTCString()},Ce}(),fe=ge.prototype;return ie.prototype=fe,[["$ms",c],["$s",f],["$m",m],["$H",g],["$W",y],["$M",C],["$y",_],["$D",E]].forEach(function(Ce){fe[Ce[1]]=function(Se){return this.$g(Se,Ce[0],Ce[1])}}),ie.extend=function(Ce,Se){return Ce.$i||(Ce(Se,ge,ie),Ce.$i=!0),ie},ie.locale=Z,ie.isDayjs=H,ie.unix=function(Ce){return ie(1e3*Ce)},ie.en=z[I],ie.Ls=z,ie.p={},ie})})(RD);const od=RD.exports;var k5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"view-file"},[i("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return i("div",{key:s,staticClass:"file-info"},[i("div",{staticClass:"name"},[i("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),i("div",[i("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),i("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),i("div",{staticClass:"op"},[i("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),i("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),i("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[i("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},C5=[];const kZ="",S5={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>od(e.uploadTime).valueOf()-od(n.uploadTime).valueOf())}},methods:{getExt(e){if(!e)return"";let n=e.lastIndexOf(".");return e.substring(n+1).toLocaleLowerCase()},isAssetTypeAnImage(e){let n=this.getExt(e);return["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(n.toLowerCase())!==-1},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},formatSize(e){if(!e)return"";var n=1024;return e<n?e+"B":e<Math.pow(n,2)?(e/n).toFixed(2)+"KB":e<Math.pow(n,3)?(e/Math.pow(n,2)).toFixed(2)+"MB":e<Math.pow(n,4)?(e/Math.pow(n,3)).toFixed(2)+"G":(e/Math.pow(n,4)).toFixed(2)+"T"},handleDownload(e){let n=e.url||e.response.data.url;n&&this.downloadFile(n,e.name)},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)},getFileUrl(e){let n=e.url||e.response.data.url;return this.isAssetTypeAnImage(n)?n:this.getExt(n)=="zip"||this.getExt(n)=="rar"?require("./assets/zip.png"):this.getExt(n)=="doc"||this.getExt(n)=="docx"?require("./assets/doc.png"):this.getExt(n)=="xls"||this.getExt(n)=="xlsx"?require("./assets/xls.png"):this.getExt(n)=="pdf"?require("./assets/pdf.png"):require("./assets/qt.png")},handlePictureCardPreview(e){let n=e.url||e.response.data.url,i=n.lastIndexOf(".");n.substring(i+1)=="zip"||n.substring(i+1)=="rar"?window.open(n):n.includes("https")?window.open(`https://wdyl.ddzg.cn:8089/?ssl=1&furl=${n}`):window.open(`https://wdyl.ddzg.cn:8089/?ssl=0&furl=${n}`)}}},LD={};var D5=dn(S5,k5,C5,!1,B5,"e0be2f1a",null,null);function B5(e){for(let n in LD)this[n]=LD[n]}const I5=function(){return D5.exports}();var O5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u52A0\u7B7E\u539F\u56E0(200\u5B57\u4EE5\u5185)"},model:{value:e.reason,callback:function(a){e.reason=a},expression:"reason"}})],1),e._t("file"),e._t("form")],2)},T5=[];const CZ="";var gh=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{gh=e});const N5={components:{staffTree:va},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return gh.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return gh.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return gh.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let i=this.targetUser.join(",")||"";e&&e(),n(),Ze.tis.addMultiInstance({taskId:this.param.taskInstId,assignee:i,comment:this.reason}).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},jD={};var M5=dn(N5,O5,T5,!1,F5,"72ff885e",null,null);function F5(e){for(let n in jD)this[n]=jD[n]}const QD=function(){return M5.exports}();var P5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-select",{staticClass:"select",attrs:{placeholder:"\u9009\u62E9\u5E38\u7528\u610F\u89C1"},on:{change:e.changeFun},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}},e._l(e.list,function(a,s){return i("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[i("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[i("div",{staticClass:"option-c"},[i("span",[e._v(e._s(a.opinionName))]),i("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},R5=[];const SZ="",DZ="",L5={props:{showLabel:!1},data(){return{value:"",list:[]}},mounted(){this.getList()},methods:{addIdea(e){if(!e)return this.$message({type:"error",message:"\u8BF7\u8F93\u5165\u610F\u89C1\u540E\u91CD\u8BD5"});this.$confirm(`\u5C06\u201D${e}\u201D\u8BBE\u4E3A\u5E38\u7528\u610F\u89C1\u3002`,"\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ze.getAjaxObj().post("/auth/user/opinion/save",{opinionName:e}).then(n=>{n.success?(this.getList(),this.$message({type:"success",message:"\u8BBE\u7F6E\u6210\u529F"})):this.$message({type:"error",message:n.msg})})})},changeFun(){this.$emit("change",this.value),this.value=""},getList(){Ze.getAjaxObj().get("/auth/user/opinion/my","").then(e=>{this.list=e.data})},del(e){this.$confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u610F\u89C1, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ze.getAjaxObj().get(`/auth/user/opinion/del/${e.opinionId}`,"").then(n=>{this.getList(),this.$message({type:"success",message:"\u5220\u9664\u6210\u529F"})})}).catch(()=>{})}}},zD={};var j5=dn(L5,P5,R5,!1,Q5,"a3cd7af2",null,null);function Q5(e){for(let n in zD)this[n]=zD[n]}const Ay=function(){return j5.exports}();var z5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.personEntity},model:{value:e.targetUID,callback:function(a){e.targetUID=a},expression:"targetUID"}})],1),e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},H5=[];const BZ="";var Ah=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ah=e});const V5={components:{staffTree:va,commIdea:Ay},props:{param:Object},data(){return{commentMsg:"",targetName:"",targetUID:"",personEntity:{}}},watch:{param:{handler(e){this.personEntity={...e.personEntity,maxMultiple:1}},immediate:!0,deep:!0}},methods:{getRes(){return{targetUID:this.targetUID,targetName:this.targetName,commentMsg:this.commentMsg}},confirm(e,n){if(!this.targetUID)return Ah.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return Ah.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ah.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;e&&e(),n(),Ze.tis.transferTask({taskId:this.param.taskInstId,assignee:this.targetUID.join(" "),comment:this.commentMsg}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},HD={};var U5=dn(V5,z5,H5,!1,Y5,"dd93bc60",null,null);function Y5(e){for(let n in HD)this[n]=HD[n]}const VD=function(){return U5.exports}();var W5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"user-task"},[e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-radio-group",{staticClass:"ml-4",model:{value:e.radioModel,callback:function(a){e.radioModel=a},expression:"radioModel"}},e._l(e.processNodeObj.branches,function(a){return i("el-radio",{key:a.id,attrs:{label:a,size:"large"}},[e._v(e._s(a.name?a.name:a.nodeInfoDTO?a.nodeInfoDTO.name:""))])}),1)],1):e._e(),e.radioModel.id?[e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="userTask"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="inclusiveGateway"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="exclusiveGateway"?e._l(e.radioModel.nodeInfoDTO.branches,function(a){return i("userTask",{key:a.nodeInfoDTO.id,ref:e.setItemRef(a.nodeInfoDTO.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj&&e.processNodeObj.branches&&e.processNodeObj.branches.length==1?e._l(e.processNodeObj.branches,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj.nodeType=="inclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>0?[i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-checkbox-group",{model:{value:e.checkList,callback:function(a){e.checkList=a},expression:"checkList"}},[e._l(e.processNodeObj.branches,function(a){return[e.isSelect(a.nodeInfoDTO?a.nodeInfoDTO:a)?i("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):i("el-checkbox",{key:"checkbox1"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name}})]})],2)],1),e._l(e.checkModelList,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:a.nodeInfoDTO?!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0):!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})})]:!e.processNodeObj.assignee||!e.processNodeObj.assignees||e.isOption(e.processNodeObj.humanPerformerName)?[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[i("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[i("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])]),e.processNodeObj.routeTxt&&e.processNodeObj.routeTxt.length>0&&e.processNodeObj.userList&&e.processNodeObj.userList.length>0?i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return i("div",{key:a.type},[a.ids&&a.ids.length>0?i("div",[i("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(e.processNodeObj.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0):e._e(),i("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?i("el-select",{attrs:{multiple:e.processNodeObj.loopCardinality!=-1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.fixPeopleChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}},e._l(e.processNodeObj.userList,function(a,s){return i("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?i("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?i("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):i("staffTree",{attrs:{processNodeObj:e.processNodeObj,personType:e.personType,personEntity:e.personEntity,multiple:"",max:e.processNodeObj.loopCardinality==-1?1:100,items:e.getTreeData(e.processNodeObj)},on:{"update:modelValue":function(a){e.complete(a,e.processNodeObj)},select:e.selectChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}})],1)]:e._e()],2)},G5=[];const IZ="";var fs=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{fs=e});const J5={name:"userTask",components:{staffTree:va},props:{index:{type:Number,default:0},processNode:{require:!0},label:"",peopleLabel:"",lv1label:"",personType:"",personEntity:{type:Object,default:()=>{}},rules:{require:!1,type:Array}},data(){return{deptList:[],Enum:Tp,resultList:[],radioModel:{},checkList:[],targetUserId:"",targetUserList:[],processNodeObj:this.processNode,userTaskListData:{},personnelList:[]}},computed:{checkModelList(){let e=this.processNodeObj.branches.filter(n=>this.checkList.includes(n.incomingConditionItemList[0].compareValue));return this.resultList=e||[],this.resultList}},watch:{processNode:{handler(e,n){e.nodeType=="userTask"&&e.setPersonnel&&e.assignees&&e.assignees.length>0&&(this.targetUserId=e.assignees.map(i=>i.id)),e.userList&&e.userList.length==1&&(this.targetUserId=e.userList[0].userId),this.processNodeObj=e||{}},deep:!0}},mounted(){this.processNodeObj.childNode&&this.processNodeObj.childNode.length==1&&this.processNodeObj.type==r_.\u5355\u4E00\u5206\u652F&&(this.radioModel=this.processNodeObj.childNode[0])},methods:{isSelect(e){if(e.incomingConditionItemList[0]){let n=e.incomingConditionItemList[0].itemName.includes("selecd");return n&&(this.checkList.includes(e.name)||this.checkList.push(e.name)),n}return!1},fixPeopleChange(e){this.complete(e,this.processNodeObj)},selectChange(e){this.targetUserList=e},complete(e,n){n.vars=e,this.resultList.every(i=>i.vars)&&(this.processNodeObj.vars=this.resultList.map(i=>i.vars),this.$emit("complete",this.processNodeObj))},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getTreeData(e){if(e){if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8")return e.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u90E8\u95E8,i});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u4E3B\u4F53,i});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let i={};return i.id=n.id,i.leaf=!1,i.name=n.teamName,i.orgType=this.Enum.UserType.\u7FA4\u7EC4,i})}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},getValue(){let e=!0,n={multiNodeParticipant:{},vars:{}};if(!this.processNodeObj.type||this.processNodeObj.type==this.Enum.ProcessNodeType.\u7528\u6237\u4EFB\u52A1||this.processNodeObj.type==r_.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(this.radioModel&&this.radioModel.nodeInfoDTO&&this.radioModel.nodeInfoDTO.id&&this.radioModel.nodeInfoDTO.incomingConditionItemList&&this.radioModel.nodeInfoDTO.incomingConditionItemList.length>0&&(n.vars[this.radioModel.nodeInfoDTO.incomingConditionItemList[0].itemName]=this.radioModel.nodeInfoDTO.incomingConditionItemList[0].compareValue),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}}else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(i=>{const a=this.userTaskListData[i.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(i.nodeInfoDTO.incomingConditionItemList.length!==0&&i.nodeInfoDTO.incomingConditionItemList.forEach(f=>{f.itemName&&(n.vars[f.itemName]=f.compareValue)}),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}});else return this.processNodeObj,this.processNodeObj&&this.processNodeObj.nodeType=="inclusiveGateway"?fs.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} `),!1;else if(!this.processNodeObj.assignee||!Array.isArray(this.processNodeObj.assignee)||!this.processNodeObj.setPersonnel||this.isOption(this.processNodeObj.humanPerformerName)||this.processNodeObj.nodeInfoDTO&&(!this.processNodeObj.nodeInfoDTO.assignee||!Array.isArray(this.processNodeObj.nodeInfoDTO.assignee)||!this.processNodeObj.nodeInfoDTO.setPersonnel||this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))){if(this.targetUserId&&this.targetUserId.length>0)n.multiNodeParticipant={},n.multiNodeParticipant[this.processNode.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.id:this.processNodeObj.id]=Array.isArray(this.targetUserId)?this.targetUserId:[this.targetUserId];else if(this.processNodeObj.REQUIRED!==!1||this.processNodeObj.nodeInfoDTO&&this.processNodeObj.nodeInfoDTO.REQUIRED!==!1)return this.processNodeObj.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`),!1}else this.processNodeObj.incomingConditionItemList&&this.processNodeObj.incomingConditionItemList.length>0&&(n.vars[this.processNodeObj.incomingConditionItemList[0].itemName]=this.processNodeObj.incomingConditionItemList[0].compareValue);else for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();if(!c)e=!1;else{if(this.processNodeObj.nodeType=="exclusiveGateway")if(this.radioModel&&this.radioModel.id)this.radioModel.incomingConditionItemList&&this.radioModel.incomingConditionItemList.length>0&&(n.vars[this.radioModel.incomingConditionItemList[0].itemName]=this.radioModel.incomingConditionItemList[0].compareValue);else return this.processNodeObj.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u4E0B\u4E00\u8282\u70B9`),!1;else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(f=>{f.incomingConditionItemList.length!==0&&f.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} `),!1;n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}}}}return e&&n},getLabel(e){let n="";return e.incomingConditionItemList.length>0&&(n=e.incomingConditionItemList[0].compareValue),n||e.name||"\u540E\u7EED\u8282\u70B9"}}},UD={};var K5=dn(J5,W5,G5,!1,X5,null,null,null);function X5(e){for(let n in UD)this[n]=UD[n]}const vy=function(){return K5.exports}();var Z5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"sign-container",style:e.setDynamicVars},[i("div",{staticClass:"content-area"},[i("div",{staticClass:"canvas-container"},[i("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),i("div",{staticClass:"history"},[i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?i("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?i("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?i("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),i("div",{staticClass:"actions-box"},[i("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),i("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),i("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},$5=[];const OZ="",q5={upload:e=>new Promise((n,i)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},e6={data(){return{ctx:null,signatureImage:"",actionHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[]}},methods:{startDrawing(e){this.isDrawing=!0,this.currentPath=[];const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.beginPath(),this.ctx.moveTo(i,a),this.currentPath.push({x:i,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.lineWidth=2,this.ctx.strokeStyle="#000000",this.ctx.lineTo(i,a),this.ctx.stroke(),this.currentPath.push({x:i,y:a})}},undo(){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let n=0;n<e.length-1;n++){const{x:i,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(i,a)):(this.ctx.lineTo(i,a),this.ctx.stroke())}},finishDrawing(e){this.currentPath.length>0&&this.paths.push(this.currentPath),this.isDrawing=!1},clearCanvas(){this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[],this.$emit("saveSignature","",!1)},saveSignature(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57");return}this.signatureImage=this.$refs.canvasRef.toBlob(e=>{this.uploadImage(e)},"image/png",.95)},async uploadImage(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n||`signature-${Date.now()}.png`);const a=await q5.upload(i);if(this.loading=!1,!a.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(a.data),this.$set(this,"historyPics",s.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",a.data,!0)},useHistory(e){this.historyPics[e]&&this.$confirm("\u662F\u5426\u4F7F\u7528\u5386\u53F2\u7B7E\u5B57","\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.$emit("saveSignature",this.historyPics[e],!0)})}},computed:{setDynamicVars(){return{"--action-height":`${this.actionHeight}px`}}},watch:{setDynamicVars(e){let n=document.querySelector(".canvas-container");n&&(this.$refs.canvasRef.width=n.offsetWidth,this.$refs.canvasRef.height=n.offsetHeight-this.actionHeight)}},mounted(){document.querySelector(".actions-box").offsetHeight?this.actionHeight=document.querySelector(".actions-box").offsetHeight:setTimeout(()=>{this.actionHeight=document.querySelector(".actions-box").offsetHeight},200),this.ctx=this.$refs.canvasRef.getContext("2d"),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]}},YD={};var t6=dn(e6,Z5,$5,!1,n6,"8b12235a",null,null);function n6(e){for(let n in YD)this[n]=YD[n]}const i6=function(){return t6.exports}();var r6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[i("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?i("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),i("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?i("el-form-item",[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",type:"textarea",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1)]:e._e(),e._t("file"),e.param.nodeLoading?[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])]:[e.param.nextTaskNode&&e.param.nextTaskNode.id&&e.param.nextTaskNode.nodeType!="parallelGateway"&&e.param.nextTaskNode.nodeType!="exclusiveGateway"?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{pType:e.param.nextTaskNode.nodeType,REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})}):e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})}):e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length==1?[e.param.nextTaskNode.nodeType!="endEvent"?[e.param.nextTaskNode.branches[0].nodeInfoDTO?i("userTask",{key:e.param.nextTaskNode.branches[0].nodeInfoDTO.id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].nodeInfoDTO.id),attrs:{personType:e.param.nextTaskNode.branches[0].nodeInfoDTO.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0].nodeInfoDTO,{REQUIRED:!(e.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}}):i("userTask",{key:e.param.nextTaskNode.branches[0].id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].id),attrs:{personType:e.param.nextTaskNode.branches[0].personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0],{REQUIRED:!(e.param.nextTaskNode.branches[0].setPersonnel==!0&&e.param.nextTaskNode.branches[0].assignees&&e.param.nextTaskNode.branches[0].assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length>1?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="parallelGateway"?e._l(e.param.nextTaskNode.branches,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType||"",personEntity:e.param.personEntity||{},processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()],e._t("form"),i("el-dialog",{attrs:{title:"\u7B7E\u5B57",visible:e.signVisible,"append-to-body":"",width:"800px","close-on-click-modal":!1,top:"4vh","align-center":""},on:{"update:visible":function(a){e.signVisible=a},closed:e.closeSign},model:{value:e.signVisible,callback:function(a){e.signVisible=a},expression:"signVisible"}},[i("div",{staticClass:"sign-container"},[i("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},a6=[];const TZ="";var Vl=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Vl=e});const o6={components:{staffTree:va,userTask:vy,commIdea:Ay,TopSign:i6},props:{param:Object},data(){return{commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:Tp,signVisible:!1,digitalSignature:"",confirmPreposition:!1,confirmLoading:()=>{}}},mounted(){this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F")},computed:{signRequired(){return!!this.param.extendedProperties.find(n=>n.name=="signature")}},methods:{setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getProcessNode(e){let n={};return n.humanPerformerName=e.userTaskModelDTO.humanPerformer.name,n.id=e.id,n.loopCardinality=e.loopCardinality||e.userTaskModelDTO.loopCardinality,n.name=e.userTaskModelDTO.name,n.type=e.type,n.routeTxt=e.userTaskModelDTO.routeTxt,n.participantList=e.userTaskModelDTO.participantList,n.taskNode=this.param.taskNode,n},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u8D26\u6237"||e=="\u56FA\u5B9A\u5355\u4F4D"},getTreeData(e){if(this.param.nextTaskNode){if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8")return e.userTaskModelDTO.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Yu.\u90E8\u95E8,i});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Yu.\u4E3B\u4F53,i})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,i){if(Array.isArray(i)&&(this.param.attachment=i),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Vl.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Vl.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let a={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,attachment:this.param.attachment};for(let s in this.userTaskListData){let c=this.userTaskListData[s];this.$refs[c];let f=this.$refs[c].$el?this.$refs[c]:this.$refs[c][0];f.getValue;let m=f.getValue();if(m&&m.vars&&this.param.incomingConditionItemList&&this.param.incomingConditionItemList.length>0&&this.param.incomingConditionItemList.forEach(O=>{m.vars[O.itemName]||(m.vars[O.itemName]="")}),!m)return!1;let g=[];const y=this.param.nextTaskNode;y.setPersonnel?g=y.assignees||[]:g=(f.targetUserList||[]).map(O=>({id:O.id,name:O.name})),a.assignees=g,a.multiNodeParticipant={...a.multiNodeParticipant,...m.multiNodeParticipant},a.vars={...a.vars,...m.vars}}if(this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)a.multiNodeParticipant={...a.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(s=>s.id)};else if(!Object.keys(a.multiNodeParticipant).length)return Vl.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(a.pass=!0,Date.now()&&this.param,this.param.getVars){let s=this.param.getVars();if(s===!1)return!1;a.vars={...a.vars,...s}}if(this.signRequired,this.signRequired){this.confirmPreposition=e,this.confirmLoading=n,this.signVisible=!0;return}n(),e?e().then(s=>{Ze.tis.complete(a).then(c=>{c.code==bt.success?(s&&s(),this.$emit("success")):this.$emit("fail",c.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Ze.tis.complete(a).then(s=>{s.code==bt.success?this.$emit("success"):this.$emit("fail",s.msg)}).catch(s=>{this.$emit("fail",s.response?s.response.data?s.response.data.msg||s.response.data.message:"":s.message||s.msg||"")})},confirmWithSign(){let e={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,digitalSignature:{name:this.param.digitalSignature.name,url:this.param.digitalSignature.url},attachment:this.param.attachment};for(let n in this.userTaskListData){let i=this.userTaskListData[n],a=this.$refs[i].$el?this.$refs[i]:this.$refs[i][0];a.getValue;let s=a.getValue();if(!s)return!1;e.multiNodeParticipant={...e.multiNodeParticipant,...s.multiNodeParticipant},e.vars={...e.vars,...s.vars}}if(this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)e.multiNodeParticipant={...e.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(n=>n.id)};else if(!Object.keys(e.multiNodeParticipant).length)return Vl.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(this.param.getVars){let n=this.param.getVars();if(n===!1)return!1;e.vars={...e.vars,...n}}e.pass=!0,this.confirmLoading(),this.confirmPreposition?this.confirmPreposition().then(n=>{Ze.tis.complete(e).then(i=>{i.code==bt.success?(n&&n(),this.$emit("success")):this.$emit("fail",i.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Ze.tis.complete(e).then(n=>{n.code==bt.success?this.$emit("success"):this.$emit("fail",n.msg)}).catch(n=>{this.$emit("fail",n.response?n.response.data?n.response.data.msg||n.response.data.message:"":n.message||n.msg||"")})},handleSignature(e,n){this.param.digitalSignature=e,n&&(this.signVisible=!1,this.confirmWithSign())},closeSign(){this.signVisible=!1},noticeFail(e){Vl.warning(e)}}},WD={};var s6=dn(o6,r6,a6,!1,l6,"a4be969e",null,null);function l6(e){for(let n in WD)this[n]=WD[n]}const by=function(){return s6.exports}();var c6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,type:"textarea",maxlength:"200","show-word-limit":"",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},u6=[];const NZ="";var GD=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{GD=e});const d6={components:{staffTree:va,commIdea:Ay},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return GD.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let i={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};i.assignees=[],i.pass=!1,Ze.tis.complete(i).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},JD={};var f6=dn(d6,c6,u6,!1,p6,"02cb58a9",null,null);function p6(e){for(let n in JD)this[n]=JD[n]}const KD=function(){return f6.exports}();var h6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u9000\u56DE\u8282\u70B9"},model:{value:e.nodeId,callback:function(a){e.nodeId=a},expression:"nodeId"}},e._l(e.nodesData,function(a){return i("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),i("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u9000\u56DE\u539F\u56E0"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}})],1),e._t("file"),e._t("form")],2)},m6=[];const MZ="";var _y=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{_y=e});const g6={components:{staffTree:va},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Ze.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==bt.success&&(this.nodesData=(e.data||[]).filter(n=>!n.nodeId.includes("startEvent")))})},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.nodeId)return _y.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return _y.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Ze.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},XD={};var A6=dn(g6,h6,m6,!1,v6,"11b0e88d",null,null);function v6(e){for(let n in XD)this[n]=XD[n]}const ZD=function(){return A6.exports}();var b6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[i("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.type,callback:function(a){e.type=a},expression:"type"}},e._l(e.nodesData,function(a){return i("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),i("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u56DE")]),e._v("\uFF1A\u64A4\u56DE\u5230\u53D1\u8D77\u4EBA\u91CD\u65B0\u63D0\u4EA4\uFF0C\u82E5\u5F53\u524D\u6D41\u7A0B\u4E0D\u5B58\u5728\u53D1\u8D77\u4EBA\u8282\u70B9\uFF0C\u529F\u80FD\u540C\u64A4\u9500 ")])]),e._t("file"),e._t("form")],2)},_6=[];const FZ="";var $D=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{$D=e});const y6={components:{staffTree:va},props:{param:Object},data(){return{commentMsg:"",nodeId:"",type:"",nodesData:[{type:"wf_withdraw_end",label:"\u64A4\u9500"},{type:"wf_withdraw_start",label:"\u64A4\u56DE"}]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.type)return $D.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Ze.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},qD={};var w6=dn(y6,b6,_6,!1,x6,"3e4dbd02",null,null);function x6(e){for(let n in qD)this[n]=qD[n]}const E6=function(){return w6.exports}();var k6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[i("staffTree",{ref:"staffTree",attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",disable:e.isOperLoading},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),e._t("file"),e._t("form")],2)},C6=[];const PZ="";var eB=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{eB=e});const S6={components:{staffTree:va},props:{param:Object,isOperLoading:!1},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return eB.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let i=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Ze.tis.createCCTask({processInstId:this.param.processInstId,participant:i,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==bt.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},tB={};var D6=dn(S6,k6,C6,!1,B6,"073b792a",null,null);function B6(e){for(let n in tB)this[n]=tB[n]}const nB=function(){return D6.exports}(),iB=Object.freeze(Object.defineProperty({__proto__:null,counterSign:QD,delegateTask:VD,complete:by,cancel:KD,roolback:ZD,withdrawTask:E6,ccTask:nB},Symbol.toStringTag,{value:"Module"})),rB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAACSCAYAAAA93+RpAAAABHNCSVQICAgIfAhkiAAACiVJREFUeF7tnVtsFFUYgH/aqAWrLbTloiiKFxQS0AAJ8QHx0Xh5MBo1+mCMxkt88QF5EgM+GUx80ChGYzAxGqPxwRuPKibGG94SSCSG0IjIzSLSy7alxXO6DJ1uZ/f8s3tmdrvnm4QEyn/OzHzn//qfOTOzO+uM2YQNAhDwQmAWQnnhSCcQmCCAUCQCBDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUBVyYGCgIIXhYZkJn63b+9dhGTefAbz0soXSNa+DzK4TAYQqA/7Ev6dkbGy8TsOSfrcHjFCDg4WJhgt65smyqy5L3wktaiaAUAkIB0xiDg0N1ww3zw7iQiFVnuSn7guhEtj39f1npk8z6zsUSoVCqvpIhVAJ3I//c7I+o1HDXpOEQqoagFbZFKGaXCh7evO758p1V19eZYrQLA0BhApAKKRKo0RtsQgViFBIVZso2tYIFZBQSKXVovo4hApMKKSqXhZNS4QKUCik0qhRXQxCBSoUUlUnjKsVQgUsFFK59Ej//wgVuFBIlV6aSi0QCqEmCHDz149YCIVQ5wggVe1SIRRCTSGAVLVJhVAINY0AUlUvFUIhVGL2IFV1UiEUQpXNHKRKLxVCIVTFrEGqdFIhFEI5MwapnIjOBSAUQqmyBalUmAShEEqXKdz8VXFCKIRSJUoURKWqjAuhECqVUDYYqcojQ6gmEarvxH9y+HhfajmqbbD8miXS3dVZbfOmbYdQTSLU2Pi47O89JKOnT+eSrLPb2mTtDcty2ddM2glCNYlQ9jRGRk/LoaPHz30kc9aJuH7dqqx3MeP6R6gmEio6laHhERk2f7KuVtebaR/bVAII1YRC5ZXk3V18y0cpa4RCqKr9Q6jp6BAKoRCqagIIpUI3E78sQHVinoOoUAilSimEUmEy96G4huIaSpErCKWAZEIQigqlyhSEUmFCqARMLEqwKKGzJyGKCkWFUiUPFUqFiQpFhdIlCkLpOFGhqFCqTEEoFSYqFBXKnSgj+36Tf0/2S8vSFe7ggCPG9++Rzo52Of/alQFToEJVHHwr09+P3yptz74prStvIlEqEBj77RspPP+ILNq+E6linFjlOwsjkmm8/6TMeeEDhHL8OrFCDW66R1raO5AKoaZmS1wm+z8I5S7OkVA2EqkmeQVfoUplQii3TDYiLhRSIdQEgSSZEKo6oZCqyC3YClXYvUuObLxf7DVT6caUzy1VaYWKWtjp34Jt70nb6vXuTpowIkih+j99R45tfbzscCKUO9PLCRW17Nm8Xdpvf9DdUZNFBCeUSyamfLoMdwllewlRquCEKnz0pjNjCnMvkVmz251xIQecGeqXthOHnAja7nrEGdNMAcEJJffe2Ezj1/jn8v7PjX+MHo8QoTzCpKsEAgjV5GlBhcp3gBEqX9657w2h8kWOUPnyzn1vWQl1j1mGv/uxyqdzzFzEH/hdZOe7Int+nBq74U6Rm+8o3/6oaRu1//HL8nGufpJafvWJyJcfZzMUCJUN14bptZ5CxSHYBH7tucmfaISMoq1Yb78o8sMX07Gm6Sdq/eHrIh9sz2aIECobrg3Ta6MIZYHEE7kaEayQpZWlmn4Qylt6ssrnC2U8kcslaM8lIk9uFVm+urjXgVMiD599RCfefu9ukS0l928uvEhk7S1mWmmmlj2LJo96033FaWS0xfvp3Wcq2Tb3GUbTSXdk+ggqVHpmM6pFHhWq0m98K8ZbuyaRbX20eD3lEipqYdtbKddsKP5kr2m7xfSRJFSSmHkPFkLlTTzn/dVbKHu68SRLK5RtbyvdK58lVymtmHlhR6i8SNdpP/UWasUakc1vTJ78U7cVV+/SimCrVLQqWO5ajAqVe5JxDeULeVwIu1DwVcky9BXm6zOXmD/2OshO2yama7FrpbRC2eXxJ7YU+7HL6NueLv493o+9RuuNXV+VO1eWzX1lQYDvQ+VRoTTDM9hfXHiIFhTSChWvdOXE1ByHjWGVT0vKGUeFciJSBqRZrj72t8iLpqKUW53TTNUQSjkw+YYhlC/ecaGsMKVTvmg/dlWu9CmJ0qmaRijNlI9lc1+jq+4HodSoHIFpp2yl3aVtz6KEr5Hz2g9C+cKZVohahLKLGi+bZfNocSN+c7fW4/DFI+qHZXPfRBusvzwWJTRTtlqEsqt7dspnNzute+beyd4Qqq4JR4Xyhb/WRNa0t09H3PaAeXTJ3MuKtujGcPRvTT++zlnTDxVKQ2kGx8yECqXFa+8fvbp5ajRCaellEkeF8oW11kROs+xuj/lz805V0oOvtR6HLx5cQ/km2aD9ZVWh7H2haCpmHyVK+8KeRih7M9i+A2WX5JOW3i3yiRcMz15f2ftcmqfNsxwqpnxZ0m2AvrMSqgFOreEOwX4U246vG+6wsjyg8KZ89pm3Sq+QZ0k7tL7tIsrGl4I66/CEslMluzLGlj0B+1S9nQoHtIUnlB1ce32zw7zJaj79lC0DAnaq99DGyXtlGeyiUbsMUyg7Gnbh4HtzgT9oXnEo2QYHC406Xg11XHPmtE0/njnmKQ67MBI9xdFQR5z9wYQrVAW2fAu8LvG6uzp0gQFFIVTCYCOUzgCEms4JoRBKZ09CFEIhlCp5qFAqTIJQCKXKFIRSYUKoBExM+Zjy6exhyqfihFAIpUqUpCCmfEz5VMnDlE+FiSkfUz5doiCUjhMVigqlyhSEcmMaP3NG5nd3ugMDi+AaKmHA//zrqMxuuyCwVEh3uoXCsCy+dH66RgFEI1TCIP+y5w9ZvLAngOGv/hQPHDwsa1aZj5Zmm0IAoRISYte3v0r3vE7pmnuxtLa0kDIxAnaqd+RYn5w4eUrWr1sFmxICCFVGKPvj1tZW6exolwvOO4/EMQRGRkeNSP0yNjY2wQOhWJRQifHdT3tleGRUFRtq0IXm1Y3VK5nylY4/FSrBiF5zfdB78EiorqjOe8niBbJk8UJVbEhBCJUw2qfNlOZXszAxwIuGiS7Ya8sVy64MyRP1uSJUBVS2Uh0+2sf07ywjO83rntdBZaqQMwil/t1DIATcBBDKzYgICKgJIJQaFYEQcBNAKDcjIiCgJoBQalQEQsBNAKHcjIiAgJoAQqlREQgBNwGEcjMiAgJqAgilRkUgBNwEEMrNiAgIqAkglBoVgRBwE0AoNyMiIKAmgFBqVARCwE0AodyMiICAmgBCqVERCAE3AYRyMyICAmoCCKVGRSAE3AQQys2ICAioCSCUGhWBEHATQCg3IyIgoCaAUGpUBELATQCh3IyIgICaAEKpUREIATcBhHIzIgICagL/A5aq8pai8ohoAAAAAElFTkSuQmCC",aB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABKCAYAAADjcueTAAAFw0lEQVR4Xu2c3XHbRhDH/wclQ2UITZwKLFcQqQKLFViqIHQFpl5i8snKE6m8WK4gVAWmKzBVgckKolQQcgjGTmxzMwsQEL5xd/ggiDEeReAOv9u9xe7d/yRQxPW7dYIN3gI4LqI5xTamEBjjpXmr8pxQuTn2Xhua3gPiUe628jUwQ6vdwaVYyDSTD3xodSHwh0xHFd0zQ988lelLH7x+0A4v4TkG5jgLXg88C5qog8HRNKvz3L87sYUhf/a1JWV1dfAsaHvUKwLnvhz4D4FB7JuZXJk3BBocWS8A3EQtRUtA/Oj9vUpw7nRkUXngI4uDWDcCzXMK1IUQT5sHngbNgWS4mjYPPBaaliDR86Jn48CToA1xhl/NmefajQF/TY/wL89pcR6c07REGJpvaAS4Db1+D+BECroR4DrQew+eCI05DHQDczr8TRut/g4UKXvzHU+DbrXPUiueuExOInPKna76G9BKYNJraY7caWUel6LBWEB0h8HRWaFgWY1pgY8sznNDgSyrp5Tf49ycPerzJ38hodbB94fzVK/TBA/muWqvFAr8MSXh8OMxxJcP+RYqaAH67hSDH+5jX29n4IS/YIgeXrYnkRcbrq4gxKs842k/S/QbBkdX5YGzq6pcB2KRGvFlyliZ/tIWGAqxeBkR+drqYUOhLFCG1rtnmmht7bJUY7SUXrmKmzUYhE4RXwWLUh/fwLfDJTFdv1nccy2J0VJywypuLt3VORkxvj4FRHVbRcTJy8G7xOSl9KheSAama35awBCdxHyhVIsXlYFps5eduSXN8eHqDELwysxuLiEuYlPi0l2dO7hen4M2XRCq2xkVWIDEJHU/LOjqc/TNzGqzaZ+zObIWTrb+2iRwaWhmbwo4iwLSl8hCkakZ4LzCI6mEcPmbAa7xnVEDtzO3zS8a/eR7ZGPcpmZuGq3Lg8dtwGt0qP1IwWv18uB1ztw0RlMFfLeZ284szqPKaStQ7WaBY01ec4sXE3FE/2/9LFAxckVn4C5tEVTe4hruVOojTsx5nWGIewhcxake9xP8ev0KRPFr7PGjHVE97h94WKXBe3UQYxy2J14S4yyYnGODHgQeb8fiHnTQcT+L+wUegKYlhNFNLFVdyw+tMQTc3MOz/P6Ah6HjJClJQWVksTaPNXreVpQaOEd1w3jQs5UTveYRK2ZB25H9nxcg4i8OB7RpJKB5Oh1nA1IevJoVmGhpmQWdLBufotW+eJj3vhUkgUsV8GJ2PZO9pEhot5c36Js9r8uhxd7wGKB38uDl5ur5oQm3GJhdOKvBM09b619DfJCl3cuD25nbx2PgS1TPmneuH5o3gXpa1b1daPc9/MGs1f7J5+6e16qB5wWUeT4vtCNkYnmLs+nht/hoNQHEM/5zvcCLgX4QJ0Y94U97QIju6gNeNDRoiZZ5HMjmxFcG5+tNPcDLgA4nOKPVW0+bS9TZPXgV0H4dzlaHt1vwqqHZyQ2ccp2+O/CAGipGDh7OyMKBKiJDjWkjrLjyKad2B27nBVw50XlEA18ydD0+Z5wU+RWLFUDXA9yf1FQEXT/wkeUkGHbdvM293YHJOafDSWN0jm+jnkx2Weg9rH4ke/EwCu125K2mqAWyuPdkcNak+yTVNEHLfK66CZd7EDz5eCjjCjfMBYiBcfAUVOhUs8TBWgH/SOd+e9tc6UKdpD5cVUPYxbPeKSoSDtbgCc8L8Nz5tJ75ViOzupL4XQPeA08R+YR7jn6nnZpc4nIO1TrRdBo4GCvxcPotivCqFs8B7UT1YNS8sg/I+k8G5xoABXivVqYFWuYTpQNAqtMjAO4HdFZailEvZgn53X5tRRXxP9jgODFB/+gidsxzWtptU+38eC7rSzwcPKo5hYFLL3q7ogT/1pGGpesJ7iQpvCsaOrFEi5jDPFLRO2m462VxfkvnK3Pj2/YJvnvawR8Jp6qnxcNxxtn4OwGI480UhjHL3CuThP8fruFfjjCGtMkAAAAASUVORK5CYII=";var I6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return i("li",{key:s,staticClass:"file-item"},[e.isImage(a)?i("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[i("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:rB,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:aB,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:rB,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:aB,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[i("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?i("div",{staticClass:"file_name",staticStyle:{"text-align":"center",height:"23px","line-height":"23px"}},[e._v(" "+e._s(e.fullFileList[s].fileSize>1024?(e.fullFileList[s].fileSize/(1024*1024)).toFixed(2):(e.fullFileList[s].fileSize/1024).toFixed(2))+" "+e._s(e.fullFileList[s].fileSize>1024?"M":"KB")+" ")]):e._e(),i("div",{staticClass:"file_name",staticStyle:{height:"25px","line-height":"25px"}},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]},{filename:a})],2):e._e()])}),e.showPlus?i("li",{staticClass:"file-item"},[i("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[i("el-icon",{attrs:{color:"#1389ff",size:"35"}},[i("Plus")],1)],1)]):e._e(),e.showEmpty?i("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?i("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?i("section",{staticClass:"value-wrap"}):e._e(),i("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},O6=[];const RZ="",yy={upload:e=>new Promise((n,i)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},T6={name:"JyrFileUpload",inject:{elForm:{default:""}},props:{acceptType:{type:String,default:""},showFileName:{type:Boolean,default:!0},value:{type:[String,Array],default:""},locked:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},fileMaxSize:{type:Number,default:200},hasFilename:{type:Boolean,default:!1},hasContainId:{type:Boolean,default:!1},fullFileObject:{type:Boolean,default:!1},isText:{type:Boolean,default:!1},viewCallBack:{type:Function},remark:{type:String,default:""},showFile:{type:Boolean,default:!1},limit:[String,Number]},data(){return{index:void 0,fileList:[],fullFileList:[],loading:!1}},computed:{previewSrcList(){return this.fileList.filter(e=>this.isImage(e))},showPlus(){return!this.isDisabled&&(this.multiple||this.fileList.length<1)},showEmpty(){return this.isDisabled&&this.fileList.length<1},isDisabled(){return this.locked||this.elForm&&this.elForm.disabled}},watch:{value(){this.composeFileList()}},created(){this.composeFileList()},methods:{async selectFile(){this.$refs.file.click()},onUploadChange(e){const n=e.target.files;if(this.limit!=-1&&n.length+this.fileList.length>this.limit)return this.$message.error("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+this.limit+"\u4E2A\u6587\u4EF6"),!1;n.length;let i=this.fullFileList.map(a=>a.originFileName);for(let a=0;a<n.length;a++){const s=n[a];if(s.size==0)return this.$message.error("\u6587\u4EF6\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"),!1;const c=1024*1024*this.fileMaxSize;if(s.size>c){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${this.fileMaxSize}M`);return}if(!s){this.$refs.file.value=null;return}const f=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(f[f.length-1])<0){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u7C7B\u578B\u9650\u5236\u4E3A${this.acceptType}`);return}let m=0,g=s.name;for(;m<i.length&&i.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),C=s.name.substring(y);g=O+"("+m+")"+C}else g=s.name+"("+m+")"}i.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n);const a=await yy.upload(i);if(this.loading=!1,!a.success)return;if(this.$refs.file.value=null,!this.multiple){if(this.fullFileObject)this.$emit("input",[a.data]),this.$emit("change",[a.data]);else{const c=this.composeFilename(a.data);this.$emit("input",c),this.$emit("change",c)}return}this.index>=0?(this.fileList.splice(this.index,1,this.composeFilename(a.data)),this.fullFileList.splice(this.index,1,a.data)):(this.fileList.push(this.composeFilename(a.data)),this.fullFileList.push(a.data)),this.fileList;const s=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(s)},composeFileList(){if(this.fullFileObject){this.fileList=this.value&&this.value.length?this.value.map(e=>`${e.url}&${e.name}`):[],this.fullFileList=this.value&&this.value.length?this.value.map(e=>e):[];return}this.value?this.fileList=this.value.split(",").filter(e=>e):this.fileList=[]},composeFilename(e){return this.hasFilename?`${e.url}?filename=${e.fileName}`:this.hasContainId?e.id:`${e.url}&${e.name}`},isImage(e){const n=e.split("."),i=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(i)},isDw(e){const n=e.split("."),i=n[n.length-1];return["dwg","dwt"].includes(i)},isPdf(e){const n=e.split("."),i=n[n.length-1];return["pdf"].includes(i)},onDelete(e){if(this.multiple){this.fileList.splice(e,1),this.fullFileList.splice(e,1);const n=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(n)}else this.$emit("input",""),this.$emit("change","")},onPreview(e){if(this.viewCallBack){this.viewCallBack(e,this.fileList);return}let n=this.fileList[e].split("."),i=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(f){return f==i}),c=null;if(this.fileList.forEach((f,m)=>{this.isImage(f)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let f=`${this.fileList[e]}`,m=1;f.indexOf("https")!==-1||f.indexOf("http")!==-1?(m=f.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${f}`)):f.indexOf("http")===-1&&yy.list([f]).then(g=>{m=g.data[0].url.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${g.data[0].url}`)})}},onDownload(e){const n=this.fileList[e];n.indexOf("https")!==-1||n.indexOf("http")!==-1?this.downloadFile(n,n.slice(n.lastIndexOf("&")+1)):yy.list([n]).then(i=>{this.downloadFile(i.data[0].url,i.data[0].url.slice(i.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)}}},oB={};var N6=dn(T6,I6,O6,!1,M6,"628e6ebd",null,null);function M6(e){for(let n in oB)this[n]=oB[n]}const vh=function(){return N6.exports}();vh.install=e=>{e.component(vh.name,vh)};const sB=Symbol(),bh="el",F6="is-",ps=(e,n,i,a,s)=>{let c=`${e}-${n}`;return i&&(c+=`-${i}`),a&&(c+=`__${a}`),s&&(c+=`--${s}`),c},lB=Symbol("namespaceContextKey"),cB=e=>{const n=e||(w.getCurrentInstance()?w.inject(lB,w.ref(bh)):w.ref(bh));return w.computed(()=>w.unref(n)||bh)},Wr=(e,n)=>{const i=cB(n);return{namespace:i,b:(P="")=>ps(i.value,e,P,"",""),e:P=>P?ps(i.value,e,"",P,""):"",m:P=>P?ps(i.value,e,"","",P):"",be:(P,M)=>P&&M?ps(i.value,e,P,M,""):"",em:(P,M)=>P&&M?ps(i.value,e,"",P,M):"",bm:(P,M)=>P&&M?ps(i.value,e,P,"",M):"",bem:(P,M,T)=>P&&M&&T?ps(i.value,e,P,M,T):"",is:(P,...M)=>{const T=M.length>=1?M[0]:!0;return P&&T?`${F6}${P}`:""},cssVar:P=>{const M={};for(const T in P)P[T]&&(M[`--${i.value}-${T}`]=P[T]);return M},cssVarName:P=>`--${i.value}-${P}`,cssVarBlock:P=>{const M={};for(const T in P)P[T]&&(M[`--${i.value}-${e}-${T}`]=P[T]);return M},cssVarBlockName:P=>`--${i.value}-${e}-${P}`}};/**
20
+ A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`),e)),P){var F=T;T=function(){return zl(F())}}var v=function(Z,ie){if(!(!P&&M&&Z.every(function(oe,ge){return RR(oe,ie[ge])})))return y(),i(Z,ie,g)},x=O(v);if(a.immediate){var I=x,z=function(Z,ie){return z=I,v(Z,wr(Z)?[]:ie)};x=function(Z,ie){return z(Z,ie)}}var L=e.$watch(T,x,{immediate:a.immediate,deep:P,sync:f}),H=e._watchers[e._watchers.length-1];return Aa(H.value)&&((s=H.value.__ob__)===null||s===void 0?void 0:s.dep)&&P&&H.value.__ob__.dep.addSub({update:function(){H.run()}}),CD(H,y),function(){L()}}function u5(e,n){var i=s5(n),a=kD();return SD(a,e,null,i)}function DD(e,n,i){var a=null;Yr(n)?a=n:(process.env.NODE_ENV!=="production"&&qt("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),i=n,a=null);var s=o5(i),c=kD();return SD(c,e,a,s)}function zl(e,n){if(n===void 0&&(n=new Set),!us(e)||n.has(e)||HR.has(e))return e;if(n.add(e),un(e))zl(e.value,n);else if(wr(e))for(var i=0;i<e.length;i++)zl(e[i],n);else if(TR(e)||OR(e))e.forEach(function(s){zl(s,n)});else if(Ur(e))for(var a in e)zl(e[a],n);return e}process.env.NODE_ENV!=="production"&&Object.freeze({});var d5=function(){for(var n,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return(n=ls())===null||n===void 0?void 0:n.nextTick.apply(this,i)};function f5(e,n,i){var a=e.__composition_api_state__=e.__composition_api_state__||{};a[n]=i}function p5(e,n){return(e.__composition_api_state__||{})[n]}var $a={set:f5,get:p5};function h5(e,n,i){var a=e.$options.props;!(n in e)&&!(a&&Vr(a,n))?(un(i)?Vn(e,n,{get:function(){return i.value},set:function(s){i.value=s}}):Vn(e,n,{get:function(){return Aa(i)&&i.__ob__.dep.depend(),i},set:function(s){i=s}}),process.env.NODE_ENV!=="production"&&e.$nextTick(function(){Object.keys(e._data).indexOf(n)===-1&&(un(i)?Vn(e._data,n,{get:function(){return i.value},set:function(s){i.value=s}}):Vn(e._data,n,{get:function(){return i},set:function(s){i=s}}))})):process.env.NODE_ENV!=="production"&&(a&&Vr(a,n)?qt('The setup binding property "'.concat(n,'" is already declared as a prop.'),e):qt('The setup binding property "'.concat(n,'" is already declared.'),e))}function m5(e){var n=$a.get(e,"rawBindings")||{};if(!(!n||!Object.keys(n).length)){for(var i=e.$refs,a=$a.get(e,"refs")||[],s=0;s<a.length;s++){var c=a[s],f=n[c];!i[c]&&f&&un(f)&&(f.value=null)}for(var m=Object.keys(i),g=[],s=0;s<m.length;s++){var c=m[s],f=n[c];i[c]&&f&&un(f)&&(f.value=i[c],g.push(c))}$a.set(e,"refs",g)}}function BD(e){for(var n=[e._vnode];n.length;){var i=n.pop();if(i&&(i.context&&m5(i.context),i.children))for(var a=0;a<i.children.length;++a)n.push(i.children[a])}}function ID(e,n){var i,a;if(!!e){var s=$a.get(e,"attrBindings");if(!(!s&&!n)){if(!s){var c=xD({});s={ctx:n,data:c},$a.set(e,"attrBindings",s),Vn(n,"attrs",{get:function(){return s==null?void 0:s.data},set:function(){process.env.NODE_ENV!=="production"&&qt("Cannot assign to '$attrs' because it is a read-only property",e)}})}var f=e.$attrs,m=function(C){Vr(s.data,C)||Vn(s.data,C,{get:function(){return e.$attrs[C]}})};try{for(var g=ly(Object.keys(f)),y=g.next();!y.done;y=g.next()){var O=y.value;m(O)}}catch(C){i={error:C}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}}}}function OD(e,n){var i=e.$options._parentVnode;if(!!i){for(var a=$a.get(e,"slots")||[],s=zR(i.data.scopedSlots,e.$slots),c=0;c<a.length;c++){var f=a[c];s[f]||delete n[f]}for(var m=Object.keys(s),c=0;c<m.length;c++){var f=m[c];n[f]||(n[f]=QR(e,f))}$a.set(e,"slots",m)}}function gy(e,n,i){var a=cs();uh(e);try{return n(e)}catch(s){if(i)i(s);else throw s}finally{uh(a)}}function g5(e){e.mixin({beforeCreate:n,mounted:function(){BD(this)},beforeUpdate:function(){ID(this)},updated:function(){BD(this)}});function n(){var f=this,m=f.$options,g=m.setup,y=m.render;if(y&&(m.render=function(){for(var C=this,N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];return gy(dh(f),function(){return y.apply(C,N)})}),!!g){if(!Yr(g)){process.env.NODE_ENV!=="production"&&qt('The "setup" option should be a function that returns a object in component definitions.',f);return}var O=m.data;m.data=function(){return i(f,f.$props),Yr(O)?O.call(f,f):O||{}}}}function i(f,m){m===void 0&&(m={});var g=f.$options.setup,y=c(f),O=dh(f);O.setupContext=y,mD(m,"__ob__",KR()),OD(f,y.slots);var C;if(gy(O,function(){C=g(m,y)}),!!C){if(Yr(C)){var N=C;f.$options.render=function(){return OD(f,y.slots),gy(O,function(){return N()})};return}else if(us(C)){Aa(C)&&(C=YR(C)),$a.set(f,"rawBindings",C);var _=C;Object.keys(_).forEach(function(E){var P=_[E];if(!un(P))if(Aa(P))wr(P)&&(P=ph(P));else if(Yr(P)){var M=P;P=P.bind(f),Object.keys(M).forEach(function(T){P[T]=M[T]})}else us(P)?s(P)&&a(P):P=ph(P);h5(f,E,P)});return}process.env.NODE_ENV!=="production"&&fh(!1,'"setup" must return a "Object" or a "Function", got "'.concat(Object.prototype.toString.call(C).slice(8,-1),'"'))}}function a(f,m){if(m===void 0&&(m=new Set),!m.has(f)&&!(!Ur(f)||un(f)||Aa(f)||ds(f))){var g=ls(),y=g.util.defineReactive;Object.keys(f).forEach(function(O){var C=f[O];y(f,O,C),C&&(m.add(C),a(C,m))})}}function s(f,m){return m===void 0&&(m=new Map),m.has(f)?m.get(f):(m.set(f,!1),wr(f)&&Aa(f)?(m.set(f,!0),!0):!Ur(f)||ds(f)||un(f)?!1:Object.keys(f).some(function(g){return s(f[g],m)}))}function c(f){var m={slots:{}},g=["root","parent","refs","listeners","isServer","ssrContext"],y=["emit"];return g.forEach(function(O){var C="$".concat(O);Vn(m,O,{get:function(){return f[C]},set:function(){process.env.NODE_ENV!=="production"&&qt("Cannot assign to '".concat(O,"' because it is a read-only property"),f)}})}),ID(f,m),y.forEach(function(O){var C="$".concat(O);Vn(m,O,{get:function(){return function(){for(var N=[],_=0;_<arguments.length;_++)N[_]=arguments[_];var E=f[C];E.apply(f,N)}}})}),process.env.NODE_ENV==="test"&&(m._vm=f),m}}function TD(e,n){if(!e)return n;if(!n)return e;for(var i,a,s,c=hD?Reflect.ownKeys(e):Object.keys(e),f=0;f<c.length;f++)i=c[f],i!=="__ob__"&&(a=n[i],s=e[i],Vr(n,i)?a!==s&&Ur(a)&&!un(a)&&Ur(s)&&!un(s)&&TD(s,a):n[i]=s);return n}function A5(e){if(kR(e)){process.env.NODE_ENV!=="production"&&qt("[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.");return}process.env.NODE_ENV!=="production"&&(e.version?(e.version[0]!=="2"||e.version[1]!==".")&&qt("[vue-composition-api] only works with Vue 2, v".concat(e.version," found.")):qt("[vue-composition-api] no Vue version found")),e.config.optionMergeStrategies.setup=function(n,i){return function(s,c){return TD(Yr(n)?n(s,c)||{}:void 0,Yr(i)?i(s,c)||{}:void 0)}},CR(e),g5(e)}var ND={install:function(e){return A5(e)}};typeof window<"u"&&window.Vue&&window.Vue.use(ND);function v5(e){e=e||Gt,e&&!e.__composition_api_installed__&&e.use(ND)}v5(Gt),Gt.version;const xZ="";var b5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?i("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),!e.noPostOption&&!e.onePostUser?i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?i("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),i("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),i("departPerson",e._b({attrs:{visible:e.visible,checkedArray:e.checkedArray,positionArray:e.positionArray},on:{"update:visible":function(a){e.visible=a},callback:e.handleCallback},model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},"departPerson",e.entity,!1))],1)},_5=[];const EZ="";function dn(e,n,i,a,s,c,f,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=i,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(f?(y=function(N){N=N||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!N&&typeof __VUE_SSR_CONTEXT__<"u"&&(N=__VUE_SSR_CONTEXT__),s&&s.call(this,N),N&&N._registeredComponents&&N._registeredComponents.add(f)},g._ssrRegister=y):s&&(y=m?function(){s.call(this,(g.functional?this.parent:this).$root.$options.shadowRoot)}:s),y)if(g.functional){g._injectStyles=y;var O=g.render;g.render=function(_,E){return y.call(E),O(_,E)}}else{var C=g.beforeCreate;g.beforeCreate=C?[].concat(C,y):[y]}return{exports:e,options:g}}var MD=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{MD=e});const y5={components:{departPerson:KM.departPerson},unmounted(){window.clearInterval(this.searchInterval)},props:{modelValue:{type:Object},defaultOption:{type:Array},personType:"",personEntity:{type:Object,default:()=>{}},disable:!1,multiple:{default:!1,type:Boolean},max:{default:1,type:Number},items:{default:void 0,type:Array},processNodeObj:{default:void 0,request:!1},isAlis:{type:Boolean,default:!1}},inject:{isAlisInject:{value:"isAlisInject",default:null}},data(){return{visible:!1,treeOptions:null,selectModel:this.multiple?[]:void 0,treeSearchOptions:null,noPostOption:!1,onePostUser:!1,positionArray:[],searchTime:-1,searchParam:"",userList:[],checkedArray:[],entity:{source:"1",type:this.personType||"0",request:Ze.getAjaxObj(),orgType:[],codeType:[3],multiple:!0,maxMultiple:this.processNodeObj&&this.processNodeObj.loopCardinality==-1?1e3:1,deptCode:this.processNodeObj?this.getDeptCode(1):"",deptCodeArray:this.processNodeObj?this.getDeptCode(0)||[]:[],subjectName:this.processNodeObj?this.getSubjectName():""},searchInterval:window.setInterval(this.searchIntervalFunc,100)}},model:{prop:"modelValue",event:"update:modelValue"},mounted(){this.personEntity!=""&&(this.entity={...this.entity,...this.personEntity}),this.processNodeObj&&this.processNodeObj.participantList&&this.processNodeObj.participantList.length>0&&(this.processNodeObj.participantList.map(e=>{e.id=e.id}),this.userList=this.processNodeObj.participantList,this.checkedArray=this.processNodeObj.participantList.map(e=>({type:3,id:e.id,name:e.name||e.realName,subjectId:e.subjectId})),this.$emit("update:modelValue",this.userList.map(e=>e.id)),this.$emit("select",this.userList)),this.gePostUsers()},methods:{getSubjectName(){let e="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"&&(e=this.processNodeObj.routeTxt.companyIds[0].name),e},gePostUsers(){if(this.processNodeObj&&this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let{routeTxt:e}=this.processNodeObj,n={taskDefId:this.processNodeObj.id,postIds:[]};e.postList.map(i=>{n.postIds.push(i.postId)}),e.postList&&e.postList.length>0&&Ze.common.getTaskAuditor(this.personEntity._businessDeptId?this.personEntity._businessDeptId:this.processNodeObj.taskNode?this.processNodeObj.taskNode[0].vars._businessDeptId:"",[n]).then(i=>{let a=[],s=[],c=!1;if(i.data.map(f=>{f.posts.map(m=>{s.push(...m.users),m.users.length==1?a.push(...m.users):c=!0})}),a.length>this.entity.maxMultiple&&this.entity.maxMultiple!=0&&(c=!0),c&&(a=[]),s.length==0){this.noPostOption=!0;return}a.length>0&&(this.onePostUser=!0,this.handleCallback(a)),this.entity.orgType=[5],this.entity.codeType=[8],i.data[0].posts.map(f=>{this.positionArray.push({...f,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:f.users.map(m=>m.id)})})})}},getDeptCode(e){let n="";return this.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"&&(e=="1"&&this.processNodeObj.routeTxt.departmentIds.length==1&&(n=this.processNodeObj.routeTxt.departmentIds[0].rangeId),e=="0"&&this.processNodeObj.routeTxt.departmentIds.length>1&&(n=this.processNodeObj.routeTxt.departmentIds.map(i=>i.rangeId))),n},handleCallback(e){this.userList=e,this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},handleClose(e){this.userList.splice(e,1),this.checkedArray=this.userList.map(n=>({type:3,id:n.id,name:n.name||n.realName,subjectId:n.subjectId})),this.$emit("update:modelValue",this.userList.map(n=>n.id)),this.$emit("select",this.userList)},searchIntervalFunc(){this.searchTime>0&&(this.searchTime-=100),this.searchTime==0&&(this.searchTime=-1,this.searchParam&&!(this.items&&this.items.length>0)?Ze.org.list(this.searchParam).then(async e=>{if(e.code==bt.success){let n=e.data.map(i=>(i.children=null,i.label=i.name,i.id=i.id,i.deptName=i.deptName,i.alisName=i.alisName,i));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(i=>{i.isBranch=!1}),await this.$nextTick(),this.$refs.deptTree.handleLocalSearch()}}):this.treeSearchOptions=null)},searchChange(e){this.searchParam=e,this.searchTime=500,this.deptTree},onSelect(e,n){this.$emit("update:modelValue",this.selectModel),this.$emit("select",e)},onInput(e,n){this.max>0&&this.multiple&&e.length>this.max&&e.length>this.max?(this.$refs.deptTree.clear(),this.$refs.deptTree.forest.selectedNodeIds=this.selectModel,this.$refs.deptTree.select(this.selectModel),this.$refs.deptTree.forest.selectedNodeIds,MD.warning(`\u6700\u591A\u9009\u62E9 ${this.max} \u4EBA`)):(this.selectModel=e,this.$emit("update:modelValue",this.selectModel))},normalizer(e){if(e.children&&!e.children.length&&delete e.children,e.leaf){let n=`${e.deptName} - ${e.label}(${e.phone})`;return(this.isAlis||this.isAlisInject)&&e.alisName&&(n+="participantList -- "+e.alisName),this.$refs.deptTree.trigger.searchQuery&&(n+=`(${this.$refs.deptTree.trigger.searchQuery})`),{id:e.id,label:n,leaf:e.leaf,phone:e.phone,deptName:e.deptName,alisName:e.alisName}}return{id:e.id,label:e.label,leaf:e.leaf,phone:e.phone,children:e.children,deptName:e.deptName,alisName:e.alisName}},async loadTreeOptions({action:e,parentNode:n,callback:i,instanceId:a}){if(e===LOAD_ROOT_OPTIONS)if(this.items){let s=this.items.map(c=>(c.children=null,c.label=c.name,c.id=c.id,c));this.$set(this,"treeOptions",s)}else Ze.org.list().then(s=>{if(s.code==bt.success){let c=s.data.map(f=>(f.children=null,f.label=f.name,f.id=f.id,f));this.defaultOption&&(c=[...c,...this.defaultOption]),this.$set(this,"treeOptions",c)}});else if(e===LOAD_CHILDREN_OPTIONS){let s=n.id,c="";if(n.orgType==Yu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Yu.\u7FA4\u7EC4){Ze.org.findTeamMember("",s).then(f=>{let m=f.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,i()});return}Ze.org.list("",s,c).then(f=>{if(f.code==bt.success){let m=f.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,i()}})}}}},FD={};var w5=dn(y5,b5,_5,!1,x5,"0f576c64",null,null);function x5(e){for(let n in FD)this[n]=FD[n]}const va=function(){return w5.exports}();var Hl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function E5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function PD(e){var n=e.default;if(typeof n=="function"){var i=function(){return n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),i}var RD={exports:{}};(function(e,n){(function(i,a){e.exports=a()})(Hl,function(){var i=1e3,a=6e4,s=36e5,c="millisecond",f="second",m="minute",g="hour",y="day",O="week",C="month",N="quarter",_="year",E="date",P="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Ce){var Se=["th","st","nd","rd"],me=Ce%100;return"["+Ce+(Se[(me-20)%10]||Se[me]||Se[0])+"]"}},v=function(Ce,Se,me){var G=String(Ce);return!G||G.length>=Se?Ce:""+Array(Se+1-G.length).join(me)+Ce},x={s:v,z:function(Ce){var Se=-Ce.utcOffset(),me=Math.abs(Se),G=Math.floor(me/60),J=me%60;return(Se<=0?"+":"-")+v(G,2,"0")+":"+v(J,2,"0")},m:function Ce(Se,me){if(Se.date()<me.date())return-Ce(me,Se);var G=12*(me.year()-Se.year())+(me.month()-Se.month()),J=Se.clone().add(G,C),re=me-J<0,Ae=Se.clone().add(G+(re?-1:1),C);return+(-(G+(me-J)/(re?J-Ae:Ae-J))||0)},a:function(Ce){return Ce<0?Math.ceil(Ce)||0:Math.floor(Ce)},p:function(Ce){return{M:C,y:_,w:O,d:y,D:E,h:g,m,s:f,ms:c,Q:N}[Ce]||String(Ce||"").toLowerCase().replace(/s$/,"")},u:function(Ce){return Ce===void 0}},I="en",z={};z[I]=F;var L="$isDayjsObject",H=function(Ce){return Ce instanceof ge||!(!Ce||!Ce[L])},Z=function Ce(Se,me,G){var J;if(!Se)return I;if(typeof Se=="string"){var re=Se.toLowerCase();z[re]&&(J=re),me&&(z[re]=me,J=re);var Ae=Se.split("-");if(!J&&Ae.length>1)return Ce(Ae[0])}else{var Oe=Se.name;z[Oe]=Se,J=Oe}return!G&&J&&(I=J),J||!G&&I},ie=function(Ce,Se){if(H(Ce))return Ce.clone();var me=typeof Se=="object"?Se:{};return me.date=Ce,me.args=arguments,new ge(me)},oe=x;oe.l=Z,oe.i=H,oe.w=function(Ce,Se){return ie(Ce,{locale:Se.$L,utc:Se.$u,x:Se.$x,$offset:Se.$offset})};var ge=function(){function Ce(me){this.$L=Z(me.locale,null,!0),this.parse(me),this.$x=this.$x||me.x||{},this[L]=!0}var Se=Ce.prototype;return Se.parse=function(me){this.$d=function(G){var J=G.date,re=G.utc;if(J===null)return new Date(NaN);if(oe.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var Ae=J.match(M);if(Ae){var Oe=Ae[2]-1||0,ue=(Ae[7]||"0").substring(0,3);return re?new Date(Date.UTC(Ae[1],Oe,Ae[3]||1,Ae[4]||0,Ae[5]||0,Ae[6]||0,ue)):new Date(Ae[1],Oe,Ae[3]||1,Ae[4]||0,Ae[5]||0,Ae[6]||0,ue)}}return new Date(J)}(me),this.init()},Se.init=function(){var me=this.$d;this.$y=me.getFullYear(),this.$M=me.getMonth(),this.$D=me.getDate(),this.$W=me.getDay(),this.$H=me.getHours(),this.$m=me.getMinutes(),this.$s=me.getSeconds(),this.$ms=me.getMilliseconds()},Se.$utils=function(){return oe},Se.isValid=function(){return this.$d.toString()!==P},Se.isSame=function(me,G){var J=ie(me);return this.startOf(G)<=J&&J<=this.endOf(G)},Se.isAfter=function(me,G){return ie(me)<this.startOf(G)},Se.isBefore=function(me,G){return this.endOf(G)<ie(me)},Se.$g=function(me,G,J){return oe.u(me)?this[G]:this.set(J,me)},Se.unix=function(){return Math.floor(this.valueOf()/1e3)},Se.valueOf=function(){return this.$d.getTime()},Se.startOf=function(me,G){var J=this,re=!!oe.u(G)||G,Ae=oe.p(me),Oe=function(S,X){var te=oe.w(J.$u?Date.UTC(J.$y,X,S):new Date(J.$y,X,S),J);return re?te:te.endOf(y)},ue=function(S,X){return oe.w(J.toDate()[S].apply(J.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(X)),J)},pe=this.$W,ye=this.$M,Fe=this.$D,K="set"+(this.$u?"UTC":"");switch(Ae){case _:return re?Oe(1,0):Oe(31,11);case C:return re?Oe(1,ye):Oe(0,ye+1);case O:var R=this.$locale().weekStart||0,k=(pe<R?pe+7:pe)-R;return Oe(re?Fe-k:Fe+(6-k),ye);case y:case E:return ue(K+"Hours",0);case g:return ue(K+"Minutes",1);case m:return ue(K+"Seconds",2);case f:return ue(K+"Milliseconds",3);default:return this.clone()}},Se.endOf=function(me){return this.startOf(me,!1)},Se.$set=function(me,G){var J,re=oe.p(me),Ae="set"+(this.$u?"UTC":""),Oe=(J={},J[y]=Ae+"Date",J[E]=Ae+"Date",J[C]=Ae+"Month",J[_]=Ae+"FullYear",J[g]=Ae+"Hours",J[m]=Ae+"Minutes",J[f]=Ae+"Seconds",J[c]=Ae+"Milliseconds",J)[re],ue=re===y?this.$D+(G-this.$W):G;if(re===C||re===_){var pe=this.clone().set(E,1);pe.$d[Oe](ue),pe.init(),this.$d=pe.set(E,Math.min(this.$D,pe.daysInMonth())).$d}else Oe&&this.$d[Oe](ue);return this.init(),this},Se.set=function(me,G){return this.clone().$set(me,G)},Se.get=function(me){return this[oe.p(me)]()},Se.add=function(me,G){var J,re=this;me=Number(me);var Ae=oe.p(G),Oe=function(ye){var Fe=ie(re);return oe.w(Fe.date(Fe.date()+Math.round(ye*me)),re)};if(Ae===C)return this.set(C,this.$M+me);if(Ae===_)return this.set(_,this.$y+me);if(Ae===y)return Oe(1);if(Ae===O)return Oe(7);var ue=(J={},J[m]=a,J[g]=s,J[f]=i,J)[Ae]||1,pe=this.$d.getTime()+me*ue;return oe.w(pe,this)},Se.subtract=function(me,G){return this.add(-1*me,G)},Se.format=function(me){var G=this,J=this.$locale();if(!this.isValid())return J.invalidDate||P;var re=me||"YYYY-MM-DDTHH:mm:ssZ",Ae=oe.z(this),Oe=this.$H,ue=this.$m,pe=this.$M,ye=J.weekdays,Fe=J.months,K=J.meridiem,R=function(X,te,de,ke){return X&&(X[te]||X(G,re))||de[te].slice(0,ke)},k=function(X){return oe.s(Oe%12||12,X,"0")},S=K||function(X,te,de){var ke=X<12?"AM":"PM";return de?ke.toLowerCase():ke};return re.replace(T,function(X,te){return te||function(de){switch(de){case"YY":return String(G.$y).slice(-2);case"YYYY":return oe.s(G.$y,4,"0");case"M":return pe+1;case"MM":return oe.s(pe+1,2,"0");case"MMM":return R(J.monthsShort,pe,Fe,3);case"MMMM":return R(Fe,pe);case"D":return G.$D;case"DD":return oe.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return R(J.weekdaysMin,G.$W,ye,2);case"ddd":return R(J.weekdaysShort,G.$W,ye,3);case"dddd":return ye[G.$W];case"H":return String(Oe);case"HH":return oe.s(Oe,2,"0");case"h":return k(1);case"hh":return k(2);case"a":return S(Oe,ue,!0);case"A":return S(Oe,ue,!1);case"m":return String(ue);case"mm":return oe.s(ue,2,"0");case"s":return String(G.$s);case"ss":return oe.s(G.$s,2,"0");case"SSS":return oe.s(G.$ms,3,"0");case"Z":return Ae}return null}(X)||Ae.replace(":","")})},Se.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Se.diff=function(me,G,J){var re,Ae=this,Oe=oe.p(G),ue=ie(me),pe=(ue.utcOffset()-this.utcOffset())*a,ye=this-ue,Fe=function(){return oe.m(Ae,ue)};switch(Oe){case _:re=Fe()/12;break;case C:re=Fe();break;case N:re=Fe()/3;break;case O:re=(ye-pe)/6048e5;break;case y:re=(ye-pe)/864e5;break;case g:re=ye/s;break;case m:re=ye/a;break;case f:re=ye/i;break;default:re=ye}return J?re:oe.a(re)},Se.daysInMonth=function(){return this.endOf(C).$D},Se.$locale=function(){return z[this.$L]},Se.locale=function(me,G){if(!me)return this.$L;var J=this.clone(),re=Z(me,G,!0);return re&&(J.$L=re),J},Se.clone=function(){return oe.w(this.$d,this)},Se.toDate=function(){return new Date(this.valueOf())},Se.toJSON=function(){return this.isValid()?this.toISOString():null},Se.toISOString=function(){return this.$d.toISOString()},Se.toString=function(){return this.$d.toUTCString()},Ce}(),fe=ge.prototype;return ie.prototype=fe,[["$ms",c],["$s",f],["$m",m],["$H",g],["$W",y],["$M",C],["$y",_],["$D",E]].forEach(function(Ce){fe[Ce[1]]=function(Se){return this.$g(Se,Ce[0],Ce[1])}}),ie.extend=function(Ce,Se){return Ce.$i||(Ce(Se,ge,ie),Ce.$i=!0),ie},ie.locale=Z,ie.isDayjs=H,ie.unix=function(Ce){return ie(1e3*Ce)},ie.en=z[I],ie.Ls=z,ie.p={},ie})})(RD);const od=RD.exports;var k5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"view-file"},[i("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return i("div",{key:s,staticClass:"file-info"},[i("div",{staticClass:"name"},[i("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),i("div",[i("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),i("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),i("div",{staticClass:"op"},[i("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),i("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),i("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[i("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},C5=[];const kZ="",S5={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>od(e.uploadTime).valueOf()-od(n.uploadTime).valueOf())}},methods:{getExt(e){if(!e)return"";let n=e.lastIndexOf(".");return e.substring(n+1).toLocaleLowerCase()},isAssetTypeAnImage(e){let n=this.getExt(e);return["png","jpg","jpeg","bmp","gif","webp","psd","svg","tiff"].indexOf(n.toLowerCase())!==-1},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},formatSize(e){if(!e)return"";var n=1024;return e<n?e+"B":e<Math.pow(n,2)?(e/n).toFixed(2)+"KB":e<Math.pow(n,3)?(e/Math.pow(n,2)).toFixed(2)+"MB":e<Math.pow(n,4)?(e/Math.pow(n,3)).toFixed(2)+"G":(e/Math.pow(n,4)).toFixed(2)+"T"},handleDownload(e){let n=e.url||e.response.data.url;n&&this.downloadFile(n,e.name)},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)},getFileUrl(e){let n=e.url||e.response.data.url;return this.isAssetTypeAnImage(n)?n:this.getExt(n)=="zip"||this.getExt(n)=="rar"?require("./assets/zip.png"):this.getExt(n)=="doc"||this.getExt(n)=="docx"?require("./assets/doc.png"):this.getExt(n)=="xls"||this.getExt(n)=="xlsx"?require("./assets/xls.png"):this.getExt(n)=="pdf"?require("./assets/pdf.png"):require("./assets/qt.png")},handlePictureCardPreview(e){let n=e.url||e.response.data.url,i=n.lastIndexOf(".");n.substring(i+1)=="zip"||n.substring(i+1)=="rar"?window.open(n):n.includes("https")?window.open(`https://wdyl.ddzg.cn:8089/?ssl=1&furl=${n}`):window.open(`https://wdyl.ddzg.cn:8089/?ssl=0&furl=${n}`)}}},LD={};var D5=dn(S5,k5,C5,!1,B5,"e0be2f1a",null,null);function B5(e){for(let n in LD)this[n]=LD[n]}const I5=function(){return D5.exports}();var O5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",max:5},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),i("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u52A0\u7B7E\u539F\u56E0(200\u5B57\u4EE5\u5185)"},model:{value:e.reason,callback:function(a){e.reason=a},expression:"reason"}})],1),e._t("file"),e._t("form")],2)},T5=[];const CZ="";var gh=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{gh=e});const N5={components:{staffTree:va},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return gh.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return gh.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return gh.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let i=this.targetUser.join(",")||"";e&&e(),n(),Ze.tis.addMultiInstance({taskId:this.param.taskInstId,assignee:i,comment:this.reason}).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},jD={};var M5=dn(N5,O5,T5,!1,F5,"72ff885e",null,null);function F5(e){for(let n in jD)this[n]=jD[n]}const QD=function(){return M5.exports}();var P5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-select",{staticClass:"select",attrs:{placeholder:"\u9009\u62E9\u5E38\u7528\u610F\u89C1"},on:{change:e.changeFun},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}},e._l(e.list,function(a,s){return i("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[i("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[i("div",{staticClass:"option-c"},[i("span",[e._v(e._s(a.opinionName))]),i("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},R5=[];const SZ="",DZ="",L5={props:{showLabel:!1},data(){return{value:"",list:[]}},mounted(){this.getList()},methods:{addIdea(e){if(!e)return this.$message({type:"error",message:"\u8BF7\u8F93\u5165\u610F\u89C1\u540E\u91CD\u8BD5"});this.$confirm(`\u5C06\u201D${e}\u201D\u8BBE\u4E3A\u5E38\u7528\u610F\u89C1\u3002`,"\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ze.getAjaxObj().post("/auth/user/opinion/save",{opinionName:e}).then(n=>{n.success?(this.getList(),this.$message({type:"success",message:"\u8BBE\u7F6E\u6210\u529F"})):this.$message({type:"error",message:n.msg})})})},changeFun(){this.$emit("change",this.value),this.value=""},getList(){Ze.getAjaxObj().get("/auth/user/opinion/my","").then(e=>{this.list=e.data})},del(e){this.$confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u610F\u89C1, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ze.getAjaxObj().get(`/auth/user/opinion/del/${e.opinionId}`,"").then(n=>{this.getList(),this.$message({type:"success",message:"\u5220\u9664\u6210\u529F"})})}).catch(()=>{})}}},zD={};var j5=dn(L5,P5,R5,!1,Q5,"a3cd7af2",null,null);function Q5(e){for(let n in zD)this[n]=zD[n]}const Ay=function(){return j5.exports}();var z5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[i("staffTree",{attrs:{personType:e.param.personType,personEntity:e.personEntity},model:{value:e.targetUID,callback:function(a){e.targetUID=a},expression:"targetUID"}})],1),e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},H5=[];const BZ="";var Ah=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Ah=e});const V5={components:{staffTree:va,commIdea:Ay},props:{param:Object},data(){return{commentMsg:"",targetName:"",targetUID:"",personEntity:{}}},watch:{param:{handler(e){this.personEntity={...e.personEntity,maxMultiple:1}},immediate:!0,deep:!0}},methods:{getRes(){return{targetUID:this.targetUID,targetName:this.targetName,commentMsg:this.commentMsg}},confirm(e,n){if(!this.targetUID)return Ah.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return Ah.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Ah.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;e&&e(),n(),Ze.tis.transferTask({taskId:this.param.taskInstId,assignee:this.targetUID.join(" "),comment:this.commentMsg}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},HD={};var U5=dn(V5,z5,H5,!1,Y5,"dd93bc60",null,null);function Y5(e){for(let n in HD)this[n]=HD[n]}const VD=function(){return U5.exports}();var W5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"user-task"},[e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-radio-group",{staticClass:"ml-4",model:{value:e.radioModel,callback:function(a){e.radioModel=a},expression:"radioModel"}},e._l(e.processNodeObj.branches,function(a){return i("el-radio",{key:a.id,attrs:{label:a,size:"large"}},[e._v(e._s(a.name?a.name:a.nodeInfoDTO?a.nodeInfoDTO.name:""))])}),1)],1):e._e(),e.radioModel.id?[e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="userTask"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="inclusiveGateway"?[i("userTask",{key:e.radioModel.nodeInfoDTO.id,ref:e.setItemRef(e.radioModel.nodeInfoDTO.id),attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},e.radioModel.nodeInfoDTO,{REQUIRED:!(e.radioModel.nodeInfoDTO.setPersonnel==!0&&e.radioModel.nodeInfoDTO.assignees&&e.radioModel.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:e.radioModel.nodeInfoDTO&&e.radioModel.nodeInfoDTO.nodeType=="exclusiveGateway"?e._l(e.radioModel.nodeInfoDTO.branches,function(a){return i("userTask",{key:a.nodeInfoDTO.id,ref:e.setItemRef(a.nodeInfoDTO.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj&&e.processNodeObj.branches&&e.processNodeObj.branches.length==1?e._l(e.processNodeObj.branches,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,"process-node":Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0)}),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()]:e.processNodeObj.nodeType=="inclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>0?[i("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[i("el-checkbox-group",{model:{value:e.checkList,callback:function(a){e.checkList=a},expression:"checkList"}},[e._l(e.processNodeObj.branches,function(a){return[e.isSelect(a.nodeInfoDTO?a.nodeInfoDTO:a)?i("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):i("el-checkbox",{key:"checkbox1"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name}})]})],2)],1),e._l(e.checkModelList,function(a){return i("userTask",{key:a.nodeInfoDTO?a.nodeInfoDTO.id:a.id,ref:e.setItemRef(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),refInFor:!0,attrs:{personType:e.personType,personEntity:e.personEntity,processNode:Object.assign({},a.nodeInfoDTO?a.nodeInfoDTO:a,{REQUIRED:a.nodeInfoDTO?!(a.nodeInfoDTO.setPersonnel==!0&&a.nodeInfoDTO.assignees&&a.nodeInfoDTO.assignees.length>0):!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})})]:!e.processNodeObj.assignee||!e.processNodeObj.assignees||e.isOption(e.processNodeObj.humanPerformerName)?[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.lv1label||"\u8282\u70B9\u540D\u79F0"},scopedSlots:e._u([{key:"label",fn:function(a){return a.label,[i("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[i("b",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.processNodeObj.name))])]),e.processNodeObj.routeTxt&&e.processNodeObj.routeTxt.length>0&&e.processNodeObj.userList&&e.processNodeObj.userList.length>0?i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return i("div",{key:a.type},[a.ids&&a.ids.length>0?i("div",[i("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(e.processNodeObj.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0):e._e(),i("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?i("el-select",{attrs:{multiple:e.processNodeObj.loopCardinality==-1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.fixPeopleChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}},e._l(e.processNodeObj.userList,function(a,s){return i("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?i("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?i("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):i("staffTree",{attrs:{processNodeObj:e.processNodeObj,personType:e.personType,personEntity:e.personEntity,multiple:"",max:e.processNodeObj.loopCardinality==-1?1e3:1,items:e.getTreeData(e.processNodeObj)},on:{"update:modelValue":function(a){e.complete(a,e.processNodeObj)},select:e.selectChange},model:{value:e.targetUserId,callback:function(a){e.targetUserId=a},expression:"targetUserId"}})],1)]:e._e()],2)},G5=[];const IZ="";var fs=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{fs=e});const J5={name:"userTask",components:{staffTree:va},props:{index:{type:Number,default:0},processNode:{require:!0},label:"",peopleLabel:"",lv1label:"",personType:"",personEntity:{type:Object,default:()=>{}},rules:{require:!1,type:Array}},data(){return{deptList:[],Enum:Tp,resultList:[],radioModel:{},checkList:[],targetUserId:"",targetUserList:[],processNodeObj:this.processNode,userTaskListData:{},personnelList:[]}},computed:{checkModelList(){let e=this.processNodeObj.branches.filter(n=>this.checkList.includes(n.incomingConditionItemList[0].compareValue));return this.resultList=e||[],this.resultList}},watch:{processNode:{handler(e,n){e.nodeType=="userTask"&&e.setPersonnel&&e.assignees&&e.assignees.length>0&&(this.targetUserId=e.assignees.map(i=>i.id)),e.userList&&e.userList.length==1&&(this.targetUserId=e.userList[0].userId),this.processNodeObj=e||{}},deep:!0}},mounted(){this.processNodeObj.childNode&&this.processNodeObj.childNode.length==1&&this.processNodeObj.type==r_.\u5355\u4E00\u5206\u652F&&(this.radioModel=this.processNodeObj.childNode[0])},methods:{isSelect(e){if(e.incomingConditionItemList[0]){let n=e.incomingConditionItemList[0].itemName.includes("selecd");return n&&(this.checkList.includes(e.name)||this.checkList.push(e.name)),n}return!1},fixPeopleChange(e){this.complete(e,this.processNodeObj)},selectChange(e){this.targetUserList=e},complete(e,n){n.vars=e,this.resultList.every(i=>i.vars)&&(this.processNodeObj.vars=this.resultList.map(i=>i.vars),this.$emit("complete",this.processNodeObj))},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getTreeData(e){if(e){if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8")return e.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u90E8\u95E8,i});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=this.Enum.UserType.\u4E3B\u4F53,i});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let i={};return i.id=n.id,i.leaf=!1,i.name=n.teamName,i.orgType=this.Enum.UserType.\u7FA4\u7EC4,i})}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},getValue(){let e=!0,n={multiNodeParticipant:{},vars:{}};if(!this.processNodeObj.type||this.processNodeObj.type==this.Enum.ProcessNodeType.\u7528\u6237\u4EFB\u52A1||this.processNodeObj.type==r_.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(this.radioModel&&this.radioModel.nodeInfoDTO&&this.radioModel.nodeInfoDTO.id&&this.radioModel.nodeInfoDTO.incomingConditionItemList&&this.radioModel.nodeInfoDTO.incomingConditionItemList.length>0&&(n.vars[this.radioModel.nodeInfoDTO.incomingConditionItemList[0].itemName]=this.radioModel.nodeInfoDTO.incomingConditionItemList[0].compareValue),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}}else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(i=>{const a=this.userTaskListData[i.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(i.nodeInfoDTO.incomingConditionItemList.length!==0&&i.nodeInfoDTO.incomingConditionItemList.forEach(f=>{f.itemName&&(n.vars[f.itemName]=f.compareValue)}),n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}):e=!1}});else return this.processNodeObj,this.processNodeObj&&this.processNodeObj.nodeType=="inclusiveGateway"?fs.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} `),!1;else if(!this.processNodeObj.assignee||!Array.isArray(this.processNodeObj.assignee)||!this.processNodeObj.setPersonnel||this.isOption(this.processNodeObj.humanPerformerName)||this.processNodeObj.nodeInfoDTO&&(!this.processNodeObj.nodeInfoDTO.assignee||!Array.isArray(this.processNodeObj.nodeInfoDTO.assignee)||!this.processNodeObj.nodeInfoDTO.setPersonnel||this.isOption(this.processNodeObj.nodeInfoDTO.humanPerformerName))){if(this.targetUserId&&this.targetUserId.length>0)n.multiNodeParticipant={},n.multiNodeParticipant[this.processNode.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.id:this.processNodeObj.id]=Array.isArray(this.targetUserId)?this.targetUserId:[this.targetUserId];else if(this.processNodeObj.REQUIRED!==!1||this.processNodeObj.nodeInfoDTO&&this.processNodeObj.nodeInfoDTO.REQUIRED!==!1)return this.processNodeObj.nodeInfoDTO?this.processNodeObj.nodeInfoDTO.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u5904\u7406\u4EBA`),!1}else this.processNodeObj.incomingConditionItemList&&this.processNodeObj.incomingConditionItemList.length>0&&(n.vars[this.processNodeObj.incomingConditionItemList[0].itemName]=this.processNodeObj.incomingConditionItemList[0].compareValue);else for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();if(!c)e=!1;else{if(this.processNodeObj.nodeType=="exclusiveGateway")if(this.radioModel&&this.radioModel.id)this.radioModel.incomingConditionItemList&&this.radioModel.incomingConditionItemList.length>0&&(n.vars[this.radioModel.incomingConditionItemList[0].itemName]=this.radioModel.incomingConditionItemList[0].compareValue);else return this.processNodeObj.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} \u4E0B\u4E00\u8282\u70B9`),!1;else if(this.processNodeObj.nodeType=="inclusiveGateway")if(this.resultList&&this.resultList.length>0)this.resultList.forEach(f=>{f.incomingConditionItemList.length!==0&&f.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&fs.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.name} `),!1;n.multiNodeParticipant={...n.multiNodeParticipant,...c.multiNodeParticipant},n.vars={...n.vars,...c.vars}}}}return e&&n},getLabel(e){let n="";return e.incomingConditionItemList.length>0&&(n=e.incomingConditionItemList[0].compareValue),n||e.name||"\u540E\u7EED\u8282\u70B9"}}},UD={};var K5=dn(J5,W5,G5,!1,X5,null,null,null);function X5(e){for(let n in UD)this[n]=UD[n]}const vy=function(){return K5.exports}();var Z5=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"sign-container",style:e.setDynamicVars},[i("div",{staticClass:"content-area"},[i("div",{staticClass:"canvas-container"},[i("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),i("div",{staticClass:"history"},[i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?i("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?i("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),i("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?i("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),i("div",{staticClass:"actions-box"},[i("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),i("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),i("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},$5=[];const OZ="",q5={upload:e=>new Promise((n,i)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},e6={data(){return{ctx:null,signatureImage:"",actionHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[]}},methods:{startDrawing(e){this.isDrawing=!0,this.currentPath=[];const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.beginPath(),this.ctx.moveTo(i,a),this.currentPath.push({x:i,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),i=(e.clientX-n.left)*(this.$refs.canvasRef.width/n.width),a=(e.clientY-n.top)*(this.$refs.canvasRef.height/n.height);this.ctx.lineWidth=2,this.ctx.strokeStyle="#000000",this.ctx.lineTo(i,a),this.ctx.stroke(),this.currentPath.push({x:i,y:a})}},undo(){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let n=0;n<e.length-1;n++){const{x:i,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(i,a)):(this.ctx.lineTo(i,a),this.ctx.stroke())}},finishDrawing(e){this.currentPath.length>0&&this.paths.push(this.currentPath),this.isDrawing=!1},clearCanvas(){this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[],this.$emit("saveSignature","",!1)},saveSignature(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57");return}this.signatureImage=this.$refs.canvasRef.toBlob(e=>{this.uploadImage(e)},"image/png",.95)},async uploadImage(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n||`signature-${Date.now()}.png`);const a=await q5.upload(i);if(this.loading=!1,!a.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(a.data),this.$set(this,"historyPics",s.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",a.data,!0)},useHistory(e){this.historyPics[e]&&this.$confirm("\u662F\u5426\u4F7F\u7528\u5386\u53F2\u7B7E\u5B57","\u64CD\u4F5C\u4FE1\u606F\u63D0\u9192",{confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.$emit("saveSignature",this.historyPics[e],!0)})}},computed:{setDynamicVars(){return{"--action-height":`${this.actionHeight}px`}}},watch:{setDynamicVars(e){let n=document.querySelector(".canvas-container");n&&(this.$refs.canvasRef.width=n.offsetWidth,this.$refs.canvasRef.height=n.offsetHeight-this.actionHeight)}},mounted(){document.querySelector(".actions-box").offsetHeight?this.actionHeight=document.querySelector(".actions-box").offsetHeight:setTimeout(()=>{this.actionHeight=document.querySelector(".actions-box").offsetHeight},200),this.ctx=this.$refs.canvasRef.getContext("2d"),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]}},YD={};var t6=dn(e6,Z5,$5,!1,n6,"8b12235a",null,null);function n6(e){for(let n in YD)this[n]=YD[n]}const i6=function(){return t6.exports}();var r6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[i("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[i("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[i("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?i("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),i("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?i("el-form-item",[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{staticClass:"formInput",attrs:{rows:5,maxlength:"200","show-word-limit":"",type:"textarea",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1)]:e._e(),e._t("file"),e.param.nodeLoading?[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])]:[e.param.nextTaskNode&&e.param.nextTaskNode.id&&e.param.nextTaskNode.nodeType!="parallelGateway"&&e.param.nextTaskNode.nodeType!="exclusiveGateway"?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{pType:e.param.nextTaskNode.nodeType,REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})}):e.param.outGatewayUserTaskModel&&e.param.outGatewayUserTaskModel.length>0?e._l(e.param.outGatewayUserTaskModel,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType,personEntity:e.param.personEntity,processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)})}})}):e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length==1?[e.param.nextTaskNode.nodeType!="endEvent"?[e.param.nextTaskNode.branches[0].nodeInfoDTO?i("userTask",{key:e.param.nextTaskNode.branches[0].nodeInfoDTO.id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].nodeInfoDTO.id),attrs:{personType:e.param.nextTaskNode.branches[0].nodeInfoDTO.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0].nodeInfoDTO,{REQUIRED:!(e.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&e.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}}):i("userTask",{key:e.param.nextTaskNode.branches[0].id,ref:e.setItemRef(e.param.nextTaskNode.branches[0].id),attrs:{personType:e.param.nextTaskNode.branches[0].personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode.branches[0],{REQUIRED:!(e.param.nextTaskNode.branches[0].setPersonnel==!0&&e.param.nextTaskNode.branches[0].assignees&&e.param.nextTaskNode.branches[0].assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="exclusiveGateway"&&e.param.nextTaskNode.branches&&e.param.nextTaskNode.branches.length>1?[e.param.nextTaskNode.nodeType!="endEvent"?[i("userTask",{key:e.param.nextTaskNode.id,ref:e.setItemRef(e.param.nextTaskNode.id),attrs:{personType:e.param.nextTaskNode.personType||"",personEntity:{},"process-node":Object.assign({},e.param.nextTaskNode,{REQUIRED:!(e.param.nextTaskNode.setPersonnel==!0&&e.param.nextTaskNode.assignees&&e.param.nextTaskNode.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})]:[i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u7ED3\u675F\u4E8B\u4EF6")])])]]:e.param.nextTaskNode.nodeType=="parallelGateway"?e._l(e.param.nextTaskNode.branches,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{personType:e.param.personType||"",personEntity:e.param.personEntity||{},processNode:Object.assign({},a,{REQUIRED:!(a.setPersonnel==!0&&a.assignees&&a.assignees.length>0)}),lv1label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5904\u7406\u4EBA"}]}})}):e._e()],e._t("form"),i("el-dialog",{attrs:{title:"\u7B7E\u5B57",visible:e.signVisible,"append-to-body":"",width:"800px","close-on-click-modal":!1,top:"4vh","align-center":""},on:{"update:visible":function(a){e.signVisible=a},closed:e.closeSign},model:{value:e.signVisible,callback:function(a){e.signVisible=a},expression:"signVisible"}},[i("div",{staticClass:"sign-container"},[i("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},a6=[];const TZ="";var Vl=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{Vl=e});const o6={components:{staffTree:va,userTask:vy,commIdea:Ay,TopSign:i6},props:{param:Object},data(){return{commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:Tp,signVisible:!1,digitalSignature:"",confirmPreposition:!1,confirmLoading:()=>{}}},mounted(){this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F")},computed:{signRequired(){return!!this.param.extendedProperties.find(n=>n.name=="signature")}},methods:{setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},getProcessNode(e){let n={};return n.humanPerformerName=e.userTaskModelDTO.humanPerformer.name,n.id=e.id,n.loopCardinality=e.loopCardinality||e.userTaskModelDTO.loopCardinality,n.name=e.userTaskModelDTO.name,n.type=e.type,n.routeTxt=e.userTaskModelDTO.routeTxt,n.participantList=e.userTaskModelDTO.participantList,n.taskNode=this.param.taskNode,n},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u8D26\u6237"||e=="\u56FA\u5B9A\u5355\u4F4D"},getTreeData(e){if(this.param.nextTaskNode){if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8")return e.userTaskModelDTO.routeTxt.departmentIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Yu.\u90E8\u95E8,i});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let i={};return i.id=n.rangeId,i.leaf=!1,i.name=n.name,i.orgType=Yu.\u4E3B\u4F53,i})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,i){if(Array.isArray(i)&&(this.param.attachment=i),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Vl.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Vl.warning("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let a={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,attachment:this.param.attachment};for(let s in this.userTaskListData){let c=this.userTaskListData[s];this.$refs[c];let f=this.$refs[c].$el?this.$refs[c]:this.$refs[c][0];f.getValue;let m=f.getValue();if(m&&m.vars&&this.param.incomingConditionItemList&&this.param.incomingConditionItemList.length>0&&this.param.incomingConditionItemList.forEach(O=>{m.vars[O.itemName]||(m.vars[O.itemName]="")}),!m)return!1;let g=[];const y=this.param.nextTaskNode;y.setPersonnel?g=y.assignees||[]:g=(f.targetUserList||[]).map(O=>({id:O.id,name:O.name})),a.assignees=g,a.multiNodeParticipant={...a.multiNodeParticipant,...m.multiNodeParticipant},a.vars={...a.vars,...m.vars}}if(this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)a.multiNodeParticipant={...a.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(s=>s.id)};else if(!Object.keys(a.multiNodeParticipant).length)return Vl.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(a.pass=!0,Date.now()&&this.param,this.param.getVars){let s=this.param.getVars();if(s===!1)return!1;a.vars={...a.vars,...s}}if(this.signRequired,this.signRequired){this.confirmPreposition=e,this.confirmLoading=n,this.signVisible=!0;return}n(),e?e().then(s=>{Ze.tis.complete(a).then(c=>{c.code==bt.success?(s&&s(),this.$emit("success")):this.$emit("fail",c.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Ze.tis.complete(a).then(s=>{s.code==bt.success?this.$emit("success"):this.$emit("fail",s.msg)}).catch(s=>{this.$emit("fail",s.response?s.response.data?s.response.data.msg||s.response.data.message:"":s.message||s.msg||"")})},confirmWithSign(){let e={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData,digitalSignature:{name:this.param.digitalSignature.name,url:this.param.digitalSignature.url},attachment:this.param.attachment};for(let n in this.userTaskListData){let i=this.userTaskListData[n],a=this.$refs[i].$el?this.$refs[i]:this.$refs[i][0];a.getValue;let s=a.getValue();if(!s)return!1;e.multiNodeParticipant={...e.multiNodeParticipant,...s.multiNodeParticipant},e.vars={...e.vars,...s.vars}}if(this.param.nextTaskNode&&this.param.nextTaskNode.nodeType!="endEvent"){if(this.param.nextTaskNode.nodeType=="exclusiveGateway"&&this.param.nextTaskNode.branches&&this.param.nextTaskNode.branches.length==1&&this.param.nextTaskNode.branches[0].nodeInfoDTO&&this.param.nextTaskNode.branches[0].nodeInfoDTO.setPersonnel==!0&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees&&this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.length>0)e.multiNodeParticipant={...e.multiNodeParticipant,[this.param.nextTaskNode.branches[0].nodeInfoDTO.id]:this.param.nextTaskNode.branches[0].nodeInfoDTO.assignees.map(n=>n.id)};else if(!Object.keys(e.multiNodeParticipant).length)return Vl.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"),!1}if(this.param.getVars){let n=this.param.getVars();if(n===!1)return!1;e.vars={...e.vars,...n}}e.pass=!0,this.confirmLoading(),this.confirmPreposition?this.confirmPreposition().then(n=>{Ze.tis.complete(e).then(i=>{i.code==bt.success?(n&&n(),this.$emit("success")):this.$emit("fail",i.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Ze.tis.complete(e).then(n=>{n.code==bt.success?this.$emit("success"):this.$emit("fail",n.msg)}).catch(n=>{this.$emit("fail",n.response?n.response.data?n.response.data.msg||n.response.data.message:"":n.message||n.msg||"")})},handleSignature(e,n){this.param.digitalSignature=e,n&&(this.signVisible=!1,this.confirmWithSign())},closeSign(){this.signVisible=!1},noticeFail(e){Vl.warning(e)}}},WD={};var s6=dn(o6,r6,a6,!1,l6,"a4be969e",null,null);function l6(e){for(let n in WD)this[n]=WD[n]}const by=function(){return s6.exports}();var c6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?i("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[i("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),i("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,type:"textarea",maxlength:"200","show-word-limit":"",resize:"none",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}}),e.param.showCommIdea?i("div",{staticClass:"add-idea"},[i("span",{on:{click:function(a){return e.$refs.commIdea.addIdea(e.commentMsg)}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()],1),e._t("file"),e._t("form")],2)},u6=[];const NZ="";var GD=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{GD=e});const d6={components:{staffTree:va,commIdea:Ay},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return GD.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let i={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};i.assignees=[],i.pass=!1,Ze.tis.complete(i).then(a=>{a.code==bt.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},JD={};var f6=dn(d6,c6,u6,!1,p6,"02cb58a9",null,null);function p6(e){for(let n in JD)this[n]=JD[n]}const KD=function(){return f6.exports}();var h6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u9000\u56DE\u8282\u70B9"},model:{value:e.nodeId,callback:function(a){e.nodeId=a},expression:"nodeId"}},e._l(e.nodesData,function(a){return i("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),i("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[i("el-input",{attrs:{rows:5,maxlength:"200","show-word-limit":"",resize:"none",type:"textarea",placeholder:"\u9000\u56DE\u539F\u56E0"},model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}})],1),e._t("file"),e._t("form")],2)},m6=[];const MZ="";var _y=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{_y=e});const g6={components:{staffTree:va},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Ze.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==bt.success&&(this.nodesData=(e.data||[]).filter(n=>!n.nodeId.includes("startEvent")))})},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.nodeId)return _y.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return _y.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Ze.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},XD={};var A6=dn(g6,h6,m6,!1,v6,"11b0e88d",null,null);function v6(e){for(let n in XD)this[n]=XD[n]}const ZD=function(){return A6.exports}();var b6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[i("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.type,callback:function(a){e.type=a},expression:"type"}},e._l(e.nodesData,function(a){return i("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),i("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),i("div",[i("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u56DE")]),e._v("\uFF1A\u64A4\u56DE\u5230\u53D1\u8D77\u4EBA\u91CD\u65B0\u63D0\u4EA4\uFF0C\u82E5\u5F53\u524D\u6D41\u7A0B\u4E0D\u5B58\u5728\u53D1\u8D77\u4EBA\u8282\u70B9\uFF0C\u529F\u80FD\u540C\u64A4\u9500 ")])]),e._t("file"),e._t("form")],2)},_6=[];const FZ="";var $D=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{$D=e});const y6={components:{staffTree:va},props:{param:Object},data(){return{commentMsg:"",nodeId:"",type:"",nodesData:[{type:"wf_withdraw_end",label:"\u64A4\u9500"},{type:"wf_withdraw_start",label:"\u64A4\u56DE"}]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){},getRes(){return{commentMsg:this.commentMsg,nodeId:this.nodeId}},confirm(e,n){if(!this.type)return $D.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Ze.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(i=>{i.code==bt.success?this.$emit("success"):this.$emit("fail",i.msg)})}}},qD={};var w6=dn(y6,b6,_6,!1,x6,"3e4dbd02",null,null);function x6(e){for(let n in qD)this[n]=qD[n]}const E6=function(){return w6.exports}();var k6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[i("staffTree",{ref:"staffTree",attrs:{personType:e.param.personType,personEntity:e.param.personEntity,multiple:"",disable:e.isOperLoading},model:{value:e.targetUser,callback:function(a){e.targetUser=a},expression:"targetUser"}})],1),e._t("file"),e._t("form")],2)},C6=[];const PZ="";var eB=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{eB=e});const S6={components:{staffTree:va},props:{param:Object,isOperLoading:!1},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return eB.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let i=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Ze.tis.createCCTask({processInstId:this.param.processInstId,participant:i,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==bt.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},tB={};var D6=dn(S6,k6,C6,!1,B6,"073b792a",null,null);function B6(e){for(let n in tB)this[n]=tB[n]}const nB=function(){return D6.exports}(),iB=Object.freeze(Object.defineProperty({__proto__:null,counterSign:QD,delegateTask:VD,complete:by,cancel:KD,roolback:ZD,withdrawTask:E6,ccTask:nB},Symbol.toStringTag,{value:"Module"})),rB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAACSCAYAAAA93+RpAAAABHNCSVQICAgIfAhkiAAACiVJREFUeF7tnVtsFFUYgH/aqAWrLbTloiiKFxQS0AAJ8QHx0Xh5MBo1+mCMxkt88QF5EgM+GUx80ChGYzAxGqPxwRuPKibGG94SSCSG0IjIzSLSy7alxXO6DJ1uZ/f8s3tmdrvnm4QEyn/OzHzn//qfOTOzO+uM2YQNAhDwQmAWQnnhSCcQmCCAUCQCBDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUOQABDwSQCiPMOkKAghFDkDAIwGE8giTriCAUBVyYGCgIIXhYZkJn63b+9dhGTefAbz0soXSNa+DzK4TAYQqA/7Ev6dkbGy8TsOSfrcHjFCDg4WJhgt65smyqy5L3wktaiaAUAkIB0xiDg0N1ww3zw7iQiFVnuSn7guhEtj39f1npk8z6zsUSoVCqvpIhVAJ3I//c7I+o1HDXpOEQqoagFbZFKGaXCh7evO758p1V19eZYrQLA0BhApAKKRKo0RtsQgViFBIVZso2tYIFZBQSKXVovo4hApMKKSqXhZNS4QKUCik0qhRXQxCBSoUUlUnjKsVQgUsFFK59Ej//wgVuFBIlV6aSi0QCqEmCHDz149YCIVQ5wggVe1SIRRCTSGAVLVJhVAINY0AUlUvFUIhVGL2IFV1UiEUQpXNHKRKLxVCIVTFrEGqdFIhFEI5MwapnIjOBSAUQqmyBalUmAShEEqXKdz8VXFCKIRSJUoURKWqjAuhECqVUDYYqcojQ6gmEarvxH9y+HhfajmqbbD8miXS3dVZbfOmbYdQTSLU2Pi47O89JKOnT+eSrLPb2mTtDcty2ddM2glCNYlQ9jRGRk/LoaPHz30kc9aJuH7dqqx3MeP6R6gmEio6laHhERk2f7KuVtebaR/bVAII1YRC5ZXk3V18y0cpa4RCqKr9Q6jp6BAKoRCqagIIpUI3E78sQHVinoOoUAilSimEUmEy96G4huIaSpErCKWAZEIQigqlyhSEUmFCqARMLEqwKKGzJyGKCkWFUiUPFUqFiQpFhdIlCkLpOFGhqFCqTEEoFSYqFBXKnSgj+36Tf0/2S8vSFe7ggCPG9++Rzo52Of/alQFToEJVHHwr09+P3yptz74prStvIlEqEBj77RspPP+ILNq+E6linFjlOwsjkmm8/6TMeeEDhHL8OrFCDW66R1raO5AKoaZmS1wm+z8I5S7OkVA2EqkmeQVfoUplQii3TDYiLhRSIdQEgSSZEKo6oZCqyC3YClXYvUuObLxf7DVT6caUzy1VaYWKWtjp34Jt70nb6vXuTpowIkih+j99R45tfbzscCKUO9PLCRW17Nm8Xdpvf9DdUZNFBCeUSyamfLoMdwllewlRquCEKnz0pjNjCnMvkVmz251xIQecGeqXthOHnAja7nrEGdNMAcEJJffe2Ezj1/jn8v7PjX+MHo8QoTzCpKsEAgjV5GlBhcp3gBEqX9657w2h8kWOUPnyzn1vWQl1j1mGv/uxyqdzzFzEH/hdZOe7Int+nBq74U6Rm+8o3/6oaRu1//HL8nGufpJafvWJyJcfZzMUCJUN14bptZ5CxSHYBH7tucmfaISMoq1Yb78o8sMX07Gm6Sdq/eHrIh9sz2aIECobrg3Ta6MIZYHEE7kaEayQpZWlmn4Qylt6ssrnC2U8kcslaM8lIk9uFVm+urjXgVMiD599RCfefu9ukS0l928uvEhk7S1mWmmmlj2LJo96033FaWS0xfvp3Wcq2Tb3GUbTSXdk+ggqVHpmM6pFHhWq0m98K8ZbuyaRbX20eD3lEipqYdtbKddsKP5kr2m7xfSRJFSSmHkPFkLlTTzn/dVbKHu68SRLK5RtbyvdK58lVymtmHlhR6i8SNdpP/UWasUakc1vTJ78U7cVV+/SimCrVLQqWO5ajAqVe5JxDeULeVwIu1DwVcky9BXm6zOXmD/2OshO2yama7FrpbRC2eXxJ7YU+7HL6NueLv493o+9RuuNXV+VO1eWzX1lQYDvQ+VRoTTDM9hfXHiIFhTSChWvdOXE1ByHjWGVT0vKGUeFciJSBqRZrj72t8iLpqKUW53TTNUQSjkw+YYhlC/ecaGsMKVTvmg/dlWu9CmJ0qmaRijNlI9lc1+jq+4HodSoHIFpp2yl3aVtz6KEr5Hz2g9C+cKZVohahLKLGi+bZfNocSN+c7fW4/DFI+qHZXPfRBusvzwWJTRTtlqEsqt7dspnNzute+beyd4Qqq4JR4Xyhb/WRNa0t09H3PaAeXTJ3MuKtujGcPRvTT++zlnTDxVKQ2kGx8yECqXFa+8fvbp5ajRCaellEkeF8oW11kROs+xuj/lz805V0oOvtR6HLx5cQ/km2aD9ZVWh7H2haCpmHyVK+8KeRih7M9i+A2WX5JOW3i3yiRcMz15f2ftcmqfNsxwqpnxZ0m2AvrMSqgFOreEOwX4U246vG+6wsjyg8KZ89pm3Sq+QZ0k7tL7tIsrGl4I66/CEslMluzLGlj0B+1S9nQoHtIUnlB1ce32zw7zJaj79lC0DAnaq99DGyXtlGeyiUbsMUyg7Gnbh4HtzgT9oXnEo2QYHC406Xg11XHPmtE0/njnmKQ67MBI9xdFQR5z9wYQrVAW2fAu8LvG6uzp0gQFFIVTCYCOUzgCEms4JoRBKZ09CFEIhlCp5qFAqTIJQCKXKFIRSYUKoBExM+Zjy6exhyqfihFAIpUqUpCCmfEz5VMnDlE+FiSkfUz5doiCUjhMVigqlyhSEcmMaP3NG5nd3ugMDi+AaKmHA//zrqMxuuyCwVEh3uoXCsCy+dH66RgFEI1TCIP+y5w9ZvLAngOGv/hQPHDwsa1aZj5Zmm0IAoRISYte3v0r3vE7pmnuxtLa0kDIxAnaqd+RYn5w4eUrWr1sFmxICCFVGKPvj1tZW6exolwvOO4/EMQRGRkeNSP0yNjY2wQOhWJRQifHdT3tleGRUFRtq0IXm1Y3VK5nylY4/FSrBiF5zfdB78EiorqjOe8niBbJk8UJVbEhBCJUw2qfNlOZXszAxwIuGiS7Ya8sVy64MyRP1uSJUBVS2Uh0+2sf07ywjO83rntdBZaqQMwil/t1DIATcBBDKzYgICKgJIJQaFYEQcBNAKDcjIiCgJoBQalQEQsBNAKHcjIiAgJoAQqlREQgBNwGEcjMiAgJqAgilRkUgBNwEEMrNiAgIqAkglBoVgRBwE0AoNyMiIKAmgFBqVARCwE0AodyMiICAmgBCqVERCAE3AYRyMyICAmoCCKVGRSAE3AQQys2ICAioCSCUGhWBEHATQCg3IyIgoCaAUGpUBELATQCh3IyIgICaAEKpUREIATcBhHIzIgICagL/A5aq8pai8ohoAAAAAElFTkSuQmCC",aB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABKCAYAAADjcueTAAAFw0lEQVR4Xu2c3XHbRhDH/wclQ2UITZwKLFcQqQKLFViqIHQFpl5i8snKE6m8WK4gVAWmKzBVgckKolQQcgjGTmxzMwsQEL5xd/ggiDEeReAOv9u9xe7d/yRQxPW7dYIN3gI4LqI5xTamEBjjpXmr8pxQuTn2Xhua3gPiUe628jUwQ6vdwaVYyDSTD3xodSHwh0xHFd0zQ988lelLH7x+0A4v4TkG5jgLXg88C5qog8HRNKvz3L87sYUhf/a1JWV1dfAsaHvUKwLnvhz4D4FB7JuZXJk3BBocWS8A3EQtRUtA/Oj9vUpw7nRkUXngI4uDWDcCzXMK1IUQT5sHngbNgWS4mjYPPBaaliDR86Jn48CToA1xhl/NmefajQF/TY/wL89pcR6c07REGJpvaAS4Db1+D+BECroR4DrQew+eCI05DHQDczr8TRut/g4UKXvzHU+DbrXPUiueuExOInPKna76G9BKYNJraY7caWUel6LBWEB0h8HRWaFgWY1pgY8sznNDgSyrp5Tf49ycPerzJ38hodbB94fzVK/TBA/muWqvFAr8MSXh8OMxxJcP+RYqaAH67hSDH+5jX29n4IS/YIgeXrYnkRcbrq4gxKs842k/S/QbBkdX5YGzq6pcB2KRGvFlyliZ/tIWGAqxeBkR+drqYUOhLFCG1rtnmmht7bJUY7SUXrmKmzUYhE4RXwWLUh/fwLfDJTFdv1nccy2J0VJywypuLt3VORkxvj4FRHVbRcTJy8G7xOSl9KheSAama35awBCdxHyhVIsXlYFps5eduSXN8eHqDELwysxuLiEuYlPi0l2dO7hen4M2XRCq2xkVWIDEJHU/LOjqc/TNzGqzaZ+zObIWTrb+2iRwaWhmbwo4iwLSl8hCkakZ4LzCI6mEcPmbAa7xnVEDtzO3zS8a/eR7ZGPcpmZuGq3Lg8dtwGt0qP1IwWv18uB1ztw0RlMFfLeZ284szqPKaStQ7WaBY01ec4sXE3FE/2/9LFAxckVn4C5tEVTe4hruVOojTsx5nWGIewhcxake9xP8ev0KRPFr7PGjHVE97h94WKXBe3UQYxy2J14S4yyYnGODHgQeb8fiHnTQcT+L+wUegKYlhNFNLFVdyw+tMQTc3MOz/P6Ah6HjJClJQWVksTaPNXreVpQaOEd1w3jQs5UTveYRK2ZB25H9nxcg4i8OB7RpJKB5Oh1nA1IevJoVmGhpmQWdLBufotW+eJj3vhUkgUsV8GJ2PZO9pEhot5c36Js9r8uhxd7wGKB38uDl5ur5oQm3GJhdOKvBM09b619DfJCl3cuD25nbx2PgS1TPmneuH5o3gXpa1b1daPc9/MGs1f7J5+6e16qB5wWUeT4vtCNkYnmLs+nht/hoNQHEM/5zvcCLgX4QJ0Y94U97QIju6gNeNDRoiZZ5HMjmxFcG5+tNPcDLgA4nOKPVW0+bS9TZPXgV0H4dzlaHt1vwqqHZyQ2ccp2+O/CAGipGDh7OyMKBKiJDjWkjrLjyKad2B27nBVw50XlEA18ydD0+Z5wU+RWLFUDXA9yf1FQEXT/wkeUkGHbdvM293YHJOafDSWN0jm+jnkx2Weg9rH4ke/EwCu125K2mqAWyuPdkcNak+yTVNEHLfK66CZd7EDz5eCjjCjfMBYiBcfAUVOhUs8TBWgH/SOd+e9tc6UKdpD5cVUPYxbPeKSoSDtbgCc8L8Nz5tJ75ViOzupL4XQPeA08R+YR7jn6nnZpc4nIO1TrRdBo4GCvxcPotivCqFs8B7UT1YNS8sg/I+k8G5xoABXivVqYFWuYTpQNAqtMjAO4HdFZailEvZgn53X5tRRXxP9jgODFB/+gidsxzWtptU+38eC7rSzwcPKo5hYFLL3q7ogT/1pGGpesJ7iQpvCsaOrFEi5jDPFLRO2m462VxfkvnK3Pj2/YJvnvawR8Jp6qnxcNxxtn4OwGI480UhjHL3CuThP8fruFfjjCGtMkAAAAASUVORK5CYII=";var I6=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return i("li",{key:s,staticClass:"file-item"},[e.isImage(a)?i("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[i("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:rB,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:aB,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?i("section",{staticClass:"image-wrapper"},[e.isPdf(a)?i("div",{staticClass:"el-image"},[i("img",{staticClass:"el-image__inner",attrs:{src:rB,alt:""}})]):i("div",{staticClass:"el-image el-attach"},[i("img",{staticClass:"el-image__inner",attrs:{src:aB,alt:""}})]),i("div",{staticClass:"action-area"},[i("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[i("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),i("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[i("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[i("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():i("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[i("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[i("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?i("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?i("div",{staticClass:"file_name",staticStyle:{"text-align":"center",height:"23px","line-height":"23px"}},[e._v(" "+e._s(e.fullFileList[s].fileSize>1024?(e.fullFileList[s].fileSize/(1024*1024)).toFixed(2):(e.fullFileList[s].fileSize/1024).toFixed(2))+" "+e._s(e.fullFileList[s].fileSize>1024?"M":"KB")+" ")]):e._e(),i("div",{staticClass:"file_name",staticStyle:{height:"25px","line-height":"25px"}},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]},{filename:a})],2):e._e()])}),e.showPlus?i("li",{staticClass:"file-item"},[i("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[i("el-icon",{attrs:{color:"#1389ff",size:"35"}},[i("Plus")],1)],1)]):e._e(),e.showEmpty?i("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?i("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?i("section",{staticClass:"value-wrap"}):e._e(),i("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},O6=[];const RZ="",yy={upload:e=>new Promise((n,i)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},T6={name:"JyrFileUpload",inject:{elForm:{default:""}},props:{acceptType:{type:String,default:""},showFileName:{type:Boolean,default:!0},value:{type:[String,Array],default:""},locked:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},fileMaxSize:{type:Number,default:200},hasFilename:{type:Boolean,default:!1},hasContainId:{type:Boolean,default:!1},fullFileObject:{type:Boolean,default:!1},isText:{type:Boolean,default:!1},viewCallBack:{type:Function},remark:{type:String,default:""},showFile:{type:Boolean,default:!1},limit:[String,Number]},data(){return{index:void 0,fileList:[],fullFileList:[],loading:!1}},computed:{previewSrcList(){return this.fileList.filter(e=>this.isImage(e))},showPlus(){return!this.isDisabled&&(this.multiple||this.fileList.length<1)},showEmpty(){return this.isDisabled&&this.fileList.length<1},isDisabled(){return this.locked||this.elForm&&this.elForm.disabled}},watch:{value(){this.composeFileList()}},created(){this.composeFileList()},methods:{async selectFile(){this.$refs.file.click()},onUploadChange(e){const n=e.target.files;if(this.limit!=-1&&n.length+this.fileList.length>this.limit)return this.$message.error("\u6700\u591A\u53EA\u80FD\u9009\u62E9"+this.limit+"\u4E2A\u6587\u4EF6"),!1;n.length;let i=this.fullFileList.map(a=>a.originFileName);for(let a=0;a<n.length;a++){const s=n[a];if(s.size==0)return this.$message.error("\u6587\u4EF6\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"),!1;const c=1024*1024*this.fileMaxSize;if(s.size>c){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${this.fileMaxSize}M`);return}if(!s){this.$refs.file.value=null;return}const f=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(f[f.length-1])<0){this.$refs.file.value=null,this.$errorMessage(`\u6587\u4EF6\u7C7B\u578B\u9650\u5236\u4E3A${this.acceptType}`);return}let m=0,g=s.name;for(;m<i.length&&i.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),C=s.name.substring(y);g=O+"("+m+")"+C}else g=s.name+"("+m+")"}i.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const i=new FormData;i.append("file",e,n);const a=await yy.upload(i);if(this.loading=!1,!a.success)return;if(this.$refs.file.value=null,!this.multiple){if(this.fullFileObject)this.$emit("input",[a.data]),this.$emit("change",[a.data]);else{const c=this.composeFilename(a.data);this.$emit("input",c),this.$emit("change",c)}return}this.index>=0?(this.fileList.splice(this.index,1,this.composeFilename(a.data)),this.fullFileList.splice(this.index,1,a.data)):(this.fileList.push(this.composeFilename(a.data)),this.fullFileList.push(a.data)),this.fileList;const s=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(s)},composeFileList(){if(this.fullFileObject){this.fileList=this.value&&this.value.length?this.value.map(e=>`${e.url}&${e.name}`):[],this.fullFileList=this.value&&this.value.length?this.value.map(e=>e):[];return}this.value?this.fileList=this.value.split(",").filter(e=>e):this.fileList=[]},composeFilename(e){return this.hasFilename?`${e.url}?filename=${e.fileName}`:this.hasContainId?e.id:`${e.url}&${e.name}`},isImage(e){const n=e.split("."),i=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(i)},isDw(e){const n=e.split("."),i=n[n.length-1];return["dwg","dwt"].includes(i)},isPdf(e){const n=e.split("."),i=n[n.length-1];return["pdf"].includes(i)},onDelete(e){if(this.multiple){this.fileList.splice(e,1),this.fullFileList.splice(e,1);const n=this.fullFileObject?this.fullFileList:this.fileList.join(",");this.coputedFullFileList(n)}else this.$emit("input",""),this.$emit("change","")},onPreview(e){if(this.viewCallBack){this.viewCallBack(e,this.fileList);return}let n=this.fileList[e].split("."),i=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(f){return f==i}),c=null;if(this.fileList.forEach((f,m)=>{this.isImage(f)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let f=`${this.fileList[e]}`,m=1;f.indexOf("https")!==-1||f.indexOf("http")!==-1?(m=f.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${f}`)):f.indexOf("http")===-1&&yy.list([f]).then(g=>{m=g.data[0].url.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${g.data[0].url}`)})}},onDownload(e){const n=this.fileList[e];n.indexOf("https")!==-1||n.indexOf("http")!==-1?this.downloadFile(n,n.slice(n.lastIndexOf("&")+1)):yy.list([n]).then(i=>{this.downloadFile(i.data[0].url,i.data[0].url.slice(i.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var i=document.createElement("a");i.download=n,i.style.display="none";var a=new Blob([e]);i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),document.body.removeChild(i)}}},oB={};var N6=dn(T6,I6,O6,!1,M6,"628e6ebd",null,null);function M6(e){for(let n in oB)this[n]=oB[n]}const vh=function(){return N6.exports}();vh.install=e=>{e.component(vh.name,vh)};const sB=Symbol(),bh="el",F6="is-",ps=(e,n,i,a,s)=>{let c=`${e}-${n}`;return i&&(c+=`-${i}`),a&&(c+=`__${a}`),s&&(c+=`--${s}`),c},lB=Symbol("namespaceContextKey"),cB=e=>{const n=e||(w.getCurrentInstance()?w.inject(lB,w.ref(bh)):w.ref(bh));return w.computed(()=>w.unref(n)||bh)},Wr=(e,n)=>{const i=cB(n);return{namespace:i,b:(P="")=>ps(i.value,e,P,"",""),e:P=>P?ps(i.value,e,"",P,""):"",m:P=>P?ps(i.value,e,"","",P):"",be:(P,M)=>P&&M?ps(i.value,e,P,M,""):"",em:(P,M)=>P&&M?ps(i.value,e,"",P,M):"",bm:(P,M)=>P&&M?ps(i.value,e,P,"",M):"",bem:(P,M,T)=>P&&M&&T?ps(i.value,e,P,M,T):"",is:(P,...M)=>{const T=M.length>=1?M[0]:!0;return P&&T?`${F6}${P}`:""},cssVar:P=>{const M={};for(const T in P)P[T]&&(M[`--${i.value}-${T}`]=P[T]);return M},cssVarName:P=>`--${i.value}-${P}`,cssVarBlock:P=>{const M={};for(const T in P)P[T]&&(M[`--${i.value}-${e}-${T}`]=P[T]);return M},cssVarBlockName:P=>`--${i.value}-${e}-${P}`}};/**
21
21
  * @vue/shared v3.5.18
22
22
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
23
23
  * @license MIT
@@ -29,7 +29,7 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0);var sy=function(e
29
29
  `),this},this.appendIndent=function(){return n&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function wV(e){e=Je({format:!1,preamble:!0},e||{});function n(i,a){var s=a||new _V,c=new yV(s,e.format);e.preamble&&c.append(oV);var f=new zt,m=i.$model;if(f.getNamespaces().mapDefaultPrefixes(xV(m)),f.build(i).serializeTo(c),!a)return s.value}return{toXML:n}}function xV(e){const n=e.config&&e.config.nsMap||{},i={};for(const a in Sw)i[a]=Sw[a];for(const a in n){const s=n[a];i[s]=a}for(const a of e.getPackages())i[a.prefix]=a.uri;return i}function om(e,n){ir.call(this,e,n)}om.prototype=Object.create(ir.prototype),om.prototype.fromXML=function(e,n,i){Sr(n)||(i=n,n="bpmn:Definitions");var a=new Ow(Je({model:this,lax:!0},i)),s=a.handler(n);return a.fromXML(e,s)},om.prototype.toXML=function(e,n){var i=new wV(n);return new Promise(function(a,s){try{var c=i.toXML(e);return a({xml:c})}catch(f){return s(f)}})};var EV="BPMN20",kV="http://www.omg.org/spec/BPMN/20100524/MODEL",CV="bpmn",SV=[],DV=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],BV=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],IV={tagAlias:"lowerCase",typePrefix:"t"},OV={name:EV,uri:kV,prefix:CV,associations:SV,types:DV,enumerations:BV,xml:IV},TV="BPMNDI",NV="http://www.omg.org/spec/BPMN/20100524/DI",MV="bpmndi",FV=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],PV=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],RV=[],LV={name:TV,uri:NV,prefix:MV,types:FV,enumerations:PV,associations:RV},jV="DC",QV="http://www.omg.org/spec/DD/20100524/DC",zV="dc",HV=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],VV=[],UV={name:jV,uri:QV,prefix:zV,types:HV,associations:VV},YV="DI",WV="http://www.omg.org/spec/DD/20100524/DI",GV="di",JV=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],KV=[],XV={tagAlias:"lowerCase"},ZV={name:YV,uri:WV,prefix:GV,types:JV,associations:KV,xml:XV},$V="bpmn.io colors for BPMN",qV="http://bpmn.io/schema/bpmn/biocolor/1.0",eU="bioc",tU=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],nU=[],iU=[],rU={name:$V,uri:qV,prefix:eU,types:tU,enumerations:nU,associations:iU},aU="BPMN in Color",oU="http://www.omg.org/spec/BPMN/non-normative/color/1.0",sU="color",lU=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],cU=[],uU=[],dU={name:aU,uri:oU,prefix:sU,types:lU,enumerations:cU,associations:uU};const fU={bpmn:OV,bpmndi:LV,dc:UV,di:ZV,bioc:rU,color:dU};function pU(e,n){const i=Je({},fU,e);return new om(i,n)}var hU="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function mU(e){Xl(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(hU)}})}function ti(e,n){return e.$instanceOf(n)}function gU(e){return Dr(e.rootElements,function(n){return ti(n,"bpmn:Process")||ti(n,"bpmn:Collaboration")})}function AU(e){var n={},i=[],a={};function s(ue,pe){return function(ye){ue(ye,pe)}}function c(ue){n[ue.id]=ue}function f(ue){return n[ue.id]}function m(ue,pe){var ye=ue.gfx;if(ye)throw new Error(`already rendered ${Mn(ue)}`);return e.element(ue,a[ue.id],pe)}function g(ue,pe){return e.root(ue,a[ue.id],pe)}function y(ue,pe){try{var ye=a[ue.id]&&m(ue,pe);return c(ue),ye}catch(Fe){O(Fe.message,{element:ue,error:Fe}),console.error(`failed to import ${Mn(ue)}`,Fe)}}function O(ue,pe){e.error(ue,pe)}var C=this.registerDi=function(pe){var ye=pe.bpmnElement;ye?a[ye.id]?O(`multiple DI elements defined for ${Mn(ye)}`,{element:ye}):(a[ye.id]=pe,mU(ye)):O(`no bpmnElement referenced in ${Mn(pe)}`,{element:pe})};function N(ue){_(ue.plane)}function _(ue){C(ue),We(ue.planeElement,E)}function E(ue){C(ue)}this.handleDefinitions=function(pe,ye){var Fe=pe.diagrams;if(ye&&Fe.indexOf(ye)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!ye&&Fe&&Fe.length&&(ye=Fe[0]),!ye)throw new Error("no diagram to display");a={},N(ye);var K=ye.plane;if(!K)throw new Error(`no plane for ${Mn(ye)}`);var R=K.bpmnElement;if(!R)if(R=gU(pe),R)O(`correcting missing bpmnElement on ${Mn(K)} to ${Mn(R)}`),K.bpmnElement=R,C(K);else throw new Error("no process or collaboration to display");var k=g(R,K);if(ti(R,"bpmn:Process")||ti(R,"bpmn:SubProcess"))M(R,k);else if(ti(R,"bpmn:Collaboration"))Ae(R,k),T(pe.rootElements,k);else throw new Error(`unsupported bpmnElement for ${Mn(K)}: ${Mn(R)}`);P(i)};var P=this.handleDeferred=function(){for(var pe;i.length;)pe=i.shift(),pe()};function M(ue,pe){G(ue,pe),Z(ue.ioSpecification,pe),H(ue.artifacts,pe),c(ue)}function T(ue,pe){var ye=Zl(ue,function(Fe){return!f(Fe)&&ti(Fe,"bpmn:Process")&&Fe.laneSets});ye.forEach(s(M,pe))}function F(ue,pe){y(ue,pe)}function v(ue,pe){We(ue,s(F,pe))}function x(ue,pe){y(ue,pe)}function I(ue,pe){y(ue,pe)}function z(ue,pe){y(ue,pe)}function L(ue,pe){y(ue,pe)}function H(ue,pe){We(ue,function(ye){ti(ye,"bpmn:Association")?i.push(function(){L(ye,pe)}):L(ye,pe)})}function Z(ue,pe){!ue||(We(ue.dataInputs,s(I,pe)),We(ue.dataOutputs,s(z,pe)))}var ie=this.handleSubProcess=function(pe,ye){G(pe,ye),H(pe.artifacts,ye)};function oe(ue,pe){var ye=y(ue,pe);ti(ue,"bpmn:SubProcess")&&ie(ue,ye||pe),ti(ue,"bpmn:Activity")&&Z(ue.ioSpecification,pe),i.push(function(){We(ue.dataInputAssociations,s(x,pe)),We(ue.dataOutputAssociations,s(x,pe))})}function ge(ue,pe){y(ue,pe)}function fe(ue,pe){y(ue,pe)}function Ce(ue,pe){i.push(function(){var ye=y(ue,pe);ue.childLaneSet&&Se(ue.childLaneSet,ye||pe),Oe(ue)})}function Se(ue,pe){We(ue.lanes,s(Ce,pe))}function me(ue,pe){We(ue,s(Se,pe))}function G(ue,pe){J(ue.flowElements,pe),ue.laneSets&&me(ue.laneSets,pe)}function J(ue,pe){We(ue,function(ye){ti(ye,"bpmn:SequenceFlow")?i.push(function(){ge(ye,pe)}):ti(ye,"bpmn:BoundaryEvent")?i.unshift(function(){oe(ye,pe)}):ti(ye,"bpmn:FlowNode")?oe(ye,pe):ti(ye,"bpmn:DataObject")||(ti(ye,"bpmn:DataStoreReference")||ti(ye,"bpmn:DataObjectReference")?fe(ye,pe):O(`unrecognized flowElement ${Mn(ye)} in context ${Mn(pe&&pe.businessObject)}`,{element:ye,context:pe}))})}function re(ue,pe){var ye=y(ue,pe),Fe=ue.processRef;Fe&&M(Fe,ye||pe)}function Ae(ue,pe){We(ue.participants,s(re,pe)),i.push(function(){v(ue.messageFlows,pe)}),H(ue.artifacts,pe)}function Oe(ue){We(ue.flowNodeRef,function(pe){var ye=pe.get("lanes");ye&&ye.push(ue)})}}function vU(e,n,i){var a,s,c,f,m=[];function g(y,O){var C={root:function(P,M){return a.add(P,M)},element:function(P,M,T){return a.add(P,M,T)},error:function(P,M){m.push({message:P,context:M})}},N=new AU(C);O=O||y.diagrams&&y.diagrams[0];var _=bU(y,O);if(!_)throw new Error("no diagram to display");We(_,function(P){N.handleDefinitions(y,P)});var E=O.plane.bpmnElement.id;c.setRootElement(c.findRoot(E+"_plane")||c.findRoot(E))}return new Promise(function(y,O){try{return a=e.get("bpmnImporter"),s=e.get("eventBus"),c=e.get("canvas"),s.fire("import.render.start",{definitions:n}),g(n,i),s.fire("import.render.complete",{error:f,warnings:m}),y({warnings:m})}catch(C){return C.warnings=m,O(C)}})}function bU(e,n){if(!(!n||!n.plane)){var i=n.plane.bpmnElement,a=i;!Ge(i,"bpmn:Process")&&!Ge(i,"bpmn:Collaboration")&&(a=_U(i));var s;Ge(a,"bpmn:Collaboration")?s=a:s=Dr(e.rootElements,function(y){if(!!Ge(y,"bpmn:Collaboration"))return Dr(y.participants,function(O){return O.processRef===a})});var c=[a];s&&(c=n9(s.participants,function(y){return y.processRef}),c.push(s));var f=lO(c),m=[n],g=[i];return We(e.diagrams,function(y){if(!!y.plane){var O=y.plane.bpmnElement;f.indexOf(O)!==-1&&g.indexOf(O)===-1&&(m.push(y),g.push(O))}}),m}}function lO(e){var n=[];return We(e,function(i){!i||(n.push(i),n=n.concat(lO(i.flowElements)))}),n}function _U(e){for(var n=e;n;){if(Ge(n,"bpmn:Process"))return n;n=n.$parent}}var yU='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',cO=yU,uO={verticalAlign:"middle"},dO={color:"#404040"},wU={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},xU={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},EU={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},kU='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+cO+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',$r;function CU(){$r=Qi(kU),Nn($r,wU),Nn(Ea("svg",$r),uO),Nn(Ea(".backdrop",$r),xU),Nn(Ea(".notice",$r),EU),Nn(Ea(".link",$r),dO,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function SU(){$r||(CU(),ql.bind($r,".backdrop","click",function(e){document.body.removeChild($r)})),document.body.appendChild($r)}function en(e){e=Je({},BU,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),OU(this._container)}Jr(en,fo),en.prototype.importXML=async function(n,i){const a=this;function s(f){return a.get("eventBus").createEvent(f)}let c=[];try{n=this._emit("import.parse.start",{xml:n})||n;let f;try{f=await this._moddle.fromXML(n,"bpmn:Definitions")}catch(N){throw this._emit("import.parse.complete",{error:N}),N}let m=f.rootElement;const g=f.references,y=f.warnings,O=f.elementsById;c=c.concat(y),m=this._emit("import.parse.complete",s({error:null,definitions:m,elementsById:O,references:g,warnings:c}))||m;const C=await this.importDefinitions(m,i);return c=c.concat(C.warnings),this._emit("import.done",{error:null,warnings:c}),{warnings:c}}catch(f){let m=f;throw c=c.concat(m.warnings||[]),sm(m,c),m=DU(m),this._emit("import.done",{error:m,warnings:m.warnings}),m}},en.prototype.importDefinitions=async function(n,i){return this._setDefinitions(n),{warnings:(await this.open(i)).warnings}},en.prototype.open=async function(n){const i=this._definitions;let a=n;if(!i){const c=new Error("no XML imported");throw sm(c,[]),c}if(typeof n=="string"&&(a=IU(i,n),!a)){const c=new Error("BPMNDiagram <"+n+"> not found");throw sm(c,[]),c}try{this.clear()}catch(c){throw sm(c,[]),c}const{warnings:s}=await vU(this,i,a);return{warnings:s}},en.prototype.saveXML=async function(n){n=n||{};let i=this._definitions,a,s;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,s=(await this._moddle.toXML(i,n)).xml,s=this._emit("saveXML.serialized",{xml:s})||s}catch(f){a=f}const c=a?{error:a}:{xml:s};if(this._emit("saveXML.done",c),a)throw a;return c},en.prototype.saveSVG=async function(){this._emit("saveSVG.start");let n,i;try{const a=this.get("canvas"),s=a.getActiveLayer(),c=Ea(":scope > defs",a._svg),f=ZI(s),m=c?"<defs>"+ZI(c)+"</defs>":"",g=s.getBBox();n=`<?xml version="1.0" encoding="utf-8"?>
30
30
  <!-- created with bpmn-js / http://bpmn.io -->
31
31
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
32
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+g.width+'" height="'+g.height+'" viewBox="'+g.x+" "+g.y+" "+g.width+" "+g.height+'" version="1.1">'+m+f+"</svg>"}catch(a){i=a}if(this._emit("saveSVG.done",{error:i,svg:n}),i)throw i;return{svg:n}},en.prototype._setDefinitions=function(e){this._definitions=e},en.prototype.getModules=function(){return this._modules},en.prototype.clear=function(){!this.getDefinitions()||fo.prototype.clear.call(this)},en.prototype.destroy=function(){fo.prototype.destroy.call(this),ec(this._container)},en.prototype.on=function(e,n,i,a){return this.get("eventBus").on(e,n,i,a)},en.prototype.off=function(e,n){this.get("eventBus").off(e,n)},en.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=Ea(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},en.prototype.getDefinitions=function(){return this._definitions},en.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},en.prototype._init=function(e,n,i){const a=i.modules||this.getModules(i),s=i.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],f=[].concat(c,a,s),m=Je(l9(i,["additionalModules"]),{canvas:Je({},i.canvas,{container:e}),modules:f});fo.call(this,m),i&&i.container&&this.attachTo(i.container)},en.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},en.prototype._createContainer=function(e){const n=Qi('<div class="bjs-container"></div>');return Nn(n,{width:fO(e.width),height:fO(e.height),position:e.position}),n},en.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new pU(n)},en.prototype._modules=[];function sm(e,n){return e.warnings=n,e}function DU(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const BU={width:"100%",height:"100%",position:"relative"};function fO(e){return e+(ao(e)?"px":"")}function IU(e,n){return n&&Dr(e.diagrams,function(i){return i.id===n})||null}function OU(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+cO+"</a>",a=Qi(i);Nn(Ea("svg",a),uO),Nn(a,dO,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),Es.bind(a,"click",function(s){SU(),s.preventDefault()})}function lc(e){en.call(this,e)}Jr(lc,en),lc.prototype._modules=[U7,cH,h2,mH,l2],lc.prototype._moddleExtensions={};var TU=/^djs-cursor-.*$/;function pO(e){var n=xs(document.body);n.removeMatching(TU),e&&n.add("djs-cursor-"+e)}function NU(){pO(null)}var MU=5e3;function FU(e,n){n=n||"element.click";function i(){return!1}return e.once(n,MU,i),function(){e.off(n,i)}}function hO(e,n){return{x:e.x-n.x,y:e.y-n.y}}var PU=15;function mO(e,n){var i;function a(m){return f(m.originalEvent)}e.on("canvas.focus.changed",function(m){m.focused?e.on("element.mousedown",500,a):e.off("element.mousedown",a)});function s(m){var g=i.start,y=i.button,O=y2(m),C=hO(O,g);if(!i.dragging&&RU(C)>PU&&(i.dragging=!0,y===0&&FU(e),pO("grab")),i.dragging){var N=i.last||i.start;C=hO(O,N),n.scroll({dx:C.x,dy:C.y}),i.last=O}m.preventDefault()}function c(m){Es.unbind(document,"mousemove",s),Es.unbind(document,"mouseup",c),i=null,NU()}function f(m){if(!t2(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return i={button:g,start:y2(m)},Es.bind(document,"mousemove",s),Es.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!i}}mO.$inject=["eventBus","canvas"];function RU(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Bd={__init__:["moveCanvas"],moveCanvas:["type",mO]};var LU=new gw("tt");function jU(e){var n=Qi('<div class="djs-tooltip-container" />');return Nn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function QU(e,n,i){Nn(e,{left:n+"px",top:i+"px"})}function Mw(e,n){e.style.display=n===!1?"none":""}var gO="djs-tooltip",Fw="."+gO;function ni(e,n){this._eventBus=e,this._canvas=n,this._ids=LU,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=jU(n.getContainer());var i=this;ql.bind(this._tooltipRoot,Fw,"mousedown",function(a){a.stopPropagation()}),ql.bind(this._tooltipRoot,Fw,"mouseover",function(a){i.trigger("mouseover",a)}),ql.bind(this._tooltipRoot,Fw,"mouseout",function(a){i.trigger("mouseout",a)}),this._init()}ni.$inject=["eventBus","canvas"],ni.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var n=this._ids.next();return e=Je({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n},ni.prototype.trigger=function(e,n){var i=n.delegateTarget||n.target,a=this.get(uw(i,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ni.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ni.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ni.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}},ni.prototype.remove=function(e){var n=this.get(e);n&&(ec(n.html),ec(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ni.prototype.show=function(){Mw(this._tooltipRoot)},ni.prototype.hide=function(){Mw(this._tooltipRoot,!1)},ni.prototype._updateRoot=function(e){var n=e.scale||1,i=e.scale||1,a="matrix("+n+",0,0,"+i+","+-1*e.x*n+","+-1*e.y*i+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ni.prototype._addTooltip=function(e){var n=e.id,i=e.html,a,s=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Sr(i)&&(i=Qi(i)),a=Qi('<div data-tooltip-id="'+n+'" class="'+gO+'">'),Nn(a,{position:"absolute"}),a.appendChild(i),e.type&&xs(a).add("djs-tooltip-"+e.type),e.className&&xs(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ni.prototype._updateTooltip=function(e){var n=e.position,i=e.htmlContainer;QU(i,n.x,n.y)},ni.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var i=n.show,a=n.htmlContainer,s=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(s=!1),Mw(a,s))})},ni.prototype._init=function(){var e=this;function n(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){n(i.viewbox)})};const Pw={__init__:["tooltips"],tooltips:["type",ni]},zU=e=>{var n=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[n.call(e)]},Rw=e=>{var n=zU(e),i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)i.push(Rw(e[a]));else if(n==="object")for(var c in e)i[c]=Rw(e[c]);return i};function HU(e,n="YYYY-MM-DD HH:mm:ss"){return od(e).format(n)}function VU(e){e=Rw(e);const n={};e.forEach(a=>{n[a.historyActivityId]?n[a.historyActivityId].push(a):n[a.historyActivityId]=[a]});for(let a in n){const s=n[a];if(s.length>1){const c=e.findLast(f=>f.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(f=>f.assigneeName))).join("/")}}const i=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:f,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),f=f.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!f&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${HU(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let C,{type:N,fullMessage:_}=m.find(E=>E.action=="AddComment")||{};N=="assigneeComment"&&(C="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(C="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(C="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(C="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(C="\u9A73\u56DE\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(C="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),N=="addMultiInstanceComment"&&(C="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(C="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(C="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(C="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(C="\u64A4\u9500\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="comment"&&(C="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),C&&(y+=`<span title='${C}'>${C}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=i.findIndex(C=>C.id==a.historyActivityId);O!=-1?i.splice(O,1,g):i.push(g)}),i}function Lw(e){const n=[],i=[],a=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(s=>{s.type==="user"?n.push(...s.ids.filter(c=>c&&c.trim()!=="")):s.type==="post"?i.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(i)],deptIds:[...new Set(a)]}}var UU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}})},YU=[];const YZ="",WU={name:"bpmn-look",props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{scale:1,viewer:null,loading:!0}},mounted(){this.initViewer(),window.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){e.length;let n=e;n&&this.isXml&&this.loadXml(n)},immediate:!0}},methods:{handleWheel(e){e.preventDefault();const n=Math.sign(e.deltaY)*.1;this.scale=Math.max(.5,Math.min(this.scale-n,3)),this.viewer&&this.viewer.get("canvas").zoom(this.scale)},async getXml(e){this.isXml;let n={},i="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(lc)=="[object Function]"?lc:lc.default,n=Object.prototype.toString.call(Pw)=="[object Object]"?Pw:Pw.default,i=Object.prototype.toString.call(Bd)=="[object Object]"?Bd:Bd.default;Object.prototype.toString.call(Bd),this.viewer=new e({container:this.$refs.container,additionalModules:[n,i]}),this.viewer.on("import.done",({error:a})=>{a||(this.canvasResize(),this.addApprovalData())})},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},setNodeColor(e){const n=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),a=this.viewer.get("tooltips");e.forEach(s=>{if(s.id&&s.class&&n.addMarker(s.id,s.class),s.id&&s.tooltip){const c=i.get(s.id);if(c){let{x:f,y:m,type:g}=c;["bpmn:StartEvent","bpmn:EndEvent"].includes(g)?(f=f-45,m=m+65):["bpmn:UserTask"].includes(g)&&(f=f-10,m=m+90),a.add({position:{x:f,y:m},html:s.tooltip})}}})},addApprovalData(){if(this.approvalData,!this.approvalData||this.approvalData.length==0)return;const e=VU(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{e.length;const{warnings:n}=await this.viewer.importXML(e);n.length&&this.$emit("warning",n)}catch(n){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:n.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",n)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},AO={};var GU=dn(WU,UU,YU,!1,JU,"5e479c8e",null,null);function JU(e){for(let n in AO)this[n]=AO[n]}const vO=function(){return GU.exports}();var KU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.boxLoading&&!e.isButton,expression:"boxLoading && !isButton"}],ref:"mianContent",staticClass:"mianContent",class:e.isDialog?"is-dialog":"",style:{}},[e.isButton?e._e():[i("div",{ref:"baseTabs",staticClass:"tabs"},[i("el-tabs",{staticClass:"demo-tabs",on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},e._l(e.tabs,function(a,s){return i("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[i("div",{style:{height:`${e.baseHeight}px`}},[e._t("default",null,{taskNode:e.getTaskNode()})],2)]:a.name=="\u6D41\u7A0B\u56FE"&&!a.slot?[i("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?i("iframe",{key:e.processId,staticStyle:{width:"100%",height:"100%",border:"none"},style:{height:`${e.iframeHeight}px`},attrs:{src:e.trackUrl,scrolling:"no",frameborder:"0"}}):e._e(),e.activeName=="\u6D41\u7A0B\u56FE"&&e.processData.process&&e.processData.process.xml?i("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])]:a.name=="\u5BA1\u6279\u8BB0\u5F55"&&!a.slot?[e.activeName=="\u5BA1\u6279\u8BB0\u5F55"&&e.processData.flow?i("processFlow",{attrs:{"flow-list":e.formatFlow(e.processData.flow)}}):i("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?i("div",{style:{height:`${e.baseHeight}px`}},[a.slot?e._t(a.slot,null,{taskNode:e.getTaskNode()}):e._t("default",null,{taskNode:e.getTaskNode()})],2):e._e()]],2)}),1)],1)],e.isAdditional&&e.absoluteBtns.outside.length>0?i("div",{ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[e._t("btn",null,null,e.processStatus)],2):e.showBtns?!e.ProcessInsObj.end&&e.absoluteBtns.outside.length>0&&e.processStatus.appId!="com.awspaas.user.apps.root"||e.customBtns.length>0?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.footBtnLoading,expression:"footBtnLoading"}],ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[(e.processData.process.status=="todo"||e.customBtns.length>0)&&e.absoluteBtns.outside.length>0?[e.absoluteBtns.inside.length>0?i("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[i("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return i("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[i("el-button",{staticClass:"btn drop-btn",attrs:{type:"text",size:"mini",icon:a.icon,loading:e.buttonLoading}},[e._v(" "+e._s(a.name)+" ")])],1)}),1)]},proxy:!0}],null,!1,1409220773)},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return i("el-button",e._b({key:a.name,attrs:{size:"small",loading:e.buttonLoading},on:{click:function(){a.click(),e.aftClickBtn=a}}},"el-button",a.btnProps,!1),[e._v(" "+e._s(a.name)+" ")])})]:e._e(),e._t("btnAppend")],2):e._e():i("div"),i("div",{staticClass:"dialog"},[i("el-dialog",{staticClass:"dialog",style:e.dynamicStyle,attrs:{visible:e.dialogVisibleOperation,"append-to-body":"",width:"600px",title:e.operationLabel,"close-on-click-modal":!1,"show-close":!e.isOperLoading,"before-close":e.cancelHandlerFn,top:"6vh"},on:{"update:visible":function(a){e.dialogVisibleOperation=a}},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary",loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.cancelHandlerFn}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.dialogVisibleOperation,callback:function(a){e.dialogVisibleOperation=a},expression:"dialogVisibleOperation"}},[i("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?i(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam,isOperLoading:e.isOperLoading},on:{success:e.operationSuccess,fail:e.operationFail},scopedSlots:e._u([{key:"form",fn:function(){return[e.aftClickBtn.slot?e._t(e.aftClickBtn.slot):e._e()]},proxy:!0},{key:"file",fn:function(){return[e.attachShow?i("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{multiple:e.attachRule.limit>0,limit:e.attachRule.limit,fullFileObject:"",showFileName:""},model:{value:e.attach,callback:function(a){e.attach=a},expression:"attach"}})],1)],1):e._e()]},proxy:!0}],null,!0)}):e._e()],1)]),i("el-dialog",{attrs:{title:"\u9009\u62E9\u5904\u7406\u4EFB\u52A1",visible:e.showMulTask,"append-to-body":"","close-on-click-modal":!1,width:"500px","show-close":!1},on:{"update:visible":function(a){e.showMulTask=a}},model:{value:e.showMulTask,callback:function(a){e.showMulTask=a},expression:"showMulTask"}},[i("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[i("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.mulTaskTaskId,callback:function(a){e.mulTaskTaskId=a},expression:"mulTaskTaskId"}},e._l(e.mulTaskList,function(a){return i("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),i("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),i("el-dialog",{attrs:{visible:e.nodeInfoVisible,"append-to-body":"",width:"600px",title:"\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",modal:!1,"close-on-click-modal":!1},on:{"update:visible":function(a){e.nodeInfoVisible=a}},model:{value:e.nodeInfoVisible,callback:function(a){e.nodeInfoVisible=a},expression:"nodeInfoVisible"}},[i("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[i("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),i("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),i("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"}})],1)],1)],1)],2)},XU=[];const WZ="",GZ="",ZU={components:{processBtns:G8,processFlow:q8,bpmnLook:vO,staffTree:va,...iB,ViewFile:I5,JyrFileUpload:vh},props:{taskId:{default:!1,type:String},processId:{default:"",type:String},userId:{require:!0,default:"",type:String},showBtns:{default:!0,type:Boolean},isView:{default:!1,type:Boolean},getVars:{type:Function},before:{type:Function},isAlis:{type:Boolean,default:!1},isAdditional:{type:Boolean,default:!1},businessData:{type:Object,default:void 0},excludeBtn:{type:String,default:""},showAsPlanned:{type:Boolean,default:!1},showCommIdea:{type:Boolean,default:!0},commentMsgRequired:{type:Boolean,default:!0},customBtn:{default:""},tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},personType:{default:""},personEntity:{type:Object,default:()=>{}},isButton:{type:Boolean,default:!1},isDialog:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},headerRowStyle:{type:Object||Function,default:()=>({"background-color":"rgb(245, 247, 250)",color:"#333"})},extraHeight:{type:Number,default:0}},provide(){return{isAlisInject:this.isAlis}},data(){return{incomingConditionItemList:[],deptId:"",initProcessData:{button:[],flow:[],form:{},process:{}},processData:{button:[],flow:[],form:{},process:{}},submitLoading:!1,flowChartVisible:!1,comment:null,dynamicMaxHeight:"400px",showMulTask:!1,mulTaskList:[],mulTaskTaskId:"",attach:[],customBtns:[],overheight:10,iframeHeight:500,baseHeight:500,mainWidth:0,absoluteTaskId:"",infoView:!1,showTopTabs:!1,buttonLoading:!1,footBtnLoading:!0,tabheight:400,aftClickBtn:"",attachRule:{required:!0,limit:0},nodeInfoVisible:!1,nodeInfoList:[],jjForm:{saveMetaAnnexCmdList:[]},targetUID:"",commentMsg:"",trackUrl:"",taskObj:{},taskCommentList:[],absoluteBtns:{inside:[],outside:[]},processStatus:"",nextTaskNode:[],activeName:"\u57FA\u672C\u4FE1\u606F",ProcessInsObj:{},outGatewayUserTaskModel:[],dialogVisibleOperation:!1,operationLabel:"",operationCom:{},operationParam:{},taskNode:[],aftTaskNode:{},operation:iB,Enum:Tp,isOperLoading:!1,isOperationHidden:!1,boxLoading:!1,rules:{attach:[{required:!0,trigger:"change"}]},noReload:!1,digitalSignatureList:[]}},mounted(){window.onresize=()=>(()=>{this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth)})()},watch:{activeName:function(e){e==1&&(this.activeName="\u57FA\u672C\u4FE1\u606F")},infoView:function(){this.calculateHeight()},taskId:{handler(e){!e||(this.absoluteTaskId=e)},deep:!0,immediate:!0},processId:{handler(e){if(e){if(this.customBtns=[],this.absoluteBtns={inside:[],outside:[]},this.boxLoading=!0,this.activeName=this.tabs.length>0?this.tabs[0].name:"",this.getProcessInfo(),Date.now())return;Ze.repository.queryTaskNodeList(this.processId).then(n=>{if(!this.noReload)if(this.noReload=!1,!this.absoluteTaskId&&n.data.length>1){this.mulTaskList=n.data,this.showMulTask=!0;return}else this.absoluteTaskId=n.data&&n.data.length>0?n.data[0].taskId:"",this.aftTaskNode=n.data[0];this.absoluteTaskId,n.code==bt.success&&(this.taskNode=n.data,Ze.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(i=>{i.code==bt.success&&(this.processStatus=i.data,this.$emit("getStatus",i.data),this.absoluteTaskId?Ze.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==bt.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Ze.repository.getTrackUrl({processInstId:e,type:n_.\u7535\u8111\u7AEF}).then(n=>{n.code==bt.success&&(window.location.protocol=="https:"?n.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=n.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):n.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=n.data:this.trackUrl=n.data)}),Ze.tis.getTaskCommentList(this.processId,"").then(n=>{this.taskCommentList=n.data,this.digitalSignatureList=n.data.filter(i=>i.digitalSignature).map(i=>i.digitalSignature)}),Ze.pis.getProcessInstanceById(this.processId).then(n=>{this.ProcessInsObj=n.data,this.$nextTick(()=>{this.calculateHeight()})})}},immediate:!0,deep:!0},absoluteTaskId:{handler(e){},immediate:!0,deep:!0},dialogVisibleOperation:{handler(e){this.$emit("show-modal",e)}}},methods:{formatFlow(e){return(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(a=>a.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(a=>a.type=="signature")}))},cancelHandlerFn(){this.dialogVisibleOperation=!1,this.submitLoading=!1},filterFlow(e){return e.filter(n=>["userTask","candidate"].includes(n.historyActivityType))},getProcessInfo(){this.submitLoading=!0,this.boxLoading=!0,Ze.tis.getTaskModelDetail(this.taskId?{processInstId:this.processId,taskId:this.taskId}:{processInstId:this.processId}).then(async e=>{if(e.code==200){this.processData={...this.initProcessData,...e.data||{}};const n=((this.processData.process||{}).variables||{}).deptId;this.deptId=n;const i=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=i,this.straightenBtns(),this.$nextTick(()=>{this.calculateHeight()}),this.processData.flow,this.flowChartVisible=!0,this.submitLoading=!1,this.boxLoading=!1}})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Lw(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==Enum.apiCode.success){const s=this.processList[n];s.userList=a.data,this.$set(this.processList,n,s)}})},handleDraft(){this.submitLoading=!0},handleExamine(e,n){e?this.handlePass(n):this.handleCancel(n),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.isOperationHidden=!0,this.before?this.before().then(()=>{this.showOperation(by,e)}):this.showOperation(by,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextTaskNode:this.nextTaskNode},this.isOperationHidden=!1)},handleCancel(e){this.showOperation(KD,e)},handleUserSelect({type:e,checkType:n,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},handleTransfer(e){this.showOperation(VD,e)},handleAddInstance(e){this.showOperation(QD,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(ZD,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(nB,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,i="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[i];if(!a)return null;if(i=="children"){for(let s=0;s<=a.length-1;s++)if(a[s].classList.contains(n))return a[s];return}return this.findTargetHtml(a,n)},findImageIndex(e){return e?this.digitalSignatureList.findIndex(n=>n==e):-1},onCheckSure(){this.absoluteTaskId=this.mulTaskTaskId,this.mulTaskList.map(n=>{n.taskId==this.mulTaskTaskId&&(this.aftTaskNode=n)}),this.noReload=!0,this.showMulTask=!1,this.footBtnLoading=!0;let e=this.processId;Reflect.set(this.processId,""),Reflect.set(this.processId,e)},showButtonLoading(){this.buttonLoading=!0},hideButtonLoading(){this.buttonLoading=!1},calculateHeight(){let e=0;if(this.$refs.footBtnRow&&(e+=this.$refs.footBtnRow.offsetHeight),this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth),this.infoView&&this.absoluteBtns.outside.length>0&&(e+=32),this.$refs.infoBoxFign){let n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.tabheight=n-this.$refs.infoBoxFign.offsetTop-192}this.overheight=e+116,this.iframeHeight=this.$refs.mianContent.offsetHeight-146,this.baseHeight=this.$refs.mianContent.offsetHeight-70-e-this.extraHeight},getNodeList(){this.nodeInfoVisible=!0},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(i=>{i.label==e&&(i.label=n)}),this.straightenBtns()}})},async getNextNode(e){let n;try{n=await Ze.tis.simulation(this.absoluteTaskId,this.processId)}catch(a){console.error(a),n={}}let i=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async showOperation(e,n){this.attach=[],this.operationLabel=n,this.operationParam.processInstId=this.processId,this.operationParam.taskInstId=this.absoluteTaskId,this.operationParam.nextTaskNode=this.nextTaskNode,this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.variables=(this.processData.process||{}).variables||{},this.operationParam.extendedProperties=(this.processData.form||{}).extendedProperties||[],this.operationParam.taskObj=this.taskObj,this.operationParam.getVars=this.getVars,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.getTaskNode(),this.operationParam.businessData=this.businessData,this.operationParam.showAsPlanned=this.showAsPlanned,this.operationParam.showCommIdea=this.showCommIdea,this.operationParam.commentMsgRequired=this.commentMsgRequired,this.operationParam.personType=this.personType,this.operationParam.personEntity={...this.personEntity,...this.aftClickBtn.personEntity||{}},this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationCom=e,this.dialogVisibleOperation=!0,this.$nextTick(()=>{var m,g;let i=this.$refs.obRef;if(this.$refs,!i)return;let a=(m=i.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(i,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),f=window.innerHeight-((g=i.getBoundingClientRect())==null?void 0:g.top)-a-(c==null?void 0:c.clientHeight)-32;this.dynamicMaxHeight=`${f}px`})},onClickOperation(){if(this.attachShow&&this.attachRule.required&&this.attach.length==0)return hd.error("\u8BF7\u4E0A\u4F20\u9644\u4EF6");this.aftClickBtn.preposition?this.operationMain(this.aftClickBtn.preposition):this.operationMain()},operationMain(e=!1){let n;this.attachShow&&(n=[],this.attach.map(i=>{n.push({id:i.id,name:this.fileNameLastof(i.name),size:i.fileSize,format:i.fileType,url:i.url,uploadTime:i.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((i,a)=>od(i.uploadTime).valueOf()>od(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){hd.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&hd.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let a=0;a<i.branches.length;a++){let s=i.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(f){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,i.branches[a]=s}else if(i.nodeType=="userTask"&&!i.setPersonnel){let a=Lw(i),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==bt.success}catch(c){}s.code==bt.success&&(i.userList=s.data)}return i},async getOutgoingProcessNode(e,n){let i=await Ze.repository.getOutgoingProcessNode(e,n);if(i.code==bt.success){if(i.data){for(let a=0;a<i.data.length;a++){let s=i.data[a];s.incomingConditionItemList&&s.incomingConditionItemList.length!==0&&(s.nodeInfoDTO.incomingConditionItemList=s.incomingConditionItemList,s.incomingConditionItemList,this.incomingConditionItemList.push(...s.incomingConditionItemList)),s.nodeInfoDTO.nodeType!="userTask"&&(s.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,s.nodeInfoDTO.id)),i.data[a].type!="endEvent"&&(i.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||i.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Ze.repository.getParticipantsOfPerformerNames(e,[i.data[a].id]).then(c=>{i.data[a].routeTxt.userNames=c.data[i.data[a].id]})}i.data.length==0&&i.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return i.data}return[]},getColor(e){return e=="\u5BA1\u6838\u4E2D"||e=="\u5BA1\u6279\u4E2D"?"#6DC743":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleClick(e,n){this.$emit("clickTab",e.$vnode?JSON.parse(JSON.stringify(e.$vnode.data.attrs.item)):e.props,e.index)},getTaskNode(){return this.taskNode.filter?this.taskNode.filter(e=>e.nodeId==this.taskObj.id):[]},handleRevoke(){MI.confirm("\u786E\u5B9A\u64A4\u9500\u5417","\u64A4\u9500",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ze.tis.withdrawTask(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){MI.confirm("\u786E\u5B9A\u50AC\u529E\u5417","\u50AC\u529E",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.ProcessInsObj,Ze.tis.reminders(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(e=>{})},getButton(e){return(this.processData.button||[]).find(n=>n.buttonKey==e)},operBtn(){let e=[];const n=this.processData.process;if(!n)return e;if(n.status=="todo"&&n.isMultiInstance&&this.getButton("wf_add_instance")){let i={};i.name=this.getButton("wf_add_instance").name,i.btnProps={type:"primary"},i.key="sign",i.click=()=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name})},e.push(i)}if(n.status=="todo"&&this.getButton("wf_transfer")){let i={};i.name=this.getButton("wf_transfer").name,i.key="delegate",i.click=()=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name})},e.push(i)}if(n.status=="todo"&&this.getButton("wf_delegate")){let i={};i.name=this.getButton("wf_delegate").name,i.btnProps={type:"warning"},i.key="cc2",i.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name})},e.push(i)}if(n.status=="todo"&&this.getButton("wf_terminate")){let i={};i.name=this.getButton("wf_terminate").name,i.btnProps={type:"danger"},i.key="cc3",i.click=()=>{this.handleTerminateProcess()},e.push(i)}if(n.status=="todo"&&this.getButton("wf_cctask")){let i={};i.name=this.getButton("wf_cctask").name,i.btnProps={type:"primary"},i.key="cc",i.click=()=>{this.handleCirculate(this.getButton("wf_cctask").name)},e.push(i)}if(n.status=="todo"&&this.userId==(n.variables||{}).applyUserId){let i={};i.name="\u50AC\u529E",i.key="self",i.click=()=>{this.handleReminders()},e.push(i)}if(n.isOwner&&n.isReturnable&&!["recall","reject"].includes(n.processIsFinished)){let i={};i.name="\u64A4\u9500",i.btnProps={type:"danger"},i.key="self",i.click=()=>{this.handleWithdrawTask("\u64A4\u9500")},e.push(i)}if(n.status=="todo"&&this.getButton("wf_reject")){let i={};i.name=this.getButton("wf_reject").name,i.btnProps={type:"danger"},i.key="refuse",i.click=()=>{this.handleExamine(!1,this.getButton("wf_reject").name)},e.push(i)}if(n.status=="todo"&&this.getButton("wf_pass")){let i={};i.name=this.getButton("wf_pass").name,i.btnProps={type:"primary"},i.key="complete",i.click=()=>{this.before?this.before().then(()=>{this.handleExamine(!0,this.getButton("wf_pass").name)}):this.handleExamine(!0,this.getButton("wf_pass").name)},e.push(i)}if(n.status=="todo"&&this.getButton("wf_rollback")){let i={};i.name=this.getButton("wf_rollback").name,i.btnProps={type:"danger"},i.key="back",i.click=()=>{this.handleRollbackTask(this.getButton("wf_rollback").name)},e.unshift(i)}return e},straightenBtns(e=!0){let n=[];this.excludeBtn?this.operBtn().map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}):n=this.operBtn(),this.customBtns.length>0&&(n=[],this.customBtns.map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}));let i={outside:[],inside:[]};n.length>4?(i.outside=n.splice(n.length-4,n.length-1),i.inside=n):i.outside=n,e&&this.customBtn?this.customBtn({btnList:this.operBtn(),processStatus:this.processStatus},a=>{this.customBtns=a,this.straightenBtns(!1)},()=>{this.$emit("Complete")}):(this.absoluteBtns=i,this.$nextTick(()=>{this.calculateHeight(),this.footBtnLoading=!1,this.boxLoading=!1}))}},computed:{dynamicStyle(){return{"--dynamic-ctx-height":this.dynamicMaxHeight}},attachShow(){const e=(this.processData.form||{}).extendedProperties||[];let n=!1,i,a="";switch(this.operationLabel){case"\u9000\u56DE":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u5904\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u540C\u610F":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"";break;case"\u52A0\u7B7E":i=e.find(c=>c.name=="counterSignButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u8F6C\u529E":i=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=i?i.value:"",a&&(n=!0);break}let s="";if(typeof a!="string"&&a!=null&&a.map(c=>{c.indexOf(this.operationLabel)!=-1&&(n=!0,s=c)}),s&&(a=s),n){const c=a.split(":");this.attachRule.required=c[1]=="true",this.attachRule.limit=c[2]==-1?999:c[2]}return n}}},bO={};var $U=dn(ZU,KU,XU,!1,qU,"1398d878",null,null);function qU(e){for(let n in bO)this[n]=bO[n]}const _O=function(){return $U.exports}(),eY=async(e,n)=>{const i=n||{},a=i.dragElement||(i.targetClassName?yO(e,i.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(v=>{s=v[0].isIntersecting,s||F()}).observe(a);const f=i.dragHeader||".el-dialog__header",m=a.querySelector(f),g=i.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,C,N,_;const E=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=x=>{O=!0;const I=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);C=I?parseFloat(I[1]):0,N=I?parseFloat(I[2]):0,document.addEventListener("mousemove",M),document.addEventListener("mouseup",T)};const v=a.getBoundingClientRect();_={"+x":y.right-v.right,"-x":y.left-v.left,"+y":y.bottom-v.bottom,"-y":y.top-v.top}}},P=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=v=>{}};w.watch(i.dialogConfig,(v,x)=>{v.fullScreen&&(P(),F())}),E();const M=v=>{if(!O)return;v.stopPropagation(),v.preventDefault();let x=v.movementX+C,I=v.movementY+N;x>=0?x=x>=_["+x"]?_["+x"]:x:x=x<=_["-x"]?_["-x"]:x,I>=0?I=I>=_["+y"]?_["+y"]:I:I=I<=_["-y"]?_["-y"]:I,a.style.transform=`translate(${x}px, ${I}px)`,C=x,N=I},T=()=>{O=!1,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},F=()=>{a.style.transform="none"}};function yO(e,n){if(!e)return null;if(e.classList.contains(n))return e;let i=e.parentElement;return i?yO(i,n):null}const tY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACktJREFUeF7tnV1S3DgURqVuZh+dlQArCbyESdWQolcArKCpMFUJeYGsBLKS9D6GtKZsAiEBuq9VvrLFd/I2NbKlez6dlvxTOAb+QQACLxKIsIEABF4mgCDMDgisIYAgTA8IIAhzAAJ5BFhB8rhxlAgBBBEJmjLzCCBIHjeOEiGAICJBU2YeAQTJ48ZRIgQQRCRoyswjgCB53DhKhACCiARNmXkEECSPG0eJEEAQkaApM48AguRx4ygRAggiEjRl5hFAkDxuHCVCAEFEgqbMPAIIkseNo0QIjF6QxeLTrFQW8/n7Zam+xtxPKeY18B6VIG0wW5O9GOJ2SGkWYigmRzthU1iGSbpJ/6XTGsLrU7KGffwrHocU9/o878ZzNcybfzEuUwpfQ/yxnB++v9l4XKEGoxBkcX5xElN4W1yIlyCnsDz6cPCmUAaj6Obs48X3MfFPMXydHx6cDA1nUEFaMUI4HhrCc/2nEE7HEFAJNmf/fr4svnJYCkthObQogwjSLufTyfVofrGeDSveHB2+27XkWHub0QpyD7YR5cdqd4htb3FBFuefdmKYXI9+UsV0dfTP3/ujH2cPAzw7/3IdQtrp4VR+pxhoNSkqyJi3VE+SFRJk8fHLXozp0m9293fm0lvfYoJUJYfYRXodW95fkpWUpIgg1Wyr7u43ylx7PP5d/3WLfZw3Tf5cg0pJ4i5Ilhw/95t3UFZ398Rvf94v72+1fnKmIS4CHcvJOnWph4Tt4LbCLKTpLE5W253vorVzZLXv/czEXZBO99ebokM8nX94d5WVLgdVTaC9Fgrp2Hx3s8BW2FWQLhd/pZbMqmeQwOC7bvVSivueP6iuglhXjxRWu95LpcDcelUlmrfmzquImyDWu1bI8armda/FWCXxXEXcBLGsHmyrep1Pr/Jkph9ax1XET5Dzi7Q2MceiXuVMES2qfUazNb3c9KTfayfiIojl4tyrINF59KrLtmy1vHYjLoJYXn47Ojxw6ftVzxTh4jZv2X0e8LpM0o3FCL3nJDyney194wuVTlt2H0E2XH943nXoNRVONhoCG7ftr0oQnnuMZuLVMhDLdYjHtr33FeTursPk+zrw6Xb1hveeapma4xjnUPMKQcaRP6PYQABBmCIQWEMAQZgeEECQOwJcg+BCVwKsIF2J0V6KAIJIxU2xXQkgSFditJcigCBScVNsVwII0pUY7aUIIIhU3BTblQCCdCVGeykCCCIVN8V2JYAgXYnRXooAgkjFTbFdCSBIV2K0lyKAIFJxU2xXAgjSlRjtpQggiFTcFNuVAIJ0JUZ7KQIIIhU3xXYlgCBdidFeigCCSMVNsV0JIEhXYrSXIoAgUnFTbFcCCNKVGO2lCEgJ4vEnIqVmi2CxFkE85lXvf1mxyW7t5w/4y+6C07ufkoeYVy6CtLZPJ9dPPufr9Be4+8HPWcZOYIh55SJIA/rX53zjdvPfKaRv88ODk7GHwPjGTaD0vHITZNyYGR0EbAQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEXAVZnF+cxBC3G7YppG/zw4MTUc6U3SOBkvPKTZCzjxffQwyz37iksEw/Vrvz+ftlj7w4lRCB0vPKRZCz8y/XIaSdZ3OL6eron7/3hTKl1J4IDDGvnAS5SC8ySWF59OHgTU/MOI0QgbPz8vOqd0EWi0+zuDX5vi63dLt6wzZLaGb3UOpQ8wpBegiPU/gTQBB/xvRQMQEEqTg8hu5PAEH8GdNDxQQQpOLwGLo/AQTxZ0wPFRNAkIrDY+j+BBDEnzE9VEwAQSoOj6H7E0AQf8b0UDEBBKk4PIbuTwBB/BnTQ8UEEKTi8Bi6PwEE8WdMDxUTQJCKw2Po/gQQxJ8xPVRMAEEqDo+h+xNAEH/G9FAxAQSpODyG7k8AQfwZ00PFBBCk4vAYuj8BBPFnTA8VE0CQisNj6P4EEMSfMT1UTEBLkLDanR++v6k4L4ZemMDi/NNODJPrdd16/EHCYf5wHIIUnl71d7f4+GUvxnRZvSBNAWv/hmrzKYQU9+cf3l3VHxsVlCJgEeTo8KD3H/zeT9gK8tynD34jGW+ODt/tloJLP/UTOPv382VIce/FSpz+KLqPIOs+f9BU6FRM/dOACl4isPFH1+mzGi6CWJbDxHUINhgJmOaT07bdRxDDJxBYRYyzg2aGLXsIHnewGvQugtxdqK/5ytTP0FMIp3y3EAPWEbj7HmE43kTJ4wLdVRDLstisIimu9nkmsil+zf9vefbRXtI6ba98BWm2WdPJ9ZMPef6ZdStJ+MpKoinBS1Vb5WiO91o9XAVpTm5aRX7e1UISBLknYN1Wea8e/oK0F+vTyxe/eMtqghWPCLSrRppcbtx13B9T4HGB20X6w6+B5Y7WM6KESbpJq8m3EH/cfVP9Nrh/W50Pi94F0bwYWMTcrTALaToLMc0sF+JPp4n/O33ugnTaahVJZU0nKSxbMf9Lp2qytG/L/hWP1z6tHjqfR/2Xeo5WRJBWEuPtulFkUGDpHkWdjwax8Un1iAZc8vFAOUGaZXtrspezlA6RTckQhqjvcZ8b33MaeoC/rRxln50VE+ThmsTw2vI48tB5obIWQUptqx7Pv+KC3F8Emp6RDGmK08tvQ5b0Ut+Wtx4GHfeAD5QHEeThTkmz5Urhrfm2XsmUhAQxP68qyb/pawQPkQcT5GHL9XBtErfNz0u8gxK7SG/vYFneevDmfn/+EYhxP5TBBXnMvL3/Pp3uxBjehpRmw6wsOtceT9gPdROlub0e4zKF9C3crq7GdIt9VII89wNV7KFVCGFMwZT6sf6zH3j/TmT0ggw1UegXAg0BBGEeQGANAQRhekAAQZgDEMgjwAqSx42jRAggiEjQlJlHAEHyuHGUCAEEEQmaMvMIIEgeN44SIYAgIkFTZh4BBMnjxlEiBBBEJGjKzCOAIHncOEqEAIKIBE2ZeQQQJI8bR4kQQBCRoCkzjwCC5HHjKBECCCISNGXmEUCQPG4cJUIAQUSCpsw8Av8DJjgSI/ED2TgAAAAASUVORK5CYII=";var nY=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-dialog",{staticClass:"process-dialog",attrs:{visible:e.visible,width:e.width||"60%","close-on-click-modal":!1,fullscreen:e.fullscreen,title:"\u6D41\u7A0B\u4FE1\u606F","append-to-body":"",top:"5vh"},on:{"update:visible":function(a){e.visible=a},closed:e.onClickCancel,close:e.close,open:e.open},scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticClass:"dialog-header"},[e._t("title",function(){return[i("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),i("div",{staticClass:"dialog-icon"},[i("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[i("img",{attrs:{src:tY,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?i("process",e._b({ref:"process",attrs:{processId:e.paramsProcessId,isDialog:!0,fullscreen:e.fullscreen,tabs:e.tabs},on:{Complete:e.Complete,clickTab:e.handleTab,clickCustomButton:e.handleCustomButton,"get-status":e.getStatus}},"process",e.$attrs,!1),[i("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},iY=[];const JZ="",rY={components:{process:_O},props:{dragable:!1,value:Boolean,width:String,processId:String,tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},parentEl:null},model:{prop:"value",event:"update:value"},data(){return{showProcess:!1,paramsProcessId:"",fullscreen:!1}},computed:{visible(){return this.value}},mounted(){this.$attrs},methods:{initDom(){this.fullscreen=!1},onClickCancel(){this.$emit("update:value",!1)},Complete(){this.$emit("Complete")},open(){this.showProcess=!0,this.paramsProcessId=this.processId;let e={targetClassName:"el-dialog"};(this.parentEl||window.$wujie.props.el())&&(e.restrictElement=this.parentEl||window.$wujie.props.el()),this.$nextTick(()=>{this.$refs,this.$refs.process,eY(this.$refs.process.$el||this.$refs.process,e)})},close(){this.$emit("close"),this.paramsProcessId="",this.showProcess=!1,this.$refs.process.activeName=this.tabs[0].name},handleTab(e,n){this.$emit("clickTab",e,n)},handleCustomButton(e){this.$emit("clickCustomButton",e)},getStatus(e){this.$emit("getStatus",e)}}},wO={};var aY=dn(rY,nY,iY,!1,oY,null,null,null);function oY(e){for(let n in wO)this[n]=wO[n]}const sY=function(){return aY.exports}();var lY=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{staticClass:"flow-dialog",attrs:{visible:e.flag,width:"45%","close-on-click-modal":!1,title:e.revival?"\u6D41\u7A0B\u590D\u6D3B":"\u521B\u5EFA\u5E76\u542F\u52A8\u6D41\u7A0B","append-to-body":""},on:{"update:visible":function(a){e.flag=a},closed:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{attrs:{loading:e.btnLoading},on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.flag,callback:function(a){e.flag=a},expression:"flag"}},[i("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?i("el-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{filterable:"",clearable:"",placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.processDefChange},model:{value:e.processDefId,callback:function(a){e.processDefId=a},expression:"processDefId"}},e._l(e.processDefList,function(a,s){return i("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):i("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?i("div",{staticClass:"view-node-info",staticStyle:{"margin-right":"10px"},on:{click:e.viewFlowChart}},[e._v(" \u9884\u89C8 ")]):e._e(),e.processDefId&&e.showFlowForecast?i("div",{staticClass:"view-node-info",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()],1),e.hasDeptId?e._e():i("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[i("el-tree-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{data:e.deptList,props:e.defaultProps,"node-key":"id","check-strictly":"","render-after-expand":!1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.handleDeptChange},model:{value:e.deptId,callback:function(a){e.deptId=a},expression:"deptId"}})],1),e.deptId?i("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",size:"medium"}}):e._e(),e.processList.length>0?[e._l(e.processList,function(a,s){return[i("userTask",{ref:e.setItemRef(a.id),refInFor:!0,attrs:{index:s,personType:e.personType,personEntity:Object.assign({},e.personEntity,{_businessDeptId:e._businessDeptId}),processNode:Object.assign({},a,{REQUIRED:s==0}),label:"\u5904\u7406\u4EBA",rules:[{required:s==0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA"}]},on:{complete:e.complete}}),s!==e.processList.length-1?i("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),i("el-dialog",{staticClass:"track-view",attrs:{visible:e.flowChartVisible,width:"60%","append-to-body":"",title:"\u6D41\u7A0B\u56FE\u4FE1\u606F"},on:{"update:visible":function(a){e.flowChartVisible=a}},model:{value:e.flowChartVisible,callback:function(a){e.flowChartVisible=a},expression:"flowChartVisible"}},[e.flowChartVisible&&e.processXml?i("bpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml}}):e._e()],1),i("el-dialog",{attrs:{visible:e.flowForecastVisible,width:"45%","append-to-body":"",title:"\u6D41\u7A0B\u9884\u6D4B"},on:{"update:visible":function(a){e.flowForecastVisible=a},close:e.flowForecastClose}},[i("div",{staticStyle:{"margin-left":"20px"}},[i("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),i("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return i("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[i("div",[i("span",{staticStyle:{color:"#1389FF"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),i("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},cY=[];const KZ="",XZ="";var cc=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{cc=e});const uY={components:{userTask:vy,bpmnLook:vO},props:{other:{default:!0},personType:"",personEntity:{type:Object,default:()=>{}},beforeFunction:{type:Function,default:null},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{revivalVars:{},processData:{},absoluteTaskId:"",userTaskListData:{},flag:!1,revival:!1,flowChartVisible:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:"",btnLoading:!1,processList:[],processDefId:"",processDefName:"",businessId:"",trackUrl:"",processDefList:[],otherProcessList:[],callback:{},cancelCallBack:{},_multiNodeParticipant:[],_businessDeptId:"",businessCode:"",_vars:{},_appId:"",deptList:[],defaultProps:{children:"children",label:"label",isLeaf(e,n){return e.isLeaf=="true"}},userInfo:{},deptId:"",hasDeptId:!1,subjectId:"",processXml:""}},provide(){return{getUserInfo:this.getUserInfo}},methods:{getUserInfo(){return{deptId:this.deptId,subjectId:this.subjectId}},handleDeptChange(e){this.deptId=e,this.getUserDataByDeptId()},complete(e){},setLoading(e){this.btnLoading=e},async getXml(e){this.isXml;let n={},i="";try{n=await Ze.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Ze.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:n_.\u7535\u8111\u7AEF}).then(e=>{e.code==bt.success&&(window.location.protocol=="https:"?e.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=e.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):e.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=e.data:this.trackUrl=e.data,this.flowChartVisible=!0)})},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this._appId,title:"1"})},forecast(e){return this.btnLoading=!0,new Promise((n,i)=>{Ze.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==bt.success?(a.data&&a.data.processBudgetModelList&&a.data.processBudgetModelList.length?this.flowForecastProcessInstId=a.data.processBudgetModelList[0].processInstId:(a.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=a.data,this.flowForecastVisible=!0,n(a)):ElMessage.error(a.msg)}).catch(a=>{this.btnLoading=!1,ElMessage.error("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Ze.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==bt.success&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})},processDefChange(e){this.processDefId=e,Ze.repository.getFirstProcessNode(this.processDefId).then(async n=>{if(n.code==bt.success){if(this.processList=n.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},createAndStart(e){return this.btnLoading=!0,new Promise((n,i)=>{Ze.pis.createAndStart({processDefId:this.processDefId,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:{showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode,...e,...this._vars}}).then(a=>{this.btnLoading=!1,a.code==bt.success?(this.flag=!1,n(a)):cc.error(a.msg)}).catch(a=>{this.btnLoading=!1,cc.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(a)})})},revivalFlow(e={},n=!1,i="\u6D41\u7A0B\u590D\u6D3B"){return this.btnLoading=!0,new Promise((a,s)=>{const c={...this.revivalVars,showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode,...e,...this._vars};Object.keys(c).forEach(f=>{const m=f.toLowerCase();m.includes("_")&&delete c[f],m=="appShow"&&delete c[f]}),Ze.pis.reactivate({reactivate:!0,processDefId:this.processDefId,processInstId:this.processInstId,isClearHistory:this.isClearHistory,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:c},"",this.businessId,i,"",n,this._multiNodeParticipant).then(f=>{this.btnLoading=!1,f.code==bt.success?(this.flag=!1,a(f)):cc.error(f.msg)}).catch(f=>{this.btnLoading=!1,cc.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(f)})})},Show(e,n="",i=!1){return this.processList=[],this.revival=i,this.processDefId=e,n&&Ze.repository.getProcessDefList(n,"").then(a=>{a.code==bt.success&&a.data.map(s=>{s.id==e&&(this.processDefName=s.name)})}),new Promise((a,s)=>{this.cancelCallBack=s,Ze.repository.getFirstProcessNode(e).then(async c=>{if(c.code==bt.success){if(this.processList=c.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId(),this.callback=a}})})},selectShow(e={appId:"",businessCode:"",businessType:"",keyWord:"",businessDeptId:"",userInfo:{}}){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,this._appId=e.appId,this._businessDeptId=e.businessDeptId,this.businessCode=e.businessCode||e.businessType,this.userInfo=e.userInfo,this.deptId=e.userInfo.deptId,this.subjectId=e.userInfo.subjectId,this.hasDeptId=!!this.deptId,this._businessDeptId,new Promise((n,i)=>{this.cancelCallBack=i,Ze.repository.getProcessDefListNew(e).then(a=>{a.code==bt.success&&(a.data.length==1?(this.processDefList=a.data,this.processDefId=a.data[0].id,this.processDefName=a.data[0].name,Ze.repository.getFirstProcessNode(this.processDefId).then(async s=>{if(s.code==bt.success){if(this.processList=s.data,this.flag=!0,this.callback=n,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})):(this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.processDefList=a.data,e.keyWord&&this.processDefList.map(s=>{s.name.indexOf(e.keyWord)!=-1&&!this.processDefId&&(this.processDefId=s.id,this.processDefName=s.name,this.processDefChange(s.id))}),this.flag=!0,this.callback=n))})})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Lw(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==bt.success){const s=this.processList[n];s.userList=a.data,this.$set(this.processList,n,s)}})},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async getNodeUserDept(){let e={};try{e=await Ze.user.getSelectTree()}catch(n){}e.data,this.deptList=e.data||[]},listShow(e){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,new Promise((n,i)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=i,Ze.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==bt.success&&(this.processList=a.data,this.flag=!0,this.callback=n,Ze.repository.getAfferentParticipantNodeList(this.processDefId).then(s=>{this.otherProcessList=s.data.filter(c=>c.id!=this.processList[0].id),this.otherProcessList.map(c=>{c.REQUIRED=!1})}))})):(this.processDefList=e,this.flag=!0,this.callback=n)})},async getProcessInfo({taskId:e,processInstId:n}){let i={};try{i=await Ze.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{i={}}return i.code==200,i},async revivalShow({processInstId:e,businessId:n,taskId:i,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:i,processInstId:e});if(s.code==200){this.processData={...this.initProcessData,...s.data||{}};const c=((this.processData.process||{}).variables||{}).deptId;this.deptId=c,this._businessDeptId=c,this.hasDeptId=!!c;const f=(this.processData.process||{}).taskId;return this.absoluteTaskId=f,this.revival=!0,this.businessId=n,this.subjectId=s.data.process.variables.subjectId,this.businessCode=s.data.process.variables.businessType,this.revivalVars=s.data.process.variables,this.processDefId=s.data.process.processDefinitionId,this.processDefName=s.data.process.processDefinitionName,this.processDefList=[],this.Show(s.data.process.processDefinitionId,"",!0)}},onClickOperation(){if(!this.processDefId||this.processDefId=="")return cc.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a][0],c=s?s.getValue():{multiNodeParticipant:[],vars:{}};if(!c)return!1;e={...e,...c.multiNodeParticipant},n={...n,...c.vars}}this._multiNodeParticipant=e,this._vars=n,this.callback,this.beforeFunction?this.beforeFunction():this.callback&&this.callback(this.revival?this.revivalFlow:this.createAndStart)},onClickCancel(){this.flag=!1,this.btnLoading=!1,this.cancelCallBack&&this.cancelCallBack()}}},xO={};var dY=dn(uY,lY,cY,!1,fY,"30078fe4",null,null);function fY(e){for(let n in xO)this[n]=xO[n]}const pY=function(){return dY.exports}();var hY=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{attrs:{visible:e.flag,width:"35%",title:"\u91CD\u65B0\u53D1\u8D77","append-to-body":""},on:{"update:visible":function(a){e.flag=a},close:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[i("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},mY=[],EO=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{EO=e});const gY={components:{userTask:vy},data(){return{userTaskListData:{},flag:!1,processList:[],callbacak:{},commentMsg:"",isUserTask:!1,cancelCallBack:{}}},methods:{setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"},Show(e){return new Promise((n,i)=>{this.cancelCallBack=i,Ze.repository.getFirstProcessNode(e).then(a=>{a.code==bt.success&&(this.processList=a.data,this.isOption(this.processList[0].humanPerformerName)&&!this.processList[0].isHistoryRoute?(this.flag=!0,this.callbacak=n,this.isUserTask=!0):n({commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"}))})})},onClickOperation(){if(this.commentMsg.length>200)return EO.error("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let e={};if(e={commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"},this.isUserTask){let n={},i={};for(let a in this.userTaskListData){let s=this.userTaskListData[a],f=this.$refs[s][0].getValue();if(!f)return!1;n={...n,...f.multiNodeParticipant},i={...i,...f.vars},e={...e,multiNodeParticipant:n,vars:i}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},kO={};var AY=dn(gY,hY,mY,!1,vY,null,null,null);function vY(e){for(let n in kO)this[n]=kO[n]}const bY=function(){return AY.exports}();Promise.resolve().then(()=>eK);var jw={exports:{}},Ue={},Qw={exports:{}},CO;function SO(){return CO||(CO=1,function(e){(function(n){var i={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",c="\\d{3}",f="\\d{4}",m="[^\\s]+",g=/\[([^]*?)\]/gm,y=function(){};function O(x){return x.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function C(x,I){for(var z=[],L=0,H=x.length;L<H;L++)z.push(x[L].substr(0,I));return z}function N(x){return function(I,z,L){var H=L[x].indexOf(z.charAt(0).toUpperCase()+z.substr(1).toLowerCase());~H&&(I.month=H)}}function _(x,I){for(x=String(x),I=I||2;x.length<I;)x="0"+x;return x}var E=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],P=["January","February","March","April","May","June","July","August","September","October","November","December"],M=C(P,3),T=C(E,3);i.i18n={dayNamesShort:T,dayNames:E,monthNamesShort:M,monthNames:P,amPm:["am","pm"],DoFn:function(I){return I+["th","st","nd","rd"][I%10>3?0:(I-I%10!==10)*I%10]}};var F={D:function(I){return I.getDay()},DD:function(I){return _(I.getDay())},Do:function(I,z){return z.DoFn(I.getDate())},d:function(I){return I.getDate()},dd:function(I){return _(I.getDate())},ddd:function(I,z){return z.dayNamesShort[I.getDay()]},dddd:function(I,z){return z.dayNames[I.getDay()]},M:function(I){return I.getMonth()+1},MM:function(I){return _(I.getMonth()+1)},MMM:function(I,z){return z.monthNamesShort[I.getMonth()]},MMMM:function(I,z){return z.monthNames[I.getMonth()]},yy:function(I){return _(String(I.getFullYear()),4).substr(2)},yyyy:function(I){return _(I.getFullYear(),4)},h:function(I){return I.getHours()%12||12},hh:function(I){return _(I.getHours()%12||12)},H:function(I){return I.getHours()},HH:function(I){return _(I.getHours())},m:function(I){return I.getMinutes()},mm:function(I){return _(I.getMinutes())},s:function(I){return I.getSeconds()},ss:function(I){return _(I.getSeconds())},S:function(I){return Math.round(I.getMilliseconds()/100)},SS:function(I){return _(Math.round(I.getMilliseconds()/10),2)},SSS:function(I){return _(I.getMilliseconds(),3)},a:function(I,z){return I.getHours()<12?z.amPm[0]:z.amPm[1]},A:function(I,z){return I.getHours()<12?z.amPm[0].toUpperCase():z.amPm[1].toUpperCase()},ZZ:function(I){var z=I.getTimezoneOffset();return(z>0?"-":"+")+_(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)}},v={d:[s,function(x,I){x.day=I}],Do:[s+m,function(x,I){x.day=parseInt(I,10)}],M:[s,function(x,I){x.month=I-1}],yy:[s,function(x,I){var z=new Date,L=+(""+z.getFullYear()).substr(0,2);x.year=""+(I>68?L-1:L)+I}],h:[s,function(x,I){x.hour=I}],m:[s,function(x,I){x.minute=I}],s:[s,function(x,I){x.second=I}],yyyy:[f,function(x,I){x.year=I}],S:["\\d",function(x,I){x.millisecond=I*100}],SS:["\\d{2}",function(x,I){x.millisecond=I*10}],SSS:[c,function(x,I){x.millisecond=I}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(x,I,z){var L=I.toLowerCase();L===z.amPm[0]?x.isPm=!1:L===z.amPm[1]&&(x.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(x,I){var z=(I+"").match(/([+-]|\d\d)/gi),L;z&&(L=+(z[1]*60)+parseInt(z[2],10),x.timezoneOffset=z[0]==="+"?L:-L)}]};v.dd=v.d,v.dddd=v.ddd,v.DD=v.D,v.mm=v.m,v.hh=v.H=v.HH=v.h,v.MM=v.M,v.ss=v.s,v.A=v.a,i.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},i.format=function(x,I,z){var L=z||i.i18n;if(typeof x=="number"&&(x=new Date(x)),Object.prototype.toString.call(x)!=="[object Date]"||isNaN(x.getTime()))throw new Error("Invalid Date in fecha.format");I=i.masks[I]||I||i.masks.default;var H=[];return I=I.replace(g,function(Z,ie){return H.push(ie),"@@@"}),I=I.replace(a,function(Z){return Z in F?F[Z](x,L):Z.slice(1,Z.length-1)}),I.replace(/@@@/g,function(){return H.shift()})},i.parse=function(x,I,z){var L=z||i.i18n;if(typeof I!="string")throw new Error("Invalid format in fecha.parse");if(I=i.masks[I]||I,x.length>1e3)return null;var H={},Z=[],ie=[];I=I.replace(g,function(me,G){return ie.push(G),"@@@"});var oe=O(I).replace(a,function(me){if(v[me]){var G=v[me];return Z.push(G[1]),"("+G[0]+")"}return me});oe=oe.replace(/@@@/g,function(){return ie.shift()});var ge=x.match(new RegExp(oe,"i"));if(!ge)return null;for(var fe=1;fe<ge.length;fe++)Z[fe-1](H,ge[fe],L);var Ce=new Date;H.isPm===!0&&H.hour!=null&&+H.hour!=12?H.hour=+H.hour+12:H.isPm===!1&&+H.hour==12&&(H.hour=0);var Se;return H.timezoneOffset!=null?(H.minute=+(H.minute||0)-+H.timezoneOffset,Se=new Date(Date.UTC(H.year||Ce.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0))):Se=new Date(H.year||Ce.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0),Se},e.exports?e.exports=i:n.fecha=i})(void 0)}(Qw)),Qw.exports}var qr={},lm={},DO;function _Y(){return DO||(DO=1,lm.__esModule=!0,lm.default={el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},empty:{description:"\u6682\u65E0\u6570\u636E"}}}),lm}var zw,BO;function yY(){if(BO)return zw;BO=1;var e=function(_){return n(_)&&!i(_)};function n(N){return!!N&&typeof N=="object"}function i(N){var _=Object.prototype.toString.call(N);return _==="[object RegExp]"||_==="[object Date]"||c(N)}var a=typeof Symbol=="function"&&Symbol.for,s=a?Symbol.for("react.element"):60103;function c(N){return N.$$typeof===s}function f(N){return Array.isArray(N)?[]:{}}function m(N,_){var E=_&&_.clone===!0;return E&&e(N)?O(f(N),N,_):N}function g(N,_,E){var P=N.slice();return _.forEach(function(M,T){typeof P[T]>"u"?P[T]=m(M,E):e(M)?P[T]=O(N[T],M,E):N.indexOf(M)===-1&&P.push(m(M,E))}),P}function y(N,_,E){var P={};return e(N)&&Object.keys(N).forEach(function(M){P[M]=m(N[M],E)}),Object.keys(_).forEach(function(M){!e(_[M])||!N[M]?P[M]=m(_[M],E):P[M]=O(N[M],_[M],E)}),P}function O(N,_,E){var P=Array.isArray(_),M=Array.isArray(N),T=E||{arrayMerge:g},F=P===M;if(F)if(P){var v=T.arrayMerge||g;return v(N,_,E)}else return y(N,_,E);else return m(_,E)}O.all=function(_,E){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(P,M){return O(P,M,E)})};var C=O;return zw=C,zw}var cm={},lt={},Ui={},IO;function OO(){if(IO)return Ui;IO=1,Ui.__esModule=!0,Ui.isDefined=Ui.isUndefined=Ui.isFunction=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};Ui.isString=s,Ui.isObject=c,Ui.isHtmlElement=f;var n=Fi.default,i=a(n);function a(g){return g&&g.__esModule?g:{default:g}}function s(g){return Object.prototype.toString.call(g)==="[object String]"}function c(g){return Object.prototype.toString.call(g)==="[object Object]"}function f(g){return g&&g.nodeType===Node.ELEMENT_NODE}var m=function(y){var O={};return y&&O.toString.call(y)==="[object Function]"};return typeof/./!="function"&&(typeof Int8Array>"u"?"undefined":e(Int8Array))!=="object"&&(i.default.prototype.$isServer||typeof document.childNodes!="function")&&(Ui.isFunction=m=function(y){return typeof y=="function"||!1}),Ui.isFunction=m,Ui.isUndefined=function(y){return y===void 0},Ui.isDefined=function(y){return y!=null},Ui}var TO;function Br(){if(TO)return lt;TO=1,lt.__esModule=!0,lt.isMac=lt.isEmpty=lt.isEqual=lt.arrayEquals=lt.looseEqual=lt.capitalize=lt.kebabCase=lt.autoprefixer=lt.isFirefox=lt.isEdge=lt.isIE=lt.coerceTruthyValueToArray=lt.arrayFind=lt.arrayFindIndex=lt.escapeRegexpString=lt.valueEquals=lt.generateId=lt.getValueByPath=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T};lt.noop=f,lt.hasOwn=m,lt.toObject=y,lt.getPropByPath=O,lt.rafThrottle=P,lt.objToArray=M;var n=Fi.default,i=s(n),a=OO();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function f(){}function m(T,F){return c.call(T,F)}function g(T,F){for(var v in F)T[v]=F[v];return T}function y(T){for(var F={},v=0;v<T.length;v++)T[v]&&g(F,T[v]);return F}lt.getValueByPath=function(F,v){v=v||"";for(var x=v.split("."),I=F,z=null,L=0,H=x.length;L<H;L++){var Z=x[L];if(!I)break;if(L===H-1){z=I[Z];break}I=I[Z]}return z};function O(T,F,v){var x=T;F=F.replace(/\[(\w+)\]/g,".$1"),F=F.replace(/^\./,"");for(var I=F.split("."),z=0,L=I.length;z<L-1&&!(!x&&!v);++z){var H=I[z];if(H in x)x=x[H];else{if(v)throw new Error("please transfer a valid prop path to form item!");break}}return{o:x,k:I[z],v:x?x[I[z]]:null}}lt.generateId=function(){return Math.floor(Math.random()*1e4)},lt.valueEquals=function(F,v){if(F===v)return!0;if(!(F instanceof Array)||!(v instanceof Array)||F.length!==v.length)return!1;for(var x=0;x!==F.length;++x)if(F[x]!==v[x])return!1;return!0},lt.escapeRegexpString=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(F).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var C=lt.arrayFindIndex=function(F,v){for(var x=0;x!==F.length;++x)if(v(F[x]))return x;return-1};lt.arrayFind=function(F,v){var x=C(F,v);return x!==-1?F[x]:void 0},lt.coerceTruthyValueToArray=function(F){return Array.isArray(F)?F:F?[F]:[]},lt.isIE=function(){return!i.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},lt.isEdge=function(){return!i.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},lt.isFirefox=function(){return!i.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},lt.autoprefixer=function(F){if((typeof F>"u"?"undefined":e(F))!=="object")return F;var v=["transform","transition","animation"],x=["ms-","webkit-"];return v.forEach(function(I){var z=F[I];I&&z&&x.forEach(function(L){F[L+I]=z})}),F},lt.kebabCase=function(F){var v=/([^-])([A-Z])/g;return F.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()},lt.capitalize=function(F){return(0,a.isString)(F)?F.charAt(0).toUpperCase()+F.slice(1):F};var N=lt.looseEqual=function(F,v){var x=(0,a.isObject)(F),I=(0,a.isObject)(v);return x&&I?JSON.stringify(F)===JSON.stringify(v):!x&&!I?String(F)===String(v):!1},_=lt.arrayEquals=function(F,v){if(F=F||[],v=v||[],F.length!==v.length)return!1;for(var x=0;x<F.length;x++)if(!N(F[x],v[x]))return!1;return!0};lt.isEqual=function(F,v){return Array.isArray(F)&&Array.isArray(v)?_(F,v):N(F,v)};var E=lt.isEmpty=function(F){if(F==null)return!0;if(typeof F=="boolean")return!1;if(typeof F=="number")return!F;if(F instanceof Error)return F.message==="";switch(Object.prototype.toString.call(F)){case"[object String]":case"[object Array]":return!F.length;case"[object File]":case"[object Map]":case"[object Set]":return!F.size;case"[object Object]":return!Object.keys(F).length}return!1};function P(T){var F=!1;return function(){for(var v=this,x=arguments.length,I=Array(x),z=0;z<x;z++)I[z]=arguments[z];F||(F=!0,window.requestAnimationFrame(function(L){T.apply(v,I),F=!1}))}}function M(T){return Array.isArray(T)?T:E(T)?[]:[T]}return lt.isMac=function(){return!i.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},lt}var NO;function wY(){if(NO)return cm;NO=1,cm.__esModule=!0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};cm.default=function(a){function s(c){for(var f=arguments.length,m=Array(f>1?f-1:0),g=1;g<f;g++)m[g-1]=arguments[g];return m.length===1&&e(m[0])==="object"&&(m=m[0]),(!m||!m.hasOwnProperty)&&(m={}),c.replace(i,function(y,O,C,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?C:(_=(0,n.hasOwn)(m,C)?m[C]:null,_==null?"":_)})}return s};var n=Br(),i=/(%|)\{([0-9a-zA-Z_]+)\}/g;return cm}var MO;function Hw(){if(MO)return qr;MO=1,qr.__esModule=!0,qr.i18n=qr.use=qr.t=void 0;var e=_Y(),n=g(e),i=Fi.default,a=g(i),s=yY(),c=g(s),f=wY(),m=g(f);function g(M){return M&&M.__esModule?M:{default:M}}var y=(0,m.default)(a.default),O=n.default,C=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return C||(C=!0,a.default.locale(a.default.config.lang,(0,c.default)(O,a.default.locale(a.default.config.lang)||{},{clone:!0}))),T.apply(this,arguments)},_=qr.t=function(T,F){var v=N.apply(this,arguments);if(v!=null)return v;for(var x=T.split("."),I=O,z=0,L=x.length;z<L;z++){var H=x[z];if(v=I[H],z===L-1)return y(v,F);if(!v)return"";I=v}return""},E=qr.use=function(T){O=T||O},P=qr.i18n=function(T){N=T||N};return qr.default={use:E,t:_,i18n:P},qr}var FO;function xY(){if(FO)return Ue;FO=1,Ue.__esModule=!0,Ue.validateRangeInOneMonth=Ue.extractTimeFormat=Ue.extractDateFormat=Ue.nextYear=Ue.prevYear=Ue.nextMonth=Ue.prevMonth=Ue.changeYearMonthAndClampDate=Ue.timeWithinRange=Ue.limitTimeRange=Ue.clearMilliseconds=Ue.clearTime=Ue.modifyWithTimeString=Ue.modifyTime=Ue.modifyDate=Ue.range=Ue.getRangeMinutes=Ue.getMonthDays=Ue.getPrevMonthLastDays=Ue.getRangeHours=Ue.getWeekNumber=Ue.getStartDateOfMonth=Ue.nextDate=Ue.prevDate=Ue.getFirstDayOfMonth=Ue.getDayCountOfYear=Ue.getDayCountOfMonth=Ue.parseDate=Ue.formatDate=Ue.isDateObject=Ue.isDate=Ue.toDate=Ue.getI18nSettings=void 0;var e=SO(),n=a(e),i=Hw();function a(v){return v&&v.__esModule?v:{default:v}}var s=["sun","mon","tue","wed","thu","fri","sat"],c=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],f=function(x,I){for(var z=[],L=x;L<=I;L++)z.push(L);return z},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(x){return(0,i.t)("el.datepicker.weeks."+x)}),dayNames:s.map(function(x){return(0,i.t)("el.datepicker.weeks."+x)}),monthNamesShort:c.map(function(x){return(0,i.t)("el.datepicker.months."+x)}),monthNames:c.map(function(x,I){return(0,i.t)("el.datepicker.month"+(I+1))}),amPm:["am","pm"]}},g=Ue.toDate=function(x){return y(x)?new Date(x):null},y=Ue.isDate=function(x){return!(x==null||isNaN(new Date(x).getTime())||Array.isArray(x))};Ue.isDateObject=function(x){return x instanceof Date},Ue.formatDate=function(x,I){return x=g(x),x?n.default.format(x,I||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(x,I){return n.default.parse(x,I||"yyyy-MM-dd",m())},C=Ue.getDayCountOfMonth=function(x,I){return isNaN(+I)?31:new Date(x,+I+1,0).getDate()};Ue.getDayCountOfYear=function(x){var I=x%400===0||x%100!==0&&x%4===0;return I?366:365},Ue.getFirstDayOfMonth=function(x){var I=new Date(x.getTime());return I.setDate(1),I.getDay()};var N=Ue.prevDate=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(x.getFullYear(),x.getMonth(),x.getDate()-I)};Ue.nextDate=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(x.getFullYear(),x.getMonth(),x.getDate()+I)},Ue.getStartDateOfMonth=function(x,I){var z=new Date(x,I,1),L=z.getDay();return L===0?N(z,7):N(z,L)},Ue.getWeekNumber=function(x){if(!y(x))return null;var I=new Date(x.getTime());I.setHours(0,0,0,0),I.setDate(I.getDate()+3-(I.getDay()+6)%7);var z=new Date(I.getFullYear(),0,4);return 1+Math.round(((I.getTime()-z.getTime())/864e5-3+(z.getDay()+6)%7)/7)},Ue.getRangeHours=function(x){var I=[],z=[];if((x||[]).forEach(function(Z){var ie=Z.map(function(oe){return oe.getHours()});z=z.concat(f(ie[0],ie[1]))}),z.length)for(var L=0;L<24;L++)I[L]=z.indexOf(L)===-1;else for(var H=0;H<24;H++)I[H]=!1;return I},Ue.getPrevMonthLastDays=function(x,I){if(I<=0)return[];var z=new Date(x.getTime());z.setDate(0);var L=z.getDate();return E(I).map(function(H,Z){return L-(I-Z-1)})},Ue.getMonthDays=function(x){var I=new Date(x.getFullYear(),x.getMonth()+1,0),z=I.getDate();return E(z).map(function(L,H){return H+1})};function _(v,x,I,z){for(var L=x;L<I;L++)v[L]=z}Ue.getRangeMinutes=function(x,I){var z=new Array(60);return x.length>0?x.forEach(function(L){var H=L[0],Z=L[1],ie=H.getHours(),oe=H.getMinutes(),ge=Z.getHours(),fe=Z.getMinutes();ie===I&&ge!==I?_(z,oe,60,!0):ie===I&&ge===I?_(z,oe,fe+1,!0):ie!==I&&ge===I?_(z,0,fe+1,!0):ie<I&&ge>I&&_(z,0,60,!0)}):_(z,0,60,!0),z};var E=Ue.range=function(x){return Array.apply(null,{length:x}).map(function(I,z){return z})},P=Ue.modifyDate=function(x,I,z,L){return new Date(I,z,L,x.getHours(),x.getMinutes(),x.getSeconds(),x.getMilliseconds())},M=Ue.modifyTime=function(x,I,z,L){return new Date(x.getFullYear(),x.getMonth(),x.getDate(),I,z,L,x.getMilliseconds())};Ue.modifyWithTimeString=function(x,I){return x==null||!I?x:(I=O(I,"HH:mm:ss"),M(x,I.getHours(),I.getMinutes(),I.getSeconds()))},Ue.clearTime=function(x){return new Date(x.getFullYear(),x.getMonth(),x.getDate())},Ue.clearMilliseconds=function(x){return new Date(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds(),0)};var T=Ue.limitTimeRange=function(x,I){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(I.length===0)return x;var L=function(Ce){return n.default.parse(n.default.format(Ce,z),z)},H=L(x),Z=I.map(function(fe){return fe.map(L)});if(Z.some(function(fe){return H>=fe[0]&&H<=fe[1]}))return x;var ie=Z[0][0],oe=Z[0][0];Z.forEach(function(fe){ie=new Date(Math.min(fe[0],ie)),oe=new Date(Math.max(fe[1],ie))});var ge=H<ie?ie:oe;return P(ge,x.getFullYear(),x.getMonth(),x.getDate())};Ue.timeWithinRange=function(x,I,z){var L=T(x,I,z);return L.getTime()===x.getTime()};var F=Ue.changeYearMonthAndClampDate=function(x,I,z){var L=Math.min(x.getDate(),C(I,z));return P(x,I,z,L)};return Ue.prevMonth=function(x){var I=x.getFullYear(),z=x.getMonth();return z===0?F(x,I-1,11):F(x,I,z-1)},Ue.nextMonth=function(x){var I=x.getFullYear(),z=x.getMonth();return z===11?F(x,I+1,0):F(x,I,z+1)},Ue.prevYear=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=x.getFullYear(),L=x.getMonth();return F(x,z-I,L)},Ue.nextYear=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=x.getFullYear(),L=x.getMonth();return F(x,z+I,L)},Ue.extractDateFormat=function(x){return x.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},Ue.extractTimeFormat=function(x){return x.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},Ue.validateRangeInOneMonth=function(x,I){return x.getMonth()===I.getMonth()&&x.getFullYear()===I.getFullYear()},Ue}var rn={},PO;function Ba(){if(PO)return rn;PO=1,rn.__esModule=!0,rn.isInContainer=rn.getScrollContainer=rn.isScroll=rn.getStyle=rn.once=rn.off=rn.on=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};rn.hasClass=N,rn.addClass=_,rn.removeClass=E,rn.setStyle=M;var n=Fi.default,i=a(n);function a(F){return F&&F.__esModule?F:{default:F}}var s=i.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,f=/^moz([A-Z])/,m=s?0:Number(document.documentMode),g=function(v){return(v||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},y=function(v){return v.replace(c,function(x,I,z,L){return L?z.toUpperCase():z}).replace(f,"Moz$1")},O=rn.on=function(){return!s&&document.addEventListener?function(F,v,x){F&&v&&x&&F.addEventListener(v,x,!1)}:function(F,v,x){F&&v&&x&&F.attachEvent("on"+v,x)}}(),C=rn.off=function(){return!s&&document.removeEventListener?function(F,v,x){F&&v&&F.removeEventListener(v,x,!1)}:function(F,v,x){F&&v&&F.detachEvent("on"+v,x)}}();rn.once=function(v,x,I){var z=function L(){I&&I.apply(this,arguments),C(v,x,L)};O(v,x,z)};function N(F,v){if(!F||!v)return!1;if(v.indexOf(" ")!==-1)throw new Error("className should not contain space.");return F.classList?F.classList.contains(v):(" "+F.className+" ").indexOf(" "+v+" ")>-1}function _(F,v){if(!!F){for(var x=F.className,I=(v||"").split(" "),z=0,L=I.length;z<L;z++){var H=I[z];!H||(F.classList?F.classList.add(H):N(F,H)||(x+=" "+H))}F.classList||F.setAttribute("class",x)}}function E(F,v){if(!(!F||!v)){for(var x=v.split(" "),I=" "+F.className+" ",z=0,L=x.length;z<L;z++){var H=x[z];!H||(F.classList?F.classList.remove(H):N(F,H)&&(I=I.replace(" "+H+" "," ")))}F.classList||F.setAttribute("class",g(I))}}var P=rn.getStyle=m<9?function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="styleFloat");try{switch(v){case"opacity":try{return F.filters.item("alpha").opacity/100}catch{return 1}default:return F.style[v]||F.currentStyle?F.currentStyle[v]:null}}catch{return F.style[v]}}}:function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="cssFloat");try{var x=document.defaultView.getComputedStyle(F,"");return F.style[v]||x?x[v]:null}catch{return F.style[v]}}};function M(F,v,x){if(!(!F||!v))if((typeof v>"u"?"undefined":e(v))==="object")for(var I in v)v.hasOwnProperty(I)&&M(F,I,v[I]);else v=y(v),v==="opacity"&&m<9?F.style.filter=isNaN(x)?"":"alpha(opacity="+x*100+")":F.style[v]=x}var T=rn.isScroll=function(v,x){if(!s){var I=x!=null,z=I?x?P(v,"overflow-y"):P(v,"overflow-x"):P(v,"overflow");return z.match(/(scroll|auto|overlay)/)}};return rn.getScrollContainer=function(v,x){if(!s){for(var I=v;I;){if([window,document,document.documentElement].includes(I))return window;if(T(I,x))return I;I=I.parentNode}return I}},rn.isInContainer=function(v,x){if(s||!v||!x)return!1;var I=v.getBoundingClientRect(),z=void 0;return[window,document,document.documentElement,null,void 0].includes(x)?z={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:z=x.getBoundingClientRect(),I.top<z.bottom&&I.bottom>z.top&&I.right>z.left&&I.left<z.right},rn}var um={},RO;function Is(){if(RO)return um;RO=1,um.__esModule=!0;function e(n,i,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[i].concat(a)):e.apply(s,[n,i].concat([a]))})}return um.default={methods:{dispatch:function(i,a,s){for(var c=this.$parent||this.$root,f=c.$options.componentName;c&&(!f||f!==i);)c=c.$parent,c&&(f=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(i,a,s){e.call(this,i,a,s)}}},um}var dm={},LO;function Vw(){if(LO)return dm;LO=1,dm.__esModule=!0;var e=Hw();return dm.default={methods:{t:function(){for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},dm}var fm={},uc={},pm={},jO;function hm(){return jO||(jO=1,pm.__esModule=!0,pm.default=function(e){for(var n=1,i=arguments.length;n<i;n++){var a=arguments[n]||{};for(var s in a)if(a.hasOwnProperty(s)){var c=a[s];c!==void 0&&(e[s]=c)}}return e}),pm}var mm={},QO;function EY(){if(QO)return mm;QO=1,mm.__esModule=!0;var e=Fi.default,n=a(e),i=Ba();function a(C){return C&&C.__esModule?C:{default:C}}var s=!1,c=!1,f=void 0,m=function(){if(!n.default.prototype.$isServer){var N=y.modalDom;return N?s=!0:(s=!1,N=document.createElement("div"),y.modalDom=N,N.addEventListener("touchmove",function(_){_.preventDefault(),_.stopPropagation()}),N.addEventListener("click",function(){y.doOnModalClick&&y.doOnModalClick()})),N}},g={},y={modalFade:!0,getInstance:function(N){return g[N]},register:function(N,_){N&&_&&(g[N]=_)},deregister:function(N){N&&(g[N]=null,delete g[N])},nextZIndex:function(){return y.zIndex++},modalStack:[],doOnModalClick:function(){var N=y.modalStack[y.modalStack.length-1];if(!!N){var _=y.getInstance(N.id);_&&_.closeOnClickModal&&_.close()}},openModal:function(N,_,E,P,M){if(!n.default.prototype.$isServer&&!(!N||_===void 0)){this.modalFade=M;for(var T=this.modalStack,F=0,v=T.length;F<v;F++){var x=T[F];if(x.id===N)return}var I=m();if((0,i.addClass)(I,"v-modal"),this.modalFade&&!s&&(0,i.addClass)(I,"v-modal-enter"),P){var z=P.trim().split(/\s+/);z.forEach(function(L){return(0,i.addClass)(I,L)})}setTimeout(function(){(0,i.removeClass)(I,"v-modal-enter")},200),E&&E.parentNode&&E.parentNode.nodeType!==11?E.parentNode.appendChild(I):document.body.appendChild(I),_&&(I.style.zIndex=_),I.tabIndex=0,I.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:P})}},closeModal:function(N){var _=this.modalStack,E=m();if(_.length>0){var P=_[_.length-1];if(P.id===N){if(P.modalClass){var M=P.modalClass.trim().split(/\s+/);M.forEach(function(F){return(0,i.removeClass)(E,F)})}_.pop(),_.length>0&&(E.style.zIndex=_[_.length-1].zIndex)}else for(var T=_.length-1;T>=0;T--)if(_[T].id===N){_.splice(T,1);break}}_.length===0&&(this.modalFade&&(0,i.addClass)(E,"v-modal-leave"),setTimeout(function(){_.length===0&&(E.parentNode&&E.parentNode.removeChild(E),E.style.display="none",y.modalDom=void 0),(0,i.removeClass)(E,"v-modal-leave")},200))}};Object.defineProperty(y,"zIndex",{configurable:!0,get:function(){return c||(f=f||(n.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),f},set:function(N){f=N}});var O=function(){if(!n.default.prototype.$isServer&&y.modalStack.length>0){var N=y.modalStack[y.modalStack.length-1];if(!N)return;var _=y.getInstance(N.id);return _}};return n.default.prototype.$isServer||window.addEventListener("keydown",function(C){if(C.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),mm.default=y,mm}var gm={},zO;function Uw(){if(zO)return gm;zO=1,gm.__esModule=!0,gm.default=function(){if(n.default.prototype.$isServer)return 0;if(a!==void 0)return a;var s=document.createElement("div");s.className="el-scrollbar__wrap",s.style.visibility="hidden",s.style.width="100px",s.style.position="absolute",s.style.top="-9999px",document.body.appendChild(s);var c=s.offsetWidth;s.style.overflow="scroll";var f=document.createElement("div");f.style.width="100%",s.appendChild(f);var m=f.offsetWidth;return s.parentNode.removeChild(s),a=c-m,a};var e=Fi.default,n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return gm}var HO;function VO(){if(HO)return uc;HO=1,uc.__esModule=!0,uc.PopupManager=void 0;var e=Fi.default,n=y(e),i=hm(),a=y(i),s=EY(),c=y(s),f=Uw(),m=y(f),g=Ba();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,C=void 0;return uc.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+O++,c.default.register(this._popupId,this)},beforeDestroy:function(){c.default.deregister(this._popupId),c.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(_){var E=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){E.open()}))}else this.close()}},methods:{open:function(_){var E=this;this.rendered||(this.rendered=!0);var P=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var M=Number(P.openDelay);M>0?this._openTimer=setTimeout(function(){E._openTimer=null,E.doOpen(P)},M):this.doOpen(P)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var E=this.$el,P=_.modal,M=_.zIndex;if(M&&(c.default.zIndex=M),P&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:E,_.modalClass,_.modalFade),_.lockScroll)){this.withoutHiddenClass=!(0,g.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,g.getStyle)(document.body,"paddingRight"),10)),C=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,F=(0,g.getStyle)(document.body,"overflowY");C>0&&(T||F==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+C+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(E).position==="static"&&(E.style.position="absolute"),E.style.zIndex=c.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var _=this;if(!(this.willClose&&!this.willClose())){this._openTimer!==null&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var E=Number(this.closeDelay);E>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},E):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){c.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,g.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},uc.PopupManager=c.default,uc}var Yw={exports:{}},UO;function kY(){return UO||(UO=1,function(e){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};(function(i,a){n(e)==="object"&&e.exports?e.exports=a():i.Popper=a()})(void 0,function(){var i=window,a={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function s(v,x,I){this._reference=v.jquery?v[0]:v,this.state={};var z=typeof x>"u"||x===null,L=x&&Object.prototype.toString.call(x)==="[object Object]";return z||L?this._popper=this.parse(L?x:{}):this._popper=x.jquery?x[0]:x,this._options=Object.assign({},a,I),this._options.modifiers=this._options.modifiers.map(function(H){if(this._options.modifiersIgnored.indexOf(H)===-1)return H==="applyStyle"&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[H]||H}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),_(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}s.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[F("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},s.prototype.update=function(){var v={instance:this,styles:{}};v.placement=this._options.placement,v._originalPlacement=this._options.placement,v.offsets=this._getOffsets(this._popper,this._reference,v.placement),v.boundaries=this._getBoundaries(v,this._options.boundariesPadding,this._options.boundariesElement),v=this.runModifiers(v,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(v)},s.prototype.onCreate=function(v){return v(this),this},s.prototype.onUpdate=function(v){return this.state.updateCallback=v,this},s.prototype.parse=function(v){var x={tagName:"div",classNames:["popper"],attributes:[],parent:i.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};v=Object.assign({},x,v);var I=i.document,z=I.createElement(v.tagName);if(Z(z,v.classNames),ie(z,v.attributes),v.contentType==="node"?z.appendChild(v.content.jquery?v.content[0]:v.content):v.contentType==="html"?z.innerHTML=v.content:z.textContent=v.content,v.arrowTagName){var L=I.createElement(v.arrowTagName);Z(L,v.arrowClassNames),ie(L,v.arrowAttributes),z.appendChild(L)}var H=v.parent.jquery?v.parent[0]:v.parent;if(typeof H=="string"){if(H=I.querySelectorAll(v.parent),H.length>1&&console.warn("WARNING: the given `parent` query("+v.parent+") matched more than one element, the first one will be used"),H.length===0)throw"ERROR: the given `parent` doesn't exists!";H=H[0]}return H.length>1&&!(H instanceof Element)&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),H=H[0]),H.appendChild(z),z;function Z(oe,ge){ge.forEach(function(fe){oe.classList.add(fe)})}function ie(oe,ge){ge.forEach(function(fe){oe.setAttribute(fe.split(":")[0],fe.split(":")[1]||"")})}},s.prototype._getPosition=function(v,x){if(O(x),this._options.forceAbsolute)return"absolute";var I=N(x);return I?"fixed":"absolute"},s.prototype._getOffsets=function(v,x,I){I=I.split("-")[0];var z={};z.position=this.state.position;var L=z.position==="fixed",H=T(x,O(v),L),Z=c(v);return["right","left"].indexOf(I)!==-1?(z.top=H.top+H.height/2-Z.height/2,I==="left"?z.left=H.left-Z.width:z.left=H.right):(z.left=H.left+H.width/2-Z.width/2,I==="top"?z.top=H.top-Z.height:z.top=H.bottom),z.width=Z.width,z.height=Z.height,{popper:z,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),i.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var v=C(this._reference);(v===i.document.body||v===i.document.documentElement)&&(v=i),v.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=v}},s.prototype._removeEventListeners=function(){i.removeEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},s.prototype._getBoundaries=function(v,x,I){var z={},L,H;if(I==="window"){var Z=i.document.body,ie=i.document.documentElement;H=Math.max(Z.scrollHeight,Z.offsetHeight,ie.clientHeight,ie.scrollHeight,ie.offsetHeight),L=Math.max(Z.scrollWidth,Z.offsetWidth,ie.clientWidth,ie.scrollWidth,ie.offsetWidth),z={top:0,right:L,bottom:H,left:0}}else if(I==="viewport"){var oe=O(this._popper),ge=C(this._popper),fe=P(oe),Ce=function(re){return re==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):re.scrollTop},Se=function(re){return re==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):re.scrollLeft},me=v.offsets.popper.position==="fixed"?0:Ce(ge),G=v.offsets.popper.position==="fixed"?0:Se(ge);z={top:0-(fe.top-me),right:i.document.documentElement.clientWidth-(fe.left-G),bottom:i.document.documentElement.clientHeight-(fe.top-me),left:0-(fe.left-G)}}else O(this._popper)===I?z={top:0,left:0,right:I.clientWidth,bottom:I.clientHeight}:z=P(I);return z.left+=x,z.right-=x,z.top=z.top+x,z.bottom=z.bottom-x,z},s.prototype.runModifiers=function(v,x,I){var z=x.slice();return I!==void 0&&(z=this._options.modifiers.slice(0,g(this._options.modifiers,I))),z.forEach(function(L){E(L)&&(v=L.call(this,v))}.bind(this)),v},s.prototype.isModifierRequired=function(v,x){var I=g(this._options.modifiers,v);return!!this._options.modifiers.slice(0,I).filter(function(z){return z===x}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(v){var x={position:v.offsets.popper.position},I=Math.round(v.offsets.popper.left),z=Math.round(v.offsets.popper.top),L;return this._options.gpuAcceleration&&(L=F("transform"))?(x[L]="translate3d("+I+"px, "+z+"px, 0)",x.top=0,x.left=0):(x.left=I,x.top=z),Object.assign(x,v.styles),_(this._popper,x),this._popper.setAttribute("x-placement",v.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&v.offsets.arrow&&_(v.arrowElement,v.offsets.arrow),v},s.prototype.modifiers.shift=function(v){var x=v.placement,I=x.split("-")[0],z=x.split("-")[1];if(z){var L=v.offsets.reference,H=m(v.offsets.popper),Z={y:{start:{top:L.top},end:{top:L.top+L.height-H.height}},x:{start:{left:L.left},end:{left:L.left+L.width-H.width}}},ie=["bottom","top"].indexOf(I)!==-1?"x":"y";v.offsets.popper=Object.assign(H,Z[ie][z])}return v},s.prototype.modifiers.preventOverflow=function(v){var x=this._options.preventOverflowOrder,I=m(v.offsets.popper),z={left:function(){var H=I.left;return I.left<v.boundaries.left&&(H=Math.max(I.left,v.boundaries.left)),{left:H}},right:function(){var H=I.left;return I.right>v.boundaries.right&&(H=Math.min(I.left,v.boundaries.right-I.width)),{left:H}},top:function(){var H=I.top;return I.top<v.boundaries.top&&(H=Math.max(I.top,v.boundaries.top)),{top:H}},bottom:function(){var H=I.top;return I.bottom>v.boundaries.bottom&&(H=Math.min(I.top,v.boundaries.bottom-I.height)),{top:H}}};return x.forEach(function(L){v.offsets.popper=Object.assign(I,z[L]())}),v},s.prototype.modifiers.keepTogether=function(v){var x=m(v.offsets.popper),I=v.offsets.reference,z=Math.floor;return x.right<z(I.left)&&(v.offsets.popper.left=z(I.left)-x.width),x.left>z(I.right)&&(v.offsets.popper.left=z(I.right)),x.bottom<z(I.top)&&(v.offsets.popper.top=z(I.top)-x.height),x.top>z(I.bottom)&&(v.offsets.popper.top=z(I.bottom)),v},s.prototype.modifiers.flip=function(v){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),v;if(v.flipped&&v.placement===v._originalPlacement)return v;var x=v.placement.split("-")[0],I=f(x),z=v.placement.split("-")[1]||"",L=[];return this._options.flipBehavior==="flip"?L=[x,I]:L=this._options.flipBehavior,L.forEach(function(H,Z){if(!(x!==H||L.length===Z+1)){x=v.placement.split("-")[0],I=f(x);var ie=m(v.offsets.popper),oe=["right","bottom"].indexOf(x)!==-1;(oe&&Math.floor(v.offsets.reference[x])>Math.floor(ie[I])||!oe&&Math.floor(v.offsets.reference[x])<Math.floor(ie[I]))&&(v.flipped=!0,v.placement=L[Z+1],z&&(v.placement+="-"+z),v.offsets.popper=this._getOffsets(this._popper,this._reference,v.placement).popper,v=this.runModifiers(v,this._options.modifiers,this._flip))}}.bind(this)),v},s.prototype.modifiers.offset=function(v){var x=this._options.offset,I=v.offsets.popper;return v.placement.indexOf("left")!==-1?I.top-=x:v.placement.indexOf("right")!==-1?I.top+=x:v.placement.indexOf("top")!==-1?I.left-=x:v.placement.indexOf("bottom")!==-1&&(I.left+=x),v},s.prototype.modifiers.arrow=function(v){var x=this._options.arrowElement,I=this._options.arrowOffset;if(typeof x=="string"&&(x=this._popper.querySelector(x)),!x)return v;if(!this._popper.contains(x))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),v;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),v;var z={},L=v.placement.split("-")[0],H=m(v.offsets.popper),Z=v.offsets.reference,ie=["left","right"].indexOf(L)!==-1,oe=ie?"height":"width",ge=ie?"top":"left",fe=ie?"left":"top",Ce=ie?"bottom":"right",Se=c(x)[oe];Z[Ce]-Se<H[ge]&&(v.offsets.popper[ge]-=H[ge]-(Z[Ce]-Se)),Z[ge]+Se>H[Ce]&&(v.offsets.popper[ge]+=Z[ge]+Se-H[Ce]);var me=Z[ge]+(I||Z[oe]/2-Se/2),G=me-H[ge];return G=Math.max(Math.min(H[oe]-Se-8,G),8),z[ge]=G,z[fe]="",v.offsets.arrow=z,v.arrowElement=x,v};function c(v){var x=v.style.display,I=v.style.visibility;v.style.display="block",v.style.visibility="hidden",v.offsetWidth;var z=i.getComputedStyle(v),L=parseFloat(z.marginTop)+parseFloat(z.marginBottom),H=parseFloat(z.marginLeft)+parseFloat(z.marginRight),Z={width:v.offsetWidth+H,height:v.offsetHeight+L};return v.style.display=x,v.style.visibility=I,Z}function f(v){var x={left:"right",right:"left",bottom:"top",top:"bottom"};return v.replace(/left|right|bottom|top/g,function(I){return x[I]})}function m(v){var x=Object.assign({},v);return x.right=x.left+x.width,x.bottom=x.top+x.height,x}function g(v,x){var I=0,z;for(z in v){if(v[z]===x)return I;I++}return null}function y(v,x){var I=i.getComputedStyle(v,null);return I[x]}function O(v){var x=v.offsetParent;return x===i.document.body||!x?i.document.documentElement:x}function C(v){var x=v.parentNode;return x?x===i.document?i.document.body.scrollTop||i.document.body.scrollLeft?i.document.body:i.document.documentElement:["scroll","auto"].indexOf(y(x,"overflow"))!==-1||["scroll","auto"].indexOf(y(x,"overflow-x"))!==-1||["scroll","auto"].indexOf(y(x,"overflow-y"))!==-1?x:C(v.parentNode):v}function N(v){return v===i.document.body?!1:y(v,"position")==="fixed"?!0:v.parentNode?N(v.parentNode):v}function _(v,x){function I(z){return z!==""&&!isNaN(parseFloat(z))&&isFinite(z)}Object.keys(x).forEach(function(z){var L="";["width","height","top","right","bottom","left"].indexOf(z)!==-1&&I(x[z])&&(L="px"),v.style[z]=x[z]+L})}function E(v){var x={};return v&&x.toString.call(v)==="[object Function]"}function P(v){var x={width:v.offsetWidth,height:v.offsetHeight,left:v.offsetLeft,top:v.offsetTop};return x.right=x.left+x.width,x.bottom=x.top+x.height,x}function M(v){var x=v.getBoundingClientRect(),I=navigator.userAgent.indexOf("MSIE")!=-1,z=I&&v.tagName==="HTML"?-v.scrollTop:x.top;return{left:x.left,top:z,right:x.right,bottom:x.bottom,width:x.right-x.left,height:x.bottom-z}}function T(v,x,I){var z=M(v),L=M(x);if(I){var H=C(x);L.top+=H.scrollTop,L.bottom+=H.scrollTop,L.left+=H.scrollLeft,L.right+=H.scrollLeft}var Z={top:z.top-L.top,left:z.left-L.left,bottom:z.top-L.top+z.height,right:z.left-L.left+z.width,width:z.width,height:z.height};return Z}function F(v){for(var x=["","ms","webkit","moz","o"],I=0;I<x.length;I++){var z=x[I]?x[I]+v.charAt(0).toUpperCase()+v.slice(1):v;if(typeof i.document.body.style[z]<"u")return z}return null}return Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(x){if(x==null)throw new TypeError("Cannot convert first argument to object");for(var I=Object(x),z=1;z<arguments.length;z++){var L=arguments[z];if(L!=null){L=Object(L);for(var H=Object.keys(L),Z=0,ie=H.length;Z<ie;Z++){var oe=H[Z],ge=Object.getOwnPropertyDescriptor(L,oe);ge!==void 0&&ge.enumerable&&(I[oe]=L[oe])}}}return I}}),s})}(Yw)),Yw.exports}var YO;function Am(){if(YO)return fm;YO=1,fm.__esModule=!0;var e=Fi.default,n=a(e),i=VO();function a(f){return f&&f.__esModule?f:{default:f}}var s=n.default.prototype.$isServer?function(){}:kY(),c=function(m){return m.stopPropagation()};return fm.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(m){this.showPopper=m,this.$emit("input",m)}},showPopper:function(m){this.disabled||(m?this.updatePopper():this.destroyPopper(),this.$emit("input",m))}},methods:{createPopper:function(){var m=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,!!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var g=this.popperOptions,y=this.popperElm=this.popperElm||this.popper||this.$refs.popper,O=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!O&&this.$slots.reference&&this.$slots.reference[0]&&(O=this.referenceElm=this.$slots.reference[0].elm),!(!y||!O)&&(this.visibleArrow&&this.appendArrow(y),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),g.placement=this.currentPlacement,g.offset=this.offset,g.arrowOffset=this.arrowOffset,this.popperJS=new s(O,y,g),this.popperJS.onCreate(function(C){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=i.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=i.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(m){!this.popperJS||this.showPopper&&!m||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(!!this.transformOrigin){var m={top:"bottom",bottom:"top",left:"right",right:"left"},g=this.popperJS._popper.getAttribute("x-placement").split("-")[0],y=m[g];this.popperJS._popper.style.transformOrigin=typeof this.transformOrigin=="string"?this.transformOrigin:["top","bottom"].indexOf(g)>-1?"center "+y:y+" center"}},appendArrow:function(m){var g=void 0;if(!this.appended){this.appended=!0;for(var y in m.attributes)if(/^_v-/.test(m.attributes[y].name)){g=m.attributes[y].name;break}var O=document.createElement("div");g&&O.setAttribute(g,""),O.setAttribute("x-arrow",""),O.className="popper__arrow",m.appendChild(O)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",c),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}},fm}var Ww={exports:{}},vm={},WO;function GO(){if(WO)return vm;WO=1,vm.__esModule=!0;var e=Br();return vm.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var i=this.getMigratingConfig(),a=i.props,s=a===void 0?{}:a,c=i.events,f=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},C=y.listeners||{};for(var N in O)N=(0,e.kebabCase)(N),s[N]&&console.warn("[Element Migrating]["+this.$options.name+"][Attribute]: "+s[N]);for(var _ in C)_=(0,e.kebabCase)(_),f[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+f[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},vm}var Id={},JO;function bm(){if(JO)return Id;JO=1,Id.__esModule=!0,Id.isDef=e,Id.isKorean=n;function e(i){return i!=null}function n(i){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(i)}return Id}var KO;function Gw(){return KO||(KO=1,function(e){e.exports=function(n){var i={};function a(s){if(i[s])return i[s].exports;var c=i[s]={i:s,l:!1,exports:{}};return n[s].call(c.exports,c,c.exports,a),c.l=!0,c.exports}return a.m=n,a.c=i,a.d=function(s,c,f){a.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:f})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,c){if(c&1&&(s=a(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(a.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var m in s)a.d(f,m,function(g){return s[g]}.bind(null,m));return f},a.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(c,"a",c),c},a.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},a.p="/dist/",a(a.s=75)}({0:function(n,i,a){a.d(i,"a",function(){return s});function s(c,f,m,g,y,O,C,N){var _=typeof c=="function"?c.options:c;f&&(_.render=f,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var E;if(C?(E=function(T){T=T||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!T&&typeof __VUE_SSR_CONTEXT__<"u"&&(T=__VUE_SSR_CONTEXT__),y&&y.call(this,T),T&&T._registeredComponents&&T._registeredComponents.add(C)},_._ssrRegister=E):y&&(E=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),E)if(_.functional){_._injectStyles=E;var P=_.render;_.render=function(F,v){return E.call(v),P(F,v)}}else{var M=_.beforeCreate;_.beforeCreate=M?[].concat(M,E):[E]}return{exports:c,options:_}}},11:function(n,i){n.exports=GO()},21:function(n,i){n.exports=bm()},4:function(n,i){n.exports=Is()},75:function(n,i,a){a.r(i);var s=function(){var L=this,H=L.$createElement,Z=L._self._c||H;return Z("div",{class:[L.type==="textarea"?"el-textarea":"el-input",L.inputSize?"el-input--"+L.inputSize:"",{"is-disabled":L.inputDisabled,"is-exceed":L.inputExceed,"el-input-group":L.$slots.prepend||L.$slots.append,"el-input-group--append":L.$slots.append,"el-input-group--prepend":L.$slots.prepend,"el-input--prefix":L.$slots.prefix||L.prefixIcon,"el-input--suffix":L.$slots.suffix||L.suffixIcon||L.clearable||L.showPassword}],on:{mouseenter:function(ie){L.hovering=!0},mouseleave:function(ie){L.hovering=!1}}},[L.type!=="textarea"?[L.$slots.prepend?Z("div",{staticClass:"el-input-group__prepend"},[L._t("prepend")],2):L._e(),L.type!=="textarea"?Z("input",L._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:L.tabindex,type:L.showPassword?L.passwordVisible?"text":"password":L.type,disabled:L.inputDisabled,readonly:L.readonly,autocomplete:L.autoComplete||L.autocomplete,"aria-label":L.label},on:{compositionstart:L.handleCompositionStart,compositionupdate:L.handleCompositionUpdate,compositionend:L.handleCompositionEnd,input:L.handleInput,focus:L.handleFocus,blur:L.handleBlur,change:L.handleChange}},"input",L.$attrs,!1)):L._e(),L.$slots.prefix||L.prefixIcon?Z("span",{staticClass:"el-input__prefix"},[L._t("prefix"),L.prefixIcon?Z("i",{staticClass:"el-input__icon",class:L.prefixIcon}):L._e()],2):L._e(),L.getSuffixVisible()?Z("span",{staticClass:"el-input__suffix"},[Z("span",{staticClass:"el-input__suffix-inner"},[!L.showClear||!L.showPwdVisible||!L.isWordLimitVisible?[L._t("suffix"),L.suffixIcon?Z("i",{staticClass:"el-input__icon",class:L.suffixIcon}):L._e()]:L._e(),L.showClear?Z("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(ie){ie.preventDefault()},click:L.clear}}):L._e(),L.showPwdVisible?Z("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:L.handlePasswordVisible}}):L._e(),L.isWordLimitVisible?Z("span",{staticClass:"el-input__count"},[Z("span",{staticClass:"el-input__count-inner"},[L._v(`
32
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+g.width+'" height="'+g.height+'" viewBox="'+g.x+" "+g.y+" "+g.width+" "+g.height+'" version="1.1">'+m+f+"</svg>"}catch(a){i=a}if(this._emit("saveSVG.done",{error:i,svg:n}),i)throw i;return{svg:n}},en.prototype._setDefinitions=function(e){this._definitions=e},en.prototype.getModules=function(){return this._modules},en.prototype.clear=function(){!this.getDefinitions()||fo.prototype.clear.call(this)},en.prototype.destroy=function(){fo.prototype.destroy.call(this),ec(this._container)},en.prototype.on=function(e,n,i,a){return this.get("eventBus").on(e,n,i,a)},en.prototype.off=function(e,n){this.get("eventBus").off(e,n)},en.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=Ea(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},en.prototype.getDefinitions=function(){return this._definitions},en.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},en.prototype._init=function(e,n,i){const a=i.modules||this.getModules(i),s=i.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],f=[].concat(c,a,s),m=Je(l9(i,["additionalModules"]),{canvas:Je({},i.canvas,{container:e}),modules:f});fo.call(this,m),i&&i.container&&this.attachTo(i.container)},en.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},en.prototype._createContainer=function(e){const n=Qi('<div class="bjs-container"></div>');return Nn(n,{width:fO(e.width),height:fO(e.height),position:e.position}),n},en.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new pU(n)},en.prototype._modules=[];function sm(e,n){return e.warnings=n,e}function DU(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const BU={width:"100%",height:"100%",position:"relative"};function fO(e){return e+(ao(e)?"px":"")}function IU(e,n){return n&&Dr(e.diagrams,function(i){return i.id===n})||null}function OU(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+cO+"</a>",a=Qi(i);Nn(Ea("svg",a),uO),Nn(a,dO,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),Es.bind(a,"click",function(s){SU(),s.preventDefault()})}function lc(e){en.call(this,e)}Jr(lc,en),lc.prototype._modules=[U7,cH,h2,mH,l2],lc.prototype._moddleExtensions={};var TU=/^djs-cursor-.*$/;function pO(e){var n=xs(document.body);n.removeMatching(TU),e&&n.add("djs-cursor-"+e)}function NU(){pO(null)}var MU=5e3;function FU(e,n){n=n||"element.click";function i(){return!1}return e.once(n,MU,i),function(){e.off(n,i)}}function hO(e,n){return{x:e.x-n.x,y:e.y-n.y}}var PU=15;function mO(e,n){var i;function a(m){return f(m.originalEvent)}e.on("canvas.focus.changed",function(m){m.focused?e.on("element.mousedown",500,a):e.off("element.mousedown",a)});function s(m){var g=i.start,y=i.button,O=y2(m),C=hO(O,g);if(!i.dragging&&RU(C)>PU&&(i.dragging=!0,y===0&&FU(e),pO("grab")),i.dragging){var N=i.last||i.start;C=hO(O,N),n.scroll({dx:C.x,dy:C.y}),i.last=O}m.preventDefault()}function c(m){Es.unbind(document,"mousemove",s),Es.unbind(document,"mouseup",c),i=null,NU()}function f(m){if(!t2(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return i={button:g,start:y2(m)},Es.bind(document,"mousemove",s),Es.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!i}}mO.$inject=["eventBus","canvas"];function RU(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Bd={__init__:["moveCanvas"],moveCanvas:["type",mO]};var LU=new gw("tt");function jU(e){var n=Qi('<div class="djs-tooltip-container" />');return Nn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function QU(e,n,i){Nn(e,{left:n+"px",top:i+"px"})}function Mw(e,n){e.style.display=n===!1?"none":""}var gO="djs-tooltip",Fw="."+gO;function ni(e,n){this._eventBus=e,this._canvas=n,this._ids=LU,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=jU(n.getContainer());var i=this;ql.bind(this._tooltipRoot,Fw,"mousedown",function(a){a.stopPropagation()}),ql.bind(this._tooltipRoot,Fw,"mouseover",function(a){i.trigger("mouseover",a)}),ql.bind(this._tooltipRoot,Fw,"mouseout",function(a){i.trigger("mouseout",a)}),this._init()}ni.$inject=["eventBus","canvas"],ni.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var n=this._ids.next();return e=Je({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n},ni.prototype.trigger=function(e,n){var i=n.delegateTarget||n.target,a=this.get(uw(i,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ni.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ni.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ni.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}},ni.prototype.remove=function(e){var n=this.get(e);n&&(ec(n.html),ec(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ni.prototype.show=function(){Mw(this._tooltipRoot)},ni.prototype.hide=function(){Mw(this._tooltipRoot,!1)},ni.prototype._updateRoot=function(e){var n=e.scale||1,i=e.scale||1,a="matrix("+n+",0,0,"+i+","+-1*e.x*n+","+-1*e.y*i+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ni.prototype._addTooltip=function(e){var n=e.id,i=e.html,a,s=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Sr(i)&&(i=Qi(i)),a=Qi('<div data-tooltip-id="'+n+'" class="'+gO+'">'),Nn(a,{position:"absolute"}),a.appendChild(i),e.type&&xs(a).add("djs-tooltip-"+e.type),e.className&&xs(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ni.prototype._updateTooltip=function(e){var n=e.position,i=e.htmlContainer;QU(i,n.x,n.y)},ni.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var i=n.show,a=n.htmlContainer,s=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(s=!1),Mw(a,s))})},ni.prototype._init=function(){var e=this;function n(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){n(i.viewbox)})};const Pw={__init__:["tooltips"],tooltips:["type",ni]},zU=e=>{var n=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[n.call(e)]},Rw=e=>{var n=zU(e),i;if(n==="array")i=[];else if(n==="object")i={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)i.push(Rw(e[a]));else if(n==="object")for(var c in e)i[c]=Rw(e[c]);return i};function HU(e,n="YYYY-MM-DD HH:mm:ss"){return od(e).format(n)}function VU(e){e=Rw(e);const n={};e.forEach(a=>{n[a.historyActivityId]?n[a.historyActivityId].push(a):n[a.historyActivityId]=[a]});for(let a in n){const s=n[a];if(s.length>1){const c=e.findLast(f=>f.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(f=>f.assigneeName))).join("/")}}const i=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:f,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),f=f.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!f&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${HU(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let C,{type:N,fullMessage:_}=m.find(E=>E.action=="AddComment")||{};N=="assigneeComment"&&(C="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(C="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(C="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(C="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(C="\u9A73\u56DE\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(C="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),N=="addMultiInstanceComment"&&(C="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(C="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(C="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(C="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(C="\u64A4\u9500\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="comment"&&(C="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),C&&(y+=`<span title='${C}'>${C}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=i.findIndex(C=>C.id==a.historyActivityId);O!=-1?i.splice(O,1,g):i.push(g)}),i}function Lw(e){const n=[],i=[],a=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(s=>{s.type==="user"?n.push(...s.ids.filter(c=>c&&c.trim()!=="")):s.type==="post"?i.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(i)],deptIds:[...new Set(a)]}}var UU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}})},YU=[];const YZ="",WU={name:"bpmn-look",props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{scale:1,viewer:null,loading:!0}},mounted(){this.initViewer(),window.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){e.length;let n=e;n&&this.isXml&&this.loadXml(n)},immediate:!0}},methods:{handleWheel(e){e.preventDefault();const n=Math.sign(e.deltaY)*.1;this.scale=Math.max(.5,Math.min(this.scale-n,3)),this.viewer&&this.viewer.get("canvas").zoom(this.scale)},async getXml(e){this.isXml;let n={},i="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(lc)=="[object Function]"?lc:lc.default,n=Object.prototype.toString.call(Pw)=="[object Object]"?Pw:Pw.default,i=Object.prototype.toString.call(Bd)=="[object Object]"?Bd:Bd.default;Object.prototype.toString.call(Bd),this.viewer=new e({container:this.$refs.container,additionalModules:[n,i]}),this.viewer.on("import.done",({error:a})=>{a||(this.canvasResize(),this.addApprovalData())})},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},setNodeColor(e){const n=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),a=this.viewer.get("tooltips");e.forEach(s=>{if(s.id&&s.class&&n.addMarker(s.id,s.class),s.id&&s.tooltip){const c=i.get(s.id);if(c){let{x:f,y:m,type:g}=c;["bpmn:StartEvent","bpmn:EndEvent"].includes(g)?(f=f-45,m=m+65):["bpmn:UserTask"].includes(g)&&(f=f-10,m=m+90),a.add({position:{x:f,y:m},html:s.tooltip})}}})},addApprovalData(){if(this.approvalData,!this.approvalData||this.approvalData.length==0)return;const e=VU(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{e.length;const{warnings:n}=await this.viewer.importXML(e);n.length&&this.$emit("warning",n)}catch(n){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:n.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",n)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},AO={};var GU=dn(WU,UU,YU,!1,JU,"5e479c8e",null,null);function JU(e){for(let n in AO)this[n]=AO[n]}const vO=function(){return GU.exports}();var KU=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.boxLoading&&!e.isButton,expression:"boxLoading && !isButton"}],ref:"mianContent",staticClass:"mianContent",class:e.isDialog?"is-dialog":"",style:{}},[e.isButton?e._e():[i("div",{ref:"baseTabs",staticClass:"tabs"},[i("el-tabs",{staticClass:"demo-tabs",on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},e._l(e.tabs,function(a,s){return i("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[i("div",{style:{height:`${e.baseHeight}px`}},[e._t("default",null,{taskNode:e.getTaskNode(),processData:e.processData})],2)]:a.name=="\u6D41\u7A0B\u56FE"&&!a.slot?[i("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?i("iframe",{key:e.processId,staticStyle:{width:"100%",height:"100%",border:"none"},style:{height:`${e.iframeHeight}px`},attrs:{src:e.trackUrl,scrolling:"no",frameborder:"0"}}):e._e(),e.activeName=="\u6D41\u7A0B\u56FE"&&e.processData.process&&e.processData.process.xml?i("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])]:a.name=="\u5BA1\u6279\u8BB0\u5F55"&&!a.slot?[e.activeName=="\u5BA1\u6279\u8BB0\u5F55"&&e.processData.flow?i("processFlow",{attrs:{"flow-list":e.formatFlow(e.processData.flow)}}):i("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?i("div",{style:{height:`${e.baseHeight}px`}},[a.slot?e._t(a.slot,null,{taskNode:e.getTaskNode()}):e._t("default",null,{taskNode:e.getTaskNode()})],2):e._e()]],2)}),1)],1)],e.isAdditional&&e.absoluteBtns.outside.length>0?i("div",{ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[e._t("btn",null,null,e.processStatus)],2):e.showBtns?!e.ProcessInsObj.end&&e.absoluteBtns.outside.length>0&&e.processStatus.appId!="com.awspaas.user.apps.root"||e.customBtns.length>0?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.footBtnLoading,expression:"footBtnLoading"}],ref:"footBtnRow",staticClass:"footBtnRow foot-item",style:{width:e.mainWidth+"px"}},[(e.processData.process.status=="todo"||e.customBtns.length>0)&&e.absoluteBtns.outside.length>0?[e.absoluteBtns.inside.length>0?i("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[i("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return i("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[i("el-button",{staticClass:"btn drop-btn",attrs:{type:"text",size:"mini",icon:a.icon,loading:e.buttonLoading}},[e._v(" "+e._s(a.name)+" ")])],1)}),1)]},proxy:!0}],null,!1,1409220773)},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return i("el-button",e._b({key:a.name,attrs:{size:"small",loading:e.buttonLoading},on:{click:function(){a.click(),e.aftClickBtn=a}}},"el-button",a.btnProps,!1),[e._v(" "+e._s(a.name)+" ")])})]:e._e(),e._t("btnAppend")],2):e._e():i("div"),i("div",{staticClass:"dialog"},[i("el-dialog",{staticClass:"dialog",style:e.dynamicStyle,attrs:{visible:e.dialogVisibleOperation,"append-to-body":"",width:"600px",title:e.operationLabel,"close-on-click-modal":!1,"show-close":!e.isOperLoading,"before-close":e.cancelHandlerFn,top:"6vh"},on:{"update:visible":function(a){e.dialogVisibleOperation=a}},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary",loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{loading:e.isOperLoading,disabled:e.isOperationHidden},on:{click:e.cancelHandlerFn}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.dialogVisibleOperation,callback:function(a){e.dialogVisibleOperation=a},expression:"dialogVisibleOperation"}},[i("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?i(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam,isOperLoading:e.isOperLoading},on:{success:e.operationSuccess,fail:e.operationFail},scopedSlots:e._u([{key:"form",fn:function(){return[e.aftClickBtn.slot?e._t(e.aftClickBtn.slot):e._e()]},proxy:!0},{key:"file",fn:function(){return[e.attachShow?i("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[i("jyr-file-upload",{ref:"fileUpload",attrs:{multiple:e.attachRule.limit>0,limit:e.attachRule.limit,fullFileObject:"",showFileName:""},model:{value:e.attach,callback:function(a){e.attach=a},expression:"attach"}})],1)],1):e._e()]},proxy:!0}],null,!0)}):e._e()],1)]),i("el-dialog",{attrs:{title:"\u9009\u62E9\u5904\u7406\u4EFB\u52A1",visible:e.showMulTask,"append-to-body":"","close-on-click-modal":!1,width:"500px","show-close":!1},on:{"update:visible":function(a){e.showMulTask=a}},model:{value:e.showMulTask,callback:function(a){e.showMulTask=a},expression:"showMulTask"}},[i("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[i("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.mulTaskTaskId,callback:function(a){e.mulTaskTaskId=a},expression:"mulTaskTaskId"}},e._l(e.mulTaskList,function(a){return i("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),i("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),i("el-dialog",{attrs:{visible:e.nodeInfoVisible,"append-to-body":"",width:"600px",title:"\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",modal:!1,"close-on-click-modal":!1},on:{"update:visible":function(a){e.nodeInfoVisible=a}},model:{value:e.nodeInfoVisible,callback:function(a){e.nodeInfoVisible=a},expression:"nodeInfoVisible"}},[i("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[i("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),i("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),i("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"}})],1)],1)],1)],2)},XU=[];const WZ="",GZ="",ZU={components:{processBtns:G8,processFlow:q8,bpmnLook:vO,staffTree:va,...iB,ViewFile:I5,JyrFileUpload:vh},props:{taskId:{default:!1,type:String},processId:{default:"",type:String},userId:{require:!0,default:"",type:String},showBtns:{default:!0,type:Boolean},isView:{default:!1,type:Boolean},getVars:{type:Function},before:{type:Function},isAlis:{type:Boolean,default:!1},isAdditional:{type:Boolean,default:!1},businessData:{type:Object,default:void 0},excludeBtn:{type:String,default:""},showAsPlanned:{type:Boolean,default:!1},showCommIdea:{type:Boolean,default:!0},commentMsgRequired:{type:Boolean,default:!0},customBtn:{default:""},tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},personType:{default:""},personEntity:{type:Object,default:()=>{}},isButton:{type:Boolean,default:!1},isDialog:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},headerRowStyle:{type:Object||Function,default:()=>({"background-color":"rgb(245, 247, 250)",color:"#333"})},extraHeight:{type:Number,default:0}},provide(){return{isAlisInject:this.isAlis}},data(){return{incomingConditionItemList:[],deptId:"",initProcessData:{button:[],flow:[],form:{},process:{}},processData:{button:[],flow:[],form:{},process:{}},submitLoading:!1,flowChartVisible:!1,comment:null,dynamicMaxHeight:"400px",showMulTask:!1,mulTaskList:[],mulTaskTaskId:"",attach:[],customBtns:[],overheight:10,iframeHeight:500,baseHeight:500,mainWidth:0,absoluteTaskId:"",infoView:!1,showTopTabs:!1,buttonLoading:!1,footBtnLoading:!0,tabheight:400,aftClickBtn:"",attachRule:{required:!0,limit:0},nodeInfoVisible:!1,nodeInfoList:[],jjForm:{saveMetaAnnexCmdList:[]},targetUID:"",commentMsg:"",trackUrl:"",taskObj:{},taskCommentList:[],absoluteBtns:{inside:[],outside:[]},processStatus:"",nextTaskNode:[],activeName:"\u57FA\u672C\u4FE1\u606F",ProcessInsObj:{},outGatewayUserTaskModel:[],dialogVisibleOperation:!1,operationLabel:"",operationCom:{},operationParam:{},taskNode:[],aftTaskNode:{},operation:iB,Enum:Tp,isOperLoading:!1,isOperationHidden:!1,boxLoading:!1,rules:{attach:[{required:!0,trigger:"change"}]},noReload:!1,digitalSignatureList:[]}},mounted(){window.onresize=()=>(()=>{this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth)})()},watch:{activeName:function(e){e==1&&(this.activeName="\u57FA\u672C\u4FE1\u606F")},infoView:function(){this.calculateHeight()},taskId:{handler(e){!e||(this.absoluteTaskId=e)},deep:!0,immediate:!0},processId:{handler(e){if(e){if(this.customBtns=[],this.absoluteBtns={inside:[],outside:[]},this.boxLoading=!0,this.activeName=this.tabs.length>0?this.tabs[0].name:"",this.getProcessInfo(),Date.now())return;Ze.repository.queryTaskNodeList(this.processId).then(n=>{if(!this.noReload)if(this.noReload=!1,!this.absoluteTaskId&&n.data.length>1){this.mulTaskList=n.data,this.showMulTask=!0;return}else this.absoluteTaskId=n.data&&n.data.length>0?n.data[0].taskId:"",this.aftTaskNode=n.data[0];this.absoluteTaskId,n.code==bt.success&&(this.taskNode=n.data,Ze.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(i=>{i.code==bt.success&&(this.processStatus=i.data,this.$emit("getStatus",i.data),this.absoluteTaskId?Ze.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==bt.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Ze.repository.getTrackUrl({processInstId:e,type:n_.\u7535\u8111\u7AEF}).then(n=>{n.code==bt.success&&(window.location.protocol=="https:"?n.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=n.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=n.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):n.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):n.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=n.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=n.data:this.trackUrl=n.data)}),Ze.tis.getTaskCommentList(this.processId,"").then(n=>{this.taskCommentList=n.data,this.digitalSignatureList=n.data.filter(i=>i.digitalSignature).map(i=>i.digitalSignature)}),Ze.pis.getProcessInstanceById(this.processId).then(n=>{this.ProcessInsObj=n.data,this.$nextTick(()=>{this.calculateHeight()})})}},immediate:!0,deep:!0},absoluteTaskId:{handler(e){},immediate:!0,deep:!0},dialogVisibleOperation:{handler(e){this.$emit("show-modal",e)}}},methods:{formatFlow(e){return(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(a=>a.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(a=>a.type=="signature")}))},cancelHandlerFn(){this.dialogVisibleOperation=!1,this.submitLoading=!1},filterFlow(e){return e.filter(n=>["userTask","candidate"].includes(n.historyActivityType))},getProcessInfo(){this.submitLoading=!0,this.boxLoading=!0,Ze.tis.getTaskModelDetail(this.taskId?{processInstId:this.processId,taskId:this.taskId}:{processInstId:this.processId}).then(async e=>{if(e.code==200){this.processData={...this.initProcessData,...e.data||{}};const n=((this.processData.process||{}).variables||{}).deptId;this.deptId=n;const i=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=i,this.straightenBtns(),this.$nextTick(()=>{this.calculateHeight()}),this.processData.flow,this.flowChartVisible=!0,this.submitLoading=!1,this.boxLoading=!1}})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Lw(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==Enum.apiCode.success){const s=this.processList[n];s.userList=a.data,this.$set(this.processList,n,s)}})},handleDraft(){this.submitLoading=!0},handleExamine(e,n){e?this.handlePass(n):this.handleCancel(n),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.isOperationHidden=!0,this.before?this.before().then(()=>{this.showOperation(by,e)}):this.showOperation(by,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextTaskNode:this.nextTaskNode},this.isOperationHidden=!1)},handleCancel(e){this.showOperation(KD,e)},handleUserSelect({type:e,checkType:n,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},handleTransfer(e){this.showOperation(VD,e)},handleAddInstance(e){this.showOperation(QD,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(ZD,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(nB,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,i="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[i];if(!a)return null;if(i=="children"){for(let s=0;s<=a.length-1;s++)if(a[s].classList.contains(n))return a[s];return}return this.findTargetHtml(a,n)},findImageIndex(e){return e?this.digitalSignatureList.findIndex(n=>n==e):-1},onCheckSure(){this.absoluteTaskId=this.mulTaskTaskId,this.mulTaskList.map(n=>{n.taskId==this.mulTaskTaskId&&(this.aftTaskNode=n)}),this.noReload=!0,this.showMulTask=!1,this.footBtnLoading=!0;let e=this.processId;Reflect.set(this.processId,""),Reflect.set(this.processId,e)},showButtonLoading(){this.buttonLoading=!0},hideButtonLoading(){this.buttonLoading=!1},calculateHeight(){let e=0;if(this.$refs.footBtnRow&&(e+=this.$refs.footBtnRow.offsetHeight),this.$refs.mianContent&&(this.mainWidth=this.$refs.mianContent.offsetWidth),this.infoView&&this.absoluteBtns.outside.length>0&&(e+=32),this.$refs.infoBoxFign){let n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.tabheight=n-this.$refs.infoBoxFign.offsetTop-192}this.overheight=e+116,this.iframeHeight=this.$refs.mianContent.offsetHeight-146,this.baseHeight=this.$refs.mianContent.offsetHeight-70-e-this.extraHeight},getNodeList(){this.nodeInfoVisible=!0},fileNameLastof(e,n=0){if(e.indexOf("http")==-1&&(n=0),!e)return;let i="/";e.indexOf("\\")!=-1&&(i="\\");let a=e,s=a.lastIndexOf(i);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(i=>{i.label==e&&(i.label=n)}),this.straightenBtns()}})},async getNextNode(e){let n;try{n=await Ze.tis.simulation(this.absoluteTaskId,this.processId)}catch(a){console.error(a),n={}}let i=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async showOperation(e,n){this.attach=[],this.operationLabel=n,this.operationParam.processInstId=this.processId,this.operationParam.taskInstId=this.absoluteTaskId,this.operationParam.nextTaskNode=this.nextTaskNode,this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.variables=(this.processData.process||{}).variables||{},this.operationParam.extendedProperties=(this.processData.form||{}).extendedProperties||[],this.operationParam.taskObj=this.taskObj,this.operationParam.getVars=this.getVars,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.getTaskNode(),this.operationParam.businessData=this.businessData,this.operationParam.showAsPlanned=this.showAsPlanned,this.operationParam.showCommIdea=this.showCommIdea,this.operationParam.commentMsgRequired=this.commentMsgRequired,this.operationParam.personType=this.personType,this.operationParam.personEntity={...this.personEntity,...this.aftClickBtn.personEntity||{}},this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationCom=e,this.dialogVisibleOperation=!0,this.$nextTick(()=>{var m,g;let i=this.$refs.obRef;if(this.$refs,!i)return;let a=(m=i.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(i,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),f=window.innerHeight-((g=i.getBoundingClientRect())==null?void 0:g.top)-a-(c==null?void 0:c.clientHeight)-32;this.dynamicMaxHeight=`${f}px`})},onClickOperation(){if(this.attachShow&&this.attachRule.required&&this.attach.length==0)return hd.error("\u8BF7\u4E0A\u4F20\u9644\u4EF6");this.aftClickBtn.preposition?this.operationMain(this.aftClickBtn.preposition):this.operationMain()},operationMain(e=!1){let n;this.attachShow&&(n=[],this.attach.map(i=>{n.push({id:i.id,name:this.fileNameLastof(i.name),size:i.fileSize,format:i.fileType,url:i.url,uploadTime:i.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((i,a)=>od(i.uploadTime).valueOf()>od(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){hd.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&hd.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let a=0;a<i.branches.length;a++){let s=i.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(f){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,i.branches[a]=s}else if(i.nodeType=="userTask"&&!i.setPersonnel){let a=Lw(i),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==bt.success}catch(c){}s.code==bt.success&&(i.userList=s.data)}return i},async getOutgoingProcessNode(e,n){let i=await Ze.repository.getOutgoingProcessNode(e,n);if(i.code==bt.success){if(i.data){for(let a=0;a<i.data.length;a++){let s=i.data[a];s.incomingConditionItemList&&s.incomingConditionItemList.length!==0&&(s.nodeInfoDTO.incomingConditionItemList=s.incomingConditionItemList,s.incomingConditionItemList,this.incomingConditionItemList.push(...s.incomingConditionItemList)),s.nodeInfoDTO.nodeType!="userTask"&&(s.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,s.nodeInfoDTO.id)),i.data[a].type!="endEvent"&&(i.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||i.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Ze.repository.getParticipantsOfPerformerNames(e,[i.data[a].id]).then(c=>{i.data[a].routeTxt.userNames=c.data[i.data[a].id]})}i.data.length==0&&i.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return i.data}return[]},getColor(e){return e=="\u5BA1\u6838\u4E2D"||e=="\u5BA1\u6279\u4E2D"?"#6DC743":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleClick(e,n){this.$emit("clickTab",e.$vnode?JSON.parse(JSON.stringify(e.$vnode.data.attrs.item)):e.props,e.index)},getTaskNode(){return this.taskNode.filter?this.taskNode.filter(e=>e.nodeId==this.taskObj.id):[]},handleRevoke(){MI.confirm("\u786E\u5B9A\u64A4\u9500\u5417","\u64A4\u9500",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{Ze.tis.withdrawTask(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){MI.confirm("\u786E\u5B9A\u50AC\u529E\u5417","\u50AC\u529E",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{this.ProcessInsObj,Ze.tis.reminders(this.processData.process.processInstanceId).then(e=>{e.code==bt.success&&(hd.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(e=>{})},getButton(e){return(this.processData.button||[]).find(n=>n.buttonKey==e)},operBtn(){let e=[];const n=this.processData.process;if(!n)return e;if(n.status=="todo"&&n.isMultiInstance&&this.getButton("wf_add_instance")){let i={};i.name=this.getButton("wf_add_instance").name,i.btnProps={type:"primary"},i.key="sign",i.click=()=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name})},e.push(i)}if(n.status=="todo"&&this.getButton("wf_transfer")){let i={};i.name=this.getButton("wf_transfer").name,i.key="delegate",i.click=()=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name})},e.push(i)}if(n.status=="todo"&&this.getButton("wf_delegate")){let i={};i.name=this.getButton("wf_delegate").name,i.btnProps={type:"warning"},i.key="cc2",i.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name})},e.push(i)}if(n.status=="todo"&&this.getButton("wf_terminate")){let i={};i.name=this.getButton("wf_terminate").name,i.btnProps={type:"danger"},i.key="cc3",i.click=()=>{this.handleTerminateProcess()},e.push(i)}if(n.status=="todo"&&this.getButton("wf_cctask")){let i={};i.name=this.getButton("wf_cctask").name,i.btnProps={type:"primary"},i.key="cc",i.click=()=>{this.handleCirculate(this.getButton("wf_cctask").name)},e.push(i)}if(n.status=="todo"&&this.userId==(n.variables||{}).applyUserId){let i={};i.name="\u50AC\u529E",i.key="self",i.click=()=>{this.handleReminders()},e.push(i)}if(n.isOwner&&n.isReturnable&&!["recall","reject"].includes(n.processIsFinished)){let i={};i.name="\u64A4\u9500",i.btnProps={type:"danger"},i.key="self",i.click=()=>{this.handleWithdrawTask("\u64A4\u9500")},e.push(i)}if(n.status=="todo"&&this.getButton("wf_reject")){let i={};i.name=this.getButton("wf_reject").name,i.btnProps={type:"danger"},i.key="refuse",i.click=()=>{this.handleExamine(!1,this.getButton("wf_reject").name)},e.push(i)}if(n.status=="todo"&&this.getButton("wf_pass")){let i={};i.name=this.getButton("wf_pass").name,i.btnProps={type:"primary"},i.key="complete",i.click=()=>{this.before?this.before().then(()=>{this.handleExamine(!0,this.getButton("wf_pass").name)}):this.handleExamine(!0,this.getButton("wf_pass").name)},e.push(i)}if(n.status=="todo"&&this.getButton("wf_rollback")){let i={};i.name=this.getButton("wf_rollback").name,i.btnProps={type:"danger"},i.key="back",i.click=()=>{this.handleRollbackTask(this.getButton("wf_rollback").name)},e.unshift(i)}return e},straightenBtns(e=!0){let n=[];this.excludeBtn?this.operBtn().map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}):n=this.operBtn(),this.customBtns.length>0&&(n=[],this.customBtns.map(a=>{(this.excludeBtn.indexOf(a.key)==-1||!a.key)&&n.push(a)}));let i={outside:[],inside:[]};n.length>4?(i.outside=n.splice(n.length-4,n.length-1),i.inside=n):i.outside=n,e&&this.customBtn?this.customBtn({btnList:this.operBtn(),processStatus:this.processStatus,processData:this.processData,nextTaskNode:this.nextTaskNode},a=>{this.customBtns=a,this.straightenBtns(!1)},()=>{this.$emit("Complete")}):(this.absoluteBtns=i,this.$nextTick(()=>{this.calculateHeight(),this.footBtnLoading=!1,this.boxLoading=!1}))}},computed:{dynamicStyle(){return{"--dynamic-ctx-height":this.dynamicMaxHeight}},attachShow(){const e=(this.processData.form||{}).extendedProperties||[];let n=!1,i,a="";switch(this.operationLabel){case"\u9000\u56DE":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u5904\u7406":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u540C\u610F":i=e.find(c=>c.name=="completeButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":i=e.find(c=>c.name=="otherButtonAnnexList"),a=i?i.value:"";break;case"\u52A0\u7B7E":i=e.find(c=>c.name=="counterSignButtonAnnex"),a=i?i.value:"",a&&(n=!0);break;case"\u8F6C\u529E":i=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=i?i.value:"",a&&(n=!0);break}let s="";if(typeof a!="string"&&a!=null&&a.map(c=>{c.indexOf(this.operationLabel)!=-1&&(n=!0,s=c)}),s&&(a=s),n){const c=a.split(":");this.attachRule.required=c[1]=="true",this.attachRule.limit=c[2]==-1?999:c[2]}return n}}},bO={};var $U=dn(ZU,KU,XU,!1,qU,"6425acaf",null,null);function qU(e){for(let n in bO)this[n]=bO[n]}const _O=function(){return $U.exports}(),eY=async(e,n)=>{const i=n||{},a=i.dragElement||(i.targetClassName?yO(e,i.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(v=>{s=v[0].isIntersecting,s||F()}).observe(a);const f=i.dragHeader||".el-dialog__header",m=a.querySelector(f),g=i.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,C,N,_;const E=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=x=>{O=!0;const I=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);C=I?parseFloat(I[1]):0,N=I?parseFloat(I[2]):0,document.addEventListener("mousemove",M),document.addEventListener("mouseup",T)};const v=a.getBoundingClientRect();_={"+x":y.right-v.right,"-x":y.left-v.left,"+y":y.bottom-v.bottom,"-y":y.top-v.top}}},P=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=v=>{}};w.watch(i.dialogConfig,(v,x)=>{v.fullScreen&&(P(),F())}),E();const M=v=>{if(!O)return;v.stopPropagation(),v.preventDefault();let x=v.movementX+C,I=v.movementY+N;x>=0?x=x>=_["+x"]?_["+x"]:x:x=x<=_["-x"]?_["-x"]:x,I>=0?I=I>=_["+y"]?_["+y"]:I:I=I<=_["-y"]?_["-y"]:I,a.style.transform=`translate(${x}px, ${I}px)`,C=x,N=I},T=()=>{O=!1,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},F=()=>{a.style.transform="none"}};function yO(e,n){if(!e)return null;if(e.classList.contains(n))return e;let i=e.parentElement;return i?yO(i,n):null}const tY="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACktJREFUeF7tnV1S3DgURqVuZh+dlQArCbyESdWQolcArKCpMFUJeYGsBLKS9D6GtKZsAiEBuq9VvrLFd/I2NbKlez6dlvxTOAb+QQACLxKIsIEABF4mgCDMDgisIYAgTA8IIAhzAAJ5BFhB8rhxlAgBBBEJmjLzCCBIHjeOEiGAICJBU2YeAQTJ48ZRIgQQRCRoyswjgCB53DhKhACCiARNmXkEECSPG0eJEEAQkaApM48AguRx4ygRAggiEjRl5hFAkDxuHCVCAEFEgqbMPAIIkseNo0QIjF6QxeLTrFQW8/n7Zam+xtxPKeY18B6VIG0wW5O9GOJ2SGkWYigmRzthU1iGSbpJ/6XTGsLrU7KGffwrHocU9/o878ZzNcybfzEuUwpfQ/yxnB++v9l4XKEGoxBkcX5xElN4W1yIlyCnsDz6cPCmUAaj6Obs48X3MfFPMXydHx6cDA1nUEFaMUI4HhrCc/2nEE7HEFAJNmf/fr4svnJYCkthObQogwjSLufTyfVofrGeDSveHB2+27XkWHub0QpyD7YR5cdqd4htb3FBFuefdmKYXI9+UsV0dfTP3/ujH2cPAzw7/3IdQtrp4VR+pxhoNSkqyJi3VE+SFRJk8fHLXozp0m9293fm0lvfYoJUJYfYRXodW95fkpWUpIgg1Wyr7u43ylx7PP5d/3WLfZw3Tf5cg0pJ4i5Ilhw/95t3UFZ398Rvf94v72+1fnKmIS4CHcvJOnWph4Tt4LbCLKTpLE5W253vorVzZLXv/czEXZBO99ebokM8nX94d5WVLgdVTaC9Fgrp2Hx3s8BW2FWQLhd/pZbMqmeQwOC7bvVSivueP6iuglhXjxRWu95LpcDcelUlmrfmzquImyDWu1bI8armda/FWCXxXEXcBLGsHmyrep1Pr/Jkph9ax1XET5Dzi7Q2MceiXuVMES2qfUazNb3c9KTfayfiIojl4tyrINF59KrLtmy1vHYjLoJYXn47Ojxw6ftVzxTh4jZv2X0e8LpM0o3FCL3nJDyney194wuVTlt2H0E2XH943nXoNRVONhoCG7ftr0oQnnuMZuLVMhDLdYjHtr33FeTursPk+zrw6Xb1hveeapma4xjnUPMKQcaRP6PYQABBmCIQWEMAQZgeEECQOwJcg+BCVwKsIF2J0V6KAIJIxU2xXQkgSFditJcigCBScVNsVwII0pUY7aUIIIhU3BTblQCCdCVGeykCCCIVN8V2JYAgXYnRXooAgkjFTbFdCSBIV2K0lyKAIFJxU2xXAgjSlRjtpQggiFTcFNuVAIJ0JUZ7KQIIIhU3xXYlgCBdidFeigCCSMVNsV0JIEhXYrSXIoAgUnFTbFcCCNKVGO2lCEgJ4vEnIqVmi2CxFkE85lXvf1mxyW7t5w/4y+6C07ufkoeYVy6CtLZPJ9dPPufr9Be4+8HPWcZOYIh55SJIA/rX53zjdvPfKaRv88ODk7GHwPjGTaD0vHITZNyYGR0EbAQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEEEQ0eMq2EUAQGydaiRJAENHgKdtGAEFsnGglSgBBRIOnbBsBBLFxopUoAQQRDZ6ybQQQxMaJVqIEXAVZnF+cxBC3G7YppG/zw4MTUc6U3SOBkvPKTZCzjxffQwyz37iksEw/Vrvz+ftlj7w4lRCB0vPKRZCz8y/XIaSdZ3OL6eron7/3hTKl1J4IDDGvnAS5SC8ySWF59OHgTU/MOI0QgbPz8vOqd0EWi0+zuDX5vi63dLt6wzZLaGb3UOpQ8wpBegiPU/gTQBB/xvRQMQEEqTg8hu5PAEH8GdNDxQQQpOLwGLo/AQTxZ0wPFRNAkIrDY+j+BBDEnzE9VEwAQSoOj6H7E0AQf8b0UDEBBKk4PIbuTwBB/BnTQ8UEEKTi8Bi6PwEE8WdMDxUTQJCKw2Po/gQQxJ8xPVRMAEEqDo+h+xNAEH/G9FAxAQSpODyG7k8AQfwZ00PFBBCk4vAYuj8BBPFnTA8VE0CQisNj6P4EEMSfMT1UTEBLkLDanR++v6k4L4ZemMDi/NNODJPrdd16/EHCYf5wHIIUnl71d7f4+GUvxnRZvSBNAWv/hmrzKYQU9+cf3l3VHxsVlCJgEeTo8KD3H/zeT9gK8tynD34jGW+ODt/tloJLP/UTOPv382VIce/FSpz+KLqPIOs+f9BU6FRM/dOACl4isPFH1+mzGi6CWJbDxHUINhgJmOaT07bdRxDDJxBYRYyzg2aGLXsIHnewGvQugtxdqK/5ytTP0FMIp3y3EAPWEbj7HmE43kTJ4wLdVRDLstisIimu9nkmsil+zf9vefbRXtI6ba98BWm2WdPJ9ZMPef6ZdStJ+MpKoinBS1Vb5WiO91o9XAVpTm5aRX7e1UISBLknYN1Wea8e/oK0F+vTyxe/eMtqghWPCLSrRppcbtx13B9T4HGB20X6w6+B5Y7WM6KESbpJq8m3EH/cfVP9Nrh/W50Pi94F0bwYWMTcrTALaToLMc0sF+JPp4n/O33ugnTaahVJZU0nKSxbMf9Lp2qytG/L/hWP1z6tHjqfR/2Xeo5WRJBWEuPtulFkUGDpHkWdjwax8Un1iAZc8vFAOUGaZXtrspezlA6RTckQhqjvcZ8b33MaeoC/rRxln50VE+ThmsTw2vI48tB5obIWQUptqx7Pv+KC3F8Emp6RDGmK08tvQ5b0Ut+Wtx4GHfeAD5QHEeThTkmz5Urhrfm2XsmUhAQxP68qyb/pawQPkQcT5GHL9XBtErfNz0u8gxK7SG/vYFneevDmfn/+EYhxP5TBBXnMvL3/Pp3uxBjehpRmw6wsOtceT9gPdROlub0e4zKF9C3crq7GdIt9VII89wNV7KFVCGFMwZT6sf6zH3j/TmT0ggw1UegXAg0BBGEeQGANAQRhekAAQZgDEMgjwAqSx42jRAggiEjQlJlHAEHyuHGUCAEEEQmaMvMIIEgeN44SIYAgIkFTZh4BBMnjxlEiBBBEJGjKzCOAIHncOEqEAIKIBE2ZeQQQJI8bR4kQQBCRoCkzjwCC5HHjKBECCCISNGXmEUCQPG4cJUIAQUSCpsw8Av8DJjgSI/ED2TgAAAAASUVORK5CYII=";var nY=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("el-dialog",{staticClass:"process-dialog",attrs:{visible:e.visible,width:e.width||"60%","close-on-click-modal":!1,fullscreen:e.fullscreen,title:"\u6D41\u7A0B\u4FE1\u606F","append-to-body":"",top:"5vh"},on:{"update:visible":function(a){e.visible=a},closed:e.onClickCancel,close:e.close,open:e.open},scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticClass:"dialog-header"},[e._t("title",function(){return[i("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),i("div",{staticClass:"dialog-icon"},[i("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[i("img",{attrs:{src:tY,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?i("process",e._b({ref:"process",attrs:{processId:e.paramsProcessId,isDialog:!0,fullscreen:e.fullscreen,tabs:e.tabs},on:{Complete:e.Complete,clickTab:e.handleTab,clickCustomButton:e.handleCustomButton,"get-status":e.getStatus}},"process",e.$attrs,!1),[i("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},iY=[];const JZ="",rY={components:{process:_O},props:{dragable:!1,value:Boolean,width:String,processId:String,tabs:{default:()=>[{name:"\u57FA\u672C\u4FE1\u606F",slot:""},{name:"\u6D41\u7A0B\u56FE",slot:""},{name:"\u5BA1\u6279\u8BB0\u5F55",slot:""}]},parentEl:null},model:{prop:"value",event:"update:value"},data(){return{showProcess:!1,paramsProcessId:"",fullscreen:!1}},computed:{visible(){return this.value}},mounted(){this.$attrs},methods:{initDom(){this.fullscreen=!1},onClickCancel(){this.$emit("update:value",!1)},Complete(){this.$emit("Complete")},open(){this.showProcess=!0,this.paramsProcessId=this.processId;let e={targetClassName:"el-dialog"};(this.parentEl||window.$wujie.props.el())&&(e.restrictElement=this.parentEl||window.$wujie.props.el()),this.$nextTick(()=>{this.$refs,this.$refs.process,eY(this.$refs.process.$el||this.$refs.process,e)})},close(){this.$emit("close"),this.paramsProcessId="",this.showProcess=!1,this.$refs.process.activeName=this.tabs[0].name},handleTab(e,n){this.$emit("clickTab",e,n)},handleCustomButton(e){this.$emit("clickCustomButton",e)},getStatus(e){this.$emit("getStatus",e)}}},wO={};var aY=dn(rY,nY,iY,!1,oY,null,null,null);function oY(e){for(let n in wO)this[n]=wO[n]}const sY=function(){return aY.exports}();var lY=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{staticClass:"flow-dialog",attrs:{visible:e.flag,width:"45%","close-on-click-modal":!1,title:e.revival?"\u6D41\u7A0B\u590D\u6D3B":"\u521B\u5EFA\u5E76\u542F\u52A8\u6D41\u7A0B","append-to-body":""},on:{"update:visible":function(a){e.flag=a},closed:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{attrs:{loading:e.btnLoading},on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}]),model:{value:e.flag,callback:function(a){e.flag=a},expression:"flag"}},[i("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?i("el-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{filterable:"",clearable:"",placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.processDefChange},model:{value:e.processDefId,callback:function(a){e.processDefId=a},expression:"processDefId"}},e._l(e.processDefList,function(a,s){return i("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):i("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?i("div",{staticClass:"view-node-info",staticStyle:{"margin-right":"10px"},on:{click:e.viewFlowChart}},[e._v(" \u9884\u89C8 ")]):e._e(),e.processDefId&&e.showFlowForecast?i("div",{staticClass:"view-node-info",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()],1),e.hasDeptId?e._e():i("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[i("el-tree-select",{staticStyle:{width:"65%","margin-right":"10px"},attrs:{data:e.deptList,props:e.defaultProps,"node-key":"id","check-strictly":"","render-after-expand":!1,placeholder:"\u8BF7\u9009\u62E9"},on:{change:e.handleDeptChange},model:{value:e.deptId,callback:function(a){e.deptId=a},expression:"deptId"}})],1),e.deptId?i("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?i("el-form-item",{attrs:{label:"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",size:"medium"}}):e._e(),e.processList.length>0?[e._l(e.processList,function(a,s){return[i("userTask",{ref:e.setItemRef(a.id),refInFor:!0,attrs:{index:s,personType:e.personType,personEntity:Object.assign({},e.personEntity,{_businessDeptId:e._businessDeptId}),processNode:Object.assign({},a,{REQUIRED:s==0}),label:"\u5904\u7406\u4EBA",rules:[{required:s==0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA"}]},on:{complete:e.complete}}),s!==e.processList.length-1?i("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),i("el-dialog",{staticClass:"track-view",attrs:{visible:e.flowChartVisible,width:"60%","append-to-body":"",title:"\u6D41\u7A0B\u56FE\u4FE1\u606F"},on:{"update:visible":function(a){e.flowChartVisible=a}},model:{value:e.flowChartVisible,callback:function(a){e.flowChartVisible=a},expression:"flowChartVisible"}},[e.flowChartVisible&&e.processXml?i("bpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml}}):e._e()],1),i("el-dialog",{attrs:{visible:e.flowForecastVisible,width:"45%","append-to-body":"",title:"\u6D41\u7A0B\u9884\u6D4B"},on:{"update:visible":function(a){e.flowForecastVisible=a},close:e.flowForecastClose}},[i("div",{staticStyle:{"margin-left":"20px"}},[i("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),i("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return i("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[i("div",[i("span",{staticStyle:{color:"#1389FF"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),i("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[i("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},cY=[];const KZ="",XZ="";var cc=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{cc=e});const uY={components:{userTask:vy,bpmnLook:vO},props:{other:{default:!0},personType:"",personEntity:{type:Object,default:()=>{}},beforeFunction:{type:Function,default:null},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{revivalVars:{},processData:{},absoluteTaskId:"",userTaskListData:{},flag:!1,revival:!1,flowChartVisible:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:"",btnLoading:!1,processList:[],processDefId:"",processDefName:"",businessId:"",trackUrl:"",processDefList:[],otherProcessList:[],callback:{},cancelCallBack:{},_multiNodeParticipant:[],_businessDeptId:"",businessCode:"",_vars:{},_appId:"",deptList:[],defaultProps:{children:"children",label:"label",isLeaf(e,n){return e.isLeaf=="true"}},userInfo:{},deptId:"",hasDeptId:!1,subjectId:"",processXml:""}},provide(){return{getUserInfo:this.getUserInfo}},methods:{getUserInfo(){return{deptId:this.deptId,subjectId:this.subjectId}},handleDeptChange(e){this.deptId=e,this.getUserDataByDeptId()},complete(e){},setLoading(e){this.btnLoading=e},async getXml(e){this.isXml;let n={},i="";try{n=await Ze.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(i=n.data)}catch(a){console.error(a)}return i},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Ze.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:n_.\u7535\u8111\u7AEF}).then(e=>{e.code==bt.success&&(window.location.protocol=="https:"?e.data.indexOf("http://121.40.143.183:80/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://121.40.143.183/")>=0?this.trackUrl=e.data.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://acme-aws.ddzg.cn/")>=0?this.trackUrl=e.data.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/"):e.data.indexOf("http://59.53.91.231:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"):e.data.indexOf("http://59.53.91.230:8088/")>=0?this.trackUrl=e.data.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"):this.trackUrl=e.data:this.trackUrl=e.data,this.flowChartVisible=!0)})},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this._appId,title:"1"})},forecast(e){return this.btnLoading=!0,new Promise((n,i)=>{Ze.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==bt.success?(a.data&&a.data.processBudgetModelList&&a.data.processBudgetModelList.length?this.flowForecastProcessInstId=a.data.processBudgetModelList[0].processInstId:(a.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=a.data,this.flowForecastVisible=!0,n(a)):ElMessage.error(a.msg)}).catch(a=>{this.btnLoading=!1,ElMessage.error("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Ze.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==bt.success&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})},processDefChange(e){this.processDefId=e,Ze.repository.getFirstProcessNode(this.processDefId).then(async n=>{if(n.code==bt.success){if(this.processList=n.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})},setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},createAndStart(e){return this.btnLoading=!0,new Promise((n,i)=>{Ze.pis.createAndStart({processDefId:this.processDefId,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:{showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode,...e,...this._vars}}).then(a=>{this.btnLoading=!1,a.code==bt.success?(this.flag=!1,n(a)):cc.error(a.msg)}).catch(a=>{this.btnLoading=!1,cc.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),i(a)})})},revivalFlow(e={},n=!1,i="\u6D41\u7A0B\u590D\u6D3B"){return this.btnLoading=!0,new Promise((a,s)=>{const c={...this.revivalVars,showType:"all",subjectId:this.subjectId,deptId:this.deptId,businessType:this.businessCode,...e,...this._vars};Object.keys(c).forEach(f=>{const m=f.toLowerCase();m.includes("_")&&delete c[f],m=="appShow"&&delete c[f]}),Ze.pis.reactivate({reactivate:!0,processDefId:this.processDefId,processInstId:this.processInstId,isClearHistory:this.isClearHistory,multiNodeParticipant:this._multiNodeParticipant,firstNodeId:this.processList&&this.processList.length>0?this.processList[0].id:"",vars:c},"",this.businessId,i,"",n,this._multiNodeParticipant).then(f=>{this.btnLoading=!1,f.code==bt.success?(this.flag=!1,a(f)):cc.error(f.msg)}).catch(f=>{this.btnLoading=!1,cc.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(f)})})},Show(e,n="",i=!1){return this.processList=[],this.revival=i,this.processDefId=e,n&&Ze.repository.getProcessDefList(n,"").then(a=>{a.code==bt.success&&a.data.map(s=>{s.id==e&&(this.processDefName=s.name)})}),new Promise((a,s)=>{this.cancelCallBack=s,Ze.repository.getFirstProcessNode(e).then(async c=>{if(c.code==bt.success){if(this.processList=c.data,this.flag=!0,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId(),this.callback=a}})})},selectShow(e={appId:"",businessCode:"",businessType:"",keyWord:"",businessDeptId:"",userInfo:{}}){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,this._appId=e.appId,this._businessDeptId=e.businessDeptId,this.businessCode=e.businessCode||e.businessType,this.userInfo=e.userInfo,this.deptId=e.userInfo.deptId,this.subjectId=e.userInfo.subjectId,this.hasDeptId=!!this.deptId,this._businessDeptId,new Promise((n,i)=>{this.cancelCallBack=i,Ze.repository.getProcessDefListNew(e).then(a=>{a.code==bt.success&&(a.data.length==1?(this.processDefList=a.data,this.processDefId=a.data[0].id,this.processDefName=a.data[0].name,Ze.repository.getFirstProcessNode(this.processDefId).then(async s=>{if(s.code==bt.success){if(this.processList=s.data,this.flag=!0,this.callback=n,await this.getNodeUserDept(),!this.deptId)return;this.getUserDataByDeptId()}})):(this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.processDefList=a.data,e.keyWord&&this.processDefList.map(s=>{s.name.indexOf(e.keyWord)!=-1&&!this.processDefId&&(this.processDefId=s.id,this.processDefName=s.name,this.processDefChange(s.id))}),this.flag=!0,this.callback=n))})})},getUserDataByDeptId(){this.processList.map(async(e,n)=>{const i=Lw(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:i.intersection?1:0,userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(a.code==bt.success){const s=this.processList[n];s.userList=a.data,this.$set(this.processList,n,s)}})},async getNodeUser({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:i,postIds:a,deptIds:s})},async getNodeUserDept(){let e={};try{e=await Ze.user.getSelectTree()}catch(n){}e.data,this.deptList=e.data||[]},listShow(e){return this.processList=[],this.otherProcessList=[],this.processDefId="",this.processDefName="",this.revival=!1,new Promise((n,i)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=i,Ze.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==bt.success&&(this.processList=a.data,this.flag=!0,this.callback=n,Ze.repository.getAfferentParticipantNodeList(this.processDefId).then(s=>{this.otherProcessList=s.data.filter(c=>c.id!=this.processList[0].id),this.otherProcessList.map(c=>{c.REQUIRED=!1})}))})):(this.processDefList=e,this.flag=!0,this.callback=n)})},async getProcessInfo({taskId:e,processInstId:n}){let i={};try{i=await Ze.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{i={}}return i.code==200,i},async revivalShow({processInstId:e,businessId:n,taskId:i,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:i,processInstId:e});if(s.code==200){this.processData={...this.initProcessData,...s.data||{}};const c=((this.processData.process||{}).variables||{}).deptId;this.deptId=c,this._businessDeptId=c,this.hasDeptId=!!c;const f=(this.processData.process||{}).taskId;return this.absoluteTaskId=f,this.revival=!0,this.businessId=n,this.subjectId=s.data.process.variables.subjectId,this.businessCode=s.data.process.variables.businessType,this.revivalVars=s.data.process.variables,this.processDefId=s.data.process.processDefinitionId,this.processDefName=s.data.process.processDefinitionName,this.processDefList=[],this.Show(s.data.process.processDefinitionId,"",!0)}},onClickOperation(){if(!this.processDefId||this.processDefId=="")return cc.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let i in this.userTaskListData){let a=this.userTaskListData[i],s=this.$refs[a][0],c=s?s.getValue():{multiNodeParticipant:[],vars:{}};if(!c)return!1;e={...e,...c.multiNodeParticipant},n={...n,...c.vars}}this._multiNodeParticipant=e,this._vars=n,this.callback,this.beforeFunction?this.beforeFunction():this.callback&&this.callback(this.revival?this.revivalFlow:this.createAndStart)},onClickCancel(){this.flag=!1,this.btnLoading=!1,this.cancelCallBack&&this.cancelCallBack()}}},xO={};var dY=dn(uY,lY,cY,!1,fY,"30078fe4",null,null);function fY(e){for(let n in xO)this[n]=xO[n]}const pY=function(){return dY.exports}();var hY=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("el-dialog",{attrs:{visible:e.flag,width:"35%",title:"\u91CD\u65B0\u53D1\u8D77","append-to-body":""},on:{"update:visible":function(a){e.flag=a},close:e.onClickCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[i("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),i("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[i("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return i("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},mY=[],EO=null;Promise.resolve().then(()=>Ir).then(({Message:e})=>{EO=e});const gY={components:{userTask:vy},data(){return{userTaskListData:{},flag:!1,processList:[],callbacak:{},commentMsg:"",isUserTask:!1,cancelCallBack:{}}},methods:{setItemRef(e){return this.userTaskListData[e]="userTask"+e,this.userTaskListData[e]},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"},Show(e){return new Promise((n,i)=>{this.cancelCallBack=i,Ze.repository.getFirstProcessNode(e).then(a=>{a.code==bt.success&&(this.processList=a.data,this.isOption(this.processList[0].humanPerformerName)&&!this.processList[0].isHistoryRoute?(this.flag=!0,this.callbacak=n,this.isUserTask=!0):n({commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"}))})})},onClickOperation(){if(this.commentMsg.length>200)return EO.error("\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let e={};if(e={commentMsg:this.commentMsg||"\u91CD\u65B0\u53D1\u8D77"},this.isUserTask){let n={},i={};for(let a in this.userTaskListData){let s=this.userTaskListData[a],f=this.$refs[s][0].getValue();if(!f)return!1;n={...n,...f.multiNodeParticipant},i={...i,...f.vars},e={...e,multiNodeParticipant:n,vars:i}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},kO={};var AY=dn(gY,hY,mY,!1,vY,null,null,null);function vY(e){for(let n in kO)this[n]=kO[n]}const bY=function(){return AY.exports}();Promise.resolve().then(()=>eK);var jw={exports:{}},Ue={},Qw={exports:{}},CO;function SO(){return CO||(CO=1,function(e){(function(n){var i={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",c="\\d{3}",f="\\d{4}",m="[^\\s]+",g=/\[([^]*?)\]/gm,y=function(){};function O(x){return x.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function C(x,I){for(var z=[],L=0,H=x.length;L<H;L++)z.push(x[L].substr(0,I));return z}function N(x){return function(I,z,L){var H=L[x].indexOf(z.charAt(0).toUpperCase()+z.substr(1).toLowerCase());~H&&(I.month=H)}}function _(x,I){for(x=String(x),I=I||2;x.length<I;)x="0"+x;return x}var E=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],P=["January","February","March","April","May","June","July","August","September","October","November","December"],M=C(P,3),T=C(E,3);i.i18n={dayNamesShort:T,dayNames:E,monthNamesShort:M,monthNames:P,amPm:["am","pm"],DoFn:function(I){return I+["th","st","nd","rd"][I%10>3?0:(I-I%10!==10)*I%10]}};var F={D:function(I){return I.getDay()},DD:function(I){return _(I.getDay())},Do:function(I,z){return z.DoFn(I.getDate())},d:function(I){return I.getDate()},dd:function(I){return _(I.getDate())},ddd:function(I,z){return z.dayNamesShort[I.getDay()]},dddd:function(I,z){return z.dayNames[I.getDay()]},M:function(I){return I.getMonth()+1},MM:function(I){return _(I.getMonth()+1)},MMM:function(I,z){return z.monthNamesShort[I.getMonth()]},MMMM:function(I,z){return z.monthNames[I.getMonth()]},yy:function(I){return _(String(I.getFullYear()),4).substr(2)},yyyy:function(I){return _(I.getFullYear(),4)},h:function(I){return I.getHours()%12||12},hh:function(I){return _(I.getHours()%12||12)},H:function(I){return I.getHours()},HH:function(I){return _(I.getHours())},m:function(I){return I.getMinutes()},mm:function(I){return _(I.getMinutes())},s:function(I){return I.getSeconds()},ss:function(I){return _(I.getSeconds())},S:function(I){return Math.round(I.getMilliseconds()/100)},SS:function(I){return _(Math.round(I.getMilliseconds()/10),2)},SSS:function(I){return _(I.getMilliseconds(),3)},a:function(I,z){return I.getHours()<12?z.amPm[0]:z.amPm[1]},A:function(I,z){return I.getHours()<12?z.amPm[0].toUpperCase():z.amPm[1].toUpperCase()},ZZ:function(I){var z=I.getTimezoneOffset();return(z>0?"-":"+")+_(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)}},v={d:[s,function(x,I){x.day=I}],Do:[s+m,function(x,I){x.day=parseInt(I,10)}],M:[s,function(x,I){x.month=I-1}],yy:[s,function(x,I){var z=new Date,L=+(""+z.getFullYear()).substr(0,2);x.year=""+(I>68?L-1:L)+I}],h:[s,function(x,I){x.hour=I}],m:[s,function(x,I){x.minute=I}],s:[s,function(x,I){x.second=I}],yyyy:[f,function(x,I){x.year=I}],S:["\\d",function(x,I){x.millisecond=I*100}],SS:["\\d{2}",function(x,I){x.millisecond=I*10}],SSS:[c,function(x,I){x.millisecond=I}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(x,I,z){var L=I.toLowerCase();L===z.amPm[0]?x.isPm=!1:L===z.amPm[1]&&(x.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(x,I){var z=(I+"").match(/([+-]|\d\d)/gi),L;z&&(L=+(z[1]*60)+parseInt(z[2],10),x.timezoneOffset=z[0]==="+"?L:-L)}]};v.dd=v.d,v.dddd=v.ddd,v.DD=v.D,v.mm=v.m,v.hh=v.H=v.HH=v.h,v.MM=v.M,v.ss=v.s,v.A=v.a,i.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},i.format=function(x,I,z){var L=z||i.i18n;if(typeof x=="number"&&(x=new Date(x)),Object.prototype.toString.call(x)!=="[object Date]"||isNaN(x.getTime()))throw new Error("Invalid Date in fecha.format");I=i.masks[I]||I||i.masks.default;var H=[];return I=I.replace(g,function(Z,ie){return H.push(ie),"@@@"}),I=I.replace(a,function(Z){return Z in F?F[Z](x,L):Z.slice(1,Z.length-1)}),I.replace(/@@@/g,function(){return H.shift()})},i.parse=function(x,I,z){var L=z||i.i18n;if(typeof I!="string")throw new Error("Invalid format in fecha.parse");if(I=i.masks[I]||I,x.length>1e3)return null;var H={},Z=[],ie=[];I=I.replace(g,function(me,G){return ie.push(G),"@@@"});var oe=O(I).replace(a,function(me){if(v[me]){var G=v[me];return Z.push(G[1]),"("+G[0]+")"}return me});oe=oe.replace(/@@@/g,function(){return ie.shift()});var ge=x.match(new RegExp(oe,"i"));if(!ge)return null;for(var fe=1;fe<ge.length;fe++)Z[fe-1](H,ge[fe],L);var Ce=new Date;H.isPm===!0&&H.hour!=null&&+H.hour!=12?H.hour=+H.hour+12:H.isPm===!1&&+H.hour==12&&(H.hour=0);var Se;return H.timezoneOffset!=null?(H.minute=+(H.minute||0)-+H.timezoneOffset,Se=new Date(Date.UTC(H.year||Ce.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0))):Se=new Date(H.year||Ce.getFullYear(),H.month||0,H.day||1,H.hour||0,H.minute||0,H.second||0,H.millisecond||0),Se},e.exports?e.exports=i:n.fecha=i})(void 0)}(Qw)),Qw.exports}var qr={},lm={},DO;function _Y(){return DO||(DO=1,lm.__esModule=!0,lm.default={el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},empty:{description:"\u6682\u65E0\u6570\u636E"}}}),lm}var zw,BO;function yY(){if(BO)return zw;BO=1;var e=function(_){return n(_)&&!i(_)};function n(N){return!!N&&typeof N=="object"}function i(N){var _=Object.prototype.toString.call(N);return _==="[object RegExp]"||_==="[object Date]"||c(N)}var a=typeof Symbol=="function"&&Symbol.for,s=a?Symbol.for("react.element"):60103;function c(N){return N.$$typeof===s}function f(N){return Array.isArray(N)?[]:{}}function m(N,_){var E=_&&_.clone===!0;return E&&e(N)?O(f(N),N,_):N}function g(N,_,E){var P=N.slice();return _.forEach(function(M,T){typeof P[T]>"u"?P[T]=m(M,E):e(M)?P[T]=O(N[T],M,E):N.indexOf(M)===-1&&P.push(m(M,E))}),P}function y(N,_,E){var P={};return e(N)&&Object.keys(N).forEach(function(M){P[M]=m(N[M],E)}),Object.keys(_).forEach(function(M){!e(_[M])||!N[M]?P[M]=m(_[M],E):P[M]=O(N[M],_[M],E)}),P}function O(N,_,E){var P=Array.isArray(_),M=Array.isArray(N),T=E||{arrayMerge:g},F=P===M;if(F)if(P){var v=T.arrayMerge||g;return v(N,_,E)}else return y(N,_,E);else return m(_,E)}O.all=function(_,E){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(P,M){return O(P,M,E)})};var C=O;return zw=C,zw}var cm={},lt={},Ui={},IO;function OO(){if(IO)return Ui;IO=1,Ui.__esModule=!0,Ui.isDefined=Ui.isUndefined=Ui.isFunction=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};Ui.isString=s,Ui.isObject=c,Ui.isHtmlElement=f;var n=Fi.default,i=a(n);function a(g){return g&&g.__esModule?g:{default:g}}function s(g){return Object.prototype.toString.call(g)==="[object String]"}function c(g){return Object.prototype.toString.call(g)==="[object Object]"}function f(g){return g&&g.nodeType===Node.ELEMENT_NODE}var m=function(y){var O={};return y&&O.toString.call(y)==="[object Function]"};return typeof/./!="function"&&(typeof Int8Array>"u"?"undefined":e(Int8Array))!=="object"&&(i.default.prototype.$isServer||typeof document.childNodes!="function")&&(Ui.isFunction=m=function(y){return typeof y=="function"||!1}),Ui.isFunction=m,Ui.isUndefined=function(y){return y===void 0},Ui.isDefined=function(y){return y!=null},Ui}var TO;function Br(){if(TO)return lt;TO=1,lt.__esModule=!0,lt.isMac=lt.isEmpty=lt.isEqual=lt.arrayEquals=lt.looseEqual=lt.capitalize=lt.kebabCase=lt.autoprefixer=lt.isFirefox=lt.isEdge=lt.isIE=lt.coerceTruthyValueToArray=lt.arrayFind=lt.arrayFindIndex=lt.escapeRegexpString=lt.valueEquals=lt.generateId=lt.getValueByPath=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T};lt.noop=f,lt.hasOwn=m,lt.toObject=y,lt.getPropByPath=O,lt.rafThrottle=P,lt.objToArray=M;var n=Fi.default,i=s(n),a=OO();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function f(){}function m(T,F){return c.call(T,F)}function g(T,F){for(var v in F)T[v]=F[v];return T}function y(T){for(var F={},v=0;v<T.length;v++)T[v]&&g(F,T[v]);return F}lt.getValueByPath=function(F,v){v=v||"";for(var x=v.split("."),I=F,z=null,L=0,H=x.length;L<H;L++){var Z=x[L];if(!I)break;if(L===H-1){z=I[Z];break}I=I[Z]}return z};function O(T,F,v){var x=T;F=F.replace(/\[(\w+)\]/g,".$1"),F=F.replace(/^\./,"");for(var I=F.split("."),z=0,L=I.length;z<L-1&&!(!x&&!v);++z){var H=I[z];if(H in x)x=x[H];else{if(v)throw new Error("please transfer a valid prop path to form item!");break}}return{o:x,k:I[z],v:x?x[I[z]]:null}}lt.generateId=function(){return Math.floor(Math.random()*1e4)},lt.valueEquals=function(F,v){if(F===v)return!0;if(!(F instanceof Array)||!(v instanceof Array)||F.length!==v.length)return!1;for(var x=0;x!==F.length;++x)if(F[x]!==v[x])return!1;return!0},lt.escapeRegexpString=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(F).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var C=lt.arrayFindIndex=function(F,v){for(var x=0;x!==F.length;++x)if(v(F[x]))return x;return-1};lt.arrayFind=function(F,v){var x=C(F,v);return x!==-1?F[x]:void 0},lt.coerceTruthyValueToArray=function(F){return Array.isArray(F)?F:F?[F]:[]},lt.isIE=function(){return!i.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},lt.isEdge=function(){return!i.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},lt.isFirefox=function(){return!i.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},lt.autoprefixer=function(F){if((typeof F>"u"?"undefined":e(F))!=="object")return F;var v=["transform","transition","animation"],x=["ms-","webkit-"];return v.forEach(function(I){var z=F[I];I&&z&&x.forEach(function(L){F[L+I]=z})}),F},lt.kebabCase=function(F){var v=/([^-])([A-Z])/g;return F.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()},lt.capitalize=function(F){return(0,a.isString)(F)?F.charAt(0).toUpperCase()+F.slice(1):F};var N=lt.looseEqual=function(F,v){var x=(0,a.isObject)(F),I=(0,a.isObject)(v);return x&&I?JSON.stringify(F)===JSON.stringify(v):!x&&!I?String(F)===String(v):!1},_=lt.arrayEquals=function(F,v){if(F=F||[],v=v||[],F.length!==v.length)return!1;for(var x=0;x<F.length;x++)if(!N(F[x],v[x]))return!1;return!0};lt.isEqual=function(F,v){return Array.isArray(F)&&Array.isArray(v)?_(F,v):N(F,v)};var E=lt.isEmpty=function(F){if(F==null)return!0;if(typeof F=="boolean")return!1;if(typeof F=="number")return!F;if(F instanceof Error)return F.message==="";switch(Object.prototype.toString.call(F)){case"[object String]":case"[object Array]":return!F.length;case"[object File]":case"[object Map]":case"[object Set]":return!F.size;case"[object Object]":return!Object.keys(F).length}return!1};function P(T){var F=!1;return function(){for(var v=this,x=arguments.length,I=Array(x),z=0;z<x;z++)I[z]=arguments[z];F||(F=!0,window.requestAnimationFrame(function(L){T.apply(v,I),F=!1}))}}function M(T){return Array.isArray(T)?T:E(T)?[]:[T]}return lt.isMac=function(){return!i.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},lt}var NO;function wY(){if(NO)return cm;NO=1,cm.__esModule=!0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};cm.default=function(a){function s(c){for(var f=arguments.length,m=Array(f>1?f-1:0),g=1;g<f;g++)m[g-1]=arguments[g];return m.length===1&&e(m[0])==="object"&&(m=m[0]),(!m||!m.hasOwnProperty)&&(m={}),c.replace(i,function(y,O,C,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?C:(_=(0,n.hasOwn)(m,C)?m[C]:null,_==null?"":_)})}return s};var n=Br(),i=/(%|)\{([0-9a-zA-Z_]+)\}/g;return cm}var MO;function Hw(){if(MO)return qr;MO=1,qr.__esModule=!0,qr.i18n=qr.use=qr.t=void 0;var e=_Y(),n=g(e),i=Fi.default,a=g(i),s=yY(),c=g(s),f=wY(),m=g(f);function g(M){return M&&M.__esModule?M:{default:M}}var y=(0,m.default)(a.default),O=n.default,C=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return C||(C=!0,a.default.locale(a.default.config.lang,(0,c.default)(O,a.default.locale(a.default.config.lang)||{},{clone:!0}))),T.apply(this,arguments)},_=qr.t=function(T,F){var v=N.apply(this,arguments);if(v!=null)return v;for(var x=T.split("."),I=O,z=0,L=x.length;z<L;z++){var H=x[z];if(v=I[H],z===L-1)return y(v,F);if(!v)return"";I=v}return""},E=qr.use=function(T){O=T||O},P=qr.i18n=function(T){N=T||N};return qr.default={use:E,t:_,i18n:P},qr}var FO;function xY(){if(FO)return Ue;FO=1,Ue.__esModule=!0,Ue.validateRangeInOneMonth=Ue.extractTimeFormat=Ue.extractDateFormat=Ue.nextYear=Ue.prevYear=Ue.nextMonth=Ue.prevMonth=Ue.changeYearMonthAndClampDate=Ue.timeWithinRange=Ue.limitTimeRange=Ue.clearMilliseconds=Ue.clearTime=Ue.modifyWithTimeString=Ue.modifyTime=Ue.modifyDate=Ue.range=Ue.getRangeMinutes=Ue.getMonthDays=Ue.getPrevMonthLastDays=Ue.getRangeHours=Ue.getWeekNumber=Ue.getStartDateOfMonth=Ue.nextDate=Ue.prevDate=Ue.getFirstDayOfMonth=Ue.getDayCountOfYear=Ue.getDayCountOfMonth=Ue.parseDate=Ue.formatDate=Ue.isDateObject=Ue.isDate=Ue.toDate=Ue.getI18nSettings=void 0;var e=SO(),n=a(e),i=Hw();function a(v){return v&&v.__esModule?v:{default:v}}var s=["sun","mon","tue","wed","thu","fri","sat"],c=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],f=function(x,I){for(var z=[],L=x;L<=I;L++)z.push(L);return z},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(x){return(0,i.t)("el.datepicker.weeks."+x)}),dayNames:s.map(function(x){return(0,i.t)("el.datepicker.weeks."+x)}),monthNamesShort:c.map(function(x){return(0,i.t)("el.datepicker.months."+x)}),monthNames:c.map(function(x,I){return(0,i.t)("el.datepicker.month"+(I+1))}),amPm:["am","pm"]}},g=Ue.toDate=function(x){return y(x)?new Date(x):null},y=Ue.isDate=function(x){return!(x==null||isNaN(new Date(x).getTime())||Array.isArray(x))};Ue.isDateObject=function(x){return x instanceof Date},Ue.formatDate=function(x,I){return x=g(x),x?n.default.format(x,I||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(x,I){return n.default.parse(x,I||"yyyy-MM-dd",m())},C=Ue.getDayCountOfMonth=function(x,I){return isNaN(+I)?31:new Date(x,+I+1,0).getDate()};Ue.getDayCountOfYear=function(x){var I=x%400===0||x%100!==0&&x%4===0;return I?366:365},Ue.getFirstDayOfMonth=function(x){var I=new Date(x.getTime());return I.setDate(1),I.getDay()};var N=Ue.prevDate=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(x.getFullYear(),x.getMonth(),x.getDate()-I)};Ue.nextDate=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(x.getFullYear(),x.getMonth(),x.getDate()+I)},Ue.getStartDateOfMonth=function(x,I){var z=new Date(x,I,1),L=z.getDay();return L===0?N(z,7):N(z,L)},Ue.getWeekNumber=function(x){if(!y(x))return null;var I=new Date(x.getTime());I.setHours(0,0,0,0),I.setDate(I.getDate()+3-(I.getDay()+6)%7);var z=new Date(I.getFullYear(),0,4);return 1+Math.round(((I.getTime()-z.getTime())/864e5-3+(z.getDay()+6)%7)/7)},Ue.getRangeHours=function(x){var I=[],z=[];if((x||[]).forEach(function(Z){var ie=Z.map(function(oe){return oe.getHours()});z=z.concat(f(ie[0],ie[1]))}),z.length)for(var L=0;L<24;L++)I[L]=z.indexOf(L)===-1;else for(var H=0;H<24;H++)I[H]=!1;return I},Ue.getPrevMonthLastDays=function(x,I){if(I<=0)return[];var z=new Date(x.getTime());z.setDate(0);var L=z.getDate();return E(I).map(function(H,Z){return L-(I-Z-1)})},Ue.getMonthDays=function(x){var I=new Date(x.getFullYear(),x.getMonth()+1,0),z=I.getDate();return E(z).map(function(L,H){return H+1})};function _(v,x,I,z){for(var L=x;L<I;L++)v[L]=z}Ue.getRangeMinutes=function(x,I){var z=new Array(60);return x.length>0?x.forEach(function(L){var H=L[0],Z=L[1],ie=H.getHours(),oe=H.getMinutes(),ge=Z.getHours(),fe=Z.getMinutes();ie===I&&ge!==I?_(z,oe,60,!0):ie===I&&ge===I?_(z,oe,fe+1,!0):ie!==I&&ge===I?_(z,0,fe+1,!0):ie<I&&ge>I&&_(z,0,60,!0)}):_(z,0,60,!0),z};var E=Ue.range=function(x){return Array.apply(null,{length:x}).map(function(I,z){return z})},P=Ue.modifyDate=function(x,I,z,L){return new Date(I,z,L,x.getHours(),x.getMinutes(),x.getSeconds(),x.getMilliseconds())},M=Ue.modifyTime=function(x,I,z,L){return new Date(x.getFullYear(),x.getMonth(),x.getDate(),I,z,L,x.getMilliseconds())};Ue.modifyWithTimeString=function(x,I){return x==null||!I?x:(I=O(I,"HH:mm:ss"),M(x,I.getHours(),I.getMinutes(),I.getSeconds()))},Ue.clearTime=function(x){return new Date(x.getFullYear(),x.getMonth(),x.getDate())},Ue.clearMilliseconds=function(x){return new Date(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds(),0)};var T=Ue.limitTimeRange=function(x,I){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(I.length===0)return x;var L=function(Ce){return n.default.parse(n.default.format(Ce,z),z)},H=L(x),Z=I.map(function(fe){return fe.map(L)});if(Z.some(function(fe){return H>=fe[0]&&H<=fe[1]}))return x;var ie=Z[0][0],oe=Z[0][0];Z.forEach(function(fe){ie=new Date(Math.min(fe[0],ie)),oe=new Date(Math.max(fe[1],ie))});var ge=H<ie?ie:oe;return P(ge,x.getFullYear(),x.getMonth(),x.getDate())};Ue.timeWithinRange=function(x,I,z){var L=T(x,I,z);return L.getTime()===x.getTime()};var F=Ue.changeYearMonthAndClampDate=function(x,I,z){var L=Math.min(x.getDate(),C(I,z));return P(x,I,z,L)};return Ue.prevMonth=function(x){var I=x.getFullYear(),z=x.getMonth();return z===0?F(x,I-1,11):F(x,I,z-1)},Ue.nextMonth=function(x){var I=x.getFullYear(),z=x.getMonth();return z===11?F(x,I+1,0):F(x,I,z+1)},Ue.prevYear=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=x.getFullYear(),L=x.getMonth();return F(x,z-I,L)},Ue.nextYear=function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=x.getFullYear(),L=x.getMonth();return F(x,z+I,L)},Ue.extractDateFormat=function(x){return x.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},Ue.extractTimeFormat=function(x){return x.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},Ue.validateRangeInOneMonth=function(x,I){return x.getMonth()===I.getMonth()&&x.getFullYear()===I.getFullYear()},Ue}var rn={},PO;function Ba(){if(PO)return rn;PO=1,rn.__esModule=!0,rn.isInContainer=rn.getScrollContainer=rn.isScroll=rn.getStyle=rn.once=rn.off=rn.on=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};rn.hasClass=N,rn.addClass=_,rn.removeClass=E,rn.setStyle=M;var n=Fi.default,i=a(n);function a(F){return F&&F.__esModule?F:{default:F}}var s=i.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,f=/^moz([A-Z])/,m=s?0:Number(document.documentMode),g=function(v){return(v||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},y=function(v){return v.replace(c,function(x,I,z,L){return L?z.toUpperCase():z}).replace(f,"Moz$1")},O=rn.on=function(){return!s&&document.addEventListener?function(F,v,x){F&&v&&x&&F.addEventListener(v,x,!1)}:function(F,v,x){F&&v&&x&&F.attachEvent("on"+v,x)}}(),C=rn.off=function(){return!s&&document.removeEventListener?function(F,v,x){F&&v&&F.removeEventListener(v,x,!1)}:function(F,v,x){F&&v&&F.detachEvent("on"+v,x)}}();rn.once=function(v,x,I){var z=function L(){I&&I.apply(this,arguments),C(v,x,L)};O(v,x,z)};function N(F,v){if(!F||!v)return!1;if(v.indexOf(" ")!==-1)throw new Error("className should not contain space.");return F.classList?F.classList.contains(v):(" "+F.className+" ").indexOf(" "+v+" ")>-1}function _(F,v){if(!!F){for(var x=F.className,I=(v||"").split(" "),z=0,L=I.length;z<L;z++){var H=I[z];!H||(F.classList?F.classList.add(H):N(F,H)||(x+=" "+H))}F.classList||F.setAttribute("class",x)}}function E(F,v){if(!(!F||!v)){for(var x=v.split(" "),I=" "+F.className+" ",z=0,L=x.length;z<L;z++){var H=x[z];!H||(F.classList?F.classList.remove(H):N(F,H)&&(I=I.replace(" "+H+" "," ")))}F.classList||F.setAttribute("class",g(I))}}var P=rn.getStyle=m<9?function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="styleFloat");try{switch(v){case"opacity":try{return F.filters.item("alpha").opacity/100}catch{return 1}default:return F.style[v]||F.currentStyle?F.currentStyle[v]:null}}catch{return F.style[v]}}}:function(F,v){if(!s){if(!F||!v)return null;v=y(v),v==="float"&&(v="cssFloat");try{var x=document.defaultView.getComputedStyle(F,"");return F.style[v]||x?x[v]:null}catch{return F.style[v]}}};function M(F,v,x){if(!(!F||!v))if((typeof v>"u"?"undefined":e(v))==="object")for(var I in v)v.hasOwnProperty(I)&&M(F,I,v[I]);else v=y(v),v==="opacity"&&m<9?F.style.filter=isNaN(x)?"":"alpha(opacity="+x*100+")":F.style[v]=x}var T=rn.isScroll=function(v,x){if(!s){var I=x!=null,z=I?x?P(v,"overflow-y"):P(v,"overflow-x"):P(v,"overflow");return z.match(/(scroll|auto|overlay)/)}};return rn.getScrollContainer=function(v,x){if(!s){for(var I=v;I;){if([window,document,document.documentElement].includes(I))return window;if(T(I,x))return I;I=I.parentNode}return I}},rn.isInContainer=function(v,x){if(s||!v||!x)return!1;var I=v.getBoundingClientRect(),z=void 0;return[window,document,document.documentElement,null,void 0].includes(x)?z={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:z=x.getBoundingClientRect(),I.top<z.bottom&&I.bottom>z.top&&I.right>z.left&&I.left<z.right},rn}var um={},RO;function Is(){if(RO)return um;RO=1,um.__esModule=!0;function e(n,i,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[i].concat(a)):e.apply(s,[n,i].concat([a]))})}return um.default={methods:{dispatch:function(i,a,s){for(var c=this.$parent||this.$root,f=c.$options.componentName;c&&(!f||f!==i);)c=c.$parent,c&&(f=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(i,a,s){e.call(this,i,a,s)}}},um}var dm={},LO;function Vw(){if(LO)return dm;LO=1,dm.__esModule=!0;var e=Hw();return dm.default={methods:{t:function(){for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},dm}var fm={},uc={},pm={},jO;function hm(){return jO||(jO=1,pm.__esModule=!0,pm.default=function(e){for(var n=1,i=arguments.length;n<i;n++){var a=arguments[n]||{};for(var s in a)if(a.hasOwnProperty(s)){var c=a[s];c!==void 0&&(e[s]=c)}}return e}),pm}var mm={},QO;function EY(){if(QO)return mm;QO=1,mm.__esModule=!0;var e=Fi.default,n=a(e),i=Ba();function a(C){return C&&C.__esModule?C:{default:C}}var s=!1,c=!1,f=void 0,m=function(){if(!n.default.prototype.$isServer){var N=y.modalDom;return N?s=!0:(s=!1,N=document.createElement("div"),y.modalDom=N,N.addEventListener("touchmove",function(_){_.preventDefault(),_.stopPropagation()}),N.addEventListener("click",function(){y.doOnModalClick&&y.doOnModalClick()})),N}},g={},y={modalFade:!0,getInstance:function(N){return g[N]},register:function(N,_){N&&_&&(g[N]=_)},deregister:function(N){N&&(g[N]=null,delete g[N])},nextZIndex:function(){return y.zIndex++},modalStack:[],doOnModalClick:function(){var N=y.modalStack[y.modalStack.length-1];if(!!N){var _=y.getInstance(N.id);_&&_.closeOnClickModal&&_.close()}},openModal:function(N,_,E,P,M){if(!n.default.prototype.$isServer&&!(!N||_===void 0)){this.modalFade=M;for(var T=this.modalStack,F=0,v=T.length;F<v;F++){var x=T[F];if(x.id===N)return}var I=m();if((0,i.addClass)(I,"v-modal"),this.modalFade&&!s&&(0,i.addClass)(I,"v-modal-enter"),P){var z=P.trim().split(/\s+/);z.forEach(function(L){return(0,i.addClass)(I,L)})}setTimeout(function(){(0,i.removeClass)(I,"v-modal-enter")},200),E&&E.parentNode&&E.parentNode.nodeType!==11?E.parentNode.appendChild(I):document.body.appendChild(I),_&&(I.style.zIndex=_),I.tabIndex=0,I.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:P})}},closeModal:function(N){var _=this.modalStack,E=m();if(_.length>0){var P=_[_.length-1];if(P.id===N){if(P.modalClass){var M=P.modalClass.trim().split(/\s+/);M.forEach(function(F){return(0,i.removeClass)(E,F)})}_.pop(),_.length>0&&(E.style.zIndex=_[_.length-1].zIndex)}else for(var T=_.length-1;T>=0;T--)if(_[T].id===N){_.splice(T,1);break}}_.length===0&&(this.modalFade&&(0,i.addClass)(E,"v-modal-leave"),setTimeout(function(){_.length===0&&(E.parentNode&&E.parentNode.removeChild(E),E.style.display="none",y.modalDom=void 0),(0,i.removeClass)(E,"v-modal-leave")},200))}};Object.defineProperty(y,"zIndex",{configurable:!0,get:function(){return c||(f=f||(n.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),f},set:function(N){f=N}});var O=function(){if(!n.default.prototype.$isServer&&y.modalStack.length>0){var N=y.modalStack[y.modalStack.length-1];if(!N)return;var _=y.getInstance(N.id);return _}};return n.default.prototype.$isServer||window.addEventListener("keydown",function(C){if(C.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),mm.default=y,mm}var gm={},zO;function Uw(){if(zO)return gm;zO=1,gm.__esModule=!0,gm.default=function(){if(n.default.prototype.$isServer)return 0;if(a!==void 0)return a;var s=document.createElement("div");s.className="el-scrollbar__wrap",s.style.visibility="hidden",s.style.width="100px",s.style.position="absolute",s.style.top="-9999px",document.body.appendChild(s);var c=s.offsetWidth;s.style.overflow="scroll";var f=document.createElement("div");f.style.width="100%",s.appendChild(f);var m=f.offsetWidth;return s.parentNode.removeChild(s),a=c-m,a};var e=Fi.default,n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return gm}var HO;function VO(){if(HO)return uc;HO=1,uc.__esModule=!0,uc.PopupManager=void 0;var e=Fi.default,n=y(e),i=hm(),a=y(i),s=EY(),c=y(s),f=Uw(),m=y(f),g=Ba();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,C=void 0;return uc.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+O++,c.default.register(this._popupId,this)},beforeDestroy:function(){c.default.deregister(this._popupId),c.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(_){var E=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){E.open()}))}else this.close()}},methods:{open:function(_){var E=this;this.rendered||(this.rendered=!0);var P=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var M=Number(P.openDelay);M>0?this._openTimer=setTimeout(function(){E._openTimer=null,E.doOpen(P)},M):this.doOpen(P)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var E=this.$el,P=_.modal,M=_.zIndex;if(M&&(c.default.zIndex=M),P&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:E,_.modalClass,_.modalFade),_.lockScroll)){this.withoutHiddenClass=!(0,g.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,g.getStyle)(document.body,"paddingRight"),10)),C=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,F=(0,g.getStyle)(document.body,"overflowY");C>0&&(T||F==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+C+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(E).position==="static"&&(E.style.position="absolute"),E.style.zIndex=c.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var _=this;if(!(this.willClose&&!this.willClose())){this._openTimer!==null&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var E=Number(this.closeDelay);E>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},E):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){c.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,g.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},uc.PopupManager=c.default,uc}var Yw={exports:{}},UO;function kY(){return UO||(UO=1,function(e){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};(function(i,a){n(e)==="object"&&e.exports?e.exports=a():i.Popper=a()})(void 0,function(){var i=window,a={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function s(v,x,I){this._reference=v.jquery?v[0]:v,this.state={};var z=typeof x>"u"||x===null,L=x&&Object.prototype.toString.call(x)==="[object Object]";return z||L?this._popper=this.parse(L?x:{}):this._popper=x.jquery?x[0]:x,this._options=Object.assign({},a,I),this._options.modifiers=this._options.modifiers.map(function(H){if(this._options.modifiersIgnored.indexOf(H)===-1)return H==="applyStyle"&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[H]||H}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),_(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}s.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[F("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},s.prototype.update=function(){var v={instance:this,styles:{}};v.placement=this._options.placement,v._originalPlacement=this._options.placement,v.offsets=this._getOffsets(this._popper,this._reference,v.placement),v.boundaries=this._getBoundaries(v,this._options.boundariesPadding,this._options.boundariesElement),v=this.runModifiers(v,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(v)},s.prototype.onCreate=function(v){return v(this),this},s.prototype.onUpdate=function(v){return this.state.updateCallback=v,this},s.prototype.parse=function(v){var x={tagName:"div",classNames:["popper"],attributes:[],parent:i.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};v=Object.assign({},x,v);var I=i.document,z=I.createElement(v.tagName);if(Z(z,v.classNames),ie(z,v.attributes),v.contentType==="node"?z.appendChild(v.content.jquery?v.content[0]:v.content):v.contentType==="html"?z.innerHTML=v.content:z.textContent=v.content,v.arrowTagName){var L=I.createElement(v.arrowTagName);Z(L,v.arrowClassNames),ie(L,v.arrowAttributes),z.appendChild(L)}var H=v.parent.jquery?v.parent[0]:v.parent;if(typeof H=="string"){if(H=I.querySelectorAll(v.parent),H.length>1&&console.warn("WARNING: the given `parent` query("+v.parent+") matched more than one element, the first one will be used"),H.length===0)throw"ERROR: the given `parent` doesn't exists!";H=H[0]}return H.length>1&&!(H instanceof Element)&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),H=H[0]),H.appendChild(z),z;function Z(oe,ge){ge.forEach(function(fe){oe.classList.add(fe)})}function ie(oe,ge){ge.forEach(function(fe){oe.setAttribute(fe.split(":")[0],fe.split(":")[1]||"")})}},s.prototype._getPosition=function(v,x){if(O(x),this._options.forceAbsolute)return"absolute";var I=N(x);return I?"fixed":"absolute"},s.prototype._getOffsets=function(v,x,I){I=I.split("-")[0];var z={};z.position=this.state.position;var L=z.position==="fixed",H=T(x,O(v),L),Z=c(v);return["right","left"].indexOf(I)!==-1?(z.top=H.top+H.height/2-Z.height/2,I==="left"?z.left=H.left-Z.width:z.left=H.right):(z.left=H.left+H.width/2-Z.width/2,I==="top"?z.top=H.top-Z.height:z.top=H.bottom),z.width=Z.width,z.height=Z.height,{popper:z,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),i.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var v=C(this._reference);(v===i.document.body||v===i.document.documentElement)&&(v=i),v.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=v}},s.prototype._removeEventListeners=function(){i.removeEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},s.prototype._getBoundaries=function(v,x,I){var z={},L,H;if(I==="window"){var Z=i.document.body,ie=i.document.documentElement;H=Math.max(Z.scrollHeight,Z.offsetHeight,ie.clientHeight,ie.scrollHeight,ie.offsetHeight),L=Math.max(Z.scrollWidth,Z.offsetWidth,ie.clientWidth,ie.scrollWidth,ie.offsetWidth),z={top:0,right:L,bottom:H,left:0}}else if(I==="viewport"){var oe=O(this._popper),ge=C(this._popper),fe=P(oe),Ce=function(re){return re==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):re.scrollTop},Se=function(re){return re==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):re.scrollLeft},me=v.offsets.popper.position==="fixed"?0:Ce(ge),G=v.offsets.popper.position==="fixed"?0:Se(ge);z={top:0-(fe.top-me),right:i.document.documentElement.clientWidth-(fe.left-G),bottom:i.document.documentElement.clientHeight-(fe.top-me),left:0-(fe.left-G)}}else O(this._popper)===I?z={top:0,left:0,right:I.clientWidth,bottom:I.clientHeight}:z=P(I);return z.left+=x,z.right-=x,z.top=z.top+x,z.bottom=z.bottom-x,z},s.prototype.runModifiers=function(v,x,I){var z=x.slice();return I!==void 0&&(z=this._options.modifiers.slice(0,g(this._options.modifiers,I))),z.forEach(function(L){E(L)&&(v=L.call(this,v))}.bind(this)),v},s.prototype.isModifierRequired=function(v,x){var I=g(this._options.modifiers,v);return!!this._options.modifiers.slice(0,I).filter(function(z){return z===x}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(v){var x={position:v.offsets.popper.position},I=Math.round(v.offsets.popper.left),z=Math.round(v.offsets.popper.top),L;return this._options.gpuAcceleration&&(L=F("transform"))?(x[L]="translate3d("+I+"px, "+z+"px, 0)",x.top=0,x.left=0):(x.left=I,x.top=z),Object.assign(x,v.styles),_(this._popper,x),this._popper.setAttribute("x-placement",v.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&v.offsets.arrow&&_(v.arrowElement,v.offsets.arrow),v},s.prototype.modifiers.shift=function(v){var x=v.placement,I=x.split("-")[0],z=x.split("-")[1];if(z){var L=v.offsets.reference,H=m(v.offsets.popper),Z={y:{start:{top:L.top},end:{top:L.top+L.height-H.height}},x:{start:{left:L.left},end:{left:L.left+L.width-H.width}}},ie=["bottom","top"].indexOf(I)!==-1?"x":"y";v.offsets.popper=Object.assign(H,Z[ie][z])}return v},s.prototype.modifiers.preventOverflow=function(v){var x=this._options.preventOverflowOrder,I=m(v.offsets.popper),z={left:function(){var H=I.left;return I.left<v.boundaries.left&&(H=Math.max(I.left,v.boundaries.left)),{left:H}},right:function(){var H=I.left;return I.right>v.boundaries.right&&(H=Math.min(I.left,v.boundaries.right-I.width)),{left:H}},top:function(){var H=I.top;return I.top<v.boundaries.top&&(H=Math.max(I.top,v.boundaries.top)),{top:H}},bottom:function(){var H=I.top;return I.bottom>v.boundaries.bottom&&(H=Math.min(I.top,v.boundaries.bottom-I.height)),{top:H}}};return x.forEach(function(L){v.offsets.popper=Object.assign(I,z[L]())}),v},s.prototype.modifiers.keepTogether=function(v){var x=m(v.offsets.popper),I=v.offsets.reference,z=Math.floor;return x.right<z(I.left)&&(v.offsets.popper.left=z(I.left)-x.width),x.left>z(I.right)&&(v.offsets.popper.left=z(I.right)),x.bottom<z(I.top)&&(v.offsets.popper.top=z(I.top)-x.height),x.top>z(I.bottom)&&(v.offsets.popper.top=z(I.bottom)),v},s.prototype.modifiers.flip=function(v){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),v;if(v.flipped&&v.placement===v._originalPlacement)return v;var x=v.placement.split("-")[0],I=f(x),z=v.placement.split("-")[1]||"",L=[];return this._options.flipBehavior==="flip"?L=[x,I]:L=this._options.flipBehavior,L.forEach(function(H,Z){if(!(x!==H||L.length===Z+1)){x=v.placement.split("-")[0],I=f(x);var ie=m(v.offsets.popper),oe=["right","bottom"].indexOf(x)!==-1;(oe&&Math.floor(v.offsets.reference[x])>Math.floor(ie[I])||!oe&&Math.floor(v.offsets.reference[x])<Math.floor(ie[I]))&&(v.flipped=!0,v.placement=L[Z+1],z&&(v.placement+="-"+z),v.offsets.popper=this._getOffsets(this._popper,this._reference,v.placement).popper,v=this.runModifiers(v,this._options.modifiers,this._flip))}}.bind(this)),v},s.prototype.modifiers.offset=function(v){var x=this._options.offset,I=v.offsets.popper;return v.placement.indexOf("left")!==-1?I.top-=x:v.placement.indexOf("right")!==-1?I.top+=x:v.placement.indexOf("top")!==-1?I.left-=x:v.placement.indexOf("bottom")!==-1&&(I.left+=x),v},s.prototype.modifiers.arrow=function(v){var x=this._options.arrowElement,I=this._options.arrowOffset;if(typeof x=="string"&&(x=this._popper.querySelector(x)),!x)return v;if(!this._popper.contains(x))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),v;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),v;var z={},L=v.placement.split("-")[0],H=m(v.offsets.popper),Z=v.offsets.reference,ie=["left","right"].indexOf(L)!==-1,oe=ie?"height":"width",ge=ie?"top":"left",fe=ie?"left":"top",Ce=ie?"bottom":"right",Se=c(x)[oe];Z[Ce]-Se<H[ge]&&(v.offsets.popper[ge]-=H[ge]-(Z[Ce]-Se)),Z[ge]+Se>H[Ce]&&(v.offsets.popper[ge]+=Z[ge]+Se-H[Ce]);var me=Z[ge]+(I||Z[oe]/2-Se/2),G=me-H[ge];return G=Math.max(Math.min(H[oe]-Se-8,G),8),z[ge]=G,z[fe]="",v.offsets.arrow=z,v.arrowElement=x,v};function c(v){var x=v.style.display,I=v.style.visibility;v.style.display="block",v.style.visibility="hidden",v.offsetWidth;var z=i.getComputedStyle(v),L=parseFloat(z.marginTop)+parseFloat(z.marginBottom),H=parseFloat(z.marginLeft)+parseFloat(z.marginRight),Z={width:v.offsetWidth+H,height:v.offsetHeight+L};return v.style.display=x,v.style.visibility=I,Z}function f(v){var x={left:"right",right:"left",bottom:"top",top:"bottom"};return v.replace(/left|right|bottom|top/g,function(I){return x[I]})}function m(v){var x=Object.assign({},v);return x.right=x.left+x.width,x.bottom=x.top+x.height,x}function g(v,x){var I=0,z;for(z in v){if(v[z]===x)return I;I++}return null}function y(v,x){var I=i.getComputedStyle(v,null);return I[x]}function O(v){var x=v.offsetParent;return x===i.document.body||!x?i.document.documentElement:x}function C(v){var x=v.parentNode;return x?x===i.document?i.document.body.scrollTop||i.document.body.scrollLeft?i.document.body:i.document.documentElement:["scroll","auto"].indexOf(y(x,"overflow"))!==-1||["scroll","auto"].indexOf(y(x,"overflow-x"))!==-1||["scroll","auto"].indexOf(y(x,"overflow-y"))!==-1?x:C(v.parentNode):v}function N(v){return v===i.document.body?!1:y(v,"position")==="fixed"?!0:v.parentNode?N(v.parentNode):v}function _(v,x){function I(z){return z!==""&&!isNaN(parseFloat(z))&&isFinite(z)}Object.keys(x).forEach(function(z){var L="";["width","height","top","right","bottom","left"].indexOf(z)!==-1&&I(x[z])&&(L="px"),v.style[z]=x[z]+L})}function E(v){var x={};return v&&x.toString.call(v)==="[object Function]"}function P(v){var x={width:v.offsetWidth,height:v.offsetHeight,left:v.offsetLeft,top:v.offsetTop};return x.right=x.left+x.width,x.bottom=x.top+x.height,x}function M(v){var x=v.getBoundingClientRect(),I=navigator.userAgent.indexOf("MSIE")!=-1,z=I&&v.tagName==="HTML"?-v.scrollTop:x.top;return{left:x.left,top:z,right:x.right,bottom:x.bottom,width:x.right-x.left,height:x.bottom-z}}function T(v,x,I){var z=M(v),L=M(x);if(I){var H=C(x);L.top+=H.scrollTop,L.bottom+=H.scrollTop,L.left+=H.scrollLeft,L.right+=H.scrollLeft}var Z={top:z.top-L.top,left:z.left-L.left,bottom:z.top-L.top+z.height,right:z.left-L.left+z.width,width:z.width,height:z.height};return Z}function F(v){for(var x=["","ms","webkit","moz","o"],I=0;I<x.length;I++){var z=x[I]?x[I]+v.charAt(0).toUpperCase()+v.slice(1):v;if(typeof i.document.body.style[z]<"u")return z}return null}return Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(x){if(x==null)throw new TypeError("Cannot convert first argument to object");for(var I=Object(x),z=1;z<arguments.length;z++){var L=arguments[z];if(L!=null){L=Object(L);for(var H=Object.keys(L),Z=0,ie=H.length;Z<ie;Z++){var oe=H[Z],ge=Object.getOwnPropertyDescriptor(L,oe);ge!==void 0&&ge.enumerable&&(I[oe]=L[oe])}}}return I}}),s})}(Yw)),Yw.exports}var YO;function Am(){if(YO)return fm;YO=1,fm.__esModule=!0;var e=Fi.default,n=a(e),i=VO();function a(f){return f&&f.__esModule?f:{default:f}}var s=n.default.prototype.$isServer?function(){}:kY(),c=function(m){return m.stopPropagation()};return fm.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(m){this.showPopper=m,this.$emit("input",m)}},showPopper:function(m){this.disabled||(m?this.updatePopper():this.destroyPopper(),this.$emit("input",m))}},methods:{createPopper:function(){var m=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,!!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var g=this.popperOptions,y=this.popperElm=this.popperElm||this.popper||this.$refs.popper,O=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!O&&this.$slots.reference&&this.$slots.reference[0]&&(O=this.referenceElm=this.$slots.reference[0].elm),!(!y||!O)&&(this.visibleArrow&&this.appendArrow(y),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),g.placement=this.currentPlacement,g.offset=this.offset,g.arrowOffset=this.arrowOffset,this.popperJS=new s(O,y,g),this.popperJS.onCreate(function(C){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=i.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=i.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(m){!this.popperJS||this.showPopper&&!m||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(!!this.transformOrigin){var m={top:"bottom",bottom:"top",left:"right",right:"left"},g=this.popperJS._popper.getAttribute("x-placement").split("-")[0],y=m[g];this.popperJS._popper.style.transformOrigin=typeof this.transformOrigin=="string"?this.transformOrigin:["top","bottom"].indexOf(g)>-1?"center "+y:y+" center"}},appendArrow:function(m){var g=void 0;if(!this.appended){this.appended=!0;for(var y in m.attributes)if(/^_v-/.test(m.attributes[y].name)){g=m.attributes[y].name;break}var O=document.createElement("div");g&&O.setAttribute(g,""),O.setAttribute("x-arrow",""),O.className="popper__arrow",m.appendChild(O)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",c),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}},fm}var Ww={exports:{}},vm={},WO;function GO(){if(WO)return vm;WO=1,vm.__esModule=!0;var e=Br();return vm.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var i=this.getMigratingConfig(),a=i.props,s=a===void 0?{}:a,c=i.events,f=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},C=y.listeners||{};for(var N in O)N=(0,e.kebabCase)(N),s[N]&&console.warn("[Element Migrating]["+this.$options.name+"][Attribute]: "+s[N]);for(var _ in C)_=(0,e.kebabCase)(_),f[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+f[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},vm}var Id={},JO;function bm(){if(JO)return Id;JO=1,Id.__esModule=!0,Id.isDef=e,Id.isKorean=n;function e(i){return i!=null}function n(i){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(i)}return Id}var KO;function Gw(){return KO||(KO=1,function(e){e.exports=function(n){var i={};function a(s){if(i[s])return i[s].exports;var c=i[s]={i:s,l:!1,exports:{}};return n[s].call(c.exports,c,c.exports,a),c.l=!0,c.exports}return a.m=n,a.c=i,a.d=function(s,c,f){a.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:f})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,c){if(c&1&&(s=a(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(a.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var m in s)a.d(f,m,function(g){return s[g]}.bind(null,m));return f},a.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(c,"a",c),c},a.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},a.p="/dist/",a(a.s=75)}({0:function(n,i,a){a.d(i,"a",function(){return s});function s(c,f,m,g,y,O,C,N){var _=typeof c=="function"?c.options:c;f&&(_.render=f,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var E;if(C?(E=function(T){T=T||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!T&&typeof __VUE_SSR_CONTEXT__<"u"&&(T=__VUE_SSR_CONTEXT__),y&&y.call(this,T),T&&T._registeredComponents&&T._registeredComponents.add(C)},_._ssrRegister=E):y&&(E=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),E)if(_.functional){_._injectStyles=E;var P=_.render;_.render=function(F,v){return E.call(v),P(F,v)}}else{var M=_.beforeCreate;_.beforeCreate=M?[].concat(M,E):[E]}return{exports:c,options:_}}},11:function(n,i){n.exports=GO()},21:function(n,i){n.exports=bm()},4:function(n,i){n.exports=Is()},75:function(n,i,a){a.r(i);var s=function(){var L=this,H=L.$createElement,Z=L._self._c||H;return Z("div",{class:[L.type==="textarea"?"el-textarea":"el-input",L.inputSize?"el-input--"+L.inputSize:"",{"is-disabled":L.inputDisabled,"is-exceed":L.inputExceed,"el-input-group":L.$slots.prepend||L.$slots.append,"el-input-group--append":L.$slots.append,"el-input-group--prepend":L.$slots.prepend,"el-input--prefix":L.$slots.prefix||L.prefixIcon,"el-input--suffix":L.$slots.suffix||L.suffixIcon||L.clearable||L.showPassword}],on:{mouseenter:function(ie){L.hovering=!0},mouseleave:function(ie){L.hovering=!1}}},[L.type!=="textarea"?[L.$slots.prepend?Z("div",{staticClass:"el-input-group__prepend"},[L._t("prepend")],2):L._e(),L.type!=="textarea"?Z("input",L._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:L.tabindex,type:L.showPassword?L.passwordVisible?"text":"password":L.type,disabled:L.inputDisabled,readonly:L.readonly,autocomplete:L.autoComplete||L.autocomplete,"aria-label":L.label},on:{compositionstart:L.handleCompositionStart,compositionupdate:L.handleCompositionUpdate,compositionend:L.handleCompositionEnd,input:L.handleInput,focus:L.handleFocus,blur:L.handleBlur,change:L.handleChange}},"input",L.$attrs,!1)):L._e(),L.$slots.prefix||L.prefixIcon?Z("span",{staticClass:"el-input__prefix"},[L._t("prefix"),L.prefixIcon?Z("i",{staticClass:"el-input__icon",class:L.prefixIcon}):L._e()],2):L._e(),L.getSuffixVisible()?Z("span",{staticClass:"el-input__suffix"},[Z("span",{staticClass:"el-input__suffix-inner"},[!L.showClear||!L.showPwdVisible||!L.isWordLimitVisible?[L._t("suffix"),L.suffixIcon?Z("i",{staticClass:"el-input__icon",class:L.suffixIcon}):L._e()]:L._e(),L.showClear?Z("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(ie){ie.preventDefault()},click:L.clear}}):L._e(),L.showPwdVisible?Z("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:L.handlePasswordVisible}}):L._e(),L.isWordLimitVisible?Z("span",{staticClass:"el-input__count"},[Z("span",{staticClass:"el-input__count-inner"},[L._v(`
33
33
  `+L._s(L.textLength)+"/"+L._s(L.upperLimit)+`
34
34
  `)])]):L._e()],2),L.validateState?Z("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",L.validateIcon]}):L._e()]):L._e(),L.$slots.append?Z("div",{staticClass:"el-input-group__append"},[L._t("append")],2):L._e()]:Z("textarea",L._b({ref:"textarea",staticClass:"el-textarea__inner",style:L.textareaStyle,attrs:{tabindex:L.tabindex,disabled:L.inputDisabled,readonly:L.readonly,autocomplete:L.autoComplete||L.autocomplete,"aria-label":L.label},on:{compositionstart:L.handleCompositionStart,compositionupdate:L.handleCompositionUpdate,compositionend:L.handleCompositionEnd,input:L.handleInput,focus:L.handleFocus,blur:L.handleBlur,change:L.handleChange}},"textarea",L.$attrs,!1)),L.isWordLimitVisible&&L.type==="textarea"?Z("span",{staticClass:"el-input__count"},[L._v(L._s(L.textLength)+"/"+L._s(L.upperLimit))]):L._e()],2)},c=[];s._withStripped=!0;var f=a(4),m=a.n(f),g=a(11),y=a.n(g),O=void 0,C=`
35
35
  height:0 !important;