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.
- package/package.json +1 -1
- package/v2/ddy-process-pc-vue3.js +10 -7
- package/v2/ddy-process-pc-vue3.umd.cjs +2 -2
- package/v2/style.css +1 -1
- package/v2.7/ddy-process-pc-vue3.js +10 -7
- package/v2.7/ddy-process-pc-vue3.umd.cjs +2 -2
- package/v2.7/style.css +1 -1
- package/v3/ddy-process-pc-vue3.js +10 -7
- package/v3/ddy-process-pc-vue3.umd.cjs +14 -14
- package/v3/style.css +1 -1
|
@@ -15,7 +15,7 @@ found in
|
|
|
15
15
|
https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function`,e));for(var r=Object.keys(n),a=e.$options.props,s=e.$options.methods,c=r.length;c--;){var p=r[c];process.env.NODE_ENV!=="production"&&s&&Bn(s,p)&&Pe('Method "'.concat(p,'" has already been defined as a data property.'),e),a&&Bn(a,p)?process.env.NODE_ENV!=="production"&&Pe('The data property "'.concat(p,'" is already declared as a prop. ')+"Use prop default value instead.",e):Gb(p)||k_(e,"_data",p)}var m=da(n);m&&m.vmCount++}function _F(e,n){El();try{return e.call(n,n)}catch(r){return Ka(r,n,"data()"),{}}finally{kl()}}var yF={lazy:!0};function xF(e,n){var r=e._computedWatchers=Object.create(null),a=Ko();for(var s in n){var c=n[s],p=Rt(c)?c:c.get;process.env.NODE_ENV!=="production"&&p==null&&Pe('Getter is missing for computed property "'.concat(s,'".'),e),a||(r[s]=new Hp(e,p||Kt,Kt,yF)),s in e?process.env.NODE_ENV!=="production"&&(s in e.$data?Pe('The computed property "'.concat(s,'" is already defined in data.'),e):e.$options.props&&s in e.$options.props?Pe('The computed property "'.concat(s,'" is already defined as a prop.'),e):e.$options.methods&&s in e.$options.methods&&Pe('The computed property "'.concat(s,'" is already defined as a method.'),e)):eS(e,s,c)}}function eS(e,n,r){var a=!Ko();Rt(r)?(Vr.get=a?tS(n):nS(r),Vr.set=Kt):(Vr.get=r.get?a&&r.cache!==!1?tS(n):nS(r.get):Kt,Vr.set=r.set||Kt),process.env.NODE_ENV!=="production"&&Vr.set===Kt&&(Vr.set=function(){Pe('Computed property "'.concat(n,'" was assigned to but it has no setter.'),this)}),Object.defineProperty(e,n,Vr)}function tS(e){return function(){var r=this._computedWatchers&&this._computedWatchers[e];if(r)return r.dirty&&r.evaluate(),wr.target&&(process.env.NODE_ENV!=="production"&&wr.target.onTrack&&wr.target.onTrack({effect:wr.target,target:this,type:"get",key:e}),r.depend()),r.value}}function nS(e){return function(){return e.call(this,this)}}function wF(e,n){var r=e.$options.props;for(var a in n)process.env.NODE_ENV!=="production"&&(typeof n[a]!="function"&&Pe('Method "'.concat(a,'" has type "').concat(typeof n[a],'" in the component definition. ')+"Did you reference the function correctly?",e),r&&Bn(r,a)&&Pe('Method "'.concat(a,'" has already been defined as a prop.'),e),a in e&&Gb(a)&&Pe('Method "'.concat(a,'" conflicts with an existing Vue instance method. ')+"Avoid defining component methods that start with _ or $.")),e[a]=typeof n[a]!="function"?Kt:VC(n[a],e)}function EF(e,n){for(var r in n){var a=n[r];if(st(a))for(var s=0;s<a.length;s++)C_(e,r,a[s]);else C_(e,r,a)}}function C_(e,n,r,a){return Tn(r)&&(a=r,r=r.handler),typeof r=="string"&&(r=e[r]),e.$watch(n,r,a)}function kF(e){var n={};n.get=function(){return this._data};var r={};r.get=function(){return this._props},process.env.NODE_ENV!=="production"&&(n.set=function(){Pe("Avoid replacing instance root $data. Use nested data properties instead.",this)},r.set=function(){Pe("$props is readonly.",this)}),Object.defineProperty(e.prototype,"$data",n),Object.defineProperty(e.prototype,"$props",r),e.prototype.$set=$b,e.prototype.$delete=i1,e.prototype.$watch=function(a,s,c){var p=this;if(Tn(s))return C_(p,a,s,c);c=c||{},c.user=!0;var m=new Hp(p,a,s,c);if(c.immediate){var g='callback for immediate watcher "'.concat(m.expression,'"');El(),fa(s,p,[m.value],p,g),kl()}return function(){m.teardown()}}}var CF=0;function SF(e){e.prototype._init=function(n){var r=this;r._uid=CF++;var a,s;process.env.NODE_ENV!=="production"&&Ot.performance&&Hr&&(a="vue-perf-start:".concat(r._uid),s="vue-perf-end:".concat(r._uid),Hr(a)),r._isVue=!0,r.__v_skip=!0,r._scope=new VM(!0),r._scope._vm=!0,n&&n._isComponent?DF(r,n):r.$options=es(S_(r.constructor),n||{},r),process.env.NODE_ENV!=="production"?X1(r):r._renderProxy=r,r._self=r,N4(r),D4(r),p4(r),Qi(r,"beforeCreate",void 0,!1),U4(r),AF(r),V4(r),Qi(r,"created"),process.env.NODE_ENV!=="production"&&Ot.performance&&Hr&&(r._name=qo(r,!1),Hr(s),Vp("vue ".concat(r._name," init"),a,s)),r.$options.el&&r.$mount(r.$options.el)}}function DF(e,n){var r=e.$options=Object.create(e.constructor.options),a=n._parentVnode;r.parent=n.parent,r._parentVnode=a;var s=a.componentOptions;r.propsData=s.propsData,r._parentListeners=s.listeners,r._renderChildren=s.children,r._componentTag=s.tag,n.render&&(r.render=n.render,r.staticRenderFns=n.staticRenderFns)}function S_(e){var n=e.options;if(e.super){var r=S_(e.super),a=e.superOptions;if(r!==a){e.superOptions=r;var s=BF(e);s&&Ht(e.extendOptions,s),n=e.options=es(r,e.extendOptions),n.name&&(n.components[n.name]=e)}}return n}function BF(e){var n,r=e.options,a=e.sealedOptions;for(var s in r)r[s]!==a[s]&&(n||(n={}),n[s]=r[s]);return n}function nn(e){process.env.NODE_ENV!=="production"&&!(this instanceof nn)&&Pe("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}SF(nn),kF(nn),T4(nn),M4(nn),h4(nn);function IF(e){e.use=function(n){var r=this._installedPlugins||(this._installedPlugins=[]);if(r.indexOf(n)>-1)return this;var a=Yb(arguments,1);return a.unshift(this),Rt(n.install)?n.install.apply(n,a):Rt(n)&&n.apply(null,a),r.push(n),this}}function OF(e){e.mixin=function(n){return this.options=es(this.options,n),this}}function TF(e){e.cid=0;var n=1;e.extend=function(r){r=r||{};var a=this,s=a.cid,c=r._Ctor||(r._Ctor={});if(c[s])return c[s];var p=Dl(r)||Dl(a.options);process.env.NODE_ENV!=="production"&&p&&y_(p);var m=function(y){this._init(y)};return m.prototype=Object.create(a.prototype),m.prototype.constructor=m,m.cid=n++,m.options=es(a.options,r),m.super=a,m.options.props&&NF(m),m.options.computed&&MF(m),m.extend=a.extend,m.mixin=a.mixin,m.use=a.use,Sp.forEach(function(g){m[g]=a[g]}),p&&(m.options.components[p]=m),m.superOptions=a.options,m.extendOptions=r,m.sealedOptions=Ht({},m.options),c[s]=m,m}}function NF(e){var n=e.options.props;for(var r in n)k_(e.prototype,"_props",r)}function MF(e){var n=e.options.computed;for(var r in n)eS(e.prototype,r,n[r])}function FF(e){Sp.forEach(function(n){e[n]=function(r,a){return a?(process.env.NODE_ENV!=="production"&&n==="component"&&y_(r),n==="component"&&Tn(a)&&(a.name=a.name||r,a=this.options._base.extend(a)),n==="directive"&&Rt(a)&&(a={bind:a,update:a}),this.options[n+"s"][r]=a,a):this.options[n+"s"][r]}})}function iS(e){return e&&(Dl(e.Ctor.options)||e.tag)}function Gp(e,n){return st(e)?e.indexOf(n)>-1:typeof e=="string"?e.split(",").indexOf(n)>-1:jC(e)?e.test(n):!1}function rS(e,n){var r=e.cache,a=e.keys,s=e._vnode;for(var c in r){var p=r[c];if(p){var m=p.name;m&&!n(m)&&D_(r,c,a,s)}}}function D_(e,n,r,a){var s=e[n];s&&(!a||s.tag!==a.tag)&&s.componentInstance.$destroy(),e[n]=null,Ya(r,n)}var aS=[String,RegExp,Array],PF={name:"keep-alive",abstract:!0,props:{include:aS,exclude:aS,max:[String,Number]},methods:{cacheVNode:function(){var e=this,n=e.cache,r=e.keys,a=e.vnodeToCache,s=e.keyToCache;if(a){var c=a.tag,p=a.componentInstance,m=a.componentOptions;n[s]={name:iS(m),tag:c,componentInstance:p},r.push(s),this.max&&r.length>parseInt(this.max)&&D_(n,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)D_(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(n){rS(e,function(r){return Gp(n,r)})}),this.$watch("exclude",function(n){rS(e,function(r){return!Gp(n,r)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,n=k1(e),r=n&&n.componentOptions;if(r){var a=iS(r),s=this,c=s.include,p=s.exclude;if(c&&(!a||!Gp(c,a))||p&&a&&Gp(p,a))return n;var m=this,g=m.cache,y=m.keys,O=n.key==null?r.Ctor.cid+(r.tag?"::".concat(r.tag):""):n.key;g[O]?(n.componentInstance=g[O].componentInstance,Ya(y,O),y.push(O)):(this.vnodeToCache=n,this.keyToCache=O),n.data.keepAlive=!0}return n||e&&e[0]}},RF={KeepAlive:PF};function LF(e){var n={};n.get=function(){return Ot},process.env.NODE_ENV!=="production"&&(n.set=function(){Pe("Do not replace the Vue.config object, set individual fields instead.")}),Object.defineProperty(e,"config",n),e.util={warn:Pe,extend:Ht,mergeOptions:es,defineReactive:ir},e.set=$b,e.delete=i1,e.nextTick=Qp,e.observable=function(r){return da(r),r},e.options=Object.create(null),Sp.forEach(function(r){e.options[r+"s"]=Object.create(null)}),e.options._base=e,Ht(e.options.components,RF),IF(e),OF(e),TF(e),FF(e)}LF(nn),Object.defineProperty(nn.prototype,"$isServer",{get:Ko}),Object.defineProperty(nn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(nn,"FunctionalRenderContext",{value:A_}),nn.version=C4;var jF=ji("style,class"),QF=ji("input,textarea,option,select,progress"),zF=function(e,n,r){return r==="value"&&QF(e)&&n!=="button"||r==="selected"&&e==="option"||r==="checked"&&e==="input"||r==="muted"&&e==="video"},oS=ji("contenteditable,draggable,spellcheck"),HF=ji("events,caret,typing,plaintext-only"),VF=function(e,n){return Jp(n)||n==="false"?"false":e==="contenteditable"&&HF(n)?n:"true"},UF=ji("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),B_="http://www.w3.org/1999/xlink",I_=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},sS=function(e){return I_(e)?e.slice(6,e.length):""},Jp=function(e){return e==null||e===!1};function YF(e){for(var n=e.data,r=e,a=e;ve(a.componentInstance);)a=a.componentInstance._vnode,a&&a.data&&(n=lS(a.data,n));for(;ve(r=r.parent);)r&&r.data&&(n=lS(n,r.data));return WF(n.staticClass,n.class)}function lS(e,n){return{staticClass:O_(e.staticClass,n.staticClass),class:ve(e.class)?[e.class,n.class]:n.class}}function WF(e,n){return ve(e)||ve(n)?O_(e,T_(n)):""}function O_(e,n){return e?n?e+" "+n:e:n||""}function T_(e){return Array.isArray(e)?GF(e):Dn(e)?JF(e):typeof e=="string"?e:""}function GF(e){for(var n="",r,a=0,s=e.length;a<s;a++)ve(r=T_(e[a]))&&r!==""&&(n&&(n+=" "),n+=r);return n}function JF(e){var n="";for(var r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var KF={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},XF=ji("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),N_=ji("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),cS=function(e){return XF(e)||N_(e)};function ZF(e){if(N_(e))return"svg";if(e==="math")return"math"}var Kp=Object.create(null);function $F(e){if(!Ai)return!0;if(cS(e))return!1;if(e=e.toLowerCase(),Kp[e]!=null)return Kp[e];var n=document.createElement(e);return e.indexOf("-")>-1?Kp[e]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:Kp[e]=/HTMLUnknownElement/.test(n.toString())}var M_=ji("text,number,password,search,email,tel,url");function qF(e){if(typeof e=="string"){var n=document.querySelector(e);return n||(process.env.NODE_ENV!=="production"&&Pe("Cannot find element: "+e),document.createElement("div"))}else return e}function eP(e,n){var r=document.createElement(e);return e!=="select"||n.data&&n.data.attrs&&n.data.attrs.multiple!==void 0&&r.setAttribute("multiple","multiple"),r}function tP(e,n){return document.createElementNS(KF[e],n)}function nP(e){return document.createTextNode(e)}function iP(e){return document.createComment(e)}function rP(e,n,r){e.insertBefore(n,r)}function aP(e,n){e.removeChild(n)}function oP(e,n){e.appendChild(n)}function sP(e){return e.parentNode}function lP(e){return e.nextSibling}function cP(e){return e.tagName}function uP(e,n){e.textContent=n}function dP(e,n){e.setAttribute(n,"")}var fP=Object.freeze({__proto__:null,createElement:eP,createElementNS:tP,createTextNode:nP,createComment:iP,insertBefore:rP,removeChild:aP,appendChild:oP,parentNode:sP,nextSibling:lP,tagName:cP,setTextContent:uP,setStyleScope:dP}),pP={create:function(e,n){Bl(n)},update:function(e,n){e.data.ref!==n.data.ref&&(Bl(e,!0),Bl(n))},destroy:function(e){Bl(e,!0)}};function Bl(e,n){var r=e.data.ref;if(!!ve(r)){var a=e.context,s=e.componentInstance||e.elm,c=n?null:s,p=n?void 0:s;if(Rt(r)){fa(r,a,[c],a,"template ref function");return}var m=e.data.refInFor,g=typeof r=="string"||typeof r=="number",y=ti(r),O=a.$refs;if(g||y)if(m){var I=g?O[r]:r.value;n?st(I)&&Ya(I,s):st(I)?I.includes(s)||I.push(s):g?(O[r]=[s],uS(a,r,O[r])):r.value=[s]}else if(g){if(n&&O[r]!==s)return;O[r]=p,uS(a,r,c)}else if(y){if(n&&r.value!==s)return;r.value=c}else process.env.NODE_ENV!=="production"&&Pe("Invalid template ref type: ".concat(typeof r))}}function uS(e,n,r){var a=e._setupState;a&&Bn(a,n)&&(ti(a[n])?a[n].value=r:a[n]=r)}var Xa=new vi("",{},[]),Ju=["create","activate","update","remove","destroy"];function ts(e,n){return e.key===n.key&&e.asyncFactory===n.asyncFactory&&(e.tag===n.tag&&e.isComment===n.isComment&&ve(e.data)===ve(n.data)&&hP(e,n)||en(e.isAsyncPlaceholder)&&it(n.asyncFactory.error))}function hP(e,n){if(e.tag!=="input")return!0;var r,a=ve(r=e.data)&&ve(r=r.attrs)&&r.type,s=ve(r=n.data)&&ve(r=r.attrs)&&r.type;return a===s||M_(a)&&M_(s)}function mP(e,n,r){var a,s,c={};for(a=n;a<=r;++a)s=e[a].key,ve(s)&&(c[s]=a);return c}function gP(e){var n,r,a={},s=e.modules,c=e.nodeOps;for(n=0;n<Ju.length;++n)for(a[Ju[n]]=[],r=0;r<s.length;++r)ve(s[r][Ju[n]])&&a[Ju[n]].push(s[r][Ju[n]]);function p(G){return new vi(c.tagName(G).toLowerCase(),{},[],void 0,G)}function m(G,J){function ie(){--ie.listeners===0&&g(G)}return ie.listeners=J,ie}function g(G){var J=c.parentNode(G);ve(J)&&c.removeChild(J,G)}function y(G,J){return!J&&!G.ns&&!(Ot.ignoredElements.length&&Ot.ignoredElements.some(function(ie){return jC(ie)?ie.test(G.tag):ie===G.tag}))&&Ot.isUnknownElement(G.tag)}var O=0;function I(G,J,ie,Ae,Oe,ue,pe){if(ve(G.elm)&&ve(ue)&&(G=ue[pe]=Xb(G)),G.isRootInsert=!Oe,!N(G,J,ie,Ae)){var ye=G.data,Fe=G.children,K=G.tag;ve(K)?(process.env.NODE_ENV!=="production"&&(ye&&ye.pre&&O++,y(G,O)&&Pe("Unknown custom element: <"+K+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',G.context)),G.elm=G.ns?c.createElementNS(G.ns,K):c.createElement(K,G),v(G),M(G,Fe,J),ve(ye)&&F(G,J),Q(ie,G.elm,Ae),process.env.NODE_ENV!=="production"&&ye&&ye.pre&&O--):en(G.isComment)?(G.elm=c.createComment(G.text),Q(ie,G.elm,Ae)):(G.elm=c.createTextNode(G.text),Q(ie,G.elm,Ae))}}function N(G,J,ie,Ae){var Oe=G.data;if(ve(Oe)){var ue=ve(G.componentInstance)&&Oe.keepAlive;if(ve(Oe=Oe.hook)&&ve(Oe=Oe.init)&&Oe(G,!1),ve(G.componentInstance))return _(G,J),Q(ie,G.elm,Ae),en(ue)&&k(G,J,ie,Ae),!0}}function _(G,J){ve(G.data.pendingInsert)&&(J.push.apply(J,G.data.pendingInsert),G.data.pendingInsert=null),G.elm=G.componentInstance.$el,T(G)?(F(G,J),v(G)):(Bl(G),J.push(G))}function k(G,J,ie,Ae){for(var Oe,ue=G;ue.componentInstance;)if(ue=ue.componentInstance._vnode,ve(Oe=ue.data)&&ve(Oe=Oe.transition)){for(Oe=0;Oe<a.activate.length;++Oe)a.activate[Oe](Xa,ue);J.push(ue);break}Q(ie,G.elm,Ae)}function Q(G,J,ie){ve(G)&&(ve(ie)?c.parentNode(ie)===G&&c.insertBefore(G,J,ie):c.appendChild(G,J))}function M(G,J,ie){if(st(J)){process.env.NODE_ENV!=="production"&&q(J);for(var Ae=0;Ae<J.length;++Ae)I(J[Ae],ie,G.elm,null,!0,J,Ae)}else ua(G.text)&&c.appendChild(G.elm,c.createTextNode(String(G.text)))}function T(G){for(;G.componentInstance;)G=G.componentInstance._vnode;return ve(G.tag)}function F(G,J){for(var ie=0;ie<a.create.length;++ie)a.create[ie](Xa,G);n=G.data.hook,ve(n)&&(ve(n.create)&&n.create(Xa,G),ve(n.insert)&&J.push(G))}function v(G){var J;if(ve(J=G.fnScopeId))c.setStyleScope(G.elm,J);else for(var ie=G;ie;)ve(J=ie.context)&&ve(J=J.$options._scopeId)&&c.setStyleScope(G.elm,J),ie=ie.parent;ve(J=$o)&&J!==G.context&&J!==G.fnContext&&ve(J=J.$options._scopeId)&&c.setStyleScope(G.elm,J)}function w(G,J,ie,Ae,Oe,ue){for(;Ae<=Oe;++Ae)I(ie[Ae],ue,G,J,!1,ie,Ae)}function S(G){var J,ie,Ae=G.data;if(ve(Ae))for(ve(J=Ae.hook)&&ve(J=J.destroy)&&J(G),J=0;J<a.destroy.length;++J)a.destroy[J](G);if(ve(J=G.children))for(ie=0;ie<G.children.length;++ie)S(G.children[ie])}function z(G,J,ie){for(;J<=ie;++J){var Ae=G[J];ve(Ae)&&(ve(Ae.tag)?(R(Ae),S(Ae)):g(Ae.elm))}}function R(G,J){if(ve(J)||ve(G.data)){var ie,Ae=a.remove.length+1;for(ve(J)?J.listeners+=Ae:J=m(G.elm,Ae),ve(ie=G.componentInstance)&&ve(ie=ie._vnode)&&ve(ie.data)&&R(ie,J),ie=0;ie<a.remove.length;++ie)a.remove[ie](G,J);ve(ie=G.data.hook)&&ve(ie=ie.remove)?ie(G,J):J()}else g(G.elm)}function H(G,J,ie,Ae,Oe){var ue=0,pe=0,ye=J.length-1,Fe=J[0],K=J[ye],P=ie.length-1,E=ie[0],C=ie[P],X,te,de,ke,Le=!Oe;for(process.env.NODE_ENV!=="production"&&q(ie);ue<=ye&&pe<=P;)it(Fe)?Fe=J[++ue]:it(K)?K=J[--ye]:ts(Fe,E)?(ce(Fe,E,Ae,ie,pe),Fe=J[++ue],E=ie[++pe]):ts(K,C)?(ce(K,C,Ae,ie,P),K=J[--ye],C=ie[--P]):ts(Fe,C)?(ce(Fe,C,Ae,ie,P),Le&&c.insertBefore(G,Fe.elm,c.nextSibling(K.elm)),Fe=J[++ue],C=ie[--P]):ts(K,E)?(ce(K,E,Ae,ie,pe),Le&&c.insertBefore(G,K.elm,Fe.elm),K=J[--ye],E=ie[++pe]):(it(X)&&(X=mP(J,ue,ye)),te=ve(E.key)?X[E.key]:re(E,J,ue,ye),it(te)?I(E,Ae,G,Fe.elm,!1,ie,pe):(de=J[te],ts(de,E)?(ce(de,E,Ae,ie,pe),J[te]=void 0,Le&&c.insertBefore(G,de.elm,Fe.elm)):I(E,Ae,G,Fe.elm,!1,ie,pe)),E=ie[++pe]);ue>ye?(ke=it(ie[P+1])?null:ie[P+1].elm,w(G,ke,ie,pe,P,Ae)):pe>P&&z(J,ue,ye)}function q(G){for(var J={},ie=0;ie<G.length;ie++){var Ae=G[ie],Oe=Ae.key;ve(Oe)&&(J[Oe]?Pe("Duplicate keys detected: '".concat(Oe,"'. This may cause an update error."),Ae.context):J[Oe]=!0)}}function re(G,J,ie,Ae){for(var Oe=ie;Oe<Ae;Oe++){var ue=J[Oe];if(ve(ue)&&ts(G,ue))return Oe}}function ce(G,J,ie,Ae,Oe,ue){if(G!==J){ve(J.elm)&&ve(Ae)&&(J=Ae[Oe]=Xb(J));var pe=J.elm=G.elm;if(en(G.isAsyncPlaceholder)){ve(J.asyncFactory.resolved)?Se(G.elm,J,ie):J.isAsyncPlaceholder=!0;return}if(en(J.isStatic)&&en(G.isStatic)&&J.key===G.key&&(en(J.isCloned)||en(J.isOnce))){J.componentInstance=G.componentInstance;return}var ye,Fe=J.data;ve(Fe)&&ve(ye=Fe.hook)&&ve(ye=ye.prepatch)&&ye(G,J);var K=G.children,P=J.children;if(ve(Fe)&&T(J)){for(ye=0;ye<a.update.length;++ye)a.update[ye](G,J);ve(ye=Fe.hook)&&ve(ye=ye.update)&&ye(G,J)}it(J.text)?ve(K)&&ve(P)?K!==P&&H(pe,K,P,ie,ue):ve(P)?(process.env.NODE_ENV!=="production"&&q(P),ve(G.text)&&c.setTextContent(pe,""),w(pe,null,P,0,P.length-1,ie)):ve(K)?z(K,0,K.length-1):ve(G.text)&&c.setTextContent(pe,""):G.text!==J.text&&c.setTextContent(pe,J.text),ve(Fe)&&ve(ye=Fe.hook)&&ve(ye=ye.postpatch)&&ye(G,J)}}function ge(G,J,ie){if(en(ie)&&ve(G.parent))G.parent.data.pendingInsert=J;else for(var Ae=0;Ae<J.length;++Ae)J[Ae].data.hook.insert(J[Ae])}var fe=!1,Ce=ji("attrs,class,staticClass,staticStyle,key");function Se(G,J,ie,Ae){var Oe,ue=J.tag,pe=J.data,ye=J.children;if(Ae=Ae||pe&&pe.pre,J.elm=G,en(J.isComment)&&ve(J.asyncFactory))return J.isAsyncPlaceholder=!0,!0;if(process.env.NODE_ENV!=="production"&&!me(G,J,Ae))return!1;if(ve(pe)&&(ve(Oe=pe.hook)&&ve(Oe=Oe.init)&&Oe(J,!0),ve(Oe=J.componentInstance)))return _(J,ie),!0;if(ve(ue)){if(ve(ye))if(!G.hasChildNodes())M(J,ye,ie);else if(ve(Oe=pe)&&ve(Oe=Oe.domProps)&&ve(Oe=Oe.innerHTML)){if(Oe!==G.innerHTML)return process.env.NODE_ENV!=="production"&&typeof console<"u"&&!fe&&(fe=!0,console.warn("Parent: ",G),console.warn("server innerHTML: ",Oe),console.warn("client innerHTML: ",G.innerHTML)),!1}else{for(var Fe=!0,K=G.firstChild,P=0;P<ye.length;P++){if(!K||!Se(K,ye[P],ie,Ae)){Fe=!1;break}K=K.nextSibling}if(!Fe||K)return process.env.NODE_ENV!=="production"&&typeof console<"u"&&!fe&&(fe=!0,console.warn("Parent: ",G),console.warn("Mismatching childNodes vs. VNodes: ",G.childNodes,ye)),!1}if(ve(pe)){var E=!1;for(var C in pe)if(!Ce(C)){E=!0,F(J,ie);break}!E&&pe.class&&Cl(pe.class)}}else G.data!==J.text&&(G.data=J.text);return!0}function me(G,J,ie){return ve(J.tag)?J.tag.indexOf("vue-component")===0||!y(J,ie)&&J.tag.toLowerCase()===(G.tagName&&G.tagName.toLowerCase()):G.nodeType===(J.isComment?8:3)}return function(J,ie,Ae,Oe){if(it(ie)){ve(J)&&S(J);return}var ue=!1,pe=[];if(it(J))ue=!0,I(ie,pe);else{var ye=ve(J.nodeType);if(!ye&&ts(J,ie))ce(J,ie,pe,null,null,Oe);else{if(ye){if(J.nodeType===1&&J.hasAttribute(GC)&&(J.removeAttribute(GC),Ae=!0),en(Ae)){if(Se(J,ie,pe))return ge(ie,pe,!0),J;process.env.NODE_ENV!=="production"&&Pe("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}J=p(J)}var Fe=J.elm,K=c.parentNode(Fe);if(I(ie,pe,Fe._leaveCb?null:K,c.nextSibling(Fe)),ve(ie.parent))for(var P=ie.parent,E=T(ie);P;){for(var C=0;C<a.destroy.length;++C)a.destroy[C](P);if(P.elm=ie.elm,E){for(var X=0;X<a.create.length;++X)a.create[X](Xa,P);var te=P.data.hook.insert;if(te.merged)for(var de=1;de<te.fns.length;de++)te.fns[de]()}else Bl(P);P=P.parent}ve(K)?z([J],0,0):ve(J.tag)&&S(J)}}return ge(ie,pe,ue),ie.elm}}var AP={create:F_,update:F_,destroy:function(n){F_(n,Xa)}};function F_(e,n){(e.data.directives||n.data.directives)&&vP(e,n)}function vP(e,n){var r=e===Xa,a=n===Xa,s=dS(e.data.directives,e.context),c=dS(n.data.directives,n.context),p=[],m=[],g,y,O;for(g in c)y=s[g],O=c[g],y?(O.oldValue=y.value,O.oldArg=y.arg,Ku(O,"update",n,e),O.def&&O.def.componentUpdated&&m.push(O)):(Ku(O,"bind",n,e),O.def&&O.def.inserted&&p.push(O));if(p.length){var I=function(){for(var N=0;N<p.length;N++)Ku(p[N],"inserted",n,e)};r?Ja(n,"insert",I):I()}if(m.length&&Ja(n,"postpatch",function(){for(var N=0;N<m.length;N++)Ku(m[N],"componentUpdated",n,e)}),!r)for(g in s)c[g]||Ku(s[g],"unbind",e,e,a)}var bP=Object.create(null);function dS(e,n){var r=Object.create(null);if(!e)return r;var a,s;for(a=0;a<e.length;a++){if(s=e[a],s.modifiers||(s.modifiers=bP),r[_P(s)]=s,n._setupState&&n._setupState.__sfc){var c=s.def||Yp(n,"_setupState","v-"+s.name);typeof c=="function"?s.def={bind:c,update:c}:s.def=c}s.def=s.def||Yp(n.$options,"directives",s.name,!0)}return r}function _P(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function Ku(e,n,r,a,s){var c=e.def&&e.def[n];if(c)try{c(r.elm,e,r,a,s)}catch(p){Ka(p,r.context,"directive ".concat(e.name," ").concat(n," hook"))}}var yP=[pP,AP];function fS(e,n){var r=n.componentOptions;if(!(ve(r)&&r.Ctor.options.inheritAttrs===!1)&&!(it(e.data.attrs)&&it(n.data.attrs))){var a,s,c,p=n.elm,m=e.data.attrs||{},g=n.data.attrs||{};(ve(g.__ob__)||en(g._v_attr_proxy))&&(g=n.data.attrs=Ht({},g));for(a in g)s=g[a],c=m[a],c!==s&&pS(p,a,s,n.data.pre);(yl||Jb)&&g.value!==m.value&&pS(p,"value",g.value);for(a in m)it(g[a])&&(I_(a)?p.removeAttributeNS(B_,sS(a)):oS(a)||p.removeAttribute(a))}}function pS(e,n,r,a){a||e.tagName.indexOf("-")>-1?hS(e,n,r):UF(n)?Jp(r)?e.removeAttribute(n):(r=n==="allowfullscreen"&&e.tagName==="EMBED"?"true":n,e.setAttribute(n,r)):oS(n)?e.setAttribute(n,VF(n,r)):I_(n)?Jp(r)?e.removeAttributeNS(B_,sS(n)):e.setAttributeNS(B_,n,r):hS(e,n,r)}function hS(e,n,r){if(Jp(r))e.removeAttribute(n);else{if(yl&&!xl&&e.tagName==="TEXTAREA"&&n==="placeholder"&&r!==""&&!e.__ieph){var a=function(s){s.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(n,r)}}var xP={create:fS,update:fS};function mS(e,n){var r=n.elm,a=n.data,s=e.data;if(!(it(a.staticClass)&&it(a.class)&&(it(s)||it(s.staticClass)&&it(s.class)))){var c=YF(n),p=r._transitionClasses;ve(p)&&(c=O_(c,T_(p))),c!==r._prevClass&&(r.setAttribute("class",c),r._prevClass=c)}}var wP={create:mS,update:mS},P_="__r",R_="__c";function EP(e){if(ve(e[P_])){var n=yl?"change":"input";e[n]=[].concat(e[P_],e[n]||[]),delete e[P_]}ve(e[R_])&&(e.change=[].concat(e[R_],e.change||[]),delete e[R_])}var Xu;function kP(e,n,r){var a=Xu;return function s(){var c=n.apply(null,arguments);c!==null&&gS(e,s,r,a)}}var CP=s_&&!(XC&&Number(XC[1])<=53);function SP(e,n,r,a){if(CP){var s=P1,c=n;n=c._wrapper=function(p){if(p.target===p.currentTarget||p.timeStamp>=s||p.timeStamp<=0||p.target.ownerDocument!==document)return c.apply(this,arguments)}}Xu.addEventListener(e,n,ZC?{capture:r,passive:a}:r)}function gS(e,n,r,a){(a||Xu).removeEventListener(e,n._wrapper||n,r)}function L_(e,n){if(!(it(e.data.on)&&it(n.data.on))){var r=n.data.on||{},a=e.data.on||{};Xu=n.elm||e.elm,EP(r),g1(r,a,SP,gS,kP,n.context),Xu=void 0}}var DP={create:L_,update:L_,destroy:function(e){return L_(e,Xa)}},Xp;function AS(e,n){if(!(it(e.data.domProps)&&it(n.data.domProps))){var r,a,s=n.elm,c=e.data.domProps||{},p=n.data.domProps||{};(ve(p.__ob__)||en(p._v_attr_proxy))&&(p=n.data.domProps=Ht({},p));for(r in c)r in p||(s[r]="");for(r in p){if(a=p[r],r==="textContent"||r==="innerHTML"){if(n.children&&(n.children.length=0),a===c[r])continue;s.childNodes.length===1&&s.removeChild(s.childNodes[0])}if(r==="value"&&s.tagName!=="PROGRESS"){s._value=a;var m=it(a)?"":String(a);BP(s,m)&&(s.value=m)}else if(r==="innerHTML"&&N_(s.tagName)&&it(s.innerHTML)){Xp=Xp||document.createElement("div"),Xp.innerHTML="<svg>".concat(a,"</svg>");for(var g=Xp.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;g.firstChild;)s.appendChild(g.firstChild)}else if(a!==c[r])try{s[r]=a}catch{}}}}function BP(e,n){return!e.composing&&(e.tagName==="OPTION"||IP(e,n)||OP(e,n))}function IP(e,n){var r=!0;try{r=document.activeElement!==e}catch{}return r&&e.value!==n}function OP(e,n){var r=e.value,a=e._vModifiers;if(ve(a)){if(a.number)return Pu(r)!==Pu(n);if(a.trim)return r.trim()!==n.trim()}return r!==n}var TP={create:AS,update:AS},NP=Yo(function(e){var n={},r=/;(?![^(]*\))/g,a=/:(.+)/;return e.split(r).forEach(function(s){if(s){var c=s.split(a);c.length>1&&(n[c[0].trim()]=c[1].trim())}}),n});function j_(e){var n=vS(e.style);return e.staticStyle?Ht(e.staticStyle,n):n}function vS(e){return Array.isArray(e)?UC(e):typeof e=="string"?NP(e):e}function MP(e,n){var r={},a;if(n)for(var s=e;s.componentInstance;)s=s.componentInstance._vnode,s&&s.data&&(a=j_(s.data))&&Ht(r,a);(a=j_(e.data))&&Ht(r,a);for(var c=e;c=c.parent;)c.data&&(a=j_(c.data))&&Ht(r,a);return r}var FP=/^--/,bS=/\s*!important$/,_S=function(e,n,r){if(FP.test(n))e.style.setProperty(n,r);else if(bS.test(r))e.style.setProperty(Go(n),r.replace(bS,""),"important");else{var a=PP(n);if(Array.isArray(r))for(var s=0,c=r.length;s<c;s++)e.style[a]=r[s];else e.style[a]=r}},yS=["Webkit","Moz","ms"],Zp,PP=Yo(function(e){if(Zp=Zp||document.createElement("div").style,e=Wo(e),e!=="filter"&&e in Zp)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<yS.length;r++){var a=yS[r]+n;if(a in Zp)return a}});function xS(e,n){var r=n.data,a=e.data;if(!(it(r.staticStyle)&&it(r.style)&&it(a.staticStyle)&&it(a.style))){var s,c,p=n.elm,m=a.staticStyle,g=a.normalizedStyle||a.style||{},y=m||g,O=vS(n.data.style)||{};n.data.normalizedStyle=ve(O.__ob__)?Ht({},O):O;var I=MP(n,!0);for(c in y)it(I[c])&&_S(p,c,"");for(c in I)s=I[c],s!==y[c]&&_S(p,c,s==null?"":s)}}var RP={create:xS,update:xS},wS=/\s+/;function ES(e,n){if(!(!n||!(n=n.trim())))if(e.classList)n.indexOf(" ")>-1?n.split(wS).forEach(function(a){return e.classList.add(a)}):e.classList.add(n);else{var r=" ".concat(e.getAttribute("class")||""," ");r.indexOf(" "+n+" ")<0&&e.setAttribute("class",(r+n).trim())}}function kS(e,n){if(!(!n||!(n=n.trim())))if(e.classList)n.indexOf(" ")>-1?n.split(wS).forEach(function(s){return e.classList.remove(s)}):e.classList.remove(n),e.classList.length||e.removeAttribute("class");else{for(var r=" ".concat(e.getAttribute("class")||""," "),a=" "+n+" ";r.indexOf(a)>=0;)r=r.replace(a," ");r=r.trim(),r?e.setAttribute("class",r):e.removeAttribute("class")}}function CS(e){if(!!e){if(typeof e=="object"){var n={};return e.css!==!1&&Ht(n,SS(e.name||"v")),Ht(n,e),n}else if(typeof e=="string")return SS(e)}}var SS=Yo(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),DS=Ai&&!xl,Il="transition",Q_="animation",$p="transition",qp="transitionend",z_="animation",BS="animationend";DS&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&($p="WebkitTransition",qp="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(z_="WebkitAnimation",BS="webkitAnimationEnd"));var IS=Ai?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function OS(e){IS(function(){IS(e)})}function ns(e,n){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(n)<0&&(r.push(n),ES(e,n))}function ma(e,n){e._transitionClasses&&Ya(e._transitionClasses,n),kS(e,n)}function TS(e,n,r){var a=NS(e,n),s=a.type,c=a.timeout,p=a.propCount;if(!s)return r();var m=s===Il?qp:BS,g=0,y=function(){e.removeEventListener(m,O),r()},O=function(I){I.target===e&&++g>=p&&y()};setTimeout(function(){g<p&&y()},c+1),e.addEventListener(m,O)}var LP=/\b(transform|all)(,|$)/;function NS(e,n){var r=window.getComputedStyle(e),a=(r[$p+"Delay"]||"").split(", "),s=(r[$p+"Duration"]||"").split(", "),c=MS(a,s),p=(r[z_+"Delay"]||"").split(", "),m=(r[z_+"Duration"]||"").split(", "),g=MS(p,m),y,O=0,I=0;n===Il?c>0&&(y=Il,O=c,I=s.length):n===Q_?g>0&&(y=Q_,O=g,I=m.length):(O=Math.max(c,g),y=O>0?c>g?Il:Q_:null,I=y?y===Il?s.length:m.length:0);var N=y===Il&&LP.test(r[$p+"Property"]);return{type:y,timeout:O,propCount:I,hasTransform:N}}function MS(e,n){for(;e.length<n.length;)e=e.concat(e);return Math.max.apply(null,n.map(function(r,a){return FS(r)+FS(e[a])}))}function FS(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function H_(e,n){var r=e.elm;ve(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var a=CS(e.data.transition);if(!it(a)&&!(ve(r._enterCb)||r.nodeType!==1)){for(var s=a.css,c=a.type,p=a.enterClass,m=a.enterToClass,g=a.enterActiveClass,y=a.appearClass,O=a.appearToClass,I=a.appearActiveClass,N=a.beforeEnter,_=a.enter,k=a.afterEnter,Q=a.enterCancelled,M=a.beforeAppear,T=a.appear,F=a.afterAppear,v=a.appearCancelled,w=a.duration,S=$o,z=$o.$vnode;z&&z.parent;)S=z.context,z=z.parent;var R=!S._isMounted||!e.isRootInsert;if(!(R&&!T&&T!=="")){var H=R&&y?y:p,q=R&&I?I:g,re=R&&O?O:m,ce=R&&M||N,ge=R&&Rt(T)?T:_,fe=R&&F||k,Ce=R&&v||Q,Se=Pu(Dn(w)?w.enter:w);process.env.NODE_ENV!=="production"&&Se!=null&&RS(Se,"enter",e);var me=s!==!1&&!xl,G=V_(ge),J=r._enterCb=Cp(function(){me&&(ma(r,re),ma(r,q)),J.cancelled?(me&&ma(r,H),Ce&&Ce(r)):fe&&fe(r),r._enterCb=null});e.data.show||Ja(e,"insert",function(){var ie=r.parentNode,Ae=ie&&ie._pending&&ie._pending[e.key];Ae&&Ae.tag===e.tag&&Ae.elm._leaveCb&&Ae.elm._leaveCb(),ge&&ge(r,J)}),ce&&ce(r),me&&(ns(r,H),ns(r,q),OS(function(){ma(r,H),J.cancelled||(ns(r,re),G||(LS(Se)?setTimeout(J,Se):TS(r,c,J)))})),e.data.show&&(n&&n(),ge&&ge(r,J)),!me&&!G&&J()}}}function PS(e,n){var r=e.elm;ve(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var a=CS(e.data.transition);if(it(a)||r.nodeType!==1)return n();if(ve(r._leaveCb))return;var s=a.css,c=a.type,p=a.leaveClass,m=a.leaveToClass,g=a.leaveActiveClass,y=a.beforeLeave,O=a.leave,I=a.afterLeave,N=a.leaveCancelled,_=a.delayLeave,k=a.duration,Q=s!==!1&&!xl,M=V_(O),T=Pu(Dn(k)?k.leave:k);process.env.NODE_ENV!=="production"&&ve(T)&&RS(T,"leave",e);var F=r._leaveCb=Cp(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),Q&&(ma(r,m),ma(r,g)),F.cancelled?(Q&&ma(r,p),N&&N(r)):(n(),I&&I(r)),r._leaveCb=null});_?_(v):v();function v(){F.cancelled||(!e.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),y&&y(r),Q&&(ns(r,p),ns(r,g),OS(function(){ma(r,p),F.cancelled||(ns(r,m),M||(LS(T)?setTimeout(F,T):TS(r,c,F)))})),O&&O(r,F),!Q&&!M&&F())}}function RS(e,n,r){typeof e!="number"?Pe("<transition> explicit ".concat(n," duration is not a valid number - ")+"got ".concat(JSON.stringify(e),"."),r.context):isNaN(e)&&Pe("<transition> explicit ".concat(n," duration is NaN - ")+"the duration expression might be incorrect.",r.context)}function LS(e){return typeof e=="number"&&!isNaN(e)}function V_(e){if(it(e))return!1;var n=e.fns;return ve(n)?V_(Array.isArray(n)?n[0]:n):(e._length||e.length)>1}function jS(e,n){n.data.show!==!0&&H_(n)}var jP=Ai?{create:jS,activate:jS,remove:function(e,n){e.data.show!==!0?PS(e,n):n()}}:{},QP=[xP,wP,DP,TP,RP,jP],zP=QP.concat(yP),HP=gP({nodeOps:fP,modules:zP});xl&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&U_(e,"input")});var QS={inserted:function(e,n,r,a){r.tag==="select"?(a.elm&&!a.elm._vOptions?Ja(r,"postpatch",function(){QS.componentUpdated(e,n,r)}):zS(e,n,r.context),e._vOptions=[].map.call(e.options,eh)):(r.tag==="textarea"||M_(e.type))&&(e._vModifiers=n.modifiers,n.modifiers.lazy||(e.addEventListener("compositionstart",VP),e.addEventListener("compositionend",US),e.addEventListener("change",US),xl&&(e.vmodel=!0)))},componentUpdated:function(e,n,r){if(r.tag==="select"){zS(e,n,r.context);var a=e._vOptions,s=e._vOptions=[].map.call(e.options,eh);if(s.some(function(p,m){return!Jo(p,a[m])})){var c=e.multiple?n.value.some(function(p){return VS(p,s)}):n.value!==n.oldValue&&VS(n.value,s);c&&U_(e,"change")}}}};function zS(e,n,r){HS(e,n,r),(yl||Jb)&&setTimeout(function(){HS(e,n,r)},0)}function HS(e,n,r){var a=n.value,s=e.multiple;if(s&&!Array.isArray(a)){process.env.NODE_ENV!=="production"&&Pe('<select multiple v-model="'.concat(n.expression,'"> ')+"expects an Array value for its binding, but got ".concat(Object.prototype.toString.call(a).slice(8,-1)),r);return}for(var c,p,m=0,g=e.options.length;m<g;m++)if(p=e.options[m],s)c=WC(a,eh(p))>-1,p.selected!==c&&(p.selected=c);else if(Jo(eh(p),a)){e.selectedIndex!==m&&(e.selectedIndex=m);return}s||(e.selectedIndex=-1)}function VS(e,n){return n.every(function(r){return!Jo(r,e)})}function eh(e){return"_value"in e?e._value:e.value}function VP(e){e.target.composing=!0}function US(e){!e.target.composing||(e.target.composing=!1,U_(e.target,"input"))}function U_(e,n){var r=document.createEvent("HTMLEvents");r.initEvent(n,!0,!0),e.dispatchEvent(r)}function Y_(e){return e.componentInstance&&(!e.data||!e.data.transition)?Y_(e.componentInstance._vnode):e}var UP={bind:function(e,n,r){var a=n.value;r=Y_(r);var s=r.data&&r.data.transition,c=e.__vOriginalDisplay=e.style.display==="none"?"":e.style.display;a&&s?(r.data.show=!0,H_(r,function(){e.style.display=c})):e.style.display=a?c:"none"},update:function(e,n,r){var a=n.value,s=n.oldValue;if(!a!=!s){r=Y_(r);var c=r.data&&r.data.transition;c?(r.data.show=!0,a?H_(r,function(){e.style.display=e.__vOriginalDisplay}):PS(r,function(){e.style.display="none"})):e.style.display=a?e.__vOriginalDisplay:"none"}},unbind:function(e,n,r,a,s){s||(e.style.display=e.__vOriginalDisplay)}},YP={model:QS,show:UP},YS={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function W_(e){var n=e&&e.componentOptions;return n&&n.Ctor.options.abstract?W_(k1(n.children)):e}function WS(e){var n={},r=e.$options;for(var a in r.propsData)n[a]=e[a];var s=r._parentListeners;for(var a in s)n[Wo(a)]=s[a];return n}function GS(e,n){if(/\d-keep-alive$/.test(n.tag))return e("keep-alive",{props:n.componentOptions.propsData})}function WP(e){for(;e=e.parent;)if(e.data.transition)return!0}function GP(e,n){return n.key===e.key&&n.tag===e.tag}var JP=function(e){return e.tag||zu(e)},KP=function(e){return e.name==="show"},XP={name:"transition",props:YS,abstract:!0,render:function(e){var n=this,r=this.$slots.default;if(!!r&&(r=r.filter(JP),!!r.length)){process.env.NODE_ENV!=="production"&&r.length>1&&Pe("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var a=this.mode;process.env.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&Pe("invalid <transition> mode: "+a,this.$parent);var s=r[0];if(WP(this.$vnode))return s;var c=W_(s);if(!c)return s;if(this._leaving)return GS(e,s);var p="__transition-".concat(this._uid,"-");c.key=c.key==null?c.isComment?p+"comment":p+c.tag:ua(c.key)?String(c.key).indexOf(p)===0?c.key:p+c.key:c.key;var m=(c.data||(c.data={})).transition=WS(this),g=this._vnode,y=W_(g);if(c.data.directives&&c.data.directives.some(KP)&&(c.data.show=!0),y&&y.data&&!GP(c,y)&&!zu(y)&&!(y.componentInstance&&y.componentInstance._vnode.isComment)){var O=y.data.transition=Ht({},m);if(a==="out-in")return this._leaving=!0,Ja(O,"afterLeave",function(){n._leaving=!1,n.$forceUpdate()}),GS(e,s);if(a==="in-out"){if(zu(c))return g;var I,N=function(){I()};Ja(m,"afterEnter",N),Ja(m,"enterCancelled",N),Ja(O,"delayLeave",function(_){I=_})}}return s}}},JS=Ht({tag:String,moveClass:String},YS);delete JS.mode;var ZP={props:JS,beforeMount:function(){var e=this,n=this._update;this._update=function(r,a){var s=N1(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,s(),n.call(e,r,a)}},render:function(e){for(var n=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),a=this.prevChildren=this.children,s=this.$slots.default||[],c=this.children=[],p=WS(this),m=0;m<s.length;m++){var g=s[m];if(g.tag){if(g.key!=null&&String(g.key).indexOf("__vlist")!==0)c.push(g),r[g.key]=g,(g.data||(g.data={})).transition=p;else if(process.env.NODE_ENV!=="production"){var y=g.componentOptions,O=y?Dl(y.Ctor.options)||y.tag||"":g.tag;Pe("<transition-group> children must be keyed: <".concat(O,">"))}}}if(a){for(var I=[],N=[],m=0;m<a.length;m++){var g=a[m];g.data.transition=p,g.data.pos=g.elm.getBoundingClientRect(),r[g.key]?I.push(g):N.push(g)}this.kept=e(n,null,I),this.removed=N}return e(n,null,c)},updated:function(){var e=this.prevChildren,n=this.moveClass||(this.name||"v")+"-move";!e.length||!this.hasMove(e[0].elm,n)||(e.forEach($P),e.forEach(qP),e.forEach(eR),this._reflow=document.body.offsetHeight,e.forEach(function(r){if(r.data.moved){var a=r.elm,s=a.style;ns(a,n),s.transform=s.WebkitTransform=s.transitionDuration="",a.addEventListener(qp,a._moveCb=function c(p){p&&p.target!==a||(!p||/transform$/.test(p.propertyName))&&(a.removeEventListener(qp,c),a._moveCb=null,ma(a,n))})}}))},methods:{hasMove:function(e,n){if(!DS)return!1;if(this._hasMove)return this._hasMove;var r=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(s){kS(r,s)}),ES(r,n),r.style.display="none",this.$el.appendChild(r);var a=NS(r);return this.$el.removeChild(r),this._hasMove=a.hasTransform}}};function $P(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function qP(e){e.data.newPos=e.elm.getBoundingClientRect()}function eR(e){var n=e.data.pos,r=e.data.newPos,a=n.left-r.left,s=n.top-r.top;if(a||s){e.data.moved=!0;var c=e.elm.style;c.transform=c.WebkitTransform="translate(".concat(a,"px,").concat(s,"px)"),c.transitionDuration="0s"}}var tR={Transition:XP,TransitionGroup:ZP};nn.config.mustUseProp=zF,nn.config.isReservedTag=cS,nn.config.isReservedAttr=jF,nn.config.getTagNamespace=ZF,nn.config.isUnknownElement=$F,Ht(nn.options.directives,YP),Ht(nn.options.components,tR),nn.prototype.__patch__=Ai?HP:Kt,nn.prototype.$mount=function(e,n){return e=e&&Ai?qF(e):void 0,F4(this,e,n)},Ai&&setTimeout(function(){Ot.devtools&&(Bp?Bp.emit("init",nn):process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&console[console.info?"info":"log"](`Download the Vue Devtools extension for a better development experience:
|
|
16
16
|
https://github.com/vuejs/vue-devtools`)),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ot.productionTip!==!1&&typeof console<"u"&&console[console.info?"info":"log"](`You are running Vue in development mode.
|
|
17
17
|
Make sure to turn on production mode when deploying for production.
|
|
18
|
-
See more tips at https://vuejs.org/guide/deployment.html`)},0),nn.util.warn;const oX="";var nR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?r("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?r("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?r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),r("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)},iR=[];const sX="";function fn(e,n,r,a,s,c,p,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=r,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(p?(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(p)},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(_,k){return y.call(k),O(_,k)}}else{var I=g.beforeCreate;g.beforeCreate=I?[].concat(I,y):[y]}return{exports:e,options:g}}var KS=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{KS=e});const rR={components:{departPerson:uM.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(r=>{n.postIds.push(r.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(r=>{let a=[],s=[],c=!1;if(r.data.map(p=>{p.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],r.data[0].posts.map(p=>{this.positionArray.push({...p,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:p.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(r=>r.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==_t.success){let n=e.data.map(r=>(r.children=null,r.label=r.name,r.id=r.id,r.deptName=r.deptName,r.alisName=r.alisName,r));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(r=>{r.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,KS.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:r,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==_t.success){let c=s.data.map(p=>(p.children=null,p.label=p.name,p.id=p.id,p));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==Mu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Mu.\u7FA4\u7EC4){Ze.org.findTeamMember("",s).then(p=>{let m=p.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,r()});return}Ze.org.list("",s,c).then(p=>{if(p.code==_t.success){let m=p.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,r()}})}}}},XS={};var aR=fn(rR,nR,iR,!1,oR,"dda24c6c",null,null);function oR(e){for(let n in XS)this[n]=XS[n]}const ga=function(){return aR.exports}();var Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ZS(e){var n=e.default;if(typeof n=="function"){var r=function(){return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var $S={exports:{}};(function(e,n){(function(r,a){e.exports=a()})(Ol,function(){var r=1e3,a=6e4,s=36e5,c="millisecond",p="second",m="minute",g="hour",y="day",O="week",I="month",N="quarter",_="year",k="date",Q="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},w={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,I),ie=me-J<0,Ae=Se.clone().add(G+(ie?-1:1),I);return+(-(G+(me-J)/(ie?J-Ae:Ae-J))||0)},a:function(Ce){return Ce<0?Math.ceil(Ce)||0:Math.floor(Ce)},p:function(Ce){return{M:I,y:_,w:O,d:y,D:k,h:g,m,s:p,ms:c,Q:N}[Ce]||String(Ce||"").toLowerCase().replace(/s$/,"")},u:function(Ce){return Ce===void 0}},S="en",z={};z[S]=F;var R="$isDayjsObject",H=function(Ce){return Ce instanceof ge||!(!Ce||!Ce[R])},q=function Ce(Se,me,G){var J;if(!Se)return S;if(typeof Se=="string"){var ie=Se.toLowerCase();z[ie]&&(J=ie),me&&(z[ie]=me,J=ie);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&&(S=J),J||!G&&S},re=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)},ce=w;ce.l=q,ce.i=H,ce.w=function(Ce,Se){return re(Ce,{locale:Se.$L,utc:Se.$u,x:Se.$x,$offset:Se.$offset})};var ge=function(){function Ce(me){this.$L=q(me.locale,null,!0),this.parse(me),this.$x=this.$x||me.x||{},this[R]=!0}var Se=Ce.prototype;return Se.parse=function(me){this.$d=function(G){var J=G.date,ie=G.utc;if(J===null)return new Date(NaN);if(ce.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 ie?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 ce},Se.isValid=function(){return this.$d.toString()!==Q},Se.isSame=function(me,G){var J=re(me);return this.startOf(G)<=J&&J<=this.endOf(G)},Se.isAfter=function(me,G){return re(me)<this.startOf(G)},Se.isBefore=function(me,G){return this.endOf(G)<re(me)},Se.$g=function(me,G,J){return ce.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,ie=!!ce.u(G)||G,Ae=ce.p(me),Oe=function(C,X){var te=ce.w(J.$u?Date.UTC(J.$y,X,C):new Date(J.$y,X,C),J);return ie?te:te.endOf(y)},ue=function(C,X){return ce.w(J.toDate()[C].apply(J.toDate("s"),(ie?[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 ie?Oe(1,0):Oe(31,11);case I:return ie?Oe(1,ye):Oe(0,ye+1);case O:var P=this.$locale().weekStart||0,E=(pe<P?pe+7:pe)-P;return Oe(ie?Fe-E:Fe+(6-E),ye);case y:case k:return ue(K+"Hours",0);case g:return ue(K+"Minutes",1);case m:return ue(K+"Seconds",2);case p: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,ie=ce.p(me),Ae="set"+(this.$u?"UTC":""),Oe=(J={},J[y]=Ae+"Date",J[k]=Ae+"Date",J[I]=Ae+"Month",J[_]=Ae+"FullYear",J[g]=Ae+"Hours",J[m]=Ae+"Minutes",J[p]=Ae+"Seconds",J[c]=Ae+"Milliseconds",J)[ie],ue=ie===y?this.$D+(G-this.$W):G;if(ie===I||ie===_){var pe=this.clone().set(k,1);pe.$d[Oe](ue),pe.init(),this.$d=pe.set(k,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[ce.p(me)]()},Se.add=function(me,G){var J,ie=this;me=Number(me);var Ae=ce.p(G),Oe=function(ye){var Fe=re(ie);return ce.w(Fe.date(Fe.date()+Math.round(ye*me)),ie)};if(Ae===I)return this.set(I,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[p]=r,J)[Ae]||1,pe=this.$d.getTime()+me*ue;return ce.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||Q;var ie=me||"YYYY-MM-DDTHH:mm:ssZ",Ae=ce.z(this),Oe=this.$H,ue=this.$m,pe=this.$M,ye=J.weekdays,Fe=J.months,K=J.meridiem,P=function(X,te,de,ke){return X&&(X[te]||X(G,ie))||de[te].slice(0,ke)},E=function(X){return ce.s(Oe%12||12,X,"0")},C=K||function(X,te,de){var ke=X<12?"AM":"PM";return de?ke.toLowerCase():ke};return ie.replace(T,function(X,te){return te||function(de){switch(de){case"YY":return String(G.$y).slice(-2);case"YYYY":return ce.s(G.$y,4,"0");case"M":return pe+1;case"MM":return ce.s(pe+1,2,"0");case"MMM":return P(J.monthsShort,pe,Fe,3);case"MMMM":return P(Fe,pe);case"D":return G.$D;case"DD":return ce.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return P(J.weekdaysMin,G.$W,ye,2);case"ddd":return P(J.weekdaysShort,G.$W,ye,3);case"dddd":return ye[G.$W];case"H":return String(Oe);case"HH":return ce.s(Oe,2,"0");case"h":return E(1);case"hh":return E(2);case"a":return C(Oe,ue,!0);case"A":return C(Oe,ue,!1);case"m":return String(ue);case"mm":return ce.s(ue,2,"0");case"s":return String(G.$s);case"ss":return ce.s(G.$s,2,"0");case"SSS":return ce.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 ie,Ae=this,Oe=ce.p(G),ue=re(me),pe=(ue.utcOffset()-this.utcOffset())*a,ye=this-ue,Fe=function(){return ce.m(Ae,ue)};switch(Oe){case _:ie=Fe()/12;break;case I:ie=Fe();break;case N:ie=Fe()/3;break;case O:ie=(ye-pe)/6048e5;break;case y:ie=(ye-pe)/864e5;break;case g:ie=ye/s;break;case m:ie=ye/a;break;case p:ie=ye/r;break;default:ie=ye}return J?ie:ce.a(ie)},Se.daysInMonth=function(){return this.endOf(I).$D},Se.$locale=function(){return z[this.$L]},Se.locale=function(me,G){if(!me)return this.$L;var J=this.clone(),ie=q(me,G,!0);return ie&&(J.$L=ie),J},Se.clone=function(){return ce.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 re.prototype=fe,[["$ms",c],["$s",p],["$m",m],["$H",g],["$W",y],["$M",I],["$y",_],["$D",k]].forEach(function(Ce){fe[Ce[1]]=function(Se){return this.$g(Se,Ce[0],Ce[1])}}),re.extend=function(Ce,Se){return Ce.$i||(Ce(Se,ge,re),Ce.$i=!0),re},re.locale=q,re.isDayjs=H,re.unix=function(Ce){return re(1e3*Ce)},re.en=z[S],re.Ls=z,re.p={},re})})($S);const Zu=$S.exports;var lR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"view-file"},[r("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return r("div",{key:s,staticClass:"file-info"},[r("div",{staticClass:"name"},[r("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),r("div",[r("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),r("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),r("div",{staticClass:"op"},[r("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),r("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),r("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[r("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},cR=[];const lX="",uR={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>Zu(e.uploadTime).valueOf()-Zu(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 r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);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 r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)},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,r=n.lastIndexOf(".");n.substring(r+1)=="zip"||n.substring(r+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}`)}}},qS={};var dR=fn(uR,lR,cR,!1,fR,"e0be2f1a",null,null);function fR(e){for(let n in qS)this[n]=qS[n]}const pR=function(){return dR.exports}();var hR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[r("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),r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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)},mR=[];const cX="";var th=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{th=e});const gR={components:{staffTree:ga},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return th.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return th.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return th.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let r=this.targetUser.join(",")||"";e&&e(),n(),Ze.tis.addMultiInstance({taskId:this.param.taskInstId,assignee:r,comment:this.reason}).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},eD={};var AR=fn(gR,hR,mR,!1,vR,"72ff885e",null,null);function vR(e){for(let n in eD)this[n]=eD[n]}const tD=function(){return AR.exports}();var bR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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 r("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[r("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[r("div",{staticClass:"option-c"},[r("span",[e._v(e._s(a.opinionName))]),r("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},_R=[];const uX="",dX="",yR={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(()=>{})}}},nD={};var xR=fn(yR,bR,_R,!1,wR,"a3cd7af2",null,null);function wR(e){for(let n in nD)this[n]=nD[n]}const G_=function(){return xR.exports}();var ER=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[r("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?r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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?r("div",{staticClass:"add-idea"},[r("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)},kR=[];const fX="";var nh=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{nh=e});const CR={components:{staffTree:ga,commIdea:G_},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 nh.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return nh.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return nh.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(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},iD={};var SR=fn(CR,ER,kR,!1,DR,"dd93bc60",null,null);function DR(e){for(let n in iD)this[n]=iD[n]}const rD=function(){return SR.exports}();var BR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"user-task"},[e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("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 r("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"?[r("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"?[r("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 r("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 r("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?[r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("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)?r("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):r("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 r("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)?[r("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,[r("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[r("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?r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return r("div",{key:a.type},[a.ids&&a.ids.length>0?r("div",[r("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"))]),r("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?r("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(),r("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?r("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 r("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?r("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?r("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):r("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)},IR=[];const pX="";var is=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{is=e});const OR={name:"userTask",components:{staffTree:ga},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:wp,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(r=>r.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==Vb.\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(r=>r.vars)&&(this.processNodeObj.vars=this.resultList.map(r=>r.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 r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u90E8\u95E8,r});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u4E3B\u4F53,r});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let r={};return r.id=n.id,r.leaf=!1,r.name=n.teamName,r.orgType=this.Enum.UserType.\u7FA4\u7EC4,r})}},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==Vb.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let r in this.userTaskListData){let a=this.userTaskListData[r],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(r=>{const a=this.userTaskListData[r.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(r.nodeInfoDTO.incomingConditionItemList.length!==0&&r.nodeInfoDTO.incomingConditionItemList.forEach(p=>{p.itemName&&(n.vars[p.itemName]=p.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"?is.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&is.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&&is.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&is.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 r in this.userTaskListData){let a=this.userTaskListData[r],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&&is.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(p=>{p.incomingConditionItemList.length!==0&&p.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&is.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"}}},aD={};var TR=fn(OR,BR,IR,!1,NR,null,null,null);function NR(e){for(let n in aD)this[n]=aD[n]}const J_=function(){return TR.exports}();var MR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"sign-container",style:e.setDynamicVars},[r("div",{staticClass:"content-area"},[r("div",{staticClass:"canvas-container"},[r("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),r("div",{staticClass:"history"},[r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?r("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?r("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?r("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),r("div",{staticClass:"actions-box"},[r("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),r("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),r("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},FR=[];const hX="",PR={upload:e=>new Promise((n,r)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},RR={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(),r=(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(r,a),this.currentPath.push({x:r,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),r=(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(r,a),this.ctx.stroke(),this.currentPath.push({x:r,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:r,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(r,a)):(this.ctx.lineTo(r,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 r=new FormData;r.append("file",e,n||`signature-${Date.now()}.png`);const a=await PR.upload(r);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=[]}},oD={};var LR=fn(RR,MR,FR,!1,jR,"8b12235a",null,null);function jR(e){for(let n in oD)this[n]=oD[n]}const QR=function(){return LR.exports}();var zR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[r("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?r("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),r("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?r("el-form-item",[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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?r("div",{staticClass:"add-idea"},[r("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?[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[r("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"?[r("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"}]}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("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 r("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 r("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?r("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"}]}}):r("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"}]}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("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"?[r("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"}]}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("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 r("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"),r("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"}},[r("div",{staticClass:"sign-container"},[r("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},HR=[];const mX="";var Tl=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{Tl=e});const VR={components:{staffTree:ga,userTask:J_,commIdea:G_,TopSign:QR},props:{param:Object},data(){return{commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:wp,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 r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Mu.\u90E8\u95E8,r});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Mu.\u4E3B\u4F53,r})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,r){if(Array.isArray(r)&&(this.param.attachment=r),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Tl.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Tl.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 p=this.$refs[c].$el?this.$refs[c]:this.$refs[c][0];p.getValue;let m=p.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=(p.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 Tl.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==_t.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==_t.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 r=this.userTaskListData[n],a=this.$refs[r].$el?this.$refs[r]:this.$refs[r][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 Tl.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(r=>{r.code==_t.success?(n&&n(),this.$emit("success")):this.$emit("fail",r.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Ze.tis.complete(e).then(n=>{n.code==_t.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){Tl.warning(e)}}},sD={};var UR=fn(VR,zR,HR,!1,YR,"a4be969e",null,null);function YR(e){for(let n in sD)this[n]=sD[n]}const K_=function(){return UR.exports}();var WR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?r("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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?r("div",{staticClass:"add-idea"},[r("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)},GR=[];const gX="";var lD=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{lD=e});const JR={components:{staffTree:ga,commIdea:G_},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return lD.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let r={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};r.assignees=[],r.pass=!1,Ze.tis.complete(r).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},cD={};var KR=fn(JR,WR,GR,!1,XR,"02cb58a9",null,null);function XR(e){for(let n in cD)this[n]=cD[n]}const uD=function(){return KR.exports}();var ZR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[r("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 r("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),r("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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)},$R=[];const AX="";var X_=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{X_=e});const qR={components:{staffTree:ga},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Ze.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==_t.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 X_.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return X_.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Ze.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},dD={};var e5=fn(qR,ZR,$R,!1,t5,"11b0e88d",null,null);function t5(e){for(let n in dD)this[n]=dD[n]}const fD=function(){return e5.exports}();var n5=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[r("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 r("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),r("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[r("div",[r("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),r("div",[r("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)},i5=[];const vX="";var pD=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{pD=e});const r5={components:{staffTree:ga},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 pD.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Ze.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},hD={};var a5=fn(r5,n5,i5,!1,o5,"3e4dbd02",null,null);function o5(e){for(let n in hD)this[n]=hD[n]}const s5=function(){return a5.exports}();var l5=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[r("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)},c5=[];const bX="";var mD=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{mD=e});const u5={components:{staffTree:ga},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 mD.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let r=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Ze.tis.createCCTask({processInstId:this.param.processInstId,participant:r,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==_t.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},gD={};var d5=fn(u5,l5,c5,!1,f5,"073b792a",null,null);function f5(e){for(let n in gD)this[n]=gD[n]}const AD=function(){return d5.exports}(),vD=Object.freeze(Object.defineProperty({__proto__:null,counterSign:tD,delegateTask:rD,complete:K_,cancel:uD,roolback:fD,withdrawTask:s5,ccTask:AD},Symbol.toStringTag,{value:"Module"})),bD="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",_D="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 p5=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return r("li",{key:s,staticClass:"file-item"},[e.isImage(a)?r("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[r("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:bD,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:_D,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:bD,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:_D,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[r("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?r("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(),r("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?r("li",{staticClass:"file-item"},[r("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[r("el-icon",{attrs:{color:"#1389ff",size:"35"}},[r("Plus")],1)],1)]):e._e(),e.showEmpty?r("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?r("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?r("section",{staticClass:"value-wrap"}):e._e(),r("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},h5=[];const _X="",Z_={upload:e=>new Promise((n,r)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},m5={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 r=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 p=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(p[p.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<r.length&&r.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),I=s.name.substring(y);g=O+"("+m+")"+I}else g=s.name+"("+m+")"}r.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const r=new FormData;r.append("file",e,n);const a=await Z_.upload(r);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("."),r=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(r)},isDw(e){const n=e.split("."),r=n[n.length-1];return["dwg","dwt"].includes(r)},isPdf(e){const n=e.split("."),r=n[n.length-1];return["pdf"].includes(r)},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("."),r=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(p){return p==r}),c=null;if(this.fileList.forEach((p,m)=>{this.isImage(p)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let p=`${this.fileList[e]}`,m=1;p.indexOf("https")!==-1||p.indexOf("http")!==-1?(m=p.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${p}`)):p.indexOf("http")===-1&&Z_.list([p]).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)):Z_.list([n]).then(r=>{this.downloadFile(r.data[0].url,r.data[0].url.slice(r.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},yD={};var g5=fn(m5,p5,h5,!1,A5,"628e6ebd",null,null);function A5(e){for(let n in yD)this[n]=yD[n]}const ih=function(){return g5.exports}();ih.install=e=>{e.component(ih.name,ih)};const xD=Symbol(),rh="el",v5="is-",rs=(e,n,r,a,s)=>{let c=`${e}-${n}`;return r&&(c+=`-${r}`),a&&(c+=`__${a}`),s&&(c+=`--${s}`),c},wD=Symbol("namespaceContextKey"),ED=e=>{const n=e||(x.getCurrentInstance()?x.inject(wD,x.ref(rh)):x.ref(rh));return x.computed(()=>x.unref(n)||rh)},Ur=(e,n)=>{const r=ED(n);return{namespace:r,b:(Q="")=>rs(r.value,e,Q,"",""),e:Q=>Q?rs(r.value,e,"",Q,""):"",m:Q=>Q?rs(r.value,e,"","",Q):"",be:(Q,M)=>Q&&M?rs(r.value,e,Q,M,""):"",em:(Q,M)=>Q&&M?rs(r.value,e,"",Q,M):"",bm:(Q,M)=>Q&&M?rs(r.value,e,Q,"",M):"",bem:(Q,M,T)=>Q&&M&&T?rs(r.value,e,Q,M,T):"",is:(Q,...M)=>{const T=M.length>=1?M[0]:!0;return Q&&T?`${v5}${Q}`:""},cssVar:Q=>{const M={};for(const T in Q)Q[T]&&(M[`--${r.value}-${T}`]=Q[T]);return M},cssVarName:Q=>`--${r.value}-${Q}`,cssVarBlock:Q=>{const M={};for(const T in Q)Q[T]&&(M[`--${r.value}-${e}-${T}`]=Q[T]);return M},cssVarBlockName:Q=>`--${r.value}-${e}-${Q}`}};/**
|
|
18
|
+
See more tips at https://vuejs.org/guide/deployment.html`)},0),nn.util.warn;const oX="";var nR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("div",{staticClass:"user-list"},[e.processNodeObj&&e.processNodeObj.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?[e.noPostOption?r("span",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):e.userList.length>=1?r("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?r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")]):e._e()]:[e.userList.length>0?r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.userList.map(function(a){return a.name}).join("\uFF1B")))]):e._e(),r("span",{staticClass:"staff-tree-btn",on:{click:function(a){e.disable||(e.visible=!0)}}},[e._v("\u9009\u62E9")])]],2),r("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)},iR=[];const sX="";function fn(e,n,r,a,s,c,p,m){var g=typeof e=="function"?e.options:e;n&&(g.render=n,g.staticRenderFns=r,g._compiled=!0),a&&(g.functional=!0),c&&(g._scopeId="data-v-"+c);var y;if(p?(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(p)},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(_,k){return y.call(k),O(_,k)}}else{var I=g.beforeCreate;g.beforeCreate=I?[].concat(I,y):[y]}return{exports:e,options:g}}var KS=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{KS=e});const rR={components:{departPerson:uM.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(r=>{n.postIds.push(r.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(r=>{let a=[],s=[],c=!1;if(r.data.map(p=>{p.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],r.data[0].posts.map(p=>{this.positionArray.push({...p,projectPost:!(this.personEntity._businessDeptId||this.processNodeObj.taskNode&&this.processNodeObj.taskNode[0].vars._businessDeptId),id:p.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(r=>r.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==_t.success){let n=e.data.map(r=>(r.children=null,r.label=r.name,r.id=r.id,r.deptName=r.deptName,r.alisName=r.alisName,r));this.treeSearchOptions=n,await this.$nextTick(),this.$refs.deptTree.forest.normalizedOptions.forEach(r=>{r.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,KS.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:r,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==_t.success){let c=s.data.map(p=>(p.children=null,p.label=p.name,p.id=p.id,p));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==Mu.\u4E3B\u4F53&&(c=n.id,s=""),n.orgType==Mu.\u7FA4\u7EC4){Ze.org.findTeamMember("",s).then(p=>{let m=p.data.map(g=>(g.label=g.name,g.id=g.id,g));n.children=m,r()});return}Ze.org.list("",s,c).then(p=>{if(p.code==_t.success){let m=p.data.map(g=>(g.leaf||(g.children=null),g.label=g.name,g.id=g.id,g));n.children=m,r()}})}}}},XS={};var aR=fn(rR,nR,iR,!1,oR,"0f576c64",null,null);function oR(e){for(let n in XS)this[n]=XS[n]}const ga=function(){return aR.exports}();var Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ZS(e){var n=e.default;if(typeof n=="function"){var r=function(){return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var $S={exports:{}};(function(e,n){(function(r,a){e.exports=a()})(Ol,function(){var r=1e3,a=6e4,s=36e5,c="millisecond",p="second",m="minute",g="hour",y="day",O="week",I="month",N="quarter",_="year",k="date",Q="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},w={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,I),ie=me-J<0,Ae=Se.clone().add(G+(ie?-1:1),I);return+(-(G+(me-J)/(ie?J-Ae:Ae-J))||0)},a:function(Ce){return Ce<0?Math.ceil(Ce)||0:Math.floor(Ce)},p:function(Ce){return{M:I,y:_,w:O,d:y,D:k,h:g,m,s:p,ms:c,Q:N}[Ce]||String(Ce||"").toLowerCase().replace(/s$/,"")},u:function(Ce){return Ce===void 0}},S="en",z={};z[S]=F;var R="$isDayjsObject",H=function(Ce){return Ce instanceof ge||!(!Ce||!Ce[R])},q=function Ce(Se,me,G){var J;if(!Se)return S;if(typeof Se=="string"){var ie=Se.toLowerCase();z[ie]&&(J=ie),me&&(z[ie]=me,J=ie);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&&(S=J),J||!G&&S},re=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)},ce=w;ce.l=q,ce.i=H,ce.w=function(Ce,Se){return re(Ce,{locale:Se.$L,utc:Se.$u,x:Se.$x,$offset:Se.$offset})};var ge=function(){function Ce(me){this.$L=q(me.locale,null,!0),this.parse(me),this.$x=this.$x||me.x||{},this[R]=!0}var Se=Ce.prototype;return Se.parse=function(me){this.$d=function(G){var J=G.date,ie=G.utc;if(J===null)return new Date(NaN);if(ce.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 ie?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 ce},Se.isValid=function(){return this.$d.toString()!==Q},Se.isSame=function(me,G){var J=re(me);return this.startOf(G)<=J&&J<=this.endOf(G)},Se.isAfter=function(me,G){return re(me)<this.startOf(G)},Se.isBefore=function(me,G){return this.endOf(G)<re(me)},Se.$g=function(me,G,J){return ce.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,ie=!!ce.u(G)||G,Ae=ce.p(me),Oe=function(C,X){var te=ce.w(J.$u?Date.UTC(J.$y,X,C):new Date(J.$y,X,C),J);return ie?te:te.endOf(y)},ue=function(C,X){return ce.w(J.toDate()[C].apply(J.toDate("s"),(ie?[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 ie?Oe(1,0):Oe(31,11);case I:return ie?Oe(1,ye):Oe(0,ye+1);case O:var P=this.$locale().weekStart||0,E=(pe<P?pe+7:pe)-P;return Oe(ie?Fe-E:Fe+(6-E),ye);case y:case k:return ue(K+"Hours",0);case g:return ue(K+"Minutes",1);case m:return ue(K+"Seconds",2);case p: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,ie=ce.p(me),Ae="set"+(this.$u?"UTC":""),Oe=(J={},J[y]=Ae+"Date",J[k]=Ae+"Date",J[I]=Ae+"Month",J[_]=Ae+"FullYear",J[g]=Ae+"Hours",J[m]=Ae+"Minutes",J[p]=Ae+"Seconds",J[c]=Ae+"Milliseconds",J)[ie],ue=ie===y?this.$D+(G-this.$W):G;if(ie===I||ie===_){var pe=this.clone().set(k,1);pe.$d[Oe](ue),pe.init(),this.$d=pe.set(k,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[ce.p(me)]()},Se.add=function(me,G){var J,ie=this;me=Number(me);var Ae=ce.p(G),Oe=function(ye){var Fe=re(ie);return ce.w(Fe.date(Fe.date()+Math.round(ye*me)),ie)};if(Ae===I)return this.set(I,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[p]=r,J)[Ae]||1,pe=this.$d.getTime()+me*ue;return ce.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||Q;var ie=me||"YYYY-MM-DDTHH:mm:ssZ",Ae=ce.z(this),Oe=this.$H,ue=this.$m,pe=this.$M,ye=J.weekdays,Fe=J.months,K=J.meridiem,P=function(X,te,de,ke){return X&&(X[te]||X(G,ie))||de[te].slice(0,ke)},E=function(X){return ce.s(Oe%12||12,X,"0")},C=K||function(X,te,de){var ke=X<12?"AM":"PM";return de?ke.toLowerCase():ke};return ie.replace(T,function(X,te){return te||function(de){switch(de){case"YY":return String(G.$y).slice(-2);case"YYYY":return ce.s(G.$y,4,"0");case"M":return pe+1;case"MM":return ce.s(pe+1,2,"0");case"MMM":return P(J.monthsShort,pe,Fe,3);case"MMMM":return P(Fe,pe);case"D":return G.$D;case"DD":return ce.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return P(J.weekdaysMin,G.$W,ye,2);case"ddd":return P(J.weekdaysShort,G.$W,ye,3);case"dddd":return ye[G.$W];case"H":return String(Oe);case"HH":return ce.s(Oe,2,"0");case"h":return E(1);case"hh":return E(2);case"a":return C(Oe,ue,!0);case"A":return C(Oe,ue,!1);case"m":return String(ue);case"mm":return ce.s(ue,2,"0");case"s":return String(G.$s);case"ss":return ce.s(G.$s,2,"0");case"SSS":return ce.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 ie,Ae=this,Oe=ce.p(G),ue=re(me),pe=(ue.utcOffset()-this.utcOffset())*a,ye=this-ue,Fe=function(){return ce.m(Ae,ue)};switch(Oe){case _:ie=Fe()/12;break;case I:ie=Fe();break;case N:ie=Fe()/3;break;case O:ie=(ye-pe)/6048e5;break;case y:ie=(ye-pe)/864e5;break;case g:ie=ye/s;break;case m:ie=ye/a;break;case p:ie=ye/r;break;default:ie=ye}return J?ie:ce.a(ie)},Se.daysInMonth=function(){return this.endOf(I).$D},Se.$locale=function(){return z[this.$L]},Se.locale=function(me,G){if(!me)return this.$L;var J=this.clone(),ie=q(me,G,!0);return ie&&(J.$L=ie),J},Se.clone=function(){return ce.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 re.prototype=fe,[["$ms",c],["$s",p],["$m",m],["$H",g],["$W",y],["$M",I],["$y",_],["$D",k]].forEach(function(Ce){fe[Ce[1]]=function(Se){return this.$g(Se,Ce[0],Ce[1])}}),re.extend=function(Ce,Se){return Ce.$i||(Ce(Se,ge,re),Ce.$i=!0),re},re.locale=q,re.isDayjs=H,re.unix=function(Ce){return re(1e3*Ce)},re.en=z[S],re.Ls=z,re.p={},re})})($S);const Zu=$S.exports;var lR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"view-file"},[r("p",{staticClass:"lable"},[e._v("\u67E5\u770B\u9644\u4EF6")]),e._l(e.sortData,function(a,s){return r("div",{key:s,staticClass:"file-info"},[r("div",{staticClass:"name"},[r("el-image",{attrs:{src:e.getFileUrl(a),fit:"fill"}}),r("div",[r("span",[e._v(" "+e._s(e.fileNameLastof(a.name)))]),r("b",{staticClass:"time"},[e._v(e._s(a.uploadTime)+" | "+e._s(e.formatSize(a.size)))])])],1),r("div",{staticClass:"op"},[r("div",{on:{click:function(c){return e.handlePictureCardPreview(a)}}},[e._v(" \u9884\u89C8 ")]),r("div",{on:{click:function(c){return e.handleDownload(a)}}},[e._v(" \u4E0B\u8F7D ")])])])}),r("el-dialog",{attrs:{"append-to-body":""},model:{value:e.dialogVisible,callback:function(a){e.dialogVisible=a},expression:"dialogVisible"}},[r("el-image",{staticStyle:{width:"100%"},attrs:{src:e.dialogImageUrl,alt:"Preview Image"}})],1)],2)},cR=[];const lX="",uR={props:{dataList:{}},data(){return{dialogImageUrl:"",dialogVisible:!1}},computed:{sortData(){return this.dataList.sort((e,n)=>Zu(e.uploadTime).valueOf()-Zu(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 r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);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 r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)},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,r=n.lastIndexOf(".");n.substring(r+1)=="zip"||n.substring(r+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}`)}}},qS={};var dR=fn(uR,lR,cR,!1,fR,"e0be2f1a",null,null);function fR(e){for(let n in qS)this[n]=qS[n]}const pR=function(){return dR.exports}();var hR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u52A0\u7B7E\u4EBA\u5458"}]}},[r("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),r("el-form-item",{attrs:{label:"\u52A0\u7B7E\u539F\u56E0",rules:[{required:!0,message:"\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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)},mR=[];const cX="";var th=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{th=e});const gR={components:{staffTree:ga},props:{param:Object},data(){return{reason:"",targetUser:[]}},methods:{getRes(){return{targetUser:this.targetUser}},confirm(e,n){if(!this.targetUser||this.targetUser.length==0)return th.warning("\u8BF7\u9009\u62E9\u5BA1\u6838\u4EBA"),!1;if(!this.reason)return th.warning("\u8BF7\u586B\u5199\u52A0\u7B7E\u539F\u56E0"),!1;if(this.reason.length>200)return th.warning("\u52A0\u7B7E\u539F\u56E0\u4E0D\u80FD\u8D85\u8FC7200\u4E2A\u5B57"),!1;let r=this.targetUser.join(",")||"";e&&e(),n(),Ze.tis.addMultiInstance({taskId:this.param.taskInstId,assignee:r,comment:this.reason}).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},eD={};var AR=fn(gR,hR,mR,!1,vR,"72ff885e",null,null);function vR(e){for(let n in eD)this[n]=eD[n]}const tD=function(){return AR.exports}();var bR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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 r("el-option",{key:a.opinionId,attrs:{label:a.opinionName,value:a.opinionName}},[r("el-tooltip",{attrs:{effect:"dark","visible-arrow":!0,"popper-class":"pr-option-tooltip",content:a.opinionName,placement:"right"}},[r("div",{staticClass:"option-c"},[r("span",[e._v(e._s(a.opinionName))]),r("i",{staticClass:"el-icon-delete",staticStyle:{float:"right"},on:{click:function(c){return c.stopPropagation(),e.del(a)}}})])])],1)}),1)},_R=[];const uX="",dX="",yR={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(()=>{})}}},nD={};var xR=fn(yR,bR,_R,!1,wR,"a3cd7af2",null,null);function wR(e){for(let n in nD)this[n]=nD[n]}const G_=function(){return xR.exports}();var ER=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u8F6C\u529E\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"}]}},[r("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?r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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?r("div",{staticClass:"add-idea"},[r("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)},kR=[];const fX="";var nh=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{nh=e});const CR={components:{staffTree:ga,commIdea:G_},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 nh.warning("\u8BF7\u9009\u62E9\u8F6C\u529E\u4EBA"),!1;if(!this.commentMsg)return nh.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return nh.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(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},iD={};var SR=fn(CR,ER,kR,!1,DR,"dd93bc60",null,null);function DR(e){for(let n in iD)this[n]=iD[n]}const rD=function(){return SR.exports}();var BR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"user-task"},[e.processNodeObj.nodeType=="exclusiveGateway"&&e.processNodeObj.branches&&e.processNodeObj.branches.length>=1?[e.processNodeObj.branches.length>1?r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("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 r("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"?[r("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"?[r("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 r("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 r("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?[r("el-form-item",{attrs:{label:e.processNodeObj.name||"\u4E0B\u4E00\u8282\u70B9"}},[r("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)?r("el-checkbox",{key:"checkbox"+(a.nodeInfoDTO?a.nodeInfoDTO.id:a.id),attrs:{label:a.nodeInfoDTO?a.nodeInfoDTO.name:a.name,checked:!0,disabled:""}}):r("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 r("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)?[r("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,[r("div",{staticStyle:{"font-size":"16px"}},[e._v(e._s(e.lv1label||"\u8282\u70B9\u540D\u79F0"))])]}}])},[r("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?r("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.peopleLabel||"\u6240\u5C5E\u8303\u56F4"}},e._l(e.processNodeObj.routeTxt,function(a,s){return r("div",{key:a.type},[a.ids&&a.ids.length>0?r("div",[r("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"))]),r("span",{staticClass:"include include-name"},[e._v(e._s(a.name))]),s!==e.processNodeObj.routeTxt.length-1?r("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(),r("el-form-item",{attrs:{label:e.label||"\u5904\u7406\u4EBA",rules:e.rules||{}}},[e.processNodeObj.userList&&e.processNodeObj.userList.length>=2?r("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 r("el-option",{key:a.userId,attrs:{label:a.realName,value:a.userId}})}),1):e.processNodeObj.userList&&e.processNodeObj.userList.length==1?r("div",{staticClass:"setVal"},[e._v(" "+e._s(e.processNodeObj.userList[0].realName)+" ")]):e.processNodeObj.setPersonnel&&e.processNodeObj.assignees?r("div",{staticClass:"setVal"},[e._v(" "+e._s((e.processNodeObj.assignees||[]).map(function(a){return a.name||a.realName}).join(", "))+" ")]):r("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)},IR=[];const pX="";var is=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{is=e});const OR={name:"userTask",components:{staffTree:ga},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:wp,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(r=>r.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==Vb.\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(r=>r.vars)&&(this.processNodeObj.vars=this.resultList.map(r=>r.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 r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u90E8\u95E8,r});if(e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D")return e.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=this.Enum.UserType.\u4E3B\u4F53,r});if(e.humanPerformerName=="\u56FA\u5B9A\u7FA4\u7EC4")return e.routeTxt.teamList.map(n=>{let r={};return r.id=n.id,r.leaf=!1,r.name=n.teamName,r.orgType=this.Enum.UserType.\u7FA4\u7EC4,r})}},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==Vb.\u7528\u6237\u8282\u70B9)if(this.processNodeObj.nodeType=="exclusiveGateway")for(let r in this.userTaskListData){let a=this.userTaskListData[r],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(r=>{const a=this.userTaskListData[r.nodeInfoDTO.id];let s=this.$refs[a];if(s=Array.isArray(s)?s[0]:s,s){let c=s.getValue();c?(r.nodeInfoDTO.incomingConditionItemList.length!==0&&r.nodeInfoDTO.incomingConditionItemList.forEach(p=>{p.itemName&&(n.vars[p.itemName]=p.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"?is.warning("\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9"):this.processNodeObj.nodeInfoDTO.name&&is.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&&is.warning(`\u8BF7\u9009\u62E9 ${this.processNodeObj.nodeInfoDTO.name} \u5904\u7406\u4EBA`):this.processNodeObj.name&&is.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 r in this.userTaskListData){let a=this.userTaskListData[r],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&&is.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(p=>{p.incomingConditionItemList.length!==0&&p.incomingConditionItemList.forEach(m=>{m.itemName&&(n.vars[m.itemName]=m.compareValue)})});else return this.processNodeObj.name&&is.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"}}},aD={};var TR=fn(OR,BR,IR,!1,NR,null,null,null);function NR(e){for(let n in aD)this[n]=aD[n]}const J_=function(){return TR.exports}();var MR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"sign-container",style:e.setDynamicVars},[r("div",{staticClass:"content-area"},[r("div",{staticClass:"canvas-container"},[r("canvas",{ref:"canvasRef",attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{mousemove:e.draw,mousedown:e.startDrawing,mouseup:e.finishDrawing}})]),r("div",{staticClass:"history"},[r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(0)}}},[e.historyPics[0]?r("el-image",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(1)}}},[e.historyPics[1]?r("el-image",{attrs:{src:e.historyPics[1]?e.historyPics[1].url:"",fit:"scale-down"}}):e._e()],1),r("div",{staticClass:"img-grid",on:{click:function(a){return e.useHistory(2)}}},[e.historyPics[2]?r("el-image",{attrs:{src:e.historyPics[2]?e.historyPics[2].url:"",fit:"scale-down"}}):e._e()],1)])]),r("div",{staticClass:"actions-box"},[r("button",{staticClass:"commn-btn",on:{click:e.clearCanvas}},[e._v("\u6E05\u9664")]),r("button",{staticClass:"commn-btn",on:{click:e.saveSignature}},[e._v("\u4FDD\u5B58")]),r("button",{staticClass:"commn-btn",on:{click:e.undo}},[e._v("\u64A4\u9500")])])])},FR=[];const hX="",PR={upload:e=>new Promise((n,r)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},RR={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(),r=(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(r,a),this.currentPath.push({x:r,y:a})},draw(e){if(!!this.isDrawing&&this.currentPath.length>0){const n=this.$refs.canvasRef.getBoundingClientRect(),r=(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(r,a),this.ctx.stroke(),this.currentPath.push({x:r,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:r,y:a}=e[n];n===0?(this.ctx.beginPath(),this.ctx.moveTo(r,a)):(this.ctx.lineTo(r,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 r=new FormData;r.append("file",e,n||`signature-${Date.now()}.png`);const a=await PR.upload(r);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=[]}},oD={};var LR=fn(RR,MR,FR,!1,jR,"8b12235a",null,null);function jR(e){for(let n in oD)this[n]=oD[n]}const QR=function(){return LR.exports}();var zR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?[r("el-form-item",{attrs:{label:"\u5FEB\u6377\u56DE\u590D"}},[r("el-radio-group",{model:{value:e.commentMsg,callback:function(a){e.commentMsg=a},expression:"commentMsg"}},[r("el-radio",{attrs:{label:"\u540C\u610F"}},[e._v("\u540C\u610F")]),e.param.showAsPlanned?r("el-radio",{attrs:{label:"\u5982\u62DF"}},[e._v("\u5982\u62DF")]):e._e(),r("el-radio",{attrs:{label:"\u5DF2\u9605"}},[e._v("\u5DF2\u9605")])],1)],1),e.param.showCommIdea?r("el-form-item",[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:e.param.commentMsgRequired,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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?r("div",{staticClass:"add-idea"},[r("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?[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9",size:"normal"}},[r("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"?[r("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"}]}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("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 r("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 r("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?r("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"}]}}):r("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"}]}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("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"?[r("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"}]}})]:[r("el-form-item",{attrs:{label:"\u4E0B\u4E00\u8282\u70B9\u540D\u79F0"}},[r("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 r("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"),r("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"}},[r("div",{staticClass:"sign-container"},[r("TopSign",{on:{saveSignature:e.handleSignature,validateFail:e.noticeFail}})],1)])],2)},HR=[];const mX="";var Tl=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{Tl=e});const VR={components:{staffTree:ga,userTask:J_,commIdea:G_,TopSign:QR},props:{param:Object},data(){return{commentMsg:"",targetUser:[],userTaskListData:{},outGatewayUserTaskModel:this.param.outGatewayUserTaskModel,Enum:wp,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 r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Mu.\u90E8\u95E8,r});if(e.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D")return e.userTaskModelDTO.routeTxt.companyIds.map(n=>{let r={};return r.id=n.rangeId,r.leaf=!1,r.name=n.name,r.orgType=Mu.\u4E3B\u4F53,r})}},getRes(){return{targetUser:this.targetUser}},confirm(e,n,r){if(Array.isArray(r)&&(this.param.attachment=r),this.param,this.userTaskListData,!this.commentMsg&&this.param.commentMsgRequired)return Tl.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;if(this.commentMsg.length>200)return Tl.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 p=this.$refs[c].$el?this.$refs[c]:this.$refs[c][0];p.getValue;let m=p.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=(p.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 Tl.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==_t.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==_t.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 r=this.userTaskListData[n],a=this.$refs[r].$el?this.$refs[r]:this.$refs[r][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 Tl.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(r=>{r.code==_t.success?(n&&n(),this.$emit("success")):this.$emit("fail",r.msg)}).catch(()=>{this.$emit("fail","")})}).catch(()=>{this.$emit("fail","")}):Ze.tis.complete(e).then(n=>{n.code==_t.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){Tl.warning(e)}}},sD={};var UR=fn(VR,zR,HR,!1,YR,"a4be969e",null,null);function YR(e){for(let n in sD)this[n]=sD[n]}const K_=function(){return UR.exports}();var WR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[e.param.showCommIdea?r("el-form-item",{attrs:{label:"\u5E38\u7528\u610F\u89C1"}},[r("commIdea",{ref:"commIdea",on:{change:function(a){return e.commentMsg=a}}})],1):e._e(),r("el-form-item",{attrs:{label:"\u5BA1\u6279\u610F\u89C1",rules:[{required:!0,message:"\u5BA1\u6279\u610F\u89C1\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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?r("div",{staticClass:"add-idea"},[r("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)},GR=[];const gX="";var lD=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{lD=e});const JR={components:{staffTree:ga,commIdea:G_},props:{param:Object},data(){return{commentMsg:""}},methods:{getRes(){return{commentMsg:this.commentMsg}},confirm(e,n){if(!this.commentMsg)return lD.warning("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1"),!1;e&&e(),n();let r={taskId:this.param.taskInstId,processInstanceId:this.param.processInstId,commentMsg:this.commentMsg||" ",comment:this.commentMsg||" ",businessData:this.param.businessData};r.assignees=[],r.pass=!1,Ze.tis.complete(r).then(a=>{a.code==_t.success?this.$emit("success"):this.$emit("fail",a.msg)})}}},cD={};var KR=fn(JR,WR,GR,!1,XR,"02cb58a9",null,null);function XR(e){for(let n in cD)this[n]=cD[n]}const uD=function(){return KR.exports}();var ZR=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9000\u56DE\u8282\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"}]}},[r("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 r("el-option",{key:a.nodeId,attrs:{label:a.nodeName,value:a.nodeId}})}),1)],1),r("el-form-item",{attrs:{label:"\u9000\u56DE\u539F\u56E0",rules:[{required:!0,message:"\u9000\u56DE\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"}]}},[r("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)},$R=[];const AX="";var X_=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{X_=e});const qR={components:{staffTree:ga},props:{param:Object},data(){return{commentMsg:"",nodeId:"",nodesData:[]}},mounted(){this.getReturnableNodes()},methods:{getReturnableNodes(){Ze.repository.backNodes({taskId:this.param.taskInstId}).then(e=>{e.code==_t.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 X_.warning("\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9"),!1;if(!this.commentMsg)return X_.warning("\u8BF7\u8F93\u5165\u9000\u56DE\u539F\u56E0"),!1;e&&e(),n(),Ze.tis.rollback(this.param.taskInstId,this.nodeId,this.commentMsg).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},dD={};var e5=fn(qR,ZR,$R,!1,t5,"11b0e88d",null,null);function t5(e){for(let n in dD)this[n]=dD[n]}const fD=function(){return e5.exports}();var n5=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"}]}},[r("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 r("el-radio",{key:a.type,attrs:{label:a.type}},[e._v(e._s(a.label))])}),1)],1),r("el-form-item",{attrs:{label:"\u64CD\u4F5C\u8BF4\u660E"}},[r("div",[r("span",{staticStyle:{color:"red","font-weight":"600"}},[e._v("\u64A4\u9500")]),e._v("\uFF1A\u64A4\u9500\u7EC8\u6B62\u6B64\u6D41\u7A0B ")]),r("div",[r("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)},i5=[];const vX="";var pD=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{pD=e});const r5={components:{staffTree:ga},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 pD.warning("\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B"),!1;e&&e(),n(),Ze.tis.withdrawTask({taskId:this.param.taskInstId,withdrawType:this.type}).then(r=>{r.code==_t.success?this.$emit("success"):this.$emit("fail",r.msg)})}}},hD={};var a5=fn(r5,n5,i5,!1,o5,"3e4dbd02",null,null);function o5(e){for(let n in hD)this[n]=hD[n]}const s5=function(){return a5.exports}();var l5=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("el-form",{attrs:{"label-width":"120px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u6284\u9001\u4EBA\u5458",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458"}]}},[r("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)},c5=[];const bX="";var mD=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{mD=e});const u5={components:{staffTree:ga},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 mD.warning("\u8BF7\u9009\u62E9\u6284\u9001\u4EBA"),!1;let r=this.targetUser.join(" ")||"";e&&e({userList:this.$refs.staffTree.userList}),n(),Ze.tis.createCCTask({processInstId:this.param.processInstId,participant:r,taskId:this.param.taskInstId,title:""}).then(a=>{a.code==_t.success?this.$emit("success",!1):this.$emit("fail",a.msg)})}}},gD={};var d5=fn(u5,l5,c5,!1,f5,"073b792a",null,null);function f5(e){for(let n in gD)this[n]=gD[n]}const AD=function(){return d5.exports}(),vD=Object.freeze(Object.defineProperty({__proto__:null,counterSign:tD,delegateTask:rD,complete:K_,cancel:uD,roolback:fD,withdrawTask:s5,ccTask:AD},Symbol.toStringTag,{value:"Module"})),bD="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",_D="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 p5=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("ul",{staticClass:"file-wrap"},[e._l(e.fileList,function(a,s){return r("li",{key:s,staticClass:"file-item"},[e.isImage(a)?r("section",{class:[e.isText?"TextWrapper":"image-wrapper"]},[r("el-image",{ref:"images",refInFor:!0,attrs:{src:a,"preview-src-list":e.previewSrcList}}),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])],1):e.isDw(a)?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:bD,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:_D,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):a?r("section",{staticClass:"image-wrapper"},[e.isPdf(a)?r("div",{staticClass:"el-image"},[r("img",{staticClass:"el-image__inner",attrs:{src:bD,alt:""}})]):r("div",{staticClass:"el-image el-attach"},[r("img",{staticClass:"el-image__inner",attrs:{src:_D,alt:""}})]),r("div",{staticClass:"action-area"},[r("span",{staticClass:"action-preview",on:{click:function(c){return e.onDownload(s)}}},[r("i",{staticClass:"el-icon-download",attrs:{title:"\u4E0B\u8F7D"}})]),r("span",{staticClass:"action-preview",on:{click:function(c){return e.onPreview(s)}}},[r("i",{staticClass:"el-icon-zoom-in",attrs:{title:"\u9884\u89C8"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-upload",on:{click:function(c){return e.selectFile(s)}}},[r("i",{staticClass:"el-icon-upload2",attrs:{title:"\u4E0A\u4F20"}})]),e.isDisabled?e._e():r("span",{staticClass:"action-delete",on:{click:function(c){return e.onDelete(s)}}},[r("i",{staticClass:"el-icon-delete",attrs:{title:"\u5220\u9664"}})])])]):e._e(),!e.showFile&&e.showFileName?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[r("div",{staticClass:"file_name"},[e._v(" "+e._s(a.slice(a.lastIndexOf("&")+1))+" ")])]):e._e(),e.showFile?r("div",{attrs:{title:a.slice(a.lastIndexOf("&")+1)}},[e._t("filename",function(){return[e.fullFileObject&&e.fullFileList[s].fileSize?r("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(),r("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?r("li",{staticClass:"file-item"},[r("div",{staticClass:"image-wrapper pointer",on:{click:function(a){return e.selectFile()}}},[r("el-icon",{attrs:{color:"#1389ff",size:"35"}},[r("Plus")],1)],1)]):e._e(),e.showEmpty?r("li",{staticClass:"empty-wrap"},[e._v("\u6682\u65E0\u6570\u636E")]):e._e()],2),e.remark!==""?r("div",{staticStyle:{color:"gray"}},[e._v(e._s(e.remark))]):e._e(),e.value?r("section",{staticClass:"value-wrap"}):e._e(),r("input",{ref:"file",staticClass:"file-input",attrs:{accept:e.acceptType,type:"file",multiple:e.multiple},on:{change:e.onUploadChange}})])},h5=[];const _X="",Z_={upload:e=>new Promise((n,r)=>{Ze.getAjaxObj().post("/file/upload",e).then(a=>{n(a)})})},m5={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 r=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 p=s.name.split(".");if(this.acceptType!=""&&this.acceptType.indexOf(p[p.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<r.length&&r.includes(s.name);){const y=s.name.lastIndexOf(".");if(m=m+1,y>-1){const O=s.name.substring(0,y),I=s.name.substring(y);g=O+"("+m+")"+I}else g=s.name+"("+m+")"}r.push(g),this.doUpload(s,g)}},coputedFullFileList(e){this.$emit("input",e),this.$emit("change",e)},async doUpload(e,n){this.loading=!0;const r=new FormData;r.append("file",e,n);const a=await Z_.upload(r);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("."),r=n[n.length-1];return["png","jpg","jpeg","gif","bmp"].includes(r)},isDw(e){const n=e.split("."),r=n[n.length-1];return["dwg","dwt"].includes(r)},isPdf(e){const n=e.split("."),r=n[n.length-1];return["pdf"].includes(r)},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("."),r=n[n.length-1],s=["png","jpg","jpeg","gif"].some(function(p){return p==r}),c=null;if(this.fileList.forEach((p,m)=>{this.isImage(p)&&m<=e&&(c==null?c=0:c=c+1)}),s)this.$refs.images[c].clickHandler();else{let p=`${this.fileList[e]}`,m=1;p.indexOf("https")!==-1||p.indexOf("http")!==-1?(m=p.indexOf("https")!==-1?1:0,window.open(`https://wdyl.ddzg.cn:8089/?ssl=${m}&furl=${p}`)):p.indexOf("http")===-1&&Z_.list([p]).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)):Z_.list([n]).then(r=>{this.downloadFile(r.data[0].url,r.data[0].url.slice(r.data[0].url.lastIndexOf("&")+1))})},downloadFile:(e,n)=>{var r=document.createElement("a");r.download=n,r.style.display="none";var a=new Blob([e]);r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},yD={};var g5=fn(m5,p5,h5,!1,A5,"628e6ebd",null,null);function A5(e){for(let n in yD)this[n]=yD[n]}const ih=function(){return g5.exports}();ih.install=e=>{e.component(ih.name,ih)};const xD=Symbol(),rh="el",v5="is-",rs=(e,n,r,a,s)=>{let c=`${e}-${n}`;return r&&(c+=`-${r}`),a&&(c+=`__${a}`),s&&(c+=`--${s}`),c},wD=Symbol("namespaceContextKey"),ED=e=>{const n=e||(x.getCurrentInstance()?x.inject(wD,x.ref(rh)):x.ref(rh));return x.computed(()=>x.unref(n)||rh)},Ur=(e,n)=>{const r=ED(n);return{namespace:r,b:(Q="")=>rs(r.value,e,Q,"",""),e:Q=>Q?rs(r.value,e,"",Q,""):"",m:Q=>Q?rs(r.value,e,"","",Q):"",be:(Q,M)=>Q&&M?rs(r.value,e,Q,M,""):"",em:(Q,M)=>Q&&M?rs(r.value,e,"",Q,M):"",bm:(Q,M)=>Q&&M?rs(r.value,e,Q,"",M):"",bem:(Q,M,T)=>Q&&M&&T?rs(r.value,e,Q,M,T):"",is:(Q,...M)=>{const T=M.length>=1?M[0]:!0;return Q&&T?`${v5}${Q}`:""},cssVar:Q=>{const M={};for(const T in Q)Q[T]&&(M[`--${r.value}-${T}`]=Q[T]);return M},cssVarName:Q=>`--${r.value}-${Q}`,cssVarBlock:Q=>{const M={};for(const T in Q)Q[T]&&(M[`--${r.value}-${e}-${T}`]=Q[T]);return M},cssVarBlockName:Q=>`--${r.value}-${e}-${Q}`}};/**
|
|
19
19
|
* @vue/shared v3.5.18
|
|
20
20
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
21
|
* @license MIT
|
|
@@ -27,7 +27,7 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0),nn.util.warn;cons
|
|
|
27
27
|
`),this},this.appendIndent=function(){return n&&e.write(r.join(" ")),this},this.indent=function(){return r.push(""),this},this.unindent=function(){return r.pop(),this}}function aH(e){e=Je({format:!1,preamble:!0},e||{});function n(r,a){var s=a||new iH,c=new rH(s,e.format);e.preamble&&c.append(V7);var p=new Vt,m=r.$model;if(p.getNamespaces().mapDefaultPrefixes(oH(m)),p.build(r).serializeTo(c),!a)return s.value}return{toXML:n}}function oH(e){const n=e.config&&e.config.nsMap||{},r={};for(const a in ix)r[a]=ix[a];for(const a in n){const s=n[a];r[s]=a}for(const a of e.getPackages())r[a.prefix]=a.uri;return r}function Yh(e,n){sr.call(this,e,n)}Yh.prototype=Object.create(sr.prototype),Yh.prototype.fromXML=function(e,n,r){Dr(n)||(r=n,n="bpmn:Definitions");var a=new sx(Je({model:this,lax:!0},r)),s=a.handler(n);return a.fromXML(e,s)},Yh.prototype.toXML=function(e,n){var r=new aH(n);return new Promise(function(a,s){try{var c=r.toXML(e);return a({xml:c})}catch(p){return s(p)}})};var sH="BPMN20",lH="http://www.omg.org/spec/BPMN/20100524/MODEL",cH="bpmn",uH=[],dH=[{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"}]}],fH=[{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"}]}],pH={tagAlias:"lowerCase",typePrefix:"t"},hH={name:sH,uri:lH,prefix:cH,associations:uH,types:dH,enumerations:fH,xml:pH},mH="BPMNDI",gH="http://www.omg.org/spec/BPMN/20100524/DI",AH="bpmndi",vH=[{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"]}],bH=[{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"}]}],_H=[],yH={name:mH,uri:gH,prefix:AH,types:vH,enumerations:bH,associations:_H},xH="DC",wH="http://www.omg.org/spec/DD/20100524/DC",EH="dc",kH=[{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}]}],CH=[],SH={name:xH,uri:wH,prefix:EH,types:kH,associations:CH},DH="DI",BH="http://www.omg.org/spec/DD/20100524/DI",IH="di",OH=[{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"}]}],TH=[],NH={tagAlias:"lowerCase"},MH={name:DH,uri:BH,prefix:IH,types:OH,associations:TH,xml:NH},FH="bpmn.io colors for BPMN",PH="http://bpmn.io/schema/bpmn/biocolor/1.0",RH="bioc",LH=[{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"}]}],jH=[],QH=[],zH={name:FH,uri:PH,prefix:RH,types:LH,enumerations:jH,associations:QH},HH="BPMN in Color",VH="http://www.omg.org/spec/BPMN/non-normative/color/1.0",UH="color",YH=[{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"}]}],WH=[],GH=[],JH={name:HH,uri:VH,prefix:UH,types:YH,enumerations:WH,associations:GH};const KH={bpmn:hH,bpmndi:yH,dc:SH,di:MH,bioc:zH,color:JH};function XH(e,n){const r=Je({},KH,e);return new Yh(r,n)}var ZH="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 $H(e){jl(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(ZH)}})}function ri(e,n){return e.$instanceOf(n)}function qH(e){return Br(e.rootElements,function(n){return ri(n,"bpmn:Process")||ri(n,"bpmn:Collaboration")})}function eV(e){var n={},r=[],a={};function s(ue,pe){return function(ye){ue(ye,pe)}}function c(ue){n[ue.id]=ue}function p(ue){return n[ue.id]}function m(ue,pe){var ye=ue.gfx;if(ye)throw new Error(`already rendered ${Fn(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 ${Fn(ue)}`,Fe)}}function O(ue,pe){e.error(ue,pe)}var I=this.registerDi=function(pe){var ye=pe.bpmnElement;ye?a[ye.id]?O(`multiple DI elements defined for ${Fn(ye)}`,{element:ye}):(a[ye.id]=pe,$H(ye)):O(`no bpmnElement referenced in ${Fn(pe)}`,{element:pe})};function N(ue){_(ue.plane)}function _(ue){I(ue),We(ue.planeElement,k)}function k(ue){I(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 ${Fn(ye)}`);var P=K.bpmnElement;if(!P)if(P=qH(pe),P)O(`correcting missing bpmnElement on ${Fn(K)} to ${Fn(P)}`),K.bpmnElement=P,I(K);else throw new Error("no process or collaboration to display");var E=g(P,K);if(ri(P,"bpmn:Process")||ri(P,"bpmn:SubProcess"))M(P,E);else if(ri(P,"bpmn:Collaboration"))Ae(P,E),T(pe.rootElements,E);else throw new Error(`unsupported bpmnElement for ${Fn(K)}: ${Fn(P)}`);Q(r)};var Q=this.handleDeferred=function(){for(var pe;r.length;)pe=r.shift(),pe()};function M(ue,pe){G(ue,pe),q(ue.ioSpecification,pe),H(ue.artifacts,pe),c(ue)}function T(ue,pe){var ye=Ql(ue,function(Fe){return!p(Fe)&&ri(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 w(ue,pe){y(ue,pe)}function S(ue,pe){y(ue,pe)}function z(ue,pe){y(ue,pe)}function R(ue,pe){y(ue,pe)}function H(ue,pe){We(ue,function(ye){ri(ye,"bpmn:Association")?r.push(function(){R(ye,pe)}):R(ye,pe)})}function q(ue,pe){!ue||(We(ue.dataInputs,s(S,pe)),We(ue.dataOutputs,s(z,pe)))}var re=this.handleSubProcess=function(pe,ye){G(pe,ye),H(pe.artifacts,ye)};function ce(ue,pe){var ye=y(ue,pe);ri(ue,"bpmn:SubProcess")&&re(ue,ye||pe),ri(ue,"bpmn:Activity")&&q(ue.ioSpecification,pe),r.push(function(){We(ue.dataInputAssociations,s(w,pe)),We(ue.dataOutputAssociations,s(w,pe))})}function ge(ue,pe){y(ue,pe)}function fe(ue,pe){y(ue,pe)}function Ce(ue,pe){r.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){ri(ye,"bpmn:SequenceFlow")?r.push(function(){ge(ye,pe)}):ri(ye,"bpmn:BoundaryEvent")?r.unshift(function(){ce(ye,pe)}):ri(ye,"bpmn:FlowNode")?ce(ye,pe):ri(ye,"bpmn:DataObject")||(ri(ye,"bpmn:DataStoreReference")||ri(ye,"bpmn:DataObjectReference")?fe(ye,pe):O(`unrecognized flowElement ${Fn(ye)} in context ${Fn(pe&&pe.businessObject)}`,{element:ye,context:pe}))})}function ie(ue,pe){var ye=y(ue,pe),Fe=ue.processRef;Fe&&M(Fe,ye||pe)}function Ae(ue,pe){We(ue.participants,s(ie,pe)),r.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 tV(e,n,r){var a,s,c,p,m=[];function g(y,O){var I={root:function(Q,M){return a.add(Q,M)},element:function(Q,M,T){return a.add(Q,M,T)},error:function(Q,M){m.push({message:Q,context:M})}},N=new eV(I);O=O||y.diagrams&&y.diagrams[0];var _=nV(y,O);if(!_)throw new Error("no diagram to display");We(_,function(Q){N.handleDefinitions(y,Q)});var k=O.plane.bpmnElement.id;c.setRootElement(c.findRoot(k+"_plane")||c.findRoot(k))}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,r),s.fire("import.render.complete",{error:p,warnings:m}),y({warnings:m})}catch(I){return I.warnings=m,O(I)}})}function nV(e,n){if(!(!n||!n.plane)){var r=n.plane.bpmnElement,a=r;!Ge(r,"bpmn:Process")&&!Ge(r,"bpmn:Collaboration")&&(a=iV(r));var s;Ge(a,"bpmn:Collaboration")?s=a:s=Br(e.rootElements,function(y){if(!!Ge(y,"bpmn:Collaboration"))return Br(y.participants,function(O){return O.processRef===a})});var c=[a];s&&(c=jz(s.participants,function(y){return y.processRef}),c.push(s));var p=w2(c),m=[n],g=[r];return We(e.diagrams,function(y){if(!!y.plane){var O=y.plane.bpmnElement;p.indexOf(O)!==-1&&g.indexOf(O)===-1&&(m.push(y),g.push(O))}}),m}}function w2(e){var n=[];return We(e,function(r){!r||(n.push(r),n=n.concat(w2(r.flowElements)))}),n}function iV(e){for(var n=e;n;){if(Ge(n,"bpmn:Process"))return n;n=n.$parent}}var rV='<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>',E2=rV,k2={verticalAlign:"middle"},C2={color:"#404040"},aV={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},oV={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},sV={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"},lV='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+E2+'</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>',Xr;function cV(){Xr=Vi(lV),Mn(Xr,aV),Mn(xa("svg",Xr),k2),Mn(xa(".backdrop",Xr),oV),Mn(xa(".notice",Xr),sV),Mn(xa(".link",Xr),C2,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function uV(){Xr||(cV(),Hl.bind(Xr,".backdrop","click",function(e){document.body.removeChild(Xr)})),document.body.appendChild(Xr)}function rn(e){e=Je({},fV,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),hV(this._container)}Wr(rn,co),rn.prototype.importXML=async function(n,r){const a=this;function s(p){return a.get("eventBus").createEvent(p)}let c=[];try{n=this._emit("import.parse.start",{xml:n})||n;let p;try{p=await this._moddle.fromXML(n,"bpmn:Definitions")}catch(N){throw this._emit("import.parse.complete",{error:N}),N}let m=p.rootElement;const g=p.references,y=p.warnings,O=p.elementsById;c=c.concat(y),m=this._emit("import.parse.complete",s({error:null,definitions:m,elementsById:O,references:g,warnings:c}))||m;const I=await this.importDefinitions(m,r);return c=c.concat(I.warnings),this._emit("import.done",{error:null,warnings:c}),{warnings:c}}catch(p){let m=p;throw c=c.concat(m.warnings||[]),Wh(m,c),m=dV(m),this._emit("import.done",{error:m,warnings:m.warnings}),m}},rn.prototype.importDefinitions=async function(n,r){return this._setDefinitions(n),{warnings:(await this.open(r)).warnings}},rn.prototype.open=async function(n){const r=this._definitions;let a=n;if(!r){const c=new Error("no XML imported");throw Wh(c,[]),c}if(typeof n=="string"&&(a=pV(r,n),!a)){const c=new Error("BPMNDiagram <"+n+"> not found");throw Wh(c,[]),c}try{this.clear()}catch(c){throw Wh(c,[]),c}const{warnings:s}=await tV(this,r,a);return{warnings:s}},rn.prototype.saveXML=async function(n){n=n||{};let r=this._definitions,a,s;try{if(!r)throw new Error("no definitions loaded");r=this._emit("saveXML.start",{definitions:r})||r,s=(await this._moddle.toXML(r,n)).xml,s=this._emit("saveXML.serialized",{xml:s})||s}catch(p){a=p}const c=a?{error:a}:{xml:s};if(this._emit("saveXML.done",c),a)throw a;return c},rn.prototype.saveSVG=async function(){this._emit("saveSVG.start");let n,r;try{const a=this.get("canvas"),s=a.getActiveLayer(),c=xa(":scope > defs",a._svg),p=fI(s),m=c?"<defs>"+fI(c)+"</defs>":"",g=s.getBBox();n=`<?xml version="1.0" encoding="utf-8"?>
|
|
28
28
|
<!-- created with bpmn-js / http://bpmn.io -->
|
|
29
29
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
30
|
-
<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+p+"</svg>"}catch(a){r=a}if(this._emit("saveSVG.done",{error:r,svg:n}),r)throw r;return{svg:n}},rn.prototype._setDefinitions=function(e){this._definitions=e},rn.prototype.getModules=function(){return this._modules},rn.prototype.clear=function(){!this.getDefinitions()||co.prototype.clear.call(this)},rn.prototype.destroy=function(){co.prototype.destroy.call(this),Vl(this._container)},rn.prototype.on=function(e,n,r,a){return this.get("eventBus").on(e,n,r,a)},rn.prototype.off=function(e,n){this.get("eventBus").off(e,n)},rn.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=xa(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},rn.prototype.getDefinitions=function(){return this._definitions},rn.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},rn.prototype._init=function(e,n,r){const a=r.modules||this.getModules(r),s=r.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],p=[].concat(c,a,s),m=Je(Yz(r,["additionalModules"]),{canvas:Je({},r.canvas,{container:e}),modules:p});co.call(this,m),r&&r.container&&this.attachTo(r.container)},rn.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},rn.prototype._createContainer=function(e){const n=Vi('<div class="bjs-container"></div>');return Mn(n,{width:S2(e.width),height:S2(e.height),position:e.position}),n},rn.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new XH(n)},rn.prototype._modules=[];function Wh(e,n){return e.warnings=n,e}function dV(e){const r=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return r&&(e.message="unparsable content <"+r[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+r[2]),e}const fV={width:"100%",height:"100%",position:"relative"};function S2(e){return e+(io(e)?"px":"")}function pV(e,n){return n&&Br(e.diagrams,function(r){return r.id===n})||null}function hV(e){const r='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+E2+"</a>",a=Vi(r);Mn(xa("svg",a),k2),Mn(a,C2,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),ms.bind(a,"click",function(s){uV(),s.preventDefault()})}function Zl(e){rn.call(this,e)}Wr(Zl,rn),Zl.prototype._modules=[S9,W9,BI,$9,wI],Zl.prototype._moddleExtensions={};var mV=/^djs-cursor-.*$/;function D2(e){var n=hs(document.body);n.removeMatching(mV),e&&n.add("djs-cursor-"+e)}function gV(){D2(null)}var AV=5e3;function vV(e,n){n=n||"element.click";function r(){return!1}return e.once(n,AV,r),function(){e.off(n,r)}}function B2(e,n){return{x:e.x-n.x,y:e.y-n.y}}var bV=15;function I2(e,n){var r;function a(m){return p(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=r.start,y=r.button,O=PI(m),I=B2(O,g);if(!r.dragging&&_V(I)>bV&&(r.dragging=!0,y===0&&vV(e),D2("grab")),r.dragging){var N=r.last||r.start;I=B2(O,N),n.scroll({dx:I.x,dy:I.y}),r.last=O}m.preventDefault()}function c(m){ms.unbind(document,"mousemove",s),ms.unbind(document,"mouseup",c),r=null,gV()}function p(m){if(!gI(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return r={button:g,start:PI(m)},ms.bind(document,"mousemove",s),ms.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!r}}I2.$inject=["eventBus","canvas"];function _V(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const _d={__init__:["moveCanvas"],moveCanvas:["type",I2]};var yV=new Wy("tt");function xV(e){var n=Vi('<div class="djs-tooltip-container" />');return Mn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function wV(e,n,r){Mn(e,{left:n+"px",top:r+"px"})}function ux(e,n){e.style.display=n===!1?"none":""}var O2="djs-tooltip",dx="."+O2;function ai(e,n){this._eventBus=e,this._canvas=n,this._ids=yV,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=xV(n.getContainer());var r=this;Hl.bind(this._tooltipRoot,dx,"mousedown",function(a){a.stopPropagation()}),Hl.bind(this._tooltipRoot,dx,"mouseover",function(a){r.trigger("mouseover",a)}),Hl.bind(this._tooltipRoot,dx,"mouseout",function(a){r.trigger("mouseout",a)}),this._init()}ai.$inject=["eventBus","canvas"],ai.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},ai.prototype.trigger=function(e,n){var r=n.delegateTarget||n.target,a=this.get(Qy(r,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ai.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ai.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ai.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)}},ai.prototype.remove=function(e){var n=this.get(e);n&&(Vl(n.html),Vl(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ai.prototype.show=function(){ux(this._tooltipRoot)},ai.prototype.hide=function(){ux(this._tooltipRoot,!1)},ai.prototype._updateRoot=function(e){var n=e.scale||1,r=e.scale||1,a="matrix("+n+",0,0,"+r+","+-1*e.x*n+","+-1*e.y*r+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ai.prototype._addTooltip=function(e){var n=e.id,r=e.html,a,s=this._tooltipRoot;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),Dr(r)&&(r=Vi(r)),a=Vi('<div data-tooltip-id="'+n+'" class="'+O2+'">'),Mn(a,{position:"absolute"}),a.appendChild(r),e.type&&hs(a).add("djs-tooltip-"+e.type),e.className&&hs(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ai.prototype._updateTooltip=function(e){var n=e.position,r=e.htmlContainer;wV(r,n.x,n.y)},ai.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var r=n.show,a=n.htmlContainer,s=!0;r&&((r.minZoom>e.scale||r.maxZoom<e.scale)&&(s=!1),ux(a,s))})},ai.prototype._init=function(){var e=this;function n(r){e._updateRoot(r),e._updateTooltipVisibilty(r),e.show()}this._eventBus.on("canvas.viewbox.changing",function(r){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(r){n(r.viewbox)})};const fx={__init__:["tooltips"],tooltips:["type",ai]},EV=e=>{var n=Object.prototype.toString,r={"[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":r[n.call(e)]},px=e=>{var n=EV(e),r;if(n==="array")r=[];else if(n==="object")r={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)r.push(px(e[a]));else if(n==="object")for(var c in e)r[c]=px(e[c]);return r};function kV(e,n="YYYY-MM-DD HH:mm:ss"){return Zu(e).format(n)}function CV(e){e=px(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(p=>p.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(p=>p.assigneeName))).join("/")}}const r=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:p,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),p=p.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!p&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${kV(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let I,{type:N,fullMessage:_}=m.find(k=>k.action=="AddComment")||{};N=="assigneeComment"&&(I="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(I="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(I="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(I="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(I="\u9A73\u56DE\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(I="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),N=="addMultiInstanceComment"&&(I="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(I="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(I="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(I="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(I="\u64A4\u9500\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="comment"&&(I="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),I&&(y+=`<span title='${I}'>${I}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=r.findIndex(I=>I.id==a.historyActivityId);O!=-1?r.splice(O,1,g):r.push(g)}),r}function hx(e){const n=[],r=[],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"?r.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(r)],deptIds:[...new Set(a)]}}var SV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}})},DV=[];const DX="",BV={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={},r="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(Zl)=="[object Function]"?Zl:Zl.default,n=Object.prototype.toString.call(fx)=="[object Object]"?fx:fx.default,r=Object.prototype.toString.call(_d)=="[object Object]"?_d:_d.default;Object.prototype.toString.call(_d),this.viewer=new e({container:this.$refs.container,additionalModules:[n,r]}),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"),r=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=r.get(s.id);if(c){let{x:p,y:m,type:g}=c;["bpmn:StartEvent","bpmn:EndEvent"].includes(g)?(p=p-45,m=m+65):["bpmn:UserTask"].includes(g)&&(p=p-10,m=m+90),a.add({position:{x:p,y:m},html:s.tooltip})}}})},addApprovalData(){if(this.approvalData,!this.approvalData||this.approvalData.length==0)return;const e=CV(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()}},T2={};var IV=fn(BV,SV,DV,!1,OV,"5e479c8e",null,null);function OV(e){for(let n in T2)this[n]=T2[n]}const N2=function(){return IV.exports}();var TV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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():[r("div",{ref:"baseTabs",staticClass:"tabs"},[r("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 r("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[r("div",{style:{height:`${e.baseHeight}px`}},[e._t("default",null,{taskNode:e.getTaskNode()})],2)]:a.name=="\u6D41\u7A0B\u56FE"&&!a.slot?[r("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?r("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?r("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):r("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?r("processFlow",{attrs:{"flow-list":e.formatFlow(e.processData.flow)}}):r("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?r("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?r("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?r("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?r("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return r("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[r("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)},[r("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return r("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():r("div"),r("div",{staticClass:"dialog"},[r("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[r("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")]),r("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"}},[r("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?r(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?r("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[r("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)]),r("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"}},[r("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[r("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[r("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 r("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),r("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),r("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"}},[r("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[r("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),r("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),r("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"}})],1)],1)],1)],2)},NV=[];const BX="",IX="",MV={components:{processBtns:Iz,processFlow:Pz,bpmnLook:N2,staffTree:ga,...vD,ViewFile:pR,JyrFileUpload:ih},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:vD,Enum:wp,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==_t.success&&(this.taskNode=n.data,Ze.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(r=>{r.code==_t.success&&(this.processStatus=r.data,this.$emit("getStatus",r.data),this.absoluteTaskId?Ze.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==_t.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Ze.repository.getTrackUrl({processInstId:e,type:zb.\u7535\u8111\u7AEF}).then(n=>{n.code==_t.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(r=>r.digitalSignature).map(r=>r.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(r=>({...r,attachmentsFujian:(r.attachments||[]).filter(a=>a.type!="signature"),attachmentsQianzi:(r.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 r=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=r,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 r=hx(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.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(K_,e)}):this.showOperation(K_,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(uD,e)},handleUserSelect({type:e,checkType:n,name:r}){e=="transfer"?this.handleTransfer(r):e=="addInstance"&&this.handleAddInstance(r)},handleTransfer(e){this.showOperation(rD,e)},handleAddInstance(e){this.showOperation(tD,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(fD,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(AD,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,r="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[r];if(!a)return null;if(r=="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 r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(r=>{r.label==e&&(r.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 r=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],r.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.id)),r=await this.getSelectFixData(r,e),this.nextTaskNode=r},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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 r=this.$refs.obRef;if(this.$refs,!r)return;let a=(m=r.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(r,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),p=window.innerHeight-((g=r.getBoundingClientRect())==null?void 0:g.top)-a-(c==null?void 0:c.clientHeight)-32;this.dynamicMaxHeight=`${p}px`})},onClickOperation(){if(this.attachShow&&this.attachRule.required&&this.attach.length==0)return ad.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(r=>{n.push({id:r.id,name:this.fileNameLastof(r.name),size:r.fileSize,format:r.fileType,url:r.url,uploadTime:r.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((r,a)=>Zu(r.uploadTime).valueOf()>Zu(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){ad.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&ad.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let r=JSON.parse(JSON.stringify(e));if(r.nodeType!="userTask"&&Array.isArray(r.branches))for(let a=0;a<r.branches.length;a++){let s=r.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(p){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,r.branches[a]=s}else if(r.nodeType=="userTask"&&!r.setPersonnel){let a=hx(r),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==_t.success}catch(c){}s.code==_t.success&&(r.userList=s.data)}return r},async getOutgoingProcessNode(e,n){let r=await Ze.repository.getOutgoingProcessNode(e,n);if(r.code==_t.success){if(r.data){for(let a=0;a<r.data.length;a++){let s=r.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)),r.data[a].type!="endEvent"&&(r.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Ze.repository.getParticipantsOfPerformerNames(e,[r.data[a].id]).then(c=>{r.data[a].routeTxt.userNames=c.data[r.data[a].id]})}r.data.length==0&&r.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return r.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(){KB.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==_t.success&&(ad.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){KB.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==_t.success&&(ad.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 r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.key="sign",r.click=()=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name})},e.push(r)}if(n.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.key="delegate",r.click=()=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name})},e.push(r)}if(n.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name})},e.push(r)}if(n.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess()},e.push(r)}if(n.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"primary"},r.key="cc",r.click=()=>{this.handleCirculate(this.getButton("wf_cctask").name)},e.push(r)}if(n.status=="todo"&&this.userId==(n.variables||{}).applyUserId){let r={};r.name="\u50AC\u529E",r.key="self",r.click=()=>{this.handleReminders()},e.push(r)}if(n.isOwner&&n.isReturnable&&!["recall","reject"].includes(n.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"danger"},r.key="self",r.click=()=>{this.handleWithdrawTask("\u64A4\u9500")},e.push(r)}if(n.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},r.key="refuse",r.click=()=>{this.handleExamine(!1,this.getButton("wf_reject").name)},e.push(r)}if(n.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},r.key="complete",r.click=()=>{this.before?this.before().then(()=>{this.handleExamine(!0,this.getButton("wf_pass").name)}):this.handleExamine(!0,this.getButton("wf_pass").name)},e.push(r)}if(n.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},r.key="back",r.click=()=>{this.handleRollbackTask(this.getButton("wf_rollback").name)},e.unshift(r)}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 r={outside:[],inside:[]};n.length>4?(r.outside=n.splice(n.length-4,n.length-1),r.inside=n):r.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=r,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,r,a="";switch(this.operationLabel){case"\u9000\u56DE":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u5904\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u540C\u610F":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"";break;case"\u52A0\u7B7E":r=e.find(c=>c.name=="counterSignButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u8F6C\u529E":r=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=r?r.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}}},M2={};var FV=fn(MV,TV,NV,!1,PV,"1398d878",null,null);function PV(e){for(let n in M2)this[n]=M2[n]}const F2=function(){return FV.exports}(),RV=async(e,n)=>{const r=n||{},a=r.dragElement||(r.targetClassName?P2(e,r.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(v=>{s=v[0].isIntersecting,s||F()}).observe(a);const p=r.dragHeader||".el-dialog__header",m=a.querySelector(p),g=r.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,I,N,_;const k=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=w=>{O=!0;const S=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);I=S?parseFloat(S[1]):0,N=S?parseFloat(S[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}}},Q=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=v=>{}};x.watch(r.dialogConfig,(v,w)=>{v.fullScreen&&(Q(),F())}),k();const M=v=>{if(!O)return;v.stopPropagation(),v.preventDefault();let w=v.movementX+I,S=v.movementY+N;w>=0?w=w>=_["+x"]?_["+x"]:w:w=w<=_["-x"]?_["-x"]:w,S>=0?S=S>=_["+y"]?_["+y"]:S:S=S<=_["-y"]?_["-y"]:S,a.style.transform=`translate(${w}px, ${S}px)`,I=w,N=S},T=()=>{O=!1,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},F=()=>{a.style.transform="none"}};function P2(e,n){if(!e)return null;if(e.classList.contains(n))return e;let r=e.parentElement;return r?P2(r,n):null}const LV="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 jV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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[r("div",{staticClass:"dialog-header"},[e._t("title",function(){return[r("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),r("div",{staticClass:"dialog-icon"},[r("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[r("img",{attrs:{src:LV,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?r("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),[r("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},QV=[];const OX="",zV={components:{process:F2},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,RV(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)}}},R2={};var HV=fn(zV,jV,QV,!1,VV,null,null,null);function VV(e){for(let n in R2)this[n]=R2[n]}const UV=function(){return HV.exports}();var YV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("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"}},[r("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?r("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 r("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):r("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?r("div",{staticClass:"view-node-info",staticStyle:{"margin-right":"10px"},on:{click:e.viewFlowChart}},[e._v(" \u9884\u89C8 ")]):e._e(),e.processDefId&&e.showFlowForecast?r("div",{staticClass:"view-node-info",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()],1),e.hasDeptId?e._e():r("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[r("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?r("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?r("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[r("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?r("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),r("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?r("bpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml}}):e._e()],1),r("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}},[r("div",{staticStyle:{"margin-left":"20px"}},[r("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),r("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return r("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[r("div",[r("span",{staticStyle:{color:"#1389FF"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),r("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},WV=[];const TX="",NX="";var $l=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{$l=e});const GV={components:{userTask:J_,bpmnLook:N2},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={},r="";try{n=await Ze.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Ze.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:zb.\u7535\u8111\u7AEF}).then(e=>{e.code==_t.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,r)=>{Ze.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==_t.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"),r(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Ze.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==_t.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==_t.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,r)=>{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==_t.success?(this.flag=!1,n(a)):$l.error(a.msg)}).catch(a=>{this.btnLoading=!1,$l.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),r(a)})})},revivalFlow(e={},n=!1,r="\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(p=>{const m=p.toLowerCase();m.includes("_")&&delete c[p],m=="appShow"&&delete c[p]}),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,r,"",n,this._multiNodeParticipant).then(p=>{this.btnLoading=!1,p.code==_t.success?(this.flag=!1,a(p)):$l.error(p.msg)}).catch(p=>{this.btnLoading=!1,$l.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(p)})})},Show(e,n="",r=!1){return this.processList=[],this.revival=r,this.processDefId=e,n&&Ze.repository.getProcessDefList(n,"").then(a=>{a.code==_t.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==_t.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,r)=>{this.cancelCallBack=r,Ze.repository.getProcessDefListNew(e).then(a=>{a.code==_t.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==_t.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 r=hx(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.deptIds})}catch(s){}if(a.code==_t.success){const s=this.processList[n];s.userList=a.data,this.$set(this.processList,n,s)}})},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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,r)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=r,Ze.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==_t.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 r={};try{r=await Ze.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{r={}}return r.code==200,r},async revivalShow({processInstId:e,businessId:n,taskId:r,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:r,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 p=(this.processData.process||{}).taskId;return this.absoluteTaskId=p,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 $l.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let r in this.userTaskListData){let a=this.userTaskListData[r],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()}}},L2={};var JV=fn(GV,YV,WV,!1,KV,"30078fe4",null,null);function KV(e){for(let n in L2)this[n]=L2[n]}const XV=function(){return JV.exports}();var ZV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[r("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},$V=[],j2=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{j2=e});const qV={components:{userTask:J_},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,r)=>{this.cancelCallBack=r,Ze.repository.getFirstProcessNode(e).then(a=>{a.code==_t.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 j2.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={},r={};for(let a in this.userTaskListData){let s=this.userTaskListData[a],p=this.$refs[s][0].getValue();if(!p)return!1;n={...n,...p.multiNodeParticipant},r={...r,...p.vars},e={...e,multiNodeParticipant:n,vars:r}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},Q2={};var eU=fn(qV,ZV,$V,!1,tU,null,null,null);function tU(e){for(let n in Q2)this[n]=Q2[n]}const nU=function(){return eU.exports}();Promise.resolve().then(()=>RG);var mx={exports:{}},Ue={},gx={exports:{}},z2;function H2(){return z2||(z2=1,function(e){(function(n){var r={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",c="\\d{3}",p="\\d{4}",m="[^\\s]+",g=/\[([^]*?)\]/gm,y=function(){};function O(w){return w.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function I(w,S){for(var z=[],R=0,H=w.length;R<H;R++)z.push(w[R].substr(0,S));return z}function N(w){return function(S,z,R){var H=R[w].indexOf(z.charAt(0).toUpperCase()+z.substr(1).toLowerCase());~H&&(S.month=H)}}function _(w,S){for(w=String(w),S=S||2;w.length<S;)w="0"+w;return w}var k=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Q=["January","February","March","April","May","June","July","August","September","October","November","December"],M=I(Q,3),T=I(k,3);r.i18n={dayNamesShort:T,dayNames:k,monthNamesShort:M,monthNames:Q,amPm:["am","pm"],DoFn:function(S){return S+["th","st","nd","rd"][S%10>3?0:(S-S%10!==10)*S%10]}};var F={D:function(S){return S.getDay()},DD:function(S){return _(S.getDay())},Do:function(S,z){return z.DoFn(S.getDate())},d:function(S){return S.getDate()},dd:function(S){return _(S.getDate())},ddd:function(S,z){return z.dayNamesShort[S.getDay()]},dddd:function(S,z){return z.dayNames[S.getDay()]},M:function(S){return S.getMonth()+1},MM:function(S){return _(S.getMonth()+1)},MMM:function(S,z){return z.monthNamesShort[S.getMonth()]},MMMM:function(S,z){return z.monthNames[S.getMonth()]},yy:function(S){return _(String(S.getFullYear()),4).substr(2)},yyyy:function(S){return _(S.getFullYear(),4)},h:function(S){return S.getHours()%12||12},hh:function(S){return _(S.getHours()%12||12)},H:function(S){return S.getHours()},HH:function(S){return _(S.getHours())},m:function(S){return S.getMinutes()},mm:function(S){return _(S.getMinutes())},s:function(S){return S.getSeconds()},ss:function(S){return _(S.getSeconds())},S:function(S){return Math.round(S.getMilliseconds()/100)},SS:function(S){return _(Math.round(S.getMilliseconds()/10),2)},SSS:function(S){return _(S.getMilliseconds(),3)},a:function(S,z){return S.getHours()<12?z.amPm[0]:z.amPm[1]},A:function(S,z){return S.getHours()<12?z.amPm[0].toUpperCase():z.amPm[1].toUpperCase()},ZZ:function(S){var z=S.getTimezoneOffset();return(z>0?"-":"+")+_(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)}},v={d:[s,function(w,S){w.day=S}],Do:[s+m,function(w,S){w.day=parseInt(S,10)}],M:[s,function(w,S){w.month=S-1}],yy:[s,function(w,S){var z=new Date,R=+(""+z.getFullYear()).substr(0,2);w.year=""+(S>68?R-1:R)+S}],h:[s,function(w,S){w.hour=S}],m:[s,function(w,S){w.minute=S}],s:[s,function(w,S){w.second=S}],yyyy:[p,function(w,S){w.year=S}],S:["\\d",function(w,S){w.millisecond=S*100}],SS:["\\d{2}",function(w,S){w.millisecond=S*10}],SSS:[c,function(w,S){w.millisecond=S}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(w,S,z){var R=S.toLowerCase();R===z.amPm[0]?w.isPm=!1:R===z.amPm[1]&&(w.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(w,S){var z=(S+"").match(/([+-]|\d\d)/gi),R;z&&(R=+(z[1]*60)+parseInt(z[2],10),w.timezoneOffset=z[0]==="+"?R:-R)}]};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,r.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"},r.format=function(w,S,z){var R=z||r.i18n;if(typeof w=="number"&&(w=new Date(w)),Object.prototype.toString.call(w)!=="[object Date]"||isNaN(w.getTime()))throw new Error("Invalid Date in fecha.format");S=r.masks[S]||S||r.masks.default;var H=[];return S=S.replace(g,function(q,re){return H.push(re),"@@@"}),S=S.replace(a,function(q){return q in F?F[q](w,R):q.slice(1,q.length-1)}),S.replace(/@@@/g,function(){return H.shift()})},r.parse=function(w,S,z){var R=z||r.i18n;if(typeof S!="string")throw new Error("Invalid format in fecha.parse");if(S=r.masks[S]||S,w.length>1e3)return null;var H={},q=[],re=[];S=S.replace(g,function(me,G){return re.push(G),"@@@"});var ce=O(S).replace(a,function(me){if(v[me]){var G=v[me];return q.push(G[1]),"("+G[0]+")"}return me});ce=ce.replace(/@@@/g,function(){return re.shift()});var ge=w.match(new RegExp(ce,"i"));if(!ge)return null;for(var fe=1;fe<ge.length;fe++)q[fe-1](H,ge[fe],R);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=r:n.fecha=r})(void 0)}(gx)),gx.exports}var Zr={},Gh={},V2;function iU(){return V2||(V2=1,Gh.__esModule=!0,Gh.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"}}}),Gh}var Ax,U2;function rU(){if(U2)return Ax;U2=1;var e=function(_){return n(_)&&!r(_)};function n(N){return!!N&&typeof N=="object"}function r(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 p(N){return Array.isArray(N)?[]:{}}function m(N,_){var k=_&&_.clone===!0;return k&&e(N)?O(p(N),N,_):N}function g(N,_,k){var Q=N.slice();return _.forEach(function(M,T){typeof Q[T]>"u"?Q[T]=m(M,k):e(M)?Q[T]=O(N[T],M,k):N.indexOf(M)===-1&&Q.push(m(M,k))}),Q}function y(N,_,k){var Q={};return e(N)&&Object.keys(N).forEach(function(M){Q[M]=m(N[M],k)}),Object.keys(_).forEach(function(M){!e(_[M])||!N[M]?Q[M]=m(_[M],k):Q[M]=O(N[M],_[M],k)}),Q}function O(N,_,k){var Q=Array.isArray(_),M=Array.isArray(N),T=k||{arrayMerge:g},F=Q===M;if(F)if(Q){var v=T.arrayMerge||g;return v(N,_,k)}else return y(N,_,k);else return m(_,k)}O.all=function(_,k){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(Q,M){return O(Q,M,k)})};var I=O;return Ax=I,Ax}var Jh={},ct={},Gi={},Y2;function W2(){if(Y2)return Gi;Y2=1,Gi.__esModule=!0,Gi.isDefined=Gi.isUndefined=Gi.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};Gi.isString=s,Gi.isObject=c,Gi.isHtmlElement=p;var n=Li.default,r=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 p(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"&&(r.default.prototype.$isServer||typeof document.childNodes!="function")&&(Gi.isFunction=m=function(y){return typeof y=="function"||!1}),Gi.isFunction=m,Gi.isUndefined=function(y){return y===void 0},Gi.isDefined=function(y){return y!=null},Gi}var G2;function Ir(){if(G2)return ct;G2=1,ct.__esModule=!0,ct.isMac=ct.isEmpty=ct.isEqual=ct.arrayEquals=ct.looseEqual=ct.capitalize=ct.kebabCase=ct.autoprefixer=ct.isFirefox=ct.isEdge=ct.isIE=ct.coerceTruthyValueToArray=ct.arrayFind=ct.arrayFindIndex=ct.escapeRegexpString=ct.valueEquals=ct.generateId=ct.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};ct.noop=p,ct.hasOwn=m,ct.toObject=y,ct.getPropByPath=O,ct.rafThrottle=Q,ct.objToArray=M;var n=Li.default,r=s(n),a=W2();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function p(){}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}ct.getValueByPath=function(F,v){v=v||"";for(var w=v.split("."),S=F,z=null,R=0,H=w.length;R<H;R++){var q=w[R];if(!S)break;if(R===H-1){z=S[q];break}S=S[q]}return z};function O(T,F,v){var w=T;F=F.replace(/\[(\w+)\]/g,".$1"),F=F.replace(/^\./,"");for(var S=F.split("."),z=0,R=S.length;z<R-1&&!(!w&&!v);++z){var H=S[z];if(H in w)w=w[H];else{if(v)throw new Error("please transfer a valid prop path to form item!");break}}return{o:w,k:S[z],v:w?w[S[z]]:null}}ct.generateId=function(){return Math.floor(Math.random()*1e4)},ct.valueEquals=function(F,v){if(F===v)return!0;if(!(F instanceof Array)||!(v instanceof Array)||F.length!==v.length)return!1;for(var w=0;w!==F.length;++w)if(F[w]!==v[w])return!1;return!0},ct.escapeRegexpString=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(F).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var I=ct.arrayFindIndex=function(F,v){for(var w=0;w!==F.length;++w)if(v(F[w]))return w;return-1};ct.arrayFind=function(F,v){var w=I(F,v);return w!==-1?F[w]:void 0},ct.coerceTruthyValueToArray=function(F){return Array.isArray(F)?F:F?[F]:[]},ct.isIE=function(){return!r.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},ct.isEdge=function(){return!r.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},ct.isFirefox=function(){return!r.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},ct.autoprefixer=function(F){if((typeof F>"u"?"undefined":e(F))!=="object")return F;var v=["transform","transition","animation"],w=["ms-","webkit-"];return v.forEach(function(S){var z=F[S];S&&z&&w.forEach(function(R){F[R+S]=z})}),F},ct.kebabCase=function(F){var v=/([^-])([A-Z])/g;return F.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()},ct.capitalize=function(F){return(0,a.isString)(F)?F.charAt(0).toUpperCase()+F.slice(1):F};var N=ct.looseEqual=function(F,v){var w=(0,a.isObject)(F),S=(0,a.isObject)(v);return w&&S?JSON.stringify(F)===JSON.stringify(v):!w&&!S?String(F)===String(v):!1},_=ct.arrayEquals=function(F,v){if(F=F||[],v=v||[],F.length!==v.length)return!1;for(var w=0;w<F.length;w++)if(!N(F[w],v[w]))return!1;return!0};ct.isEqual=function(F,v){return Array.isArray(F)&&Array.isArray(v)?_(F,v):N(F,v)};var k=ct.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 Q(T){var F=!1;return function(){for(var v=this,w=arguments.length,S=Array(w),z=0;z<w;z++)S[z]=arguments[z];F||(F=!0,window.requestAnimationFrame(function(R){T.apply(v,S),F=!1}))}}function M(T){return Array.isArray(T)?T:k(T)?[]:[T]}return ct.isMac=function(){return!r.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},ct}var J2;function aU(){if(J2)return Jh;J2=1,Jh.__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};Jh.default=function(a){function s(c){for(var p=arguments.length,m=Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];return m.length===1&&e(m[0])==="object"&&(m=m[0]),(!m||!m.hasOwnProperty)&&(m={}),c.replace(r,function(y,O,I,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?I:(_=(0,n.hasOwn)(m,I)?m[I]:null,_==null?"":_)})}return s};var n=Ir(),r=/(%|)\{([0-9a-zA-Z_]+)\}/g;return Jh}var K2;function vx(){if(K2)return Zr;K2=1,Zr.__esModule=!0,Zr.i18n=Zr.use=Zr.t=void 0;var e=iU(),n=g(e),r=Li.default,a=g(r),s=rU(),c=g(s),p=aU(),m=g(p);function g(M){return M&&M.__esModule?M:{default:M}}var y=(0,m.default)(a.default),O=n.default,I=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return I||(I=!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)},_=Zr.t=function(T,F){var v=N.apply(this,arguments);if(v!=null)return v;for(var w=T.split("."),S=O,z=0,R=w.length;z<R;z++){var H=w[z];if(v=S[H],z===R-1)return y(v,F);if(!v)return"";S=v}return""},k=Zr.use=function(T){O=T||O},Q=Zr.i18n=function(T){N=T||N};return Zr.default={use:k,t:_,i18n:Q},Zr}var X2;function oU(){if(X2)return Ue;X2=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=H2(),n=a(e),r=vx();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"],p=function(w,S){for(var z=[],R=w;R<=S;R++)z.push(R);return z},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),dayNames:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),monthNamesShort:c.map(function(w){return(0,r.t)("el.datepicker.months."+w)}),monthNames:c.map(function(w,S){return(0,r.t)("el.datepicker.month"+(S+1))}),amPm:["am","pm"]}},g=Ue.toDate=function(w){return y(w)?new Date(w):null},y=Ue.isDate=function(w){return!(w==null||isNaN(new Date(w).getTime())||Array.isArray(w))};Ue.isDateObject=function(w){return w instanceof Date},Ue.formatDate=function(w,S){return w=g(w),w?n.default.format(w,S||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(w,S){return n.default.parse(w,S||"yyyy-MM-dd",m())},I=Ue.getDayCountOfMonth=function(w,S){return isNaN(+S)?31:new Date(w,+S+1,0).getDate()};Ue.getDayCountOfYear=function(w){var S=w%400===0||w%100!==0&&w%4===0;return S?366:365},Ue.getFirstDayOfMonth=function(w){var S=new Date(w.getTime());return S.setDate(1),S.getDay()};var N=Ue.prevDate=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()-S)};Ue.nextDate=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()+S)},Ue.getStartDateOfMonth=function(w,S){var z=new Date(w,S,1),R=z.getDay();return R===0?N(z,7):N(z,R)},Ue.getWeekNumber=function(w){if(!y(w))return null;var S=new Date(w.getTime());S.setHours(0,0,0,0),S.setDate(S.getDate()+3-(S.getDay()+6)%7);var z=new Date(S.getFullYear(),0,4);return 1+Math.round(((S.getTime()-z.getTime())/864e5-3+(z.getDay()+6)%7)/7)},Ue.getRangeHours=function(w){var S=[],z=[];if((w||[]).forEach(function(q){var re=q.map(function(ce){return ce.getHours()});z=z.concat(p(re[0],re[1]))}),z.length)for(var R=0;R<24;R++)S[R]=z.indexOf(R)===-1;else for(var H=0;H<24;H++)S[H]=!1;return S},Ue.getPrevMonthLastDays=function(w,S){if(S<=0)return[];var z=new Date(w.getTime());z.setDate(0);var R=z.getDate();return k(S).map(function(H,q){return R-(S-q-1)})},Ue.getMonthDays=function(w){var S=new Date(w.getFullYear(),w.getMonth()+1,0),z=S.getDate();return k(z).map(function(R,H){return H+1})};function _(v,w,S,z){for(var R=w;R<S;R++)v[R]=z}Ue.getRangeMinutes=function(w,S){var z=new Array(60);return w.length>0?w.forEach(function(R){var H=R[0],q=R[1],re=H.getHours(),ce=H.getMinutes(),ge=q.getHours(),fe=q.getMinutes();re===S&&ge!==S?_(z,ce,60,!0):re===S&&ge===S?_(z,ce,fe+1,!0):re!==S&&ge===S?_(z,0,fe+1,!0):re<S&&ge>S&&_(z,0,60,!0)}):_(z,0,60,!0),z};var k=Ue.range=function(w){return Array.apply(null,{length:w}).map(function(S,z){return z})},Q=Ue.modifyDate=function(w,S,z,R){return new Date(S,z,R,w.getHours(),w.getMinutes(),w.getSeconds(),w.getMilliseconds())},M=Ue.modifyTime=function(w,S,z,R){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),S,z,R,w.getMilliseconds())};Ue.modifyWithTimeString=function(w,S){return w==null||!S?w:(S=O(S,"HH:mm:ss"),M(w,S.getHours(),S.getMinutes(),S.getSeconds()))},Ue.clearTime=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate())},Ue.clearMilliseconds=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds(),0)};var T=Ue.limitTimeRange=function(w,S){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(S.length===0)return w;var R=function(Ce){return n.default.parse(n.default.format(Ce,z),z)},H=R(w),q=S.map(function(fe){return fe.map(R)});if(q.some(function(fe){return H>=fe[0]&&H<=fe[1]}))return w;var re=q[0][0],ce=q[0][0];q.forEach(function(fe){re=new Date(Math.min(fe[0],re)),ce=new Date(Math.max(fe[1],re))});var ge=H<re?re:ce;return Q(ge,w.getFullYear(),w.getMonth(),w.getDate())};Ue.timeWithinRange=function(w,S,z){var R=T(w,S,z);return R.getTime()===w.getTime()};var F=Ue.changeYearMonthAndClampDate=function(w,S,z){var R=Math.min(w.getDate(),I(S,z));return Q(w,S,z,R)};return Ue.prevMonth=function(w){var S=w.getFullYear(),z=w.getMonth();return z===0?F(w,S-1,11):F(w,S,z-1)},Ue.nextMonth=function(w){var S=w.getFullYear(),z=w.getMonth();return z===11?F(w,S+1,0):F(w,S,z+1)},Ue.prevYear=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),R=w.getMonth();return F(w,z-S,R)},Ue.nextYear=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),R=w.getMonth();return F(w,z+S,R)},Ue.extractDateFormat=function(w){return w.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},Ue.extractTimeFormat=function(w){return w.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},Ue.validateRangeInOneMonth=function(w,S){return w.getMonth()===S.getMonth()&&w.getFullYear()===S.getFullYear()},Ue}var on={},Z2;function Sa(){if(Z2)return on;Z2=1,on.__esModule=!0,on.isInContainer=on.getScrollContainer=on.isScroll=on.getStyle=on.once=on.off=on.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};on.hasClass=N,on.addClass=_,on.removeClass=k,on.setStyle=M;var n=Li.default,r=a(n);function a(F){return F&&F.__esModule?F:{default:F}}var s=r.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,p=/^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(w,S,z,R){return R?z.toUpperCase():z}).replace(p,"Moz$1")},O=on.on=function(){return!s&&document.addEventListener?function(F,v,w){F&&v&&w&&F.addEventListener(v,w,!1)}:function(F,v,w){F&&v&&w&&F.attachEvent("on"+v,w)}}(),I=on.off=function(){return!s&&document.removeEventListener?function(F,v,w){F&&v&&F.removeEventListener(v,w,!1)}:function(F,v,w){F&&v&&F.detachEvent("on"+v,w)}}();on.once=function(v,w,S){var z=function R(){S&&S.apply(this,arguments),I(v,w,R)};O(v,w,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 w=F.className,S=(v||"").split(" "),z=0,R=S.length;z<R;z++){var H=S[z];!H||(F.classList?F.classList.add(H):N(F,H)||(w+=" "+H))}F.classList||F.setAttribute("class",w)}}function k(F,v){if(!(!F||!v)){for(var w=v.split(" "),S=" "+F.className+" ",z=0,R=w.length;z<R;z++){var H=w[z];!H||(F.classList?F.classList.remove(H):N(F,H)&&(S=S.replace(" "+H+" "," ")))}F.classList||F.setAttribute("class",g(S))}}var Q=on.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 w=document.defaultView.getComputedStyle(F,"");return F.style[v]||w?w[v]:null}catch{return F.style[v]}}};function M(F,v,w){if(!(!F||!v))if((typeof v>"u"?"undefined":e(v))==="object")for(var S in v)v.hasOwnProperty(S)&&M(F,S,v[S]);else v=y(v),v==="opacity"&&m<9?F.style.filter=isNaN(w)?"":"alpha(opacity="+w*100+")":F.style[v]=w}var T=on.isScroll=function(v,w){if(!s){var S=w!=null,z=S?w?Q(v,"overflow-y"):Q(v,"overflow-x"):Q(v,"overflow");return z.match(/(scroll|auto|overlay)/)}};return on.getScrollContainer=function(v,w){if(!s){for(var S=v;S;){if([window,document,document.documentElement].includes(S))return window;if(T(S,w))return S;S=S.parentNode}return S}},on.isInContainer=function(v,w){if(s||!v||!w)return!1;var S=v.getBoundingClientRect(),z=void 0;return[window,document,document.documentElement,null,void 0].includes(w)?z={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:z=w.getBoundingClientRect(),S.top<z.bottom&&S.bottom>z.top&&S.right>z.left&&S.left<z.right},on}var Kh={},$2;function ys(){if($2)return Kh;$2=1,Kh.__esModule=!0;function e(n,r,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[r].concat(a)):e.apply(s,[n,r].concat([a]))})}return Kh.default={methods:{dispatch:function(r,a,s){for(var c=this.$parent||this.$root,p=c.$options.componentName;c&&(!p||p!==r);)c=c.$parent,c&&(p=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(r,a,s){e.call(this,r,a,s)}}},Kh}var Xh={},q2;function bx(){if(q2)return Xh;q2=1,Xh.__esModule=!0;var e=vx();return Xh.default={methods:{t:function(){for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},Xh}var Zh={},ql={},$h={},eO;function qh(){return eO||(eO=1,$h.__esModule=!0,$h.default=function(e){for(var n=1,r=arguments.length;n<r;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}),$h}var em={},tO;function sU(){if(tO)return em;tO=1,em.__esModule=!0;var e=Li.default,n=a(e),r=Sa();function a(I){return I&&I.__esModule?I:{default:I}}var s=!1,c=!1,p=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,_,k,Q,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 w=T[F];if(w.id===N)return}var S=m();if((0,r.addClass)(S,"v-modal"),this.modalFade&&!s&&(0,r.addClass)(S,"v-modal-enter"),Q){var z=Q.trim().split(/\s+/);z.forEach(function(R){return(0,r.addClass)(S,R)})}setTimeout(function(){(0,r.removeClass)(S,"v-modal-enter")},200),k&&k.parentNode&&k.parentNode.nodeType!==11?k.parentNode.appendChild(S):document.body.appendChild(S),_&&(S.style.zIndex=_),S.tabIndex=0,S.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:Q})}},closeModal:function(N){var _=this.modalStack,k=m();if(_.length>0){var Q=_[_.length-1];if(Q.id===N){if(Q.modalClass){var M=Q.modalClass.trim().split(/\s+/);M.forEach(function(F){return(0,r.removeClass)(k,F)})}_.pop(),_.length>0&&(k.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,r.addClass)(k,"v-modal-leave"),setTimeout(function(){_.length===0&&(k.parentNode&&k.parentNode.removeChild(k),k.style.display="none",y.modalDom=void 0),(0,r.removeClass)(k,"v-modal-leave")},200))}};Object.defineProperty(y,"zIndex",{configurable:!0,get:function(){return c||(p=p||(n.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),p},set:function(N){p=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(I){if(I.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),em.default=y,em}var tm={},nO;function _x(){if(nO)return tm;nO=1,tm.__esModule=!0,tm.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 p=document.createElement("div");p.style.width="100%",s.appendChild(p);var m=p.offsetWidth;return s.parentNode.removeChild(s),a=c-m,a};var e=Li.default,n=r(e);function r(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return tm}var iO;function rO(){if(iO)return ql;iO=1,ql.__esModule=!0,ql.PopupManager=void 0;var e=Li.default,n=y(e),r=qh(),a=y(r),s=sU(),c=y(s),p=_x(),m=y(p),g=Sa();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,I=void 0;return ql.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 k=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){k.open()}))}else this.close()}},methods:{open:function(_){var k=this;this.rendered||(this.rendered=!0);var Q=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var M=Number(Q.openDelay);M>0?this._openTimer=setTimeout(function(){k._openTimer=null,k.doOpen(Q)},M):this.doOpen(Q)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var k=this.$el,Q=_.modal,M=_.zIndex;if(M&&(c.default.zIndex=M),Q&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:k,_.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)),I=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,F=(0,g.getStyle)(document.body,"overflowY");I>0&&(T||F==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+I+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(k).position==="static"&&(k.style.position="absolute"),k.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 k=Number(this.closeDelay);k>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},k):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}}},ql.PopupManager=c.default,ql}var yx={exports:{}},aO;function lU(){return aO||(aO=1,function(e){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};(function(r,a){n(e)==="object"&&e.exports?e.exports=a():r.Popper=a()})(void 0,function(){var r=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,w,S){this._reference=v.jquery?v[0]:v,this.state={};var z=typeof w>"u"||w===null,R=w&&Object.prototype.toString.call(w)==="[object Object]";return z||R?this._popper=this.parse(R?w:{}):this._popper=w.jquery?w[0]:w,this._options=Object.assign({},a,S),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 w={tagName:"div",classNames:["popper"],attributes:[],parent:r.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};v=Object.assign({},w,v);var S=r.document,z=S.createElement(v.tagName);if(q(z,v.classNames),re(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 R=S.createElement(v.arrowTagName);q(R,v.arrowClassNames),re(R,v.arrowAttributes),z.appendChild(R)}var H=v.parent.jquery?v.parent[0]:v.parent;if(typeof H=="string"){if(H=S.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 q(ce,ge){ge.forEach(function(fe){ce.classList.add(fe)})}function re(ce,ge){ge.forEach(function(fe){ce.setAttribute(fe.split(":")[0],fe.split(":")[1]||"")})}},s.prototype._getPosition=function(v,w){if(O(w),this._options.forceAbsolute)return"absolute";var S=N(w);return S?"fixed":"absolute"},s.prototype._getOffsets=function(v,w,S){S=S.split("-")[0];var z={};z.position=this.state.position;var R=z.position==="fixed",H=T(w,O(v),R),q=c(v);return["right","left"].indexOf(S)!==-1?(z.top=H.top+H.height/2-q.height/2,S==="left"?z.left=H.left-q.width:z.left=H.right):(z.left=H.left+H.width/2-q.width/2,S==="top"?z.top=H.top-q.height:z.top=H.bottom),z.width=q.width,z.height=q.height,{popper:z,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),r.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var v=I(this._reference);(v===r.document.body||v===r.document.documentElement)&&(v=r),v.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=v}},s.prototype._removeEventListeners=function(){r.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,w,S){var z={},R,H;if(S==="window"){var q=r.document.body,re=r.document.documentElement;H=Math.max(q.scrollHeight,q.offsetHeight,re.clientHeight,re.scrollHeight,re.offsetHeight),R=Math.max(q.scrollWidth,q.offsetWidth,re.clientWidth,re.scrollWidth,re.offsetWidth),z={top:0,right:R,bottom:H,left:0}}else if(S==="viewport"){var ce=O(this._popper),ge=I(this._popper),fe=Q(ce),Ce=function(ie){return ie==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):ie.scrollTop},Se=function(ie){return ie==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):ie.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:r.document.documentElement.clientWidth-(fe.left-G),bottom:r.document.documentElement.clientHeight-(fe.top-me),left:0-(fe.left-G)}}else O(this._popper)===S?z={top:0,left:0,right:S.clientWidth,bottom:S.clientHeight}:z=Q(S);return z.left+=w,z.right-=w,z.top=z.top+w,z.bottom=z.bottom-w,z},s.prototype.runModifiers=function(v,w,S){var z=w.slice();return S!==void 0&&(z=this._options.modifiers.slice(0,g(this._options.modifiers,S))),z.forEach(function(R){k(R)&&(v=R.call(this,v))}.bind(this)),v},s.prototype.isModifierRequired=function(v,w){var S=g(this._options.modifiers,v);return!!this._options.modifiers.slice(0,S).filter(function(z){return z===w}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(v){var w={position:v.offsets.popper.position},S=Math.round(v.offsets.popper.left),z=Math.round(v.offsets.popper.top),R;return this._options.gpuAcceleration&&(R=F("transform"))?(w[R]="translate3d("+S+"px, "+z+"px, 0)",w.top=0,w.left=0):(w.left=S,w.top=z),Object.assign(w,v.styles),_(this._popper,w),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 w=v.placement,S=w.split("-")[0],z=w.split("-")[1];if(z){var R=v.offsets.reference,H=m(v.offsets.popper),q={y:{start:{top:R.top},end:{top:R.top+R.height-H.height}},x:{start:{left:R.left},end:{left:R.left+R.width-H.width}}},re=["bottom","top"].indexOf(S)!==-1?"x":"y";v.offsets.popper=Object.assign(H,q[re][z])}return v},s.prototype.modifiers.preventOverflow=function(v){var w=this._options.preventOverflowOrder,S=m(v.offsets.popper),z={left:function(){var H=S.left;return S.left<v.boundaries.left&&(H=Math.max(S.left,v.boundaries.left)),{left:H}},right:function(){var H=S.left;return S.right>v.boundaries.right&&(H=Math.min(S.left,v.boundaries.right-S.width)),{left:H}},top:function(){var H=S.top;return S.top<v.boundaries.top&&(H=Math.max(S.top,v.boundaries.top)),{top:H}},bottom:function(){var H=S.top;return S.bottom>v.boundaries.bottom&&(H=Math.min(S.top,v.boundaries.bottom-S.height)),{top:H}}};return w.forEach(function(R){v.offsets.popper=Object.assign(S,z[R]())}),v},s.prototype.modifiers.keepTogether=function(v){var w=m(v.offsets.popper),S=v.offsets.reference,z=Math.floor;return w.right<z(S.left)&&(v.offsets.popper.left=z(S.left)-w.width),w.left>z(S.right)&&(v.offsets.popper.left=z(S.right)),w.bottom<z(S.top)&&(v.offsets.popper.top=z(S.top)-w.height),w.top>z(S.bottom)&&(v.offsets.popper.top=z(S.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 w=v.placement.split("-")[0],S=p(w),z=v.placement.split("-")[1]||"",R=[];return this._options.flipBehavior==="flip"?R=[w,S]:R=this._options.flipBehavior,R.forEach(function(H,q){if(!(w!==H||R.length===q+1)){w=v.placement.split("-")[0],S=p(w);var re=m(v.offsets.popper),ce=["right","bottom"].indexOf(w)!==-1;(ce&&Math.floor(v.offsets.reference[w])>Math.floor(re[S])||!ce&&Math.floor(v.offsets.reference[w])<Math.floor(re[S]))&&(v.flipped=!0,v.placement=R[q+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 w=this._options.offset,S=v.offsets.popper;return v.placement.indexOf("left")!==-1?S.top-=w:v.placement.indexOf("right")!==-1?S.top+=w:v.placement.indexOf("top")!==-1?S.left-=w:v.placement.indexOf("bottom")!==-1&&(S.left+=w),v},s.prototype.modifiers.arrow=function(v){var w=this._options.arrowElement,S=this._options.arrowOffset;if(typeof w=="string"&&(w=this._popper.querySelector(w)),!w)return v;if(!this._popper.contains(w))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={},R=v.placement.split("-")[0],H=m(v.offsets.popper),q=v.offsets.reference,re=["left","right"].indexOf(R)!==-1,ce=re?"height":"width",ge=re?"top":"left",fe=re?"left":"top",Ce=re?"bottom":"right",Se=c(w)[ce];q[Ce]-Se<H[ge]&&(v.offsets.popper[ge]-=H[ge]-(q[Ce]-Se)),q[ge]+Se>H[Ce]&&(v.offsets.popper[ge]+=q[ge]+Se-H[Ce]);var me=q[ge]+(S||q[ce]/2-Se/2),G=me-H[ge];return G=Math.max(Math.min(H[ce]-Se-8,G),8),z[ge]=G,z[fe]="",v.offsets.arrow=z,v.arrowElement=w,v};function c(v){var w=v.style.display,S=v.style.visibility;v.style.display="block",v.style.visibility="hidden",v.offsetWidth;var z=r.getComputedStyle(v),R=parseFloat(z.marginTop)+parseFloat(z.marginBottom),H=parseFloat(z.marginLeft)+parseFloat(z.marginRight),q={width:v.offsetWidth+H,height:v.offsetHeight+R};return v.style.display=w,v.style.visibility=S,q}function p(v){var w={left:"right",right:"left",bottom:"top",top:"bottom"};return v.replace(/left|right|bottom|top/g,function(S){return w[S]})}function m(v){var w=Object.assign({},v);return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function g(v,w){var S=0,z;for(z in v){if(v[z]===w)return S;S++}return null}function y(v,w){var S=r.getComputedStyle(v,null);return S[w]}function O(v){var w=v.offsetParent;return w===r.document.body||!w?r.document.documentElement:w}function I(v){var w=v.parentNode;return w?w===r.document?r.document.body.scrollTop||r.document.body.scrollLeft?r.document.body:r.document.documentElement:["scroll","auto"].indexOf(y(w,"overflow"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-x"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-y"))!==-1?w:I(v.parentNode):v}function N(v){return v===r.document.body?!1:y(v,"position")==="fixed"?!0:v.parentNode?N(v.parentNode):v}function _(v,w){function S(z){return z!==""&&!isNaN(parseFloat(z))&&isFinite(z)}Object.keys(w).forEach(function(z){var R="";["width","height","top","right","bottom","left"].indexOf(z)!==-1&&S(w[z])&&(R="px"),v.style[z]=w[z]+R})}function k(v){var w={};return v&&w.toString.call(v)==="[object Function]"}function Q(v){var w={width:v.offsetWidth,height:v.offsetHeight,left:v.offsetLeft,top:v.offsetTop};return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function M(v){var w=v.getBoundingClientRect(),S=navigator.userAgent.indexOf("MSIE")!=-1,z=S&&v.tagName==="HTML"?-v.scrollTop:w.top;return{left:w.left,top:z,right:w.right,bottom:w.bottom,width:w.right-w.left,height:w.bottom-z}}function T(v,w,S){var z=M(v),R=M(w);if(S){var H=I(w);R.top+=H.scrollTop,R.bottom+=H.scrollTop,R.left+=H.scrollLeft,R.right+=H.scrollLeft}var q={top:z.top-R.top,left:z.left-R.left,bottom:z.top-R.top+z.height,right:z.left-R.left+z.width,width:z.width,height:z.height};return q}function F(v){for(var w=["","ms","webkit","moz","o"],S=0;S<w.length;S++){var z=w[S]?w[S]+v.charAt(0).toUpperCase()+v.slice(1):v;if(typeof r.document.body.style[z]<"u")return z}return null}return Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(w){if(w==null)throw new TypeError("Cannot convert first argument to object");for(var S=Object(w),z=1;z<arguments.length;z++){var R=arguments[z];if(R!=null){R=Object(R);for(var H=Object.keys(R),q=0,re=H.length;q<re;q++){var ce=H[q],ge=Object.getOwnPropertyDescriptor(R,ce);ge!==void 0&&ge.enumerable&&(S[ce]=R[ce])}}}return S}}),s})}(yx)),yx.exports}var oO;function nm(){if(oO)return Zh;oO=1,Zh.__esModule=!0;var e=Li.default,n=a(e),r=rO();function a(p){return p&&p.__esModule?p:{default:p}}var s=n.default.prototype.$isServer?function(){}:lU(),c=function(m){return m.stopPropagation()};return Zh.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(I){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=r.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=r.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)}},Zh}var xx={exports:{}},im={},sO;function lO(){if(sO)return im;sO=1,im.__esModule=!0;var e=Ir();return im.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var r=this.getMigratingConfig(),a=r.props,s=a===void 0?{}:a,c=r.events,p=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},I=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 I)_=(0,e.kebabCase)(_),p[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+p[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},im}var yd={},cO;function rm(){if(cO)return yd;cO=1,yd.__esModule=!0,yd.isDef=e,yd.isKorean=n;function e(r){return r!=null}function n(r){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(r)}return yd}var uO;function wx(){return uO||(uO=1,function(e){e.exports=function(n){var r={};function a(s){if(r[s])return r[s].exports;var c=r[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=r,a.d=function(s,c,p){a.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:p})},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 p=Object.create(null);if(a.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var m in s)a.d(p,m,function(g){return s[g]}.bind(null,m));return p},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,r,a){a.d(r,"a",function(){return s});function s(c,p,m,g,y,O,I,N){var _=typeof c=="function"?c.options:c;p&&(_.render=p,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var k;if(I?(k=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(I)},_._ssrRegister=k):y&&(k=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),k)if(_.functional){_._injectStyles=k;var Q=_.render;_.render=function(F,v){return k.call(v),Q(F,v)}}else{var M=_.beforeCreate;_.beforeCreate=M?[].concat(M,k):[k]}return{exports:c,options:_}}},11:function(n,r){n.exports=lO()},21:function(n,r){n.exports=rm()},4:function(n,r){n.exports=ys()},75:function(n,r,a){a.r(r);var s=function(){var R=this,H=R.$createElement,q=R._self._c||H;return q("div",{class:[R.type==="textarea"?"el-textarea":"el-input",R.inputSize?"el-input--"+R.inputSize:"",{"is-disabled":R.inputDisabled,"is-exceed":R.inputExceed,"el-input-group":R.$slots.prepend||R.$slots.append,"el-input-group--append":R.$slots.append,"el-input-group--prepend":R.$slots.prepend,"el-input--prefix":R.$slots.prefix||R.prefixIcon,"el-input--suffix":R.$slots.suffix||R.suffixIcon||R.clearable||R.showPassword}],on:{mouseenter:function(re){R.hovering=!0},mouseleave:function(re){R.hovering=!1}}},[R.type!=="textarea"?[R.$slots.prepend?q("div",{staticClass:"el-input-group__prepend"},[R._t("prepend")],2):R._e(),R.type!=="textarea"?q("input",R._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:R.tabindex,type:R.showPassword?R.passwordVisible?"text":"password":R.type,disabled:R.inputDisabled,readonly:R.readonly,autocomplete:R.autoComplete||R.autocomplete,"aria-label":R.label},on:{compositionstart:R.handleCompositionStart,compositionupdate:R.handleCompositionUpdate,compositionend:R.handleCompositionEnd,input:R.handleInput,focus:R.handleFocus,blur:R.handleBlur,change:R.handleChange}},"input",R.$attrs,!1)):R._e(),R.$slots.prefix||R.prefixIcon?q("span",{staticClass:"el-input__prefix"},[R._t("prefix"),R.prefixIcon?q("i",{staticClass:"el-input__icon",class:R.prefixIcon}):R._e()],2):R._e(),R.getSuffixVisible()?q("span",{staticClass:"el-input__suffix"},[q("span",{staticClass:"el-input__suffix-inner"},[!R.showClear||!R.showPwdVisible||!R.isWordLimitVisible?[R._t("suffix"),R.suffixIcon?q("i",{staticClass:"el-input__icon",class:R.suffixIcon}):R._e()]:R._e(),R.showClear?q("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(re){re.preventDefault()},click:R.clear}}):R._e(),R.showPwdVisible?q("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:R.handlePasswordVisible}}):R._e(),R.isWordLimitVisible?q("span",{staticClass:"el-input__count"},[q("span",{staticClass:"el-input__count-inner"},[R._v(`
|
|
30
|
+
<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+p+"</svg>"}catch(a){r=a}if(this._emit("saveSVG.done",{error:r,svg:n}),r)throw r;return{svg:n}},rn.prototype._setDefinitions=function(e){this._definitions=e},rn.prototype.getModules=function(){return this._modules},rn.prototype.clear=function(){!this.getDefinitions()||co.prototype.clear.call(this)},rn.prototype.destroy=function(){co.prototype.destroy.call(this),Vl(this._container)},rn.prototype.on=function(e,n,r,a){return this.get("eventBus").on(e,n,r,a)},rn.prototype.off=function(e,n){this.get("eventBus").off(e,n)},rn.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=xa(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},rn.prototype.getDefinitions=function(){return this._definitions},rn.prototype.detach=function(){const e=this._container,n=e.parentNode;!n||(this._emit("detach",{}),n.removeChild(e))},rn.prototype._init=function(e,n,r){const a=r.modules||this.getModules(r),s=r.additionalModules||[],c=[{bpmnjs:["value",this],moddle:["value",n]}],p=[].concat(c,a,s),m=Je(Yz(r,["additionalModules"]),{canvas:Je({},r.canvas,{container:e}),modules:p});co.call(this,m),r&&r.container&&this.attachTo(r.container)},rn.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)},rn.prototype._createContainer=function(e){const n=Vi('<div class="bjs-container"></div>');return Mn(n,{width:S2(e.width),height:S2(e.height),position:e.position}),n},rn.prototype._createModdle=function(e){const n=Je({},this._moddleExtensions,e.moddleExtensions);return new XH(n)},rn.prototype._modules=[];function Wh(e,n){return e.warnings=n,e}function dV(e){const r=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return r&&(e.message="unparsable content <"+r[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+r[2]),e}const fV={width:"100%",height:"100%",position:"relative"};function S2(e){return e+(io(e)?"px":"")}function pV(e,n){return n&&Br(e.diagrams,function(r){return r.id===n})||null}function hV(e){const r='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+E2+"</a>",a=Vi(r);Mn(xa("svg",a),k2),Mn(a,C2,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(a),ms.bind(a,"click",function(s){uV(),s.preventDefault()})}function Zl(e){rn.call(this,e)}Wr(Zl,rn),Zl.prototype._modules=[S9,W9,BI,$9,wI],Zl.prototype._moddleExtensions={};var mV=/^djs-cursor-.*$/;function D2(e){var n=hs(document.body);n.removeMatching(mV),e&&n.add("djs-cursor-"+e)}function gV(){D2(null)}var AV=5e3;function vV(e,n){n=n||"element.click";function r(){return!1}return e.once(n,AV,r),function(){e.off(n,r)}}function B2(e,n){return{x:e.x-n.x,y:e.y-n.y}}var bV=15;function I2(e,n){var r;function a(m){return p(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=r.start,y=r.button,O=PI(m),I=B2(O,g);if(!r.dragging&&_V(I)>bV&&(r.dragging=!0,y===0&&vV(e),D2("grab")),r.dragging){var N=r.last||r.start;I=B2(O,N),n.scroll({dx:I.x,dy:I.y}),r.last=O}m.preventDefault()}function c(m){ms.unbind(document,"mousemove",s),ms.unbind(document,"mouseup",c),r=null,gV()}function p(m){if(!gI(m.target,".djs-draggable")){var g=m.button;if(!(g>=2||m.ctrlKey||m.shiftKey||m.altKey))return r={button:g,start:PI(m)},ms.bind(document,"mousemove",s),ms.bind(document,"mouseup",c),!0}}this.isActive=function(){return!!r}}I2.$inject=["eventBus","canvas"];function _V(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const _d={__init__:["moveCanvas"],moveCanvas:["type",I2]};var yV=new Wy("tt");function xV(e){var n=Vi('<div class="djs-tooltip-container" />');return Mn(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function wV(e,n,r){Mn(e,{left:n+"px",top:r+"px"})}function ux(e,n){e.style.display=n===!1?"none":""}var O2="djs-tooltip",dx="."+O2;function ai(e,n){this._eventBus=e,this._canvas=n,this._ids=yV,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=xV(n.getContainer());var r=this;Hl.bind(this._tooltipRoot,dx,"mousedown",function(a){a.stopPropagation()}),Hl.bind(this._tooltipRoot,dx,"mouseover",function(a){r.trigger("mouseover",a)}),Hl.bind(this._tooltipRoot,dx,"mouseout",function(a){r.trigger("mouseout",a)}),this._init()}ai.$inject=["eventBus","canvas"],ai.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},ai.prototype.trigger=function(e,n){var r=n.delegateTarget||n.target,a=this.get(Qy(r,"data-tooltip-id"));!a||(e==="mouseover"&&a.timeout&&this.clearTimeout(a),e==="mouseout"&&a.timeout&&(a.timeout=1e3,this.setTimeout(a)))},ai.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},ai.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}},ai.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)}},ai.prototype.remove=function(e){var n=this.get(e);n&&(Vl(n.html),Vl(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])},ai.prototype.show=function(){ux(this._tooltipRoot)},ai.prototype.hide=function(){ux(this._tooltipRoot,!1)},ai.prototype._updateRoot=function(e){var n=e.scale||1,r=e.scale||1,a="matrix("+n+",0,0,"+r+","+-1*e.x*n+","+-1*e.y*r+")";this._tooltipRoot.style.transform=a,this._tooltipRoot.style["-ms-transform"]=a},ai.prototype._addTooltip=function(e){var n=e.id,r=e.html,a,s=this._tooltipRoot;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),Dr(r)&&(r=Vi(r)),a=Vi('<div data-tooltip-id="'+n+'" class="'+O2+'">'),Mn(a,{position:"absolute"}),a.appendChild(r),e.type&&hs(a).add("djs-tooltip-"+e.type),e.className&&hs(a).add(e.className),e.htmlContainer=a,s.appendChild(a),this._tooltips[n]=e,this._updateTooltip(e)},ai.prototype._updateTooltip=function(e){var n=e.position,r=e.htmlContainer;wV(r,n.x,n.y)},ai.prototype._updateTooltipVisibilty=function(e){We(this._tooltips,function(n){var r=n.show,a=n.htmlContainer,s=!0;r&&((r.minZoom>e.scale||r.maxZoom<e.scale)&&(s=!1),ux(a,s))})},ai.prototype._init=function(){var e=this;function n(r){e._updateRoot(r),e._updateTooltipVisibilty(r),e.show()}this._eventBus.on("canvas.viewbox.changing",function(r){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(r){n(r.viewbox)})};const fx={__init__:["tooltips"],tooltips:["type",ai]},EV=e=>{var n=Object.prototype.toString,r={"[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":r[n.call(e)]},px=e=>{var n=EV(e),r;if(n==="array")r=[];else if(n==="object")r={};else return e;if(n==="array")for(var a=0,s=e.length;a<s;a++)r.push(px(e[a]));else if(n==="object")for(var c in e)r[c]=px(e[c]);return r};function kV(e,n="YYYY-MM-DD HH:mm:ss"){return Zu(e).format(n)}function CV(e){e=px(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(p=>p.historyActivityId==a);c.assigneeName=Array.from(new Set(s.map(p=>p.assigneeName))).join("/")}}const r=[];return e.forEach(a=>{let{assigneeName:s,createTime:c,endTime:p,comments:m}=a;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(c=c.replace(/-/g,"/"),p=p.replace(/-/g,"/"));const g={id:a.historyActivityId,class:!p&&a.historyActivityType!="candidate"?"nodePrimary":""};let y="";if(s){if(y=`<span title='${s}'>${s}</span><br>`,c&&(y+=`<span title='${c}'>${kV(c,"YYYY-MM-DD HH:mm")}</span><br>`),m&&m.length>0){let I,{type:N,fullMessage:_}=m.find(k=>k.action=="AddComment")||{};N=="assigneeComment"&&(I="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+_,g.class="nodeWarn"),N=="dispatchComment"&&(I="\u8C03\u5EA6\uFF1A"+_,g.class="nodeWarn"),N=="transferComment"&&(I="\u8F6C\u529E\uFF1A"+_,g.class="nodeWarn"),N=="delegateComment"&&(I="\u59D4\u6258\uFF1A"+_,g.class="nodeWarn"),N=="rollbackComment"&&(I="\u9A73\u56DE\uFF1A"+_,g.class="nodeError"),N=="terminateComment"&&(I="\u7EC8\u6B62\uFF1A"+_,g.class="nodeError"),N=="addMultiInstanceComment"&&(I="\u52A0\u7B7E\uFF1A"+_,g.class="nodeWarn"),N=="deleteMultiInstanceComment"&&(I="\u51CF\u7B7E\uFF1A"+_,g.class="nodeError"),N=="withdrawComment"&&(I="\u64A4\u9500\uFF1A"+_,g.class="nodeWarn"),N=="deleteProcessComment"&&(I="\u5220\u9664\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="cancelProcessComment"&&(I="\u64A4\u9500\u6D41\u7A0B\uFF1A"+_,g.class="nodeError"),N=="comment"&&(I="\u5BA1\u6279\uFF1A"+_,g.class="nodeSuccess"),I&&(y+=`<span title='${I}'>${I}</span>`)}g.tooltip=y}a.historyActivityType=="sequenceFlow"?g.class="lineWarn":!g.class&&a.historyActivityType!="candidate"&&(g.class="nodeSuccess");const O=r.findIndex(I=>I.id==a.historyActivityId);O!=-1?r.splice(O,1,g):r.push(g)}),r}function hx(e){const n=[],r=[],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"?r.push(...s.ids):s.type==="dept"&&a.push(...s.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(n)],postIds:[...new Set(r)],deptIds:[...new Set(a)]}}var SV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}})},DV=[];const DX="",BV={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={},r="";try{n=await api.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(Zl)=="[object Function]"?Zl:Zl.default,n=Object.prototype.toString.call(fx)=="[object Object]"?fx:fx.default,r=Object.prototype.toString.call(_d)=="[object Object]"?_d:_d.default;Object.prototype.toString.call(_d),this.viewer=new e({container:this.$refs.container,additionalModules:[n,r]}),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"),r=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=r.get(s.id);if(c){let{x:p,y:m,type:g}=c;["bpmn:StartEvent","bpmn:EndEvent"].includes(g)?(p=p-45,m=m+65):["bpmn:UserTask"].includes(g)&&(p=p-10,m=m+90),a.add({position:{x:p,y:m},html:s.tooltip})}}})},addApprovalData(){if(this.approvalData,!this.approvalData||this.approvalData.length==0)return;const e=CV(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()}},T2={};var IV=fn(BV,SV,DV,!1,OV,"5e479c8e",null,null);function OV(e){for(let n in T2)this[n]=T2[n]}const N2=function(){return IV.exports}();var TV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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():[r("div",{ref:"baseTabs",staticClass:"tabs"},[r("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 r("el-tab-pane",{key:s,attrs:{label:a.name,name:a.slot||a.name,item:a}},[a.name=="\u57FA\u672C\u4FE1\u606F"&&!a.slot?[r("div",{style:{height:`${e.baseHeight}px`}},[e._t("default",null,{taskNode:e.getTaskNode(),processData:e.processData})],2)]:a.name=="\u6D41\u7A0B\u56FE"&&!a.slot?[r("div",{staticClass:"view-node-info",on:{click:e.getNodeList}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]),e.trackUrl?r("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?r("bpmnLook",{attrs:{approvalData:e.processData.flow,diagram:e.processData.process.xml}}):r("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?r("processFlow",{attrs:{"flow-list":e.formatFlow(e.processData.flow)}}):r("div",{staticStyle:{height:"100px",display:"flex","align-items":"center","justify-content":"center"}},[e._v(" \u6682\u65E0\u6570\u636E ")])]:[e.activeName==a.name?r("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?r("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?r("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?r("el-dropdown",{attrs:{placement:"top-start",trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",e._l(e.absoluteBtns.inside,function(a,s){return r("el-dropdown-item",{key:a.name+s,nativeOn:{click:function(c){return function(){a.click(),e.aftClickBtn=a}.apply(null,arguments)}}},[r("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)},[r("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small"}},[e._v(" \u66F4\u591A ")])],1):e._e(),e._l(e.absoluteBtns.outside,function(a){return r("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():r("div"),r("div",{staticClass:"dialog"},[r("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[r("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")]),r("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"}},[r("div",{ref:"obRef",staticClass:"operation-box"},[e.dialogVisibleOperation?r(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?r("el-form",{attrs:{"label-width":"120px","status-icon":"",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u9644\u4EF6",prop:e.attachRule.required?"attach":""}},[r("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)]),r("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"}},[r("el-form",{ref:"form",staticClass:"task",attrs:{"label-width":"100px"}},[r("el-form-item",{attrs:{label:"\u8BF7\u9009\u62E9\uFF1A",prop:"content"}},[r("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 r("el-radio",{key:a.nodeId,attrs:{label:a.taskId,border:""}},[e._v(e._s(a.nodeName))])}),1)],1)],1),r("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:e.onCheckSure}},[e._v("\u786E\u5B9A")])],1)],1),r("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"}},[r("el-table",{staticClass:"process-table",attrs:{data:e.filterFlow(e.processData.flow),border:"","header-row-style":e.headerRowStyle}},[r("el-table-column",{attrs:{label:"\u5E8F\u53F7",type:"index",width:"60px",align:"center"}}),r("el-table-column",{attrs:{prop:"historyActivityName",label:"\u8282\u70B9\u540D\u79F0","min-width":"130"}}),r("el-table-column",{attrs:{prop:"assigneeName",label:"\u5BA1\u6279\u4EBA","min-width":"80"}})],1)],1)],1)],2)},NV=[];const BX="",IX="",MV={components:{processBtns:Iz,processFlow:Pz,bpmnLook:N2,staffTree:ga,...vD,ViewFile:pR,JyrFileUpload:ih},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:vD,Enum:wp,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==_t.success&&(this.taskNode=n.data,Ze.pis.getProcessStatus(this.processId,this.absoluteTaskId).then(r=>{r.code==_t.success&&(this.processStatus=r.data,this.$emit("getStatus",r.data),this.absoluteTaskId?Ze.repository.getUserTaskModelCmd(this.absoluteTaskId).then(a=>{a.code==_t.success&&(this.taskObj=a.data,this.straightenBtns())}):this.straightenBtns())}))}),Ze.repository.getTrackUrl({processInstId:e,type:zb.\u7535\u8111\u7AEF}).then(n=>{n.code==_t.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(r=>r.digitalSignature).map(r=>r.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(r=>({...r,attachmentsFujian:(r.attachments||[]).filter(a=>a.type!="signature"),attachmentsQianzi:(r.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 r=(this.processData.process||{}).taskId;this.taskObj.buttons=this.processData.button,this.absoluteTaskId=r,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 r=hx(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.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(K_,e)}):this.showOperation(K_,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(uD,e)},handleUserSelect({type:e,checkType:n,name:r}){e=="transfer"?this.handleTransfer(r):e=="addInstance"&&this.handleAddInstance(r)},handleTransfer(e){this.showOperation(rD,e)},handleAddInstance(e){this.showOperation(tD,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(fD,e)},handleTerminateProcess(){},handleCirculate(e){this.showOperation(AD,e)},handleWithdrawTask(e){this.handleRevoke()},findTargetHtml(e,n,r="parentElement"){if(!e)return null;if(e.classList.contains(n))return e;let a=e[r];if(!a)return null;if(r=="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 r="/";e.indexOf("\\")!=-1&&(r="\\");let a=e,s=a.lastIndexOf(r);return a.substr(s+1+n,a.length)},clickCustomButton(e){this.$emit("clickCustomButton",{name:e,processStatus:this.processStatus,setName:n=>{this.taskObj.buttons.map(r=>{r.label==e&&(r.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 r=n.data||{};n.code==200&&!n.data.evaluation&&(this.incomingConditionItemList=[],r.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,n.data.id)),r=await this.getSelectFixData(r,e),this.nextTaskNode=r},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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 r=this.$refs.obRef;if(this.$refs,!r)return;let a=(m=r.getBoundingClientRect())==null?void 0:m.top,s=this.findTargetHtml(r,"el-dialog"),c=this.findTargetHtml(s,"el-dialog__footer","children"),p=window.innerHeight-((g=r.getBoundingClientRect())==null?void 0:g.top)-a-(c==null?void 0:c.clientHeight)-32;this.dynamicMaxHeight=`${p}px`})},onClickOperation(){if(this.attachShow&&this.attachRule.required&&this.attach.length==0)return ad.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(r=>{n.push({id:r.id,name:this.fileNameLastof(r.name),size:r.fileSize,format:r.fileType,url:r.url,uploadTime:r.createTime,processInstId:this.operationParam.processInstId,taskInstId:this.operationParam.taskInstId})}),n=n.sort((r,a)=>Zu(r.uploadTime).valueOf()>Zu(a.uploadTime).valueOf())),this.$refs.operationRef&&this.$refs.operationRef.confirm(e,()=>{this.isOperLoading=!0},n)},operationSuccess(e=!0){ad.success("\u64CD\u4F5C\u6210\u529F"),this.dialogVisibleOperation=!1,e&&this.$emit("Complete"),this.isOperLoading=!1},operationFail(e=""){e&&ad.warning(e),this.isOperLoading=!1},async getSelectFixData(e,n){let r=JSON.parse(JSON.stringify(e));if(r.nodeType!="userTask"&&Array.isArray(r.branches))for(let a=0;a<r.branches.length;a++){let s=r.branches[a],c=s.nodeInfoDTO?s.nodeInfoDTO:s;try{c=await this.getSelectFixData(c,n)}catch(p){}s.nodeInfoDTO?s.nodeInfoDTO=c:s=c,r.branches[a]=s}else if(r.nodeType=="userTask"&&!r.setPersonnel){let a=hx(r),s;try{s=await this.getNodeUser({deptId:n,intersection:a.intersection?1:0,userIds:a.userIds,postIds:a.postIds,deptIds:a.deptIds}),s.code==_t.success}catch(c){}s.code==_t.success&&(r.userList=s.data)}return r},async getOutgoingProcessNode(e,n){let r=await Ze.repository.getOutgoingProcessNode(e,n);if(r.code==_t.success){if(r.data){for(let a=0;a<r.data.length;a++){let s=r.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)),r.data[a].type!="endEvent"&&(r.data[a].humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.data[a].humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&await Ze.repository.getParticipantsOfPerformerNames(e,[r.data[a].id]).then(c=>{r.data[a].routeTxt.userNames=c.data[r.data[a].id]})}r.data.length==0&&r.data.push({id:"",incomingConditionItemList:[],type:"endEvent",name:"\u7ED3\u675F\u4E8B\u4EF6"})}return r.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(){KB.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==_t.success&&(ad.success("\u64CD\u4F5C\u6210\u529F"),this.$emit("Complete"))})}).catch(()=>{})},handleReminders(){KB.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==_t.success&&(ad.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 r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.key="sign",r.click=()=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name})},e.push(r)}if(n.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.key="delegate",r.click=()=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name})},e.push(r)}if(n.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name})},e.push(r)}if(n.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess()},e.push(r)}if(n.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"primary"},r.key="cc",r.click=()=>{this.handleCirculate(this.getButton("wf_cctask").name)},e.push(r)}if(n.status=="todo"&&this.userId==(n.variables||{}).applyUserId){let r={};r.name="\u50AC\u529E",r.key="self",r.click=()=>{this.handleReminders()},e.push(r)}if(n.isOwner&&n.isReturnable&&!["recall","reject"].includes(n.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"danger"},r.key="self",r.click=()=>{this.handleWithdrawTask("\u64A4\u9500")},e.push(r)}if(n.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},r.key="refuse",r.click=()=>{this.handleExamine(!1,this.getButton("wf_reject").name)},e.push(r)}if(n.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},r.key="complete",r.click=()=>{this.before?this.before().then(()=>{this.handleExamine(!0,this.getButton("wf_pass").name)}):this.handleExamine(!0,this.getButton("wf_pass").name)},e.push(r)}if(n.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},r.key="back",r.click=()=>{this.handleRollbackTask(this.getButton("wf_rollback").name)},e.unshift(r)}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 r={outside:[],inside:[]};n.length>4?(r.outside=n.splice(n.length-4,n.length-1),r.inside=n):r.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=r,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,r,a="";switch(this.operationLabel){case"\u9000\u56DE":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"",a&&(n=!0);break;case"\u901A\u8FC7":case"\u529E\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u5904\u7406":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u540C\u610F":r=e.find(c=>c.name=="completeButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u62D2\u7EDD":r=e.find(c=>c.name=="otherButtonAnnexList"),a=r?r.value:"";break;case"\u52A0\u7B7E":r=e.find(c=>c.name=="counterSignButtonAnnex"),a=r?r.value:"",a&&(n=!0);break;case"\u8F6C\u529E":r=e.find(c=>c.name=="delegateTaskButtonAnnex"),a=r?r.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}}},M2={};var FV=fn(MV,TV,NV,!1,PV,"6425acaf",null,null);function PV(e){for(let n in M2)this[n]=M2[n]}const F2=function(){return FV.exports}(),RV=async(e,n)=>{const r=n||{},a=r.dragElement||(r.targetClassName?P2(e,r.targetClassName):e.querySelector(".el-dialog"));let s;new IntersectionObserver(v=>{s=v[0].isIntersecting,s||F()}).observe(a);const p=r.dragHeader||".el-dialog__header",m=a.querySelector(p),g=r.restrictElement||document.body;let y;g?y=g.getBoundingClientRect():y={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};let O=!1,I,N,_;const k=()=>{if(m){m.style.cursor="move",m.style["user-select"]="none",m.onmousedown=w=>{O=!0;const S=a.style.transform.match(/translate\(([^,]+)px,\s*([^)]+)px\)/);I=S?parseFloat(S[1]):0,N=S?parseFloat(S[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}}},Q=()=>{O=!1,m.style.cursor="auto",m.style["user-select"]="auto",m.onmousedown=v=>{}};x.watch(r.dialogConfig,(v,w)=>{v.fullScreen&&(Q(),F())}),k();const M=v=>{if(!O)return;v.stopPropagation(),v.preventDefault();let w=v.movementX+I,S=v.movementY+N;w>=0?w=w>=_["+x"]?_["+x"]:w:w=w<=_["-x"]?_["-x"]:w,S>=0?S=S>=_["+y"]?_["+y"]:S:S=S<=_["-y"]?_["-y"]:S,a.style.transform=`translate(${w}px, ${S}px)`,I=w,N=S},T=()=>{O=!1,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",T),a.style["user-select"]="auto"},F=()=>{a.style.transform="none"}};function P2(e,n){if(!e)return null;if(e.classList.contains(n))return e;let r=e.parentElement;return r?P2(r,n):null}const LV="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 jV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("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[r("div",{staticClass:"dialog-header"},[e._t("title",function(){return[r("div",[e._v("\u6D41\u7A0B\u4FE1\u606F")])]}),r("div",{staticClass:"dialog-icon"},[r("span",{on:{click:function(a){e.fullscreen=!e.fullscreen}}},[r("img",{attrs:{src:LV,alt:""}})])])],2)]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(a){e.visible=a},expression:"visible"}},[e.showProcess?r("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),[r("div",{staticClass:"processDialogMain"},[e._t("default")],2)]):e._e()],1)},QV=[];const OX="",zV={components:{process:F2},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,RV(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)}}},R2={};var HV=fn(zV,jV,QV,!1,VV,null,null,null);function VV(e){for(let n in R2)this[n]=R2[n]}const UV=function(){return HV.exports}();var YV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{attrs:{loading:e.btnLoading,type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("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"}},[r("el-form",{staticClass:"create-form",attrs:{"label-width":"200px","status-icon":""},nativeOn:{submit:function(a){a.preventDefault()}}},[r("el-form-item",{attrs:{label:"\u5F53\u524D\u6D41\u7A0B",size:"medium",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6D41\u7A0B"}]}},[e.processDefList.length>1?r("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 r("el-option",{key:s,attrs:{label:a.name,value:a.id,disabled:a.disabled}})}),1):r("b",{staticClass:"process-def-name"},[e._v(" "+e._s(e.processDefName)+" ")]),e.processDefId?r("div",{staticClass:"view-node-info",staticStyle:{"margin-right":"10px"},on:{click:e.viewFlowChart}},[e._v(" \u9884\u89C8 ")]):e._e(),e.processDefId&&e.showFlowForecast?r("div",{staticClass:"view-node-info",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()],1),e.hasDeptId?e._e():r("el-form-item",{attrs:{size:"medium",label:"\u9009\u62E9\u90E8\u95E8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8"}]}},[r("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?r("div",{staticClass:"node-list"},[e.processList&&e.processList.length>0?r("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[r("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?r("div",{staticClass:"user-task-split"}):e._e()]})]:e._e()],2):e._e()],1)],1),r("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?r("bpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml}}):e._e()],1),r("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}},[r("div",{staticStyle:{"margin-left":"20px"}},[r("div",{staticStyle:{"margin-left":"40px","margin-bottom":"20px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),r("el-timeline",e._l(e.flowForecastData.processBudgetModelList,function(a,s){return r("el-timeline-item",{key:s,attrs:{icon:"el-icon-check",color:s==0?"#009800":a.color,timestamp:a.title,placement:"top"}},[r("div",[r("span",{staticStyle:{color:"#1389FF"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u53D1\u8D77\u4EBA\uFF1A"+e._s(a.createUser)+" ")]),r("span",{staticStyle:{color:"#009800","margin-left":"50px"}},[r("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-right":"5px"}}),e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(a.excutor)+" ")])])])}),1)],1)])],1)},WV=[];const TX="",NX="";var $l=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{$l=e});const GV={components:{userTask:J_,bpmnLook:N2},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={},r="";try{n=await Ze.repository.getXmlByProcessDefId({processDefId:e}),n.code==200&&(r=n.data)}catch(a){console.error(a)}return r},async viewFlowChart(){this.flowChartVisible=!0,this.processXml=await this.getXml(this.processDefId),!Date.now()&&Ze.repository.getDiagramUrl({processDefId:this.processDefId,diagramType:1,type:zb.\u7535\u8111\u7AEF}).then(e=>{e.code==_t.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,r)=>{Ze.pis.getProcessForecast({processDefId:this.processDefId,...e}).then(a=>{this.btnLoading=!1,a.code==_t.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"),r(a)})})},flowForecastClose(){this.flowForecastProcessInstId?Ze.pis.deleteProcessById(this.flowForecastProcessInstId).then(e=>{e.code==_t.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==_t.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,r)=>{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==_t.success?(this.flag=!1,n(a)):$l.error(a.msg)}).catch(a=>{this.btnLoading=!1,$l.error("\u6D41\u7A0B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),r(a)})})},revivalFlow(e={},n=!1,r="\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(p=>{const m=p.toLowerCase();m.includes("_")&&delete c[p],m=="appShow"&&delete c[p]}),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,r,"",n,this._multiNodeParticipant).then(p=>{this.btnLoading=!1,p.code==_t.success?(this.flag=!1,a(p)):$l.error(p.msg)}).catch(p=>{this.btnLoading=!1,$l.error("\u6D41\u7A0B\u590D\u6D3B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s(p)})})},Show(e,n="",r=!1){return this.processList=[],this.revival=r,this.processDefId=e,n&&Ze.repository.getProcessDefList(n,"").then(a=>{a.code==_t.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==_t.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,r)=>{this.cancelCallBack=r,Ze.repository.getProcessDefListNew(e).then(a=>{a.code==_t.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==_t.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 r=hx(e);let a;try{a=await this.getNodeUser({deptId:this.deptId,intersection:r.intersection?1:0,userIds:r.userIds,postIds:r.postIds,deptIds:r.deptIds})}catch(s){}if(a.code==_t.success){const s=this.processList[n];s.userList=a.data,this.$set(this.processList,n,s)}})},async getNodeUser({deptId:e,intersection:n,userIds:r,postIds:a,deptIds:s}){return await Ze.user.getTaskAuditor({deptId:e,intersection:n,userIds:r,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,r)=>{e.length==1?(this.processDefId=e[0].id,this.processDefName=e[0].name,this.cancelCallBack=r,Ze.repository.getFirstProcessNode(this.processDefId).then(a=>{a.code==_t.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 r={};try{r=await Ze.tis.getTaskModelDetail(e?{processInstId:n,taskId:e}:{processInstId:n})}catch{r={}}return r.code==200,r},async revivalShow({processInstId:e,businessId:n,taskId:r,deptId:a}){this.processInstId=e,this.hasDeptId=!!a;let s=await this.getProcessInfo({taskId:r,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 p=(this.processData.process||{}).taskId;return this.absoluteTaskId=p,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 $l.warning("\u8BF7\u9009\u62E9\u6D41\u7A0B"),!1;let e={},n={};for(let r in this.userTaskListData){let a=this.userTaskListData[r],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()}}},L2={};var JV=fn(GV,YV,WV,!1,KV,"30078fe4",null,null);function KV(e){for(let n in L2)this[n]=L2[n]}const XV=function(){return JV.exports}();var ZV=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",[r("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[r("el-button",{directives:[{name:"loading",rawName:"v-loading"}],attrs:{type:"primary"},on:{click:e.onClickOperation}},[e._v("\u786E \u5B9A")]),r("el-button",{on:{click:e.onClickCancel}},[e._v("\u53D6 \u6D88")])]},proxy:!0}])},[r("el-form",{attrs:{"label-width":"100px","status-icon":""}},[e.isUserTask?e._l(e.processList,function(a){return r("userTask",{key:a.id,ref:e.setItemRef(a.id),refInFor:!0,attrs:{processNode:a}})}):e._e()],2)],1)],1)},$V=[],j2=null;Promise.resolve().then(()=>Or).then(({Message:e})=>{j2=e});const qV={components:{userTask:J_},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,r)=>{this.cancelCallBack=r,Ze.repository.getFirstProcessNode(e).then(a=>{a.code==_t.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 j2.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={},r={};for(let a in this.userTaskListData){let s=this.userTaskListData[a],p=this.$refs[s][0].getValue();if(!p)return!1;n={...n,...p.multiNodeParticipant},r={...r,...p.vars},e={...e,multiNodeParticipant:n,vars:r}}}this.callbacak&&this.callbacak(e),this.flag=!1},onClickCancel(){this.flag=!1,this.cancelCallBack&&this.cancelCallBack()}}},Q2={};var eU=fn(qV,ZV,$V,!1,tU,null,null,null);function tU(e){for(let n in Q2)this[n]=Q2[n]}const nU=function(){return eU.exports}();Promise.resolve().then(()=>RG);var mx={exports:{}},Ue={},gx={exports:{}},z2;function H2(){return z2||(z2=1,function(e){(function(n){var r={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",c="\\d{3}",p="\\d{4}",m="[^\\s]+",g=/\[([^]*?)\]/gm,y=function(){};function O(w){return w.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function I(w,S){for(var z=[],R=0,H=w.length;R<H;R++)z.push(w[R].substr(0,S));return z}function N(w){return function(S,z,R){var H=R[w].indexOf(z.charAt(0).toUpperCase()+z.substr(1).toLowerCase());~H&&(S.month=H)}}function _(w,S){for(w=String(w),S=S||2;w.length<S;)w="0"+w;return w}var k=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Q=["January","February","March","April","May","June","July","August","September","October","November","December"],M=I(Q,3),T=I(k,3);r.i18n={dayNamesShort:T,dayNames:k,monthNamesShort:M,monthNames:Q,amPm:["am","pm"],DoFn:function(S){return S+["th","st","nd","rd"][S%10>3?0:(S-S%10!==10)*S%10]}};var F={D:function(S){return S.getDay()},DD:function(S){return _(S.getDay())},Do:function(S,z){return z.DoFn(S.getDate())},d:function(S){return S.getDate()},dd:function(S){return _(S.getDate())},ddd:function(S,z){return z.dayNamesShort[S.getDay()]},dddd:function(S,z){return z.dayNames[S.getDay()]},M:function(S){return S.getMonth()+1},MM:function(S){return _(S.getMonth()+1)},MMM:function(S,z){return z.monthNamesShort[S.getMonth()]},MMMM:function(S,z){return z.monthNames[S.getMonth()]},yy:function(S){return _(String(S.getFullYear()),4).substr(2)},yyyy:function(S){return _(S.getFullYear(),4)},h:function(S){return S.getHours()%12||12},hh:function(S){return _(S.getHours()%12||12)},H:function(S){return S.getHours()},HH:function(S){return _(S.getHours())},m:function(S){return S.getMinutes()},mm:function(S){return _(S.getMinutes())},s:function(S){return S.getSeconds()},ss:function(S){return _(S.getSeconds())},S:function(S){return Math.round(S.getMilliseconds()/100)},SS:function(S){return _(Math.round(S.getMilliseconds()/10),2)},SSS:function(S){return _(S.getMilliseconds(),3)},a:function(S,z){return S.getHours()<12?z.amPm[0]:z.amPm[1]},A:function(S,z){return S.getHours()<12?z.amPm[0].toUpperCase():z.amPm[1].toUpperCase()},ZZ:function(S){var z=S.getTimezoneOffset();return(z>0?"-":"+")+_(Math.floor(Math.abs(z)/60)*100+Math.abs(z)%60,4)}},v={d:[s,function(w,S){w.day=S}],Do:[s+m,function(w,S){w.day=parseInt(S,10)}],M:[s,function(w,S){w.month=S-1}],yy:[s,function(w,S){var z=new Date,R=+(""+z.getFullYear()).substr(0,2);w.year=""+(S>68?R-1:R)+S}],h:[s,function(w,S){w.hour=S}],m:[s,function(w,S){w.minute=S}],s:[s,function(w,S){w.second=S}],yyyy:[p,function(w,S){w.year=S}],S:["\\d",function(w,S){w.millisecond=S*100}],SS:["\\d{2}",function(w,S){w.millisecond=S*10}],SSS:[c,function(w,S){w.millisecond=S}],D:[s,y],ddd:[m,y],MMM:[m,N("monthNamesShort")],MMMM:[m,N("monthNames")],a:[m,function(w,S,z){var R=S.toLowerCase();R===z.amPm[0]?w.isPm=!1:R===z.amPm[1]&&(w.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(w,S){var z=(S+"").match(/([+-]|\d\d)/gi),R;z&&(R=+(z[1]*60)+parseInt(z[2],10),w.timezoneOffset=z[0]==="+"?R:-R)}]};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,r.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"},r.format=function(w,S,z){var R=z||r.i18n;if(typeof w=="number"&&(w=new Date(w)),Object.prototype.toString.call(w)!=="[object Date]"||isNaN(w.getTime()))throw new Error("Invalid Date in fecha.format");S=r.masks[S]||S||r.masks.default;var H=[];return S=S.replace(g,function(q,re){return H.push(re),"@@@"}),S=S.replace(a,function(q){return q in F?F[q](w,R):q.slice(1,q.length-1)}),S.replace(/@@@/g,function(){return H.shift()})},r.parse=function(w,S,z){var R=z||r.i18n;if(typeof S!="string")throw new Error("Invalid format in fecha.parse");if(S=r.masks[S]||S,w.length>1e3)return null;var H={},q=[],re=[];S=S.replace(g,function(me,G){return re.push(G),"@@@"});var ce=O(S).replace(a,function(me){if(v[me]){var G=v[me];return q.push(G[1]),"("+G[0]+")"}return me});ce=ce.replace(/@@@/g,function(){return re.shift()});var ge=w.match(new RegExp(ce,"i"));if(!ge)return null;for(var fe=1;fe<ge.length;fe++)q[fe-1](H,ge[fe],R);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=r:n.fecha=r})(void 0)}(gx)),gx.exports}var Zr={},Gh={},V2;function iU(){return V2||(V2=1,Gh.__esModule=!0,Gh.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"}}}),Gh}var Ax,U2;function rU(){if(U2)return Ax;U2=1;var e=function(_){return n(_)&&!r(_)};function n(N){return!!N&&typeof N=="object"}function r(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 p(N){return Array.isArray(N)?[]:{}}function m(N,_){var k=_&&_.clone===!0;return k&&e(N)?O(p(N),N,_):N}function g(N,_,k){var Q=N.slice();return _.forEach(function(M,T){typeof Q[T]>"u"?Q[T]=m(M,k):e(M)?Q[T]=O(N[T],M,k):N.indexOf(M)===-1&&Q.push(m(M,k))}),Q}function y(N,_,k){var Q={};return e(N)&&Object.keys(N).forEach(function(M){Q[M]=m(N[M],k)}),Object.keys(_).forEach(function(M){!e(_[M])||!N[M]?Q[M]=m(_[M],k):Q[M]=O(N[M],_[M],k)}),Q}function O(N,_,k){var Q=Array.isArray(_),M=Array.isArray(N),T=k||{arrayMerge:g},F=Q===M;if(F)if(Q){var v=T.arrayMerge||g;return v(N,_,k)}else return y(N,_,k);else return m(_,k)}O.all=function(_,k){if(!Array.isArray(_)||_.length<2)throw new Error("first argument should be an array with at least two elements");return _.reduce(function(Q,M){return O(Q,M,k)})};var I=O;return Ax=I,Ax}var Jh={},ct={},Gi={},Y2;function W2(){if(Y2)return Gi;Y2=1,Gi.__esModule=!0,Gi.isDefined=Gi.isUndefined=Gi.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};Gi.isString=s,Gi.isObject=c,Gi.isHtmlElement=p;var n=Li.default,r=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 p(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"&&(r.default.prototype.$isServer||typeof document.childNodes!="function")&&(Gi.isFunction=m=function(y){return typeof y=="function"||!1}),Gi.isFunction=m,Gi.isUndefined=function(y){return y===void 0},Gi.isDefined=function(y){return y!=null},Gi}var G2;function Ir(){if(G2)return ct;G2=1,ct.__esModule=!0,ct.isMac=ct.isEmpty=ct.isEqual=ct.arrayEquals=ct.looseEqual=ct.capitalize=ct.kebabCase=ct.autoprefixer=ct.isFirefox=ct.isEdge=ct.isIE=ct.coerceTruthyValueToArray=ct.arrayFind=ct.arrayFindIndex=ct.escapeRegexpString=ct.valueEquals=ct.generateId=ct.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};ct.noop=p,ct.hasOwn=m,ct.toObject=y,ct.getPropByPath=O,ct.rafThrottle=Q,ct.objToArray=M;var n=Li.default,r=s(n),a=W2();function s(T){return T&&T.__esModule?T:{default:T}}var c=Object.prototype.hasOwnProperty;function p(){}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}ct.getValueByPath=function(F,v){v=v||"";for(var w=v.split("."),S=F,z=null,R=0,H=w.length;R<H;R++){var q=w[R];if(!S)break;if(R===H-1){z=S[q];break}S=S[q]}return z};function O(T,F,v){var w=T;F=F.replace(/\[(\w+)\]/g,".$1"),F=F.replace(/^\./,"");for(var S=F.split("."),z=0,R=S.length;z<R-1&&!(!w&&!v);++z){var H=S[z];if(H in w)w=w[H];else{if(v)throw new Error("please transfer a valid prop path to form item!");break}}return{o:w,k:S[z],v:w?w[S[z]]:null}}ct.generateId=function(){return Math.floor(Math.random()*1e4)},ct.valueEquals=function(F,v){if(F===v)return!0;if(!(F instanceof Array)||!(v instanceof Array)||F.length!==v.length)return!1;for(var w=0;w!==F.length;++w)if(F[w]!==v[w])return!1;return!0},ct.escapeRegexpString=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String(F).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var I=ct.arrayFindIndex=function(F,v){for(var w=0;w!==F.length;++w)if(v(F[w]))return w;return-1};ct.arrayFind=function(F,v){var w=I(F,v);return w!==-1?F[w]:void 0},ct.coerceTruthyValueToArray=function(F){return Array.isArray(F)?F:F?[F]:[]},ct.isIE=function(){return!r.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},ct.isEdge=function(){return!r.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},ct.isFirefox=function(){return!r.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},ct.autoprefixer=function(F){if((typeof F>"u"?"undefined":e(F))!=="object")return F;var v=["transform","transition","animation"],w=["ms-","webkit-"];return v.forEach(function(S){var z=F[S];S&&z&&w.forEach(function(R){F[R+S]=z})}),F},ct.kebabCase=function(F){var v=/([^-])([A-Z])/g;return F.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()},ct.capitalize=function(F){return(0,a.isString)(F)?F.charAt(0).toUpperCase()+F.slice(1):F};var N=ct.looseEqual=function(F,v){var w=(0,a.isObject)(F),S=(0,a.isObject)(v);return w&&S?JSON.stringify(F)===JSON.stringify(v):!w&&!S?String(F)===String(v):!1},_=ct.arrayEquals=function(F,v){if(F=F||[],v=v||[],F.length!==v.length)return!1;for(var w=0;w<F.length;w++)if(!N(F[w],v[w]))return!1;return!0};ct.isEqual=function(F,v){return Array.isArray(F)&&Array.isArray(v)?_(F,v):N(F,v)};var k=ct.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 Q(T){var F=!1;return function(){for(var v=this,w=arguments.length,S=Array(w),z=0;z<w;z++)S[z]=arguments[z];F||(F=!0,window.requestAnimationFrame(function(R){T.apply(v,S),F=!1}))}}function M(T){return Array.isArray(T)?T:k(T)?[]:[T]}return ct.isMac=function(){return!r.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)},ct}var J2;function aU(){if(J2)return Jh;J2=1,Jh.__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};Jh.default=function(a){function s(c){for(var p=arguments.length,m=Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];return m.length===1&&e(m[0])==="object"&&(m=m[0]),(!m||!m.hasOwnProperty)&&(m={}),c.replace(r,function(y,O,I,N){var _=void 0;return c[N-1]==="{"&&c[N+y.length]==="}"?I:(_=(0,n.hasOwn)(m,I)?m[I]:null,_==null?"":_)})}return s};var n=Ir(),r=/(%|)\{([0-9a-zA-Z_]+)\}/g;return Jh}var K2;function vx(){if(K2)return Zr;K2=1,Zr.__esModule=!0,Zr.i18n=Zr.use=Zr.t=void 0;var e=iU(),n=g(e),r=Li.default,a=g(r),s=rU(),c=g(s),p=aU(),m=g(p);function g(M){return M&&M.__esModule?M:{default:M}}var y=(0,m.default)(a.default),O=n.default,I=!1,N=function(){var T=Object.getPrototypeOf(this||a.default).$t;if(typeof T=="function"&&!!a.default.locale)return I||(I=!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)},_=Zr.t=function(T,F){var v=N.apply(this,arguments);if(v!=null)return v;for(var w=T.split("."),S=O,z=0,R=w.length;z<R;z++){var H=w[z];if(v=S[H],z===R-1)return y(v,F);if(!v)return"";S=v}return""},k=Zr.use=function(T){O=T||O},Q=Zr.i18n=function(T){N=T||N};return Zr.default={use:k,t:_,i18n:Q},Zr}var X2;function oU(){if(X2)return Ue;X2=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=H2(),n=a(e),r=vx();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"],p=function(w,S){for(var z=[],R=w;R<=S;R++)z.push(R);return z},m=Ue.getI18nSettings=function(){return{dayNamesShort:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),dayNames:s.map(function(w){return(0,r.t)("el.datepicker.weeks."+w)}),monthNamesShort:c.map(function(w){return(0,r.t)("el.datepicker.months."+w)}),monthNames:c.map(function(w,S){return(0,r.t)("el.datepicker.month"+(S+1))}),amPm:["am","pm"]}},g=Ue.toDate=function(w){return y(w)?new Date(w):null},y=Ue.isDate=function(w){return!(w==null||isNaN(new Date(w).getTime())||Array.isArray(w))};Ue.isDateObject=function(w){return w instanceof Date},Ue.formatDate=function(w,S){return w=g(w),w?n.default.format(w,S||"yyyy-MM-dd",m()):""};var O=Ue.parseDate=function(w,S){return n.default.parse(w,S||"yyyy-MM-dd",m())},I=Ue.getDayCountOfMonth=function(w,S){return isNaN(+S)?31:new Date(w,+S+1,0).getDate()};Ue.getDayCountOfYear=function(w){var S=w%400===0||w%100!==0&&w%4===0;return S?366:365},Ue.getFirstDayOfMonth=function(w){var S=new Date(w.getTime());return S.setDate(1),S.getDay()};var N=Ue.prevDate=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()-S)};Ue.nextDate=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(w.getFullYear(),w.getMonth(),w.getDate()+S)},Ue.getStartDateOfMonth=function(w,S){var z=new Date(w,S,1),R=z.getDay();return R===0?N(z,7):N(z,R)},Ue.getWeekNumber=function(w){if(!y(w))return null;var S=new Date(w.getTime());S.setHours(0,0,0,0),S.setDate(S.getDate()+3-(S.getDay()+6)%7);var z=new Date(S.getFullYear(),0,4);return 1+Math.round(((S.getTime()-z.getTime())/864e5-3+(z.getDay()+6)%7)/7)},Ue.getRangeHours=function(w){var S=[],z=[];if((w||[]).forEach(function(q){var re=q.map(function(ce){return ce.getHours()});z=z.concat(p(re[0],re[1]))}),z.length)for(var R=0;R<24;R++)S[R]=z.indexOf(R)===-1;else for(var H=0;H<24;H++)S[H]=!1;return S},Ue.getPrevMonthLastDays=function(w,S){if(S<=0)return[];var z=new Date(w.getTime());z.setDate(0);var R=z.getDate();return k(S).map(function(H,q){return R-(S-q-1)})},Ue.getMonthDays=function(w){var S=new Date(w.getFullYear(),w.getMonth()+1,0),z=S.getDate();return k(z).map(function(R,H){return H+1})};function _(v,w,S,z){for(var R=w;R<S;R++)v[R]=z}Ue.getRangeMinutes=function(w,S){var z=new Array(60);return w.length>0?w.forEach(function(R){var H=R[0],q=R[1],re=H.getHours(),ce=H.getMinutes(),ge=q.getHours(),fe=q.getMinutes();re===S&&ge!==S?_(z,ce,60,!0):re===S&&ge===S?_(z,ce,fe+1,!0):re!==S&&ge===S?_(z,0,fe+1,!0):re<S&&ge>S&&_(z,0,60,!0)}):_(z,0,60,!0),z};var k=Ue.range=function(w){return Array.apply(null,{length:w}).map(function(S,z){return z})},Q=Ue.modifyDate=function(w,S,z,R){return new Date(S,z,R,w.getHours(),w.getMinutes(),w.getSeconds(),w.getMilliseconds())},M=Ue.modifyTime=function(w,S,z,R){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),S,z,R,w.getMilliseconds())};Ue.modifyWithTimeString=function(w,S){return w==null||!S?w:(S=O(S,"HH:mm:ss"),M(w,S.getHours(),S.getMinutes(),S.getSeconds()))},Ue.clearTime=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate())},Ue.clearMilliseconds=function(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds(),0)};var T=Ue.limitTimeRange=function(w,S){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(S.length===0)return w;var R=function(Ce){return n.default.parse(n.default.format(Ce,z),z)},H=R(w),q=S.map(function(fe){return fe.map(R)});if(q.some(function(fe){return H>=fe[0]&&H<=fe[1]}))return w;var re=q[0][0],ce=q[0][0];q.forEach(function(fe){re=new Date(Math.min(fe[0],re)),ce=new Date(Math.max(fe[1],re))});var ge=H<re?re:ce;return Q(ge,w.getFullYear(),w.getMonth(),w.getDate())};Ue.timeWithinRange=function(w,S,z){var R=T(w,S,z);return R.getTime()===w.getTime()};var F=Ue.changeYearMonthAndClampDate=function(w,S,z){var R=Math.min(w.getDate(),I(S,z));return Q(w,S,z,R)};return Ue.prevMonth=function(w){var S=w.getFullYear(),z=w.getMonth();return z===0?F(w,S-1,11):F(w,S,z-1)},Ue.nextMonth=function(w){var S=w.getFullYear(),z=w.getMonth();return z===11?F(w,S+1,0):F(w,S,z+1)},Ue.prevYear=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),R=w.getMonth();return F(w,z-S,R)},Ue.nextYear=function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,z=w.getFullYear(),R=w.getMonth();return F(w,z+S,R)},Ue.extractDateFormat=function(w){return w.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},Ue.extractTimeFormat=function(w){return w.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},Ue.validateRangeInOneMonth=function(w,S){return w.getMonth()===S.getMonth()&&w.getFullYear()===S.getFullYear()},Ue}var on={},Z2;function Sa(){if(Z2)return on;Z2=1,on.__esModule=!0,on.isInContainer=on.getScrollContainer=on.isScroll=on.getStyle=on.once=on.off=on.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};on.hasClass=N,on.addClass=_,on.removeClass=k,on.setStyle=M;var n=Li.default,r=a(n);function a(F){return F&&F.__esModule?F:{default:F}}var s=r.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,p=/^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(w,S,z,R){return R?z.toUpperCase():z}).replace(p,"Moz$1")},O=on.on=function(){return!s&&document.addEventListener?function(F,v,w){F&&v&&w&&F.addEventListener(v,w,!1)}:function(F,v,w){F&&v&&w&&F.attachEvent("on"+v,w)}}(),I=on.off=function(){return!s&&document.removeEventListener?function(F,v,w){F&&v&&F.removeEventListener(v,w,!1)}:function(F,v,w){F&&v&&F.detachEvent("on"+v,w)}}();on.once=function(v,w,S){var z=function R(){S&&S.apply(this,arguments),I(v,w,R)};O(v,w,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 w=F.className,S=(v||"").split(" "),z=0,R=S.length;z<R;z++){var H=S[z];!H||(F.classList?F.classList.add(H):N(F,H)||(w+=" "+H))}F.classList||F.setAttribute("class",w)}}function k(F,v){if(!(!F||!v)){for(var w=v.split(" "),S=" "+F.className+" ",z=0,R=w.length;z<R;z++){var H=w[z];!H||(F.classList?F.classList.remove(H):N(F,H)&&(S=S.replace(" "+H+" "," ")))}F.classList||F.setAttribute("class",g(S))}}var Q=on.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 w=document.defaultView.getComputedStyle(F,"");return F.style[v]||w?w[v]:null}catch{return F.style[v]}}};function M(F,v,w){if(!(!F||!v))if((typeof v>"u"?"undefined":e(v))==="object")for(var S in v)v.hasOwnProperty(S)&&M(F,S,v[S]);else v=y(v),v==="opacity"&&m<9?F.style.filter=isNaN(w)?"":"alpha(opacity="+w*100+")":F.style[v]=w}var T=on.isScroll=function(v,w){if(!s){var S=w!=null,z=S?w?Q(v,"overflow-y"):Q(v,"overflow-x"):Q(v,"overflow");return z.match(/(scroll|auto|overlay)/)}};return on.getScrollContainer=function(v,w){if(!s){for(var S=v;S;){if([window,document,document.documentElement].includes(S))return window;if(T(S,w))return S;S=S.parentNode}return S}},on.isInContainer=function(v,w){if(s||!v||!w)return!1;var S=v.getBoundingClientRect(),z=void 0;return[window,document,document.documentElement,null,void 0].includes(w)?z={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:z=w.getBoundingClientRect(),S.top<z.bottom&&S.bottom>z.top&&S.right>z.left&&S.left<z.right},on}var Kh={},$2;function ys(){if($2)return Kh;$2=1,Kh.__esModule=!0;function e(n,r,a){this.$children.forEach(function(s){var c=s.$options.componentName;c===n?s.$emit.apply(s,[r].concat(a)):e.apply(s,[n,r].concat([a]))})}return Kh.default={methods:{dispatch:function(r,a,s){for(var c=this.$parent||this.$root,p=c.$options.componentName;c&&(!p||p!==r);)c=c.$parent,c&&(p=c.$options.componentName);c&&c.$emit.apply(c,[a].concat(s))},broadcast:function(r,a,s){e.call(this,r,a,s)}}},Kh}var Xh={},q2;function bx(){if(q2)return Xh;q2=1,Xh.__esModule=!0;var e=vx();return Xh.default={methods:{t:function(){for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e.t.apply(this,a)}}},Xh}var Zh={},ql={},$h={},eO;function qh(){return eO||(eO=1,$h.__esModule=!0,$h.default=function(e){for(var n=1,r=arguments.length;n<r;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}),$h}var em={},tO;function sU(){if(tO)return em;tO=1,em.__esModule=!0;var e=Li.default,n=a(e),r=Sa();function a(I){return I&&I.__esModule?I:{default:I}}var s=!1,c=!1,p=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,_,k,Q,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 w=T[F];if(w.id===N)return}var S=m();if((0,r.addClass)(S,"v-modal"),this.modalFade&&!s&&(0,r.addClass)(S,"v-modal-enter"),Q){var z=Q.trim().split(/\s+/);z.forEach(function(R){return(0,r.addClass)(S,R)})}setTimeout(function(){(0,r.removeClass)(S,"v-modal-enter")},200),k&&k.parentNode&&k.parentNode.nodeType!==11?k.parentNode.appendChild(S):document.body.appendChild(S),_&&(S.style.zIndex=_),S.tabIndex=0,S.style.display="",this.modalStack.push({id:N,zIndex:_,modalClass:Q})}},closeModal:function(N){var _=this.modalStack,k=m();if(_.length>0){var Q=_[_.length-1];if(Q.id===N){if(Q.modalClass){var M=Q.modalClass.trim().split(/\s+/);M.forEach(function(F){return(0,r.removeClass)(k,F)})}_.pop(),_.length>0&&(k.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,r.addClass)(k,"v-modal-leave"),setTimeout(function(){_.length===0&&(k.parentNode&&k.parentNode.removeChild(k),k.style.display="none",y.modalDom=void 0),(0,r.removeClass)(k,"v-modal-leave")},200))}};Object.defineProperty(y,"zIndex",{configurable:!0,get:function(){return c||(p=p||(n.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),p},set:function(N){p=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(I){if(I.keyCode===27){var N=O();N&&N.closeOnPressEscape&&(N.handleClose?N.handleClose():N.handleAction?N.handleAction("cancel"):N.close())}}),em.default=y,em}var tm={},nO;function _x(){if(nO)return tm;nO=1,tm.__esModule=!0,tm.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 p=document.createElement("div");p.style.width="100%",s.appendChild(p);var m=p.offsetWidth;return s.parentNode.removeChild(s),a=c-m,a};var e=Li.default,n=r(e);function r(s){return s&&s.__esModule?s:{default:s}}var a=void 0;return tm}var iO;function rO(){if(iO)return ql;iO=1,ql.__esModule=!0,ql.PopupManager=void 0;var e=Li.default,n=y(e),r=qh(),a=y(r),s=sU(),c=y(s),p=_x(),m=y(p),g=Sa();function y(N){return N&&N.__esModule?N:{default:N}}var O=1,I=void 0;return ql.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 k=this;if(_){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,n.default.nextTick(function(){k.open()}))}else this.close()}},methods:{open:function(_){var k=this;this.rendered||(this.rendered=!0);var Q=(0,a.default)({},this.$props||this,_);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var M=Number(Q.openDelay);M>0?this._openTimer=setTimeout(function(){k._openTimer=null,k.doOpen(Q)},M):this.doOpen(Q)},doOpen:function(_){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var k=this.$el,Q=_.modal,M=_.zIndex;if(M&&(c.default.zIndex=M),Q&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:k,_.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)),I=(0,m.default)();var T=document.documentElement.clientHeight<document.body.scrollHeight,F=(0,g.getStyle)(document.body,"overflowY");I>0&&(T||F==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+I+"px"),(0,g.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(k).position==="static"&&(k.style.position="absolute"),k.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 k=Number(this.closeDelay);k>0?this._closeTimer=setTimeout(function(){_._closeTimer=null,_.doClose()},k):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}}},ql.PopupManager=c.default,ql}var yx={exports:{}},aO;function lU(){return aO||(aO=1,function(e){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};(function(r,a){n(e)==="object"&&e.exports?e.exports=a():r.Popper=a()})(void 0,function(){var r=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,w,S){this._reference=v.jquery?v[0]:v,this.state={};var z=typeof w>"u"||w===null,R=w&&Object.prototype.toString.call(w)==="[object Object]";return z||R?this._popper=this.parse(R?w:{}):this._popper=w.jquery?w[0]:w,this._options=Object.assign({},a,S),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 w={tagName:"div",classNames:["popper"],attributes:[],parent:r.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};v=Object.assign({},w,v);var S=r.document,z=S.createElement(v.tagName);if(q(z,v.classNames),re(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 R=S.createElement(v.arrowTagName);q(R,v.arrowClassNames),re(R,v.arrowAttributes),z.appendChild(R)}var H=v.parent.jquery?v.parent[0]:v.parent;if(typeof H=="string"){if(H=S.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 q(ce,ge){ge.forEach(function(fe){ce.classList.add(fe)})}function re(ce,ge){ge.forEach(function(fe){ce.setAttribute(fe.split(":")[0],fe.split(":")[1]||"")})}},s.prototype._getPosition=function(v,w){if(O(w),this._options.forceAbsolute)return"absolute";var S=N(w);return S?"fixed":"absolute"},s.prototype._getOffsets=function(v,w,S){S=S.split("-")[0];var z={};z.position=this.state.position;var R=z.position==="fixed",H=T(w,O(v),R),q=c(v);return["right","left"].indexOf(S)!==-1?(z.top=H.top+H.height/2-q.height/2,S==="left"?z.left=H.left-q.width:z.left=H.right):(z.left=H.left+H.width/2-q.width/2,S==="top"?z.top=H.top-q.height:z.top=H.bottom),z.width=q.width,z.height=q.height,{popper:z,reference:H}},s.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),r.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var v=I(this._reference);(v===r.document.body||v===r.document.documentElement)&&(v=r),v.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=v}},s.prototype._removeEventListeners=function(){r.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,w,S){var z={},R,H;if(S==="window"){var q=r.document.body,re=r.document.documentElement;H=Math.max(q.scrollHeight,q.offsetHeight,re.clientHeight,re.scrollHeight,re.offsetHeight),R=Math.max(q.scrollWidth,q.offsetWidth,re.clientWidth,re.scrollWidth,re.offsetWidth),z={top:0,right:R,bottom:H,left:0}}else if(S==="viewport"){var ce=O(this._popper),ge=I(this._popper),fe=Q(ce),Ce=function(ie){return ie==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):ie.scrollTop},Se=function(ie){return ie==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):ie.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:r.document.documentElement.clientWidth-(fe.left-G),bottom:r.document.documentElement.clientHeight-(fe.top-me),left:0-(fe.left-G)}}else O(this._popper)===S?z={top:0,left:0,right:S.clientWidth,bottom:S.clientHeight}:z=Q(S);return z.left+=w,z.right-=w,z.top=z.top+w,z.bottom=z.bottom-w,z},s.prototype.runModifiers=function(v,w,S){var z=w.slice();return S!==void 0&&(z=this._options.modifiers.slice(0,g(this._options.modifiers,S))),z.forEach(function(R){k(R)&&(v=R.call(this,v))}.bind(this)),v},s.prototype.isModifierRequired=function(v,w){var S=g(this._options.modifiers,v);return!!this._options.modifiers.slice(0,S).filter(function(z){return z===w}).length},s.prototype.modifiers={},s.prototype.modifiers.applyStyle=function(v){var w={position:v.offsets.popper.position},S=Math.round(v.offsets.popper.left),z=Math.round(v.offsets.popper.top),R;return this._options.gpuAcceleration&&(R=F("transform"))?(w[R]="translate3d("+S+"px, "+z+"px, 0)",w.top=0,w.left=0):(w.left=S,w.top=z),Object.assign(w,v.styles),_(this._popper,w),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 w=v.placement,S=w.split("-")[0],z=w.split("-")[1];if(z){var R=v.offsets.reference,H=m(v.offsets.popper),q={y:{start:{top:R.top},end:{top:R.top+R.height-H.height}},x:{start:{left:R.left},end:{left:R.left+R.width-H.width}}},re=["bottom","top"].indexOf(S)!==-1?"x":"y";v.offsets.popper=Object.assign(H,q[re][z])}return v},s.prototype.modifiers.preventOverflow=function(v){var w=this._options.preventOverflowOrder,S=m(v.offsets.popper),z={left:function(){var H=S.left;return S.left<v.boundaries.left&&(H=Math.max(S.left,v.boundaries.left)),{left:H}},right:function(){var H=S.left;return S.right>v.boundaries.right&&(H=Math.min(S.left,v.boundaries.right-S.width)),{left:H}},top:function(){var H=S.top;return S.top<v.boundaries.top&&(H=Math.max(S.top,v.boundaries.top)),{top:H}},bottom:function(){var H=S.top;return S.bottom>v.boundaries.bottom&&(H=Math.min(S.top,v.boundaries.bottom-S.height)),{top:H}}};return w.forEach(function(R){v.offsets.popper=Object.assign(S,z[R]())}),v},s.prototype.modifiers.keepTogether=function(v){var w=m(v.offsets.popper),S=v.offsets.reference,z=Math.floor;return w.right<z(S.left)&&(v.offsets.popper.left=z(S.left)-w.width),w.left>z(S.right)&&(v.offsets.popper.left=z(S.right)),w.bottom<z(S.top)&&(v.offsets.popper.top=z(S.top)-w.height),w.top>z(S.bottom)&&(v.offsets.popper.top=z(S.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 w=v.placement.split("-")[0],S=p(w),z=v.placement.split("-")[1]||"",R=[];return this._options.flipBehavior==="flip"?R=[w,S]:R=this._options.flipBehavior,R.forEach(function(H,q){if(!(w!==H||R.length===q+1)){w=v.placement.split("-")[0],S=p(w);var re=m(v.offsets.popper),ce=["right","bottom"].indexOf(w)!==-1;(ce&&Math.floor(v.offsets.reference[w])>Math.floor(re[S])||!ce&&Math.floor(v.offsets.reference[w])<Math.floor(re[S]))&&(v.flipped=!0,v.placement=R[q+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 w=this._options.offset,S=v.offsets.popper;return v.placement.indexOf("left")!==-1?S.top-=w:v.placement.indexOf("right")!==-1?S.top+=w:v.placement.indexOf("top")!==-1?S.left-=w:v.placement.indexOf("bottom")!==-1&&(S.left+=w),v},s.prototype.modifiers.arrow=function(v){var w=this._options.arrowElement,S=this._options.arrowOffset;if(typeof w=="string"&&(w=this._popper.querySelector(w)),!w)return v;if(!this._popper.contains(w))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={},R=v.placement.split("-")[0],H=m(v.offsets.popper),q=v.offsets.reference,re=["left","right"].indexOf(R)!==-1,ce=re?"height":"width",ge=re?"top":"left",fe=re?"left":"top",Ce=re?"bottom":"right",Se=c(w)[ce];q[Ce]-Se<H[ge]&&(v.offsets.popper[ge]-=H[ge]-(q[Ce]-Se)),q[ge]+Se>H[Ce]&&(v.offsets.popper[ge]+=q[ge]+Se-H[Ce]);var me=q[ge]+(S||q[ce]/2-Se/2),G=me-H[ge];return G=Math.max(Math.min(H[ce]-Se-8,G),8),z[ge]=G,z[fe]="",v.offsets.arrow=z,v.arrowElement=w,v};function c(v){var w=v.style.display,S=v.style.visibility;v.style.display="block",v.style.visibility="hidden",v.offsetWidth;var z=r.getComputedStyle(v),R=parseFloat(z.marginTop)+parseFloat(z.marginBottom),H=parseFloat(z.marginLeft)+parseFloat(z.marginRight),q={width:v.offsetWidth+H,height:v.offsetHeight+R};return v.style.display=w,v.style.visibility=S,q}function p(v){var w={left:"right",right:"left",bottom:"top",top:"bottom"};return v.replace(/left|right|bottom|top/g,function(S){return w[S]})}function m(v){var w=Object.assign({},v);return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function g(v,w){var S=0,z;for(z in v){if(v[z]===w)return S;S++}return null}function y(v,w){var S=r.getComputedStyle(v,null);return S[w]}function O(v){var w=v.offsetParent;return w===r.document.body||!w?r.document.documentElement:w}function I(v){var w=v.parentNode;return w?w===r.document?r.document.body.scrollTop||r.document.body.scrollLeft?r.document.body:r.document.documentElement:["scroll","auto"].indexOf(y(w,"overflow"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-x"))!==-1||["scroll","auto"].indexOf(y(w,"overflow-y"))!==-1?w:I(v.parentNode):v}function N(v){return v===r.document.body?!1:y(v,"position")==="fixed"?!0:v.parentNode?N(v.parentNode):v}function _(v,w){function S(z){return z!==""&&!isNaN(parseFloat(z))&&isFinite(z)}Object.keys(w).forEach(function(z){var R="";["width","height","top","right","bottom","left"].indexOf(z)!==-1&&S(w[z])&&(R="px"),v.style[z]=w[z]+R})}function k(v){var w={};return v&&w.toString.call(v)==="[object Function]"}function Q(v){var w={width:v.offsetWidth,height:v.offsetHeight,left:v.offsetLeft,top:v.offsetTop};return w.right=w.left+w.width,w.bottom=w.top+w.height,w}function M(v){var w=v.getBoundingClientRect(),S=navigator.userAgent.indexOf("MSIE")!=-1,z=S&&v.tagName==="HTML"?-v.scrollTop:w.top;return{left:w.left,top:z,right:w.right,bottom:w.bottom,width:w.right-w.left,height:w.bottom-z}}function T(v,w,S){var z=M(v),R=M(w);if(S){var H=I(w);R.top+=H.scrollTop,R.bottom+=H.scrollTop,R.left+=H.scrollLeft,R.right+=H.scrollLeft}var q={top:z.top-R.top,left:z.left-R.left,bottom:z.top-R.top+z.height,right:z.left-R.left+z.width,width:z.width,height:z.height};return q}function F(v){for(var w=["","ms","webkit","moz","o"],S=0;S<w.length;S++){var z=w[S]?w[S]+v.charAt(0).toUpperCase()+v.slice(1):v;if(typeof r.document.body.style[z]<"u")return z}return null}return Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(w){if(w==null)throw new TypeError("Cannot convert first argument to object");for(var S=Object(w),z=1;z<arguments.length;z++){var R=arguments[z];if(R!=null){R=Object(R);for(var H=Object.keys(R),q=0,re=H.length;q<re;q++){var ce=H[q],ge=Object.getOwnPropertyDescriptor(R,ce);ge!==void 0&&ge.enumerable&&(S[ce]=R[ce])}}}return S}}),s})}(yx)),yx.exports}var oO;function nm(){if(oO)return Zh;oO=1,Zh.__esModule=!0;var e=Li.default,n=a(e),r=rO();function a(p){return p&&p.__esModule?p:{default:p}}var s=n.default.prototype.$isServer?function(){}:lU(),c=function(m){return m.stopPropagation()};return Zh.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(I){m.$emit("created",m),m.resetTransformOrigin(),m.$nextTick(m.updatePopper)}),typeof g.onUpdate=="function"&&this.popperJS.onUpdate(g.onUpdate),this.popperJS._popper.style.zIndex=r.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var m=this.popperJS;m?(m.update(),m._popper&&(m._popper.style.zIndex=r.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)}},Zh}var xx={exports:{}},im={},sO;function lO(){if(sO)return im;sO=1,im.__esModule=!0;var e=Ir();return im.default={mounted:function(){if(process.env.NODE_ENV!=="production"&&!!this.$vnode){var r=this.getMigratingConfig(),a=r.props,s=a===void 0?{}:a,c=r.events,p=c===void 0?{}:c,m=this.$vnode,g=m.data,y=m.componentOptions,O=g.attrs||{},I=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 I)_=(0,e.kebabCase)(_),p[_]&&console.warn("[Element Migrating]["+this.$options.name+"][Event]: "+p[_])}},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}},im}var yd={},cO;function rm(){if(cO)return yd;cO=1,yd.__esModule=!0,yd.isDef=e,yd.isKorean=n;function e(r){return r!=null}function n(r){var a=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return a.test(r)}return yd}var uO;function wx(){return uO||(uO=1,function(e){e.exports=function(n){var r={};function a(s){if(r[s])return r[s].exports;var c=r[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=r,a.d=function(s,c,p){a.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:p})},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 p=Object.create(null);if(a.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var m in s)a.d(p,m,function(g){return s[g]}.bind(null,m));return p},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,r,a){a.d(r,"a",function(){return s});function s(c,p,m,g,y,O,I,N){var _=typeof c=="function"?c.options:c;p&&(_.render=p,_.staticRenderFns=m,_._compiled=!0),g&&(_.functional=!0),O&&(_._scopeId="data-v-"+O);var k;if(I?(k=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(I)},_._ssrRegister=k):y&&(k=N?function(){y.call(this,this.$root.$options.shadowRoot)}:y),k)if(_.functional){_._injectStyles=k;var Q=_.render;_.render=function(F,v){return k.call(v),Q(F,v)}}else{var M=_.beforeCreate;_.beforeCreate=M?[].concat(M,k):[k]}return{exports:c,options:_}}},11:function(n,r){n.exports=lO()},21:function(n,r){n.exports=rm()},4:function(n,r){n.exports=ys()},75:function(n,r,a){a.r(r);var s=function(){var R=this,H=R.$createElement,q=R._self._c||H;return q("div",{class:[R.type==="textarea"?"el-textarea":"el-input",R.inputSize?"el-input--"+R.inputSize:"",{"is-disabled":R.inputDisabled,"is-exceed":R.inputExceed,"el-input-group":R.$slots.prepend||R.$slots.append,"el-input-group--append":R.$slots.append,"el-input-group--prepend":R.$slots.prepend,"el-input--prefix":R.$slots.prefix||R.prefixIcon,"el-input--suffix":R.$slots.suffix||R.suffixIcon||R.clearable||R.showPassword}],on:{mouseenter:function(re){R.hovering=!0},mouseleave:function(re){R.hovering=!1}}},[R.type!=="textarea"?[R.$slots.prepend?q("div",{staticClass:"el-input-group__prepend"},[R._t("prepend")],2):R._e(),R.type!=="textarea"?q("input",R._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:R.tabindex,type:R.showPassword?R.passwordVisible?"text":"password":R.type,disabled:R.inputDisabled,readonly:R.readonly,autocomplete:R.autoComplete||R.autocomplete,"aria-label":R.label},on:{compositionstart:R.handleCompositionStart,compositionupdate:R.handleCompositionUpdate,compositionend:R.handleCompositionEnd,input:R.handleInput,focus:R.handleFocus,blur:R.handleBlur,change:R.handleChange}},"input",R.$attrs,!1)):R._e(),R.$slots.prefix||R.prefixIcon?q("span",{staticClass:"el-input__prefix"},[R._t("prefix"),R.prefixIcon?q("i",{staticClass:"el-input__icon",class:R.prefixIcon}):R._e()],2):R._e(),R.getSuffixVisible()?q("span",{staticClass:"el-input__suffix"},[q("span",{staticClass:"el-input__suffix-inner"},[!R.showClear||!R.showPwdVisible||!R.isWordLimitVisible?[R._t("suffix"),R.suffixIcon?q("i",{staticClass:"el-input__icon",class:R.suffixIcon}):R._e()]:R._e(),R.showClear?q("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(re){re.preventDefault()},click:R.clear}}):R._e(),R.showPwdVisible?q("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:R.handlePasswordVisible}}):R._e(),R.isWordLimitVisible?q("span",{staticClass:"el-input__count"},[q("span",{staticClass:"el-input__count-inner"},[R._v(`
|
|
31
31
|
`+R._s(R.textLength)+"/"+R._s(R.upperLimit)+`
|
|
32
32
|
`)])]):R._e()],2),R.validateState?q("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",R.validateIcon]}):R._e()]):R._e(),R.$slots.append?q("div",{staticClass:"el-input-group__append"},[R._t("append")],2):R._e()]:q("textarea",R._b({ref:"textarea",staticClass:"el-textarea__inner",style:R.textareaStyle,attrs:{tabindex:R.tabindex,disabled:R.inputDisabled,readonly:R.readonly,autocomplete:R.autoComplete||R.autocomplete,"aria-label":R.label},on:{compositionstart:R.handleCompositionStart,compositionupdate:R.handleCompositionUpdate,compositionend:R.handleCompositionEnd,input:R.handleInput,focus:R.handleFocus,blur:R.handleBlur,change:R.handleChange}},"textarea",R.$attrs,!1)),R.isWordLimitVisible&&R.type==="textarea"?q("span",{staticClass:"el-input__count"},[R._v(R._s(R.textLength)+"/"+R._s(R.upperLimit))]):R._e()],2)},c=[];s._withStripped=!0;var p=a(4),m=a.n(p),g=a(11),y=a.n(g),O=void 0,I=`
|
|
33
33
|
height:0 !important;
|